ruạṛ
var But=Object.defineProperty;var Gut=(gA,XE,MS)=>XE in gA?But(gA,XE,{enumerable:!0,configurable:!0,writable:!0,value:MS}):gA[XE]=MS;var uR=(gA,XE,MS)=>(Gut(gA,typeof XE!="symbol"?XE+"":XE,MS),MS);(function(){"use strict";class gA{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?sI.isErrorNoTelemetry(v)?new sI(v.message+` `+v.stack):new Error(v.message+` `+v.stack):v},0)}}emit(v){this.listeners.forEach(C=>{C(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}const XE=new gA;function MS(m){vNe(m)||XE.onUnexpectedError(m)}function Ase(m){if(m instanceof Error){const{name:v,message:C}=m,B=m.stacktrace||m.stack;return{$isError:!0,name:v,message:C,stack:B,noTelemetry:sI.isErrorNoTelemetry(m)}}return m}const Sj="Canceled";function vNe(m){return m instanceof bNe?!0:m instanceof Error&&m.name===Sj&&m.message===Sj}class bNe extends Error{constructor(){super(Sj),this.name=this.message}}class sI extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof sI)return v;const C=new sI;return C.message=v.message,C.stack=v.stack,C}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}}class FS extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,FS.prototype)}}function ENe(m){const v=this;let C=!1,B;return function(){return C||(C=!0,B=m.apply(v,arguments)),B}}var j4;(function(m){function v(nn){return nn&&typeof nn=="object"&&typeof nn[Symbol.iterator]=="function"}m.is=v;const C=Object.freeze([]);function B(){return C}m.empty=B;function*ne(nn){yield nn}m.single=ne;function _e(nn){return v(nn)?nn:ne(nn)}m.wrap=_e;function be(nn){return nn||C}m.from=be;function*Be(nn){for(let Li=nn.length-1;Li>=0;Li--)yield nn[Li]}m.reverse=Be;function ct(nn){return!nn||nn[Symbol.iterator]().next().done===!0}m.isEmpty=ct;function Ae(nn){return nn[Symbol.iterator]().next().value}m.first=Ae;function Ue(nn,Li){for(const mi of nn)if(Li(mi))return!0;return!1}m.some=Ue;function Jt(nn,Li){for(const mi of nn)if(Li(mi))return mi}m.find=Jt;function*Kt(nn,Li){for(const mi of nn)Li(mi)&&(yield mi)}m.filter=Kt;function*fn(nn,Li){let mi=0;for(const va of nn)yield Li(va,mi++)}m.map=fn;function*kr(...nn){for(const Li of nn)for(const mi of Li)yield mi}m.concat=kr;function ui(nn,Li,mi){let va=mi;for(const Bo of nn)va=Li(va,Bo);return va}m.reduce=ui;function*la(nn,Li,mi=nn.length){for(Li<0&&(Li+=nn.length),mi<0?mi+=nn.length:mi>nn.length&&(mi=nn.length);Li<mi;Li++)yield nn[Li]}m.slice=la;function Yn(nn,Li=Number.POSITIVE_INFINITY){const mi=[];if(Li===0)return[mi,nn];const va=nn[Symbol.iterator]();for(let Bo=0;Bo<Li;Bo++){const jr=va.next();if(jr.done)return[mi,m.empty()];mi.push(jr.value)}return[mi,{[Symbol.iterator](){return va}}]}m.consume=Yn})(j4||(j4={}));function Uut(m){return m}function Vut(m,v){}function Cse(m){if(j4.is(m)){const v=[];for(const C of m)if(C)try{C.dispose()}catch(B){v.push(B)}if(v.length===1)throw v[0];if(v.length>1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function TNe(...m){return dR(()=>Cse(m))}function dR(m){return{dispose:ENe(()=>{m()})}}class lI{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{Cse(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?lI.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(v),v}deleteAndLeak(v){v&&this._toDispose.has(v)&&this._toDispose.delete(v)}}lI.DISABLE_DISPOSED_WARNING=!1;class fR{constructor(){this._store=new lI,this._store}dispose(){this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}}fR.None=Object.freeze({dispose(){}});class Ru{constructor(v){this.element=v,this.next=Ru.Undefined,this.prev=Ru.Undefined}}Ru.Undefined=new Ru(void 0);class SNe{constructor(){this._first=Ru.Undefined,this._last=Ru.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ru.Undefined}clear(){let v=this._first;for(;v!==Ru.Undefined;){const C=v.next;v.prev=Ru.Undefined,v.next=Ru.Undefined,v=C}this._first=Ru.Undefined,this._last=Ru.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,C){const B=new Ru(v);if(this._first===Ru.Undefined)this._first=B,this._last=B;else if(C){const _e=this._last;this._last=B,B.prev=_e,_e.next=B}else{const _e=this._first;this._first=B,B.next=_e,_e.prev=B}this._size+=1;let ne=!1;return()=>{ne||(ne=!0,this._remove(B))}}shift(){if(this._first!==Ru.Undefined){const v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==Ru.Undefined){const v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==Ru.Undefined&&v.next!==Ru.Undefined){const C=v.prev;C.next=v.next,v.next.prev=C}else v.prev===Ru.Undefined&&v.next===Ru.Undefined?(this._first=Ru.Undefined,this._last=Ru.Undefined):v.next===Ru.Undefined?(this._last=this._last.prev,this._last.next=Ru.Undefined):v.prev===Ru.Undefined&&(this._first=this._first.next,this._first.prev=Ru.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==Ru.Undefined;)yield v.element,v=v.next}}const xNe=globalThis.performance&&typeof globalThis.performance.now=="function";class H4{static create(v){return new H4(v)}constructor(v){this._now=xNe&&v===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var xj;(function(m){m.None=()=>fR.None;function v(Ri,Fi){return Jt(Ri,()=>{},0,void 0,!0,void 0,Fi)}m.defer=v;function C(Ri){return(Fi,Vt=null,_o)=>{let pa=!1,is;return is=Ri(ma=>{if(!pa)return is?is.dispose():pa=!0,Fi.call(Vt,ma)},null,_o),pa&&is.dispose(),is}}m.once=C;function B(Ri,Fi,Vt){return Ae((_o,pa=null,is)=>Ri(ma=>_o.call(pa,Fi(ma)),null,is),Vt)}m.map=B;function ne(Ri,Fi,Vt){return Ae((_o,pa=null,is)=>Ri(ma=>{Fi(ma),_o.call(pa,ma)},null,is),Vt)}m.forEach=ne;function _e(Ri,Fi,Vt){return Ae((_o,pa=null,is)=>Ri(ma=>Fi(ma)&&_o.call(pa,ma),null,is),Vt)}m.filter=_e;function be(Ri){return Ri}m.signal=be;function Be(...Ri){return(Fi,Vt=null,_o)=>{const pa=TNe(...Ri.map(is=>is(ma=>Fi.call(Vt,ma))));return Ue(pa,_o)}}m.any=Be;function ct(Ri,Fi,Vt,_o){let pa=Vt;return B(Ri,is=>(pa=Fi(pa,is),pa),_o)}m.reduce=ct;function Ae(Ri,Fi){let Vt;const _o={onWillAddFirstListener(){Vt=Ri(pa.fire,pa)},onDidRemoveLastListener(){Vt==null||Vt.dispose()}},pa=new M0(_o);return Fi==null||Fi.add(pa),pa.event}function Ue(Ri,Fi){return Fi instanceof Array?Fi.push(Ri):Fi&&Fi.add(Ri),Ri}function Jt(Ri,Fi,Vt=100,_o=!1,pa=!1,is,ma){let u_,d_,QE,KS=0,ia;const TA={leakWarningThreshold:is,onWillAddFirstListener(){u_=Ri(SA=>{KS++,d_=Fi(d_,SA),_o&&!QE&&(EI.fire(d_),d_=void 0),ia=()=>{const gv=d_;d_=void 0,QE=void 0,(!_o||KS>1)&&EI.fire(gv),KS=0},typeof Vt=="number"?(clearTimeout(QE),QE=setTimeout(ia,Vt)):QE===void 0&&(QE=0,queueMicrotask(ia))})},onWillRemoveListener(){pa&&KS>0&&(ia==null||ia())},onDidRemoveLastListener(){ia=void 0,u_.dispose()}},EI=new M0(TA);return ma==null||ma.add(EI),EI.event}m.debounce=Jt;function Kt(Ri,Fi=0,Vt){return m.debounce(Ri,(_o,pa)=>_o?(_o.push(pa),_o):[pa],Fi,void 0,!0,void 0,Vt)}m.accumulate=Kt;function fn(Ri,Fi=(_o,pa)=>_o===pa,Vt){let _o=!0,pa;return _e(Ri,is=>{const ma=_o||!Fi(is,pa);return _o=!1,pa=is,ma},Vt)}m.latch=fn;function kr(Ri,Fi,Vt){return[m.filter(Ri,Fi,Vt),m.filter(Ri,_o=>!Fi(_o),Vt)]}m.split=kr;function ui(Ri,Fi=!1,Vt=[],_o){let pa=Vt.slice(),is=Ri(d_=>{pa?pa.push(d_):u_.fire(d_)});_o&&_o.add(is);const ma=()=>{pa==null||pa.forEach(d_=>u_.fire(d_)),pa=null},u_=new M0({onWillAddFirstListener(){is||(is=Ri(d_=>u_.fire(d_)),_o&&_o.add(is))},onDidAddFirstListener(){pa&&(Fi?setTimeout(ma):ma())},onDidRemoveLastListener(){is&&is.dispose(),is=null}});return _o&&_o.add(u_),u_.event}m.buffer=ui;function la(Ri,Fi){return(_o,pa,is)=>{const ma=Fi(new nn);return Ri(function(u_){const d_=ma.evaluate(u_);d_!==Yn&&_o.call(pa,d_)},void 0,is)}}m.chain=la;const Yn=Symbol("HaltChainable");class nn{constructor(){this.steps=[]}map(Fi){return this.steps.push(Fi),this}forEach(Fi){return this.steps.push(Vt=>(Fi(Vt),Vt)),this}filter(Fi){return this.steps.push(Vt=>Fi(Vt)?Vt:Yn),this}reduce(Fi,Vt){let _o=Vt;return this.steps.push(pa=>(_o=Fi(_o,pa),_o)),this}latch(Fi=(Vt,_o)=>Vt===_o){let Vt=!0,_o;return this.steps.push(pa=>{const is=Vt||!Fi(pa,_o);return Vt=!1,_o=pa,is?pa:Yn}),this}evaluate(Fi){for(const Vt of this.steps)if(Fi=Vt(Fi),Fi===Yn)break;return Fi}}function Li(Ri,Fi,Vt=_o=>_o){const _o=(...u_)=>ma.fire(Vt(...u_)),pa=()=>Ri.on(Fi,_o),is=()=>Ri.removeListener(Fi,_o),ma=new M0({onWillAddFirstListener:pa,onDidRemoveLastListener:is});return ma.event}m.fromNodeEventEmitter=Li;function mi(Ri,Fi,Vt=_o=>_o){const _o=(...u_)=>ma.fire(Vt(...u_)),pa=()=>Ri.addEventListener(Fi,_o),is=()=>Ri.removeEventListener(Fi,_o),ma=new M0({onWillAddFirstListener:pa,onDidRemoveLastListener:is});return ma.event}m.fromDOMEventEmitter=mi;function va(Ri){return new Promise(Fi=>C(Ri)(Fi))}m.toPromise=va;function Bo(Ri){const Fi=new M0;return Ri.then(Vt=>{Fi.fire(Vt)},()=>{Fi.fire(void 0)}).finally(()=>{Fi.dispose()}),Fi.event}m.fromPromise=Bo;function jr(Ri,Fi){return Fi(void 0),Ri(Vt=>Fi(Vt))}m.runAndSubscribe=jr;function Zo(Ri,Fi){let Vt=null;function _o(is){Vt==null||Vt.dispose(),Vt=new lI,Fi(is,Vt)}_o(void 0);const pa=Ri(is=>_o(is));return dR(()=>{pa.dispose(),Vt==null||Vt.dispose()})}m.runAndSubscribeWithStore=Zo;class Tc{constructor(Fi,Vt){this._observable=Fi,this._counter=0,this._hasChanged=!1;const _o={onWillAddFirstListener:()=>{Fi.addObserver(this)},onDidRemoveLastListener:()=>{Fi.removeObserver(this)}};this.emitter=new M0(_o),Vt&&Vt.add(this.emitter)}beginUpdate(Fi){this._counter++}handlePossibleChange(Fi){}handleChange(Fi,Vt){this._hasChanged=!0}endUpdate(Fi){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Gc(Ri,Fi){return new Tc(Ri,Fi).emitter.event}m.fromObservable=Gc;function lr(Ri){return Fi=>{let Vt=0,_o=!1;const pa={beginUpdate(){Vt++},endUpdate(){Vt--,Vt===0&&(Ri.reportChanges(),_o&&(_o=!1,Fi()))},handlePossibleChange(){},handleChange(){_o=!0}};return Ri.addObserver(pa),Ri.reportChanges(),{dispose(){Ri.removeObserver(pa)}}}}m.fromObservableLight=lr})(xj||(xj={}));class cI{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${cI._idPool++}`,cI.all.add(this)}start(v){this._stopWatch=new H4,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}}cI.all=new Set,cI._idPool=0;let ANe=-1;class CNe{constructor(v,C=Math.random().toString(18).slice(2,5)){this.threshold=v,this.name=C,this._warnCountdown=0}dispose(){var v;(v=this._stacks)===null||v===void 0||v.clear()}check(v,C){const B=this.threshold;if(B<=0||C<B)return;this._stacks||(this._stacks=new Map);const ne=this._stacks.get(v.value)||0;if(this._stacks.set(v.value,ne+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=B*.5;let _e,be=0;for(const[Be,ct]of this._stacks)(!_e||be<ct)&&(_e=Be,be=ct);console.warn(`[${this.name}] potential listener LEAK detected, having ${C} listeners already. MOST frequent listener (${be}):`),console.warn(_e)}return()=>{const _e=this._stacks.get(v.value)||0;this._stacks.set(v.value,_e-1)}}}class Aj{static create(){var v;return new Aj((v=new Error().stack)!==null&&v!==void 0?v:"")}constructor(v){this.value=v}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class Cj{constructor(v){this.value=v}}const LNe=2;class M0{constructor(v){var C,B,ne,_e,be;this._size=0,this._options=v,this._leakageMon=!((C=this._options)===null||C===void 0)&&C.leakWarningThreshold?new CNe((ne=(B=this._options)===null||B===void 0?void 0:B.leakWarningThreshold)!==null&&ne!==void 0?ne:ANe):void 0,this._perfMon=!((_e=this._options)===null||_e===void 0)&&_e._profName?new cI(this._options._profName):void 0,this._deliveryQueue=(be=this._options)===null||be===void 0?void 0:be.deliveryQueue}dispose(){var v,C,B,ne;this._disposed||(this._disposed=!0,((v=this._deliveryQueue)===null||v===void 0?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(B=(C=this._options)===null||C===void 0?void 0:C.onDidRemoveLastListener)===null||B===void 0||B.call(C),(ne=this._leakageMon)===null||ne===void 0||ne.dispose())}get event(){var v;return(v=this._event)!==null&&v!==void 0||(this._event=(C,B,ne)=>{var _e,be,Be,ct,Ae;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),fR.None;if(this._disposed)return fR.None;B&&(C=C.bind(B));const Ue=new Cj(C);let Jt;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Ue.stack=Aj.create(),Jt=this._leakageMon.check(Ue.stack,this._size+1)),this._listeners?this._listeners instanceof Cj?((Ae=this._deliveryQueue)!==null&&Ae!==void 0||(this._deliveryQueue=new INe),this._listeners=[this._listeners,Ue]):this._listeners.push(Ue):((be=(_e=this._options)===null||_e===void 0?void 0:_e.onWillAddFirstListener)===null||be===void 0||be.call(_e,this),this._listeners=Ue,(ct=(Be=this._options)===null||Be===void 0?void 0:Be.onDidAddFirstListener)===null||ct===void 0||ct.call(Be,this)),this._size++;const Kt=dR(()=>{Jt==null||Jt(),this._removeListener(Ue)});return ne instanceof lI?ne.add(Kt):Array.isArray(ne)&&ne.push(Kt),Kt}),this._event}_removeListener(v){var C,B,ne,_e;if((B=(C=this._options)===null||C===void 0?void 0:C.onWillRemoveListener)===null||B===void 0||B.call(C,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(ne=this._options)===null||ne===void 0?void 0:ne.onDidRemoveLastListener)===null||_e===void 0||_e.call(ne,this),this._size=0;return}const be=this._listeners,Be=be.indexOf(v);if(Be===-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--,be[Be]=void 0;const ct=this._deliveryQueue.current===this;if(this._size*LNe<=be.length){let Ae=0;for(let Ue=0;Ue<be.length;Ue++)be[Ue]?be[Ae++]=be[Ue]:ct&&(this._deliveryQueue.end--,Ae<this._deliveryQueue.i&&this._deliveryQueue.i--);be.length=Ae}}_deliver(v,C){var B;if(!v)return;const ne=((B=this._options)===null||B===void 0?void 0:B.onListenerError)||MS;if(!ne){v.value(C);return}try{v.value(C)}catch(_e){ne(_e)}}_deliverQueue(v){const C=v.current._listeners;for(;v.i<v.end;)this._deliver(C[v.i++],v.value);v.reset()}fire(v){var C,B,ne,_e;if(!((C=this._deliveryQueue)===null||C===void 0)&&C.current&&(this._deliverQueue(this._deliveryQueue),(B=this._perfMon)===null||B===void 0||B.stop()),(ne=this._perfMon)===null||ne===void 0||ne.start(this._size),this._listeners)if(this._listeners instanceof Cj)this._deliver(this._listeners,v);else{const be=this._deliveryQueue;be.enqueue(this,v,this._listeners.length),this._deliverQueue(be)}(_e=this._perfMon)===null||_e===void 0||_e.stop()}hasListeners(){return this._size>0}}class INe{constructor(){this.i=-1,this.end=0}enqueue(v,C,B){this.i=0,this.end=B,this.current=v,this.value=C}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function kNe(m){return typeof m=="string"}function wNe(m){let v=[];for(;Object.prototype!==m;)v=v.concat(Object.getOwnPropertyNames(m)),m=Object.getPrototypeOf(m);return v}function Lj(m){const v=[];for(const C of wNe(m))typeof m[C]=="function"&&v.push(C);return v}function DNe(m,v){const C=ne=>function(){const _e=Array.prototype.slice.call(arguments,0);return v(ne,_e)},B={};for(const ne of m)B[ne]=C(ne);return B}let RNe=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function NNe(m,v){let C;return v.length===0?C=m:C=m.replace(/\{(\d+)\}/g,(B,ne)=>{const _e=ne[0],be=v[_e];let Be=B;return typeof be=="string"?Be=be:(typeof be=="number"||typeof be=="boolean"||be===void 0||be===null)&&(Be=String(be)),Be}),RNe&&(C="["+C.replace(/[aouei]/g,"$&$&")+"]"),C}function Yu(m,v,...C){return NNe(v,C)}function jut(m){}var Ij;const uI="en";let kj=!1,wj=!1,Dj=!1,Lse=!1,W4,Rj=uI,Ise=uI,ONe,F0;const B0=typeof self=="object"?self:typeof global=="object"?global:{};let Hp;typeof B0.vscode<"u"&&typeof B0.vscode.process<"u"?Hp=B0.vscode.process:typeof process<"u"&&(Hp=process);const PNe=typeof((Ij=Hp==null?void 0:Hp.versions)===null||Ij===void 0?void 0:Ij.electron)=="string"&&(Hp==null?void 0:Hp.type)==="renderer";if(typeof navigator=="object"&&!PNe)F0=navigator.userAgent,kj=F0.indexOf("Windows")>=0,wj=F0.indexOf("Macintosh")>=0,(F0.indexOf("Macintosh")>=0||F0.indexOf("iPad")>=0||F0.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dj=F0.indexOf("Linux")>=0,(F0==null?void 0:F0.indexOf("Mobi"))>=0,Lse=!0,Yu({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),W4=uI,Rj=W4,Ise=navigator.language;else if(typeof Hp=="object"){kj=Hp.platform==="win32",wj=Hp.platform==="darwin",Dj=Hp.platform==="linux",Dj&&Hp.env.SNAP&&Hp.env.SNAP_REVISION,Hp.env.CI||Hp.env.BUILD_ARTIFACTSTAGINGDIRECTORY,W4=uI,Rj=uI;const m=Hp.env.VSCODE_NLS_CONFIG;if(m)try{const v=JSON.parse(m),C=v.availableLanguages["*"];W4=v.locale,Ise=v.osLocale,Rj=C||uI,ONe=v._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const _R=kj,MNe=wj;Lse&&B0.importScripts;const t1=F0,FNe=typeof B0.postMessage=="function"&&!B0.importScripts;(()=>{if(FNe){const m=[];B0.addEventListener("message",C=>{if(C.data&&C.data.vscodeScheduleAsyncWork)for(let B=0,ne=m.length;B<ne;B++){const _e=m[B];if(_e.id===C.data.vscodeScheduleAsyncWork){m.splice(B,1),_e.callback();return}}});let v=0;return C=>{const B=++v;m.push({id:B,callback:C}),B0.postMessage({vscodeScheduleAsyncWork:B},"*")}}return m=>setTimeout(m)})();const BNe=!!(t1&&t1.indexOf("Chrome")>=0);t1&&t1.indexOf("Firefox")>=0,!BNe&&t1&&t1.indexOf("Safari")>=0,t1&&t1.indexOf("Edg/")>=0,t1&&t1.indexOf("Android")>=0;class GNe{constructor(v){this.fn=v,this.lastCache=void 0,this.lastArgKey=void 0}get(v){const C=JSON.stringify(v);return this.lastArgKey!==C&&(this.lastArgKey=C,this.lastCache=this.fn(v)),this.lastCache}}class kse{constructor(v){this.executor=v,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(v){this._error=v}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var dI;function UNe(m){return m.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function VNe(m){return m.split(/\r\n|\r|\n/)}function jNe(m){for(let v=0,C=m.length;v<C;v++){const B=m.charCodeAt(v);if(B!==32&&B!==9)return v}return-1}function HNe(m,v=m.length-1){for(let C=v;C>=0;C--){const B=m.charCodeAt(C);if(B!==32&&B!==9)return C}return-1}function wse(m){return m>=65&&m<=90}function Nj(m){return 55296<=m&&m<=56319}function WNe(m){return 56320<=m&&m<=57343}function zNe(m,v){return(m-55296<<10)+(v-56320)+65536}function qNe(m,v,C){const B=m.charCodeAt(C);if(Nj(B)&&C+1<v){const ne=m.charCodeAt(C+1);if(WNe(ne))return zNe(B,ne)}return B}const JNe=/^[\t\n\r\x20-\x7E]*$/;function KNe(m){return JNe.test(m)}class yA{static getInstance(v){return dI.cache.get(Array.from(v))}static getLocales(){return dI._locales.value}constructor(v){this.confusableDictionary=v}isAmbiguous(v){return this.confusableDictionary.has(v)}getPrimaryConfusable(v){return this.confusableDictionary.get(v)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}dI=yA,yA.ambiguousCharacterData=new kse(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),yA.cache=new GNe(m=>{function v(Ae){const Ue=new Map;for(let Jt=0;Jt<Ae.length;Jt+=2)Ue.set(Ae[Jt],Ae[Jt+1]);return Ue}function C(Ae,Ue){const Jt=new Map(Ae);for(const[Kt,fn]of Ue)Jt.set(Kt,fn);return Jt}function B(Ae,Ue){if(!Ae)return Ue;const Jt=new Map;for(const[Kt,fn]of Ae)Ue.has(Kt)&&Jt.set(Kt,fn);return Jt}const ne=dI.ambiguousCharacterData.value;let _e=m.filter(Ae=>!Ae.startsWith("_")&&Ae in ne);_e.length===0&&(_e=["_default"]);let be;for(const Ae of _e){const Ue=v(ne[Ae]);be=B(be,Ue)}const Be=v(ne._common),ct=C(Be,be);return new dI(ct)}),yA._locales=new kse(()=>Object.keys(dI.ambiguousCharacterData.value).filter(m=>!m.startsWith("_")));class BS{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(BS.getRawData())),this._data}static isInvisibleCharacter(v){return BS.getData().has(v)}static get codePoints(){return BS.getData()}}BS._data=void 0;const XNe="$initialize";class YNe{constructor(v,C,B,ne){this.vsWorker=v,this.req=C,this.method=B,this.args=ne,this.type=0}}class Dse{constructor(v,C,B,ne){this.vsWorker=v,this.seq=C,this.res=B,this.err=ne,this.type=1}}class $Ne{constructor(v,C,B,ne){this.vsWorker=v,this.req=C,this.eventName=B,this.arg=ne,this.type=2}}class QNe{constructor(v,C,B){this.vsWorker=v,this.req=C,this.event=B,this.type=3}}class ZNe{constructor(v,C){this.vsWorker=v,this.req=C,this.type=4}}class eOe{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}sendMessage(v,C){const B=String(++this._lastSentReq);return new Promise((ne,_e)=>{this._pendingReplies[B]={resolve:ne,reject:_e},this._send(new YNe(this._workerId,B,v,C))})}listen(v,C){let B=null;const ne=new M0({onWillAddFirstListener:()=>{B=String(++this._lastSentReq),this._pendingEmitters.set(B,ne),this._send(new $Ne(this._workerId,B,v,C))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(B),this._send(new ZNe(this._workerId,B)),B=null}});return ne.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}const C=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let B=v.err;v.err.$isError&&(B=new Error,B.name=v.err.name,B.message=v.err.message,B.stack=v.err.stack),C.reject(B);return}C.resolve(v.res)}_handleRequestMessage(v){const C=v.req;this._handler.handleMessage(v.method,v.args).then(ne=>{this._send(new Dse(this._workerId,C,ne,void 0))},ne=>{ne.detail instanceof Error&&(ne.detail=Ase(ne.detail)),this._send(new Dse(this._workerId,C,void 0,Ase(ne)))})}_handleSubscribeEventMessage(v){const C=v.req,B=this._handler.handleEvent(v.eventName,v.arg)(ne=>{this._send(new QNe(this._workerId,C,ne))});this._pendingEvents.set(C,B)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){const C=[];if(v.type===0)for(let B=0;B<v.args.length;B++)v.args[B]instanceof ArrayBuffer&&C.push(v.args[B]);else v.type===1&&v.res instanceof ArrayBuffer&&C.push(v.res);this._handler.sendMessage(v,C)}}function Rse(m){return m[0]==="o"&&m[1]==="n"&&wse(m.charCodeAt(2))}function Nse(m){return/^onDynamic/.test(m)&&wse(m.charCodeAt(9))}function tOe(m,v,C){const B=be=>function(){const Be=Array.prototype.slice.call(arguments,0);return v(be,Be)},ne=be=>function(Be){return C(be,Be)},_e={};for(const be of m){if(Nse(be)){_e[be]=ne(be);continue}if(Rse(be)){_e[be]=C(be,void 0);continue}_e[be]=B(be)}return _e}class nOe{constructor(v,C){this._requestHandlerFactory=C,this._requestHandler=null,this._protocol=new eOe({sendMessage:(B,ne)=>{v(B,ne)},handleMessage:(B,ne)=>this._handleMessage(B,ne),handleEvent:(B,ne)=>this._handleEvent(B,ne)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,C){if(v===XNe)return this.initialize(C[0],C[1],C[2],C[3]);if(!this._requestHandler||typeof this._requestHandler[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._requestHandler[v].apply(this._requestHandler,C))}catch(B){return Promise.reject(B)}}_handleEvent(v,C){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Nse(v)){const B=this._requestHandler[v].call(this._requestHandler,C);if(typeof B!="function")throw new Error(`Missing dynamic event ${v} on request handler.`);return B}if(Rse(v)){const B=this._requestHandler[v];if(typeof B!="function")throw new Error(`Missing event ${v} on request handler.`);return B}throw new Error(`Malformed event name ${v}`)}initialize(v,C,B,ne){this._protocol.setWorkerId(v);const Be=tOe(ne,(ct,Ae)=>this._protocol.sendMessage(ct,Ae),(ct,Ae)=>this._protocol.listen(ct,Ae));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(Lj(this._requestHandler))):(C&&(typeof C.baseUrl<"u"&&delete C.baseUrl,typeof C.paths<"u"&&typeof C.paths.vs<"u"&&delete C.paths.vs,typeof C.trustedTypesPolicy!==void 0&&delete C.trustedTypesPolicy,C.catchError=!0,globalThis.require.config(C)),new Promise((ct,Ae)=>{const Ue=globalThis.require;Ue([B],Jt=>{if(this._requestHandler=Jt.create(Be),!this._requestHandler){Ae(new Error("No RequestHandler!"));return}ct(Lj(this._requestHandler))},Ae)}))}}class GS{constructor(v,C,B,ne){this.originalStart=v,this.originalLength=C,this.modifiedStart=B,this.modifiedLength=ne}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ose(m,v){return(v<<5)-v+m|0}function rOe(m,v){v=Ose(149417,v);for(let C=0,B=m.length;C<B;C++)v=Ose(m.charCodeAt(C),v);return v}class Pse{constructor(v){this.source=v}getElements(){const v=this.source,C=new Int32Array(v.length);for(let B=0,ne=v.length;B<ne;B++)C[B]=v.charCodeAt(B);return C}}function iOe(m,v,C){return new US(new Pse(m),new Pse(v)).ComputeDiff(C).changes}class fI{static Assert(v,C){if(!v)throw new Error(C)}}class _I{static Copy(v,C,B,ne,_e){for(let be=0;be<_e;be++)B[ne+be]=v[C+be]}static Copy2(v,C,B,ne,_e){for(let be=0;be<_e;be++)B[ne+be]=v[C+be]}}class Mse{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 GS(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(v,C){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,C),this.m_originalCount++}AddModifiedElement(v,C){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,C),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class US{constructor(v,C,B=null){this.ContinueProcessingPredicate=B,this._originalSequence=v,this._modifiedSequence=C;const[ne,_e,be]=US._getElements(v),[Be,ct,Ae]=US._getElements(C);this._hasStrings=be&&Ae,this._originalStringElements=ne,this._originalElementsOrHash=_e,this._modifiedStringElements=Be,this._modifiedElementsOrHash=ct,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){const C=v.getElements();if(US._isStringArray(C)){const B=new Int32Array(C.length);for(let ne=0,_e=C.length;ne<_e;ne++)B[ne]=rOe(C[ne],0);return[C,B,!0]}return C instanceof Int32Array?[[],C,!1]:[[],new Int32Array(C),!1]}ElementsAreEqual(v,C){return this._originalElementsOrHash[v]!==this._modifiedElementsOrHash[C]?!1:this._hasStrings?this._originalStringElements[v]===this._modifiedStringElements[C]:!0}ElementsAreStrictEqual(v,C){if(!this.ElementsAreEqual(v,C))return!1;const B=US._getStrictElement(this._originalSequence,v),ne=US._getStrictElement(this._modifiedSequence,C);return B===ne}static _getStrictElement(v,C){return typeof v.getStrictElement=="function"?v.getStrictElement(C):null}OriginalElementsAreEqual(v,C){return this._originalElementsOrHash[v]!==this._originalElementsOrHash[C]?!1:this._hasStrings?this._originalStringElements[v]===this._originalStringElements[C]:!0}ModifiedElementsAreEqual(v,C){return this._modifiedElementsOrHash[v]!==this._modifiedElementsOrHash[C]?!1:this._hasStrings?this._modifiedStringElements[v]===this._modifiedStringElements[C]:!0}ComputeDiff(v){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,v)}_ComputeDiff(v,C,B,ne,_e){const be=[!1];let Be=this.ComputeDiffRecursive(v,C,B,ne,be);return _e&&(Be=this.PrettifyChanges(Be)),{quitEarly:be[0],changes:Be}}ComputeDiffRecursive(v,C,B,ne,_e){for(_e[0]=!1;v<=C&&B<=ne&&this.ElementsAreEqual(v,B);)v++,B++;for(;C>=v&&ne>=B&&this.ElementsAreEqual(C,ne);)C--,ne--;if(v>C||B>ne){let Jt;return B<=ne?(fI.Assert(v===C+1,"originalStart should only be one more than originalEnd"),Jt=[new GS(v,0,B,ne-B+1)]):v<=C?(fI.Assert(B===ne+1,"modifiedStart should only be one more than modifiedEnd"),Jt=[new GS(v,C-v+1,B,0)]):(fI.Assert(v===C+1,"originalStart should only be one more than originalEnd"),fI.Assert(B===ne+1,"modifiedStart should only be one more than modifiedEnd"),Jt=[]),Jt}const be=[0],Be=[0],ct=this.ComputeRecursionPoint(v,C,B,ne,be,Be,_e),Ae=be[0],Ue=Be[0];if(ct!==null)return ct;if(!_e[0]){const Jt=this.ComputeDiffRecursive(v,Ae,B,Ue,_e);let Kt=[];return _e[0]?Kt=[new GS(Ae+1,C-(Ae+1)+1,Ue+1,ne-(Ue+1)+1)]:Kt=this.ComputeDiffRecursive(Ae+1,C,Ue+1,ne,_e),this.ConcatenateChanges(Jt,Kt)}return[new GS(v,C-v+1,B,ne-B+1)]}WALKTRACE(v,C,B,ne,_e,be,Be,ct,Ae,Ue,Jt,Kt,fn,kr,ui,la,Yn,nn){let Li=null,mi=null,va=new Mse,Bo=C,jr=B,Zo=fn[0]-la[0]-ne,Tc=-1073741824,Gc=this.m_forwardHistory.length-1;do{const lr=Zo+v;lr===Bo||lr<jr&&Ae[lr-1]<Ae[lr+1]?(Jt=Ae[lr+1],kr=Jt-Zo-ne,Jt<Tc&&va.MarkNextChange(),Tc=Jt,va.AddModifiedElement(Jt+1,kr),Zo=lr+1-v):(Jt=Ae[lr-1]+1,kr=Jt-Zo-ne,Jt<Tc&&va.MarkNextChange(),Tc=Jt-1,va.AddOriginalElement(Jt,kr+1),Zo=lr-1-v),Gc>=0&&(Ae=this.m_forwardHistory[Gc],v=Ae[0],Bo=1,jr=Ae.length-1)}while(--Gc>=-1);if(Li=va.getReverseChanges(),nn[0]){let lr=fn[0]+1,Ri=la[0]+1;if(Li!==null&&Li.length>0){const Fi=Li[Li.length-1];lr=Math.max(lr,Fi.getOriginalEnd()),Ri=Math.max(Ri,Fi.getModifiedEnd())}mi=[new GS(lr,Kt-lr+1,Ri,ui-Ri+1)]}else{va=new Mse,Bo=be,jr=Be,Zo=fn[0]-la[0]-ct,Tc=1073741824,Gc=Yn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const lr=Zo+_e;lr===Bo||lr<jr&&Ue[lr-1]>=Ue[lr+1]?(Jt=Ue[lr+1]-1,kr=Jt-Zo-ct,Jt>Tc&&va.MarkNextChange(),Tc=Jt+1,va.AddOriginalElement(Jt+1,kr+1),Zo=lr+1-_e):(Jt=Ue[lr-1],kr=Jt-Zo-ct,Jt>Tc&&va.MarkNextChange(),Tc=Jt,va.AddModifiedElement(Jt+1,kr+1),Zo=lr-1-_e),Gc>=0&&(Ue=this.m_reverseHistory[Gc],_e=Ue[0],Bo=1,jr=Ue.length-1)}while(--Gc>=-1);mi=va.getChanges()}return this.ConcatenateChanges(Li,mi)}ComputeRecursionPoint(v,C,B,ne,_e,be,Be){let ct=0,Ae=0,Ue=0,Jt=0,Kt=0,fn=0;v--,B--,_e[0]=0,be[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const kr=C-v+(ne-B),ui=kr+1,la=new Int32Array(ui),Yn=new Int32Array(ui),nn=ne-B,Li=C-v,mi=v-B,va=C-ne,jr=(Li-nn)%2===0;la[nn]=v,Yn[Li]=C,Be[0]=!1;for(let Zo=1;Zo<=kr/2+1;Zo++){let Tc=0,Gc=0;Ue=this.ClipDiagonalBound(nn-Zo,Zo,nn,ui),Jt=this.ClipDiagonalBound(nn+Zo,Zo,nn,ui);for(let Ri=Ue;Ri<=Jt;Ri+=2){Ri===Ue||Ri<Jt&&la[Ri-1]<la[Ri+1]?ct=la[Ri+1]:ct=la[Ri-1]+1,Ae=ct-(Ri-nn)-mi;const Fi=ct;for(;ct<C&&Ae<ne&&this.ElementsAreEqual(ct+1,Ae+1);)ct++,Ae++;if(la[Ri]=ct,ct+Ae>Tc+Gc&&(Tc=ct,Gc=Ae),!jr&&Math.abs(Ri-Li)<=Zo-1&&ct>=Yn[Ri])return _e[0]=ct,be[0]=Ae,Fi<=Yn[Ri]&&1447>0&&Zo<=1447+1?this.WALKTRACE(nn,Ue,Jt,mi,Li,Kt,fn,va,la,Yn,ct,C,_e,Ae,ne,be,jr,Be):null}const lr=(Tc-v+(Gc-B)-Zo)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Tc,lr))return Be[0]=!0,_e[0]=Tc,be[0]=Gc,lr>0&&1447>0&&Zo<=1447+1?this.WALKTRACE(nn,Ue,Jt,mi,Li,Kt,fn,va,la,Yn,ct,C,_e,Ae,ne,be,jr,Be):(v++,B++,[new GS(v,C-v+1,B,ne-B+1)]);Kt=this.ClipDiagonalBound(Li-Zo,Zo,Li,ui),fn=this.ClipDiagonalBound(Li+Zo,Zo,Li,ui);for(let Ri=Kt;Ri<=fn;Ri+=2){Ri===Kt||Ri<fn&&Yn[Ri-1]>=Yn[Ri+1]?ct=Yn[Ri+1]-1:ct=Yn[Ri-1],Ae=ct-(Ri-Li)-va;const Fi=ct;for(;ct>v&&Ae>B&&this.ElementsAreEqual(ct,Ae);)ct--,Ae--;if(Yn[Ri]=ct,jr&&Math.abs(Ri-nn)<=Zo&&ct<=la[Ri])return _e[0]=ct,be[0]=Ae,Fi>=la[Ri]&&1447>0&&Zo<=1447+1?this.WALKTRACE(nn,Ue,Jt,mi,Li,Kt,fn,va,la,Yn,ct,C,_e,Ae,ne,be,jr,Be):null}if(Zo<=1447){let Ri=new Int32Array(Jt-Ue+2);Ri[0]=nn-Ue+1,_I.Copy2(la,Ue,Ri,1,Jt-Ue+1),this.m_forwardHistory.push(Ri),Ri=new Int32Array(fn-Kt+2),Ri[0]=Li-Kt+1,_I.Copy2(Yn,Kt,Ri,1,fn-Kt+1),this.m_reverseHistory.push(Ri)}}return this.WALKTRACE(nn,Ue,Jt,mi,Li,Kt,fn,va,la,Yn,ct,C,_e,Ae,ne,be,jr,Be)}PrettifyChanges(v){for(let C=0;C<v.length;C++){const B=v[C],ne=C<v.length-1?v[C+1].originalStart:this._originalElementsOrHash.length,_e=C<v.length-1?v[C+1].modifiedStart:this._modifiedElementsOrHash.length,be=B.originalLength>0,Be=B.modifiedLength>0;for(;B.originalStart+B.originalLength<ne&&B.modifiedStart+B.modifiedLength<_e&&(!be||this.OriginalElementsAreEqual(B.originalStart,B.originalStart+B.originalLength))&&(!Be||this.ModifiedElementsAreEqual(B.modifiedStart,B.modifiedStart+B.modifiedLength));){const Ae=this.ElementsAreStrictEqual(B.originalStart,B.modifiedStart);if(this.ElementsAreStrictEqual(B.originalStart+B.originalLength,B.modifiedStart+B.modifiedLength)&&!Ae)break;B.originalStart++,B.modifiedStart++}const ct=[null];if(C<v.length-1&&this.ChangesOverlap(v[C],v[C+1],ct)){v[C]=ct[0],v.splice(C+1,1),C--;continue}}for(let C=v.length-1;C>=0;C--){const B=v[C];let ne=0,_e=0;if(C>0){const Jt=v[C-1];ne=Jt.originalStart+Jt.originalLength,_e=Jt.modifiedStart+Jt.modifiedLength}const be=B.originalLength>0,Be=B.modifiedLength>0;let ct=0,Ae=this._boundaryScore(B.originalStart,B.originalLength,B.modifiedStart,B.modifiedLength);for(let Jt=1;;Jt++){const Kt=B.originalStart-Jt,fn=B.modifiedStart-Jt;if(Kt<ne||fn<_e||be&&!this.OriginalElementsAreEqual(Kt,Kt+B.originalLength)||Be&&!this.ModifiedElementsAreEqual(fn,fn+B.modifiedLength))break;const ui=(Kt===ne&&fn===_e?5:0)+this._boundaryScore(Kt,B.originalLength,fn,B.modifiedLength);ui>Ae&&(Ae=ui,ct=Jt)}B.originalStart-=ct,B.modifiedStart-=ct;const Ue=[null];if(C>0&&this.ChangesOverlap(v[C-1],v[C],Ue)){v[C-1]=Ue[0],v.splice(C,1),C++;continue}}if(this._hasStrings)for(let C=1,B=v.length;C<B;C++){const ne=v[C-1],_e=v[C],be=_e.originalStart-ne.originalStart-ne.originalLength,Be=ne.originalStart,ct=_e.originalStart+_e.originalLength,Ae=ct-Be,Ue=ne.modifiedStart,Jt=_e.modifiedStart+_e.modifiedLength,Kt=Jt-Ue;if(be<5&&Ae<20&&Kt<20){const fn=this._findBetterContiguousSequence(Be,Ae,Ue,Kt,be);if(fn){const[kr,ui]=fn;(kr!==ne.originalStart+ne.originalLength||ui!==ne.modifiedStart+ne.modifiedLength)&&(ne.originalLength=kr-ne.originalStart,ne.modifiedLength=ui-ne.modifiedStart,_e.originalStart=kr+be,_e.modifiedStart=ui+be,_e.originalLength=ct-_e.originalStart,_e.modifiedLength=Jt-_e.modifiedStart)}}}return v}_findBetterContiguousSequence(v,C,B,ne,_e){if(C<_e||ne<_e)return null;const be=v+C-_e+1,Be=B+ne-_e+1;let ct=0,Ae=0,Ue=0;for(let Jt=v;Jt<be;Jt++)for(let Kt=B;Kt<Be;Kt++){const fn=this._contiguousSequenceScore(Jt,Kt,_e);fn>0&&fn>ct&&(ct=fn,Ae=Jt,Ue=Kt)}return ct>0?[Ae,Ue]:null}_contiguousSequenceScore(v,C,B){let ne=0;for(let _e=0;_e<B;_e++){if(!this.ElementsAreEqual(v+_e,C+_e))return 0;ne+=this._originalStringElements[v+_e].length}return ne}_OriginalIsBoundary(v){return v<=0||v>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,C){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(C>0){const B=v+C;if(this._OriginalIsBoundary(B-1)||this._OriginalIsBoundary(B))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,C){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(C>0){const B=v+C;if(this._ModifiedIsBoundary(B-1)||this._ModifiedIsBoundary(B))return!0}return!1}_boundaryScore(v,C,B,ne){const _e=this._OriginalRegionIsBoundary(v,C)?1:0,be=this._ModifiedRegionIsBoundary(B,ne)?1:0;return _e+be}ConcatenateChanges(v,C){const B=[];if(v.length===0||C.length===0)return C.length>0?C:v;if(this.ChangesOverlap(v[v.length-1],C[0],B)){const ne=new Array(v.length+C.length-1);return _I.Copy(v,0,ne,0,v.length-1),ne[v.length-1]=B[0],_I.Copy(C,1,ne,v.length,C.length-1),ne}else{const ne=new Array(v.length+C.length);return _I.Copy(v,0,ne,0,v.length),_I.Copy(C,0,ne,v.length,C.length),ne}}ChangesOverlap(v,C,B){if(fI.Assert(v.originalStart<=C.originalStart,"Left change is not less than or equal to right change"),fI.Assert(v.modifiedStart<=C.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=C.originalStart||v.modifiedStart+v.modifiedLength>=C.modifiedStart){const ne=v.originalStart;let _e=v.originalLength;const be=v.modifiedStart;let Be=v.modifiedLength;return v.originalStart+v.originalLength>=C.originalStart&&(_e=C.originalStart+C.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=C.modifiedStart&&(Be=C.modifiedStart+C.modifiedLength-v.modifiedStart),B[0]=new GS(ne,_e,be,Be),!0}else return B[0]=null,!1}ClipDiagonalBound(v,C,B,ne){if(v>=0&&v<ne)return v;const _e=B,be=ne-B-1,Be=C%2===0;if(v<0){const ct=_e%2===0;return Be===ct?0:1}else{const ct=be%2===0;return Be===ct?ne-1:ne-2}}}let pI;if(typeof B0.vscode<"u"&&typeof B0.vscode.process<"u"){const m=B0.vscode.process;pI={get platform(){return m.platform},get arch(){return m.arch},get env(){return m.env},cwd(){return m.cwd()}}}else typeof process<"u"?pI={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:pI={get platform(){return _R?"win32":MNe?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const z4=pI.cwd,aOe=pI.env,oOe=pI.platform,sOe=65,lOe=97,cOe=90,uOe=122,VS=46,hp=47,tg=92,jS=58,dOe=63;class Fse extends Error{constructor(v,C,B){let ne;typeof C=="string"&&C.indexOf("not ")===0?(ne="must not be",C=C.replace(/^not /,"")):ne="must be";const _e=v.indexOf(".")!==-1?"property":"argument";let be=`The "${v}" ${_e} ${ne} of type ${C}`;be+=`. Received type ${typeof B}`,super(be),this.code="ERR_INVALID_ARG_TYPE"}}function fOe(m,v){if(m===null||typeof m!="object")throw new Fse(v,"Object",m)}function Tf(m,v){if(typeof m!="string")throw new Fse(v,"string",m)}const HS=oOe==="win32";function Tl(m){return m===hp||m===tg}function Oj(m){return m===hp}function WS(m){return m>=sOe&&m<=cOe||m>=lOe&&m<=uOe}function q4(m,v,C,B){let ne="",_e=0,be=-1,Be=0,ct=0;for(let Ae=0;Ae<=m.length;++Ae){if(Ae<m.length)ct=m.charCodeAt(Ae);else{if(B(ct))break;ct=hp}if(B(ct)){if(!(be===Ae-1||Be===1))if(Be===2){if(ne.length<2||_e!==2||ne.charCodeAt(ne.length-1)!==VS||ne.charCodeAt(ne.length-2)!==VS){if(ne.length>2){const Ue=ne.lastIndexOf(C);Ue===-1?(ne="",_e=0):(ne=ne.slice(0,Ue),_e=ne.length-1-ne.lastIndexOf(C)),be=Ae,Be=0;continue}else if(ne.length!==0){ne="",_e=0,be=Ae,Be=0;continue}}v&&(ne+=ne.length>0?`${C}..`:"..",_e=2)}else ne.length>0?ne+=`${C}${m.slice(be+1,Ae)}`:ne=m.slice(be+1,Ae),_e=Ae-be-1;be=Ae,Be=0}else ct===VS&&Be!==-1?++Be:Be=-1}return ne}function Bse(m,v){fOe(v,"pathObject");const C=v.dir||v.root,B=v.base||`${v.name||""}${v.ext||""}`;return C?C===v.root?`${C}${B}`:`${C}${m}${B}`:B}const ph={resolve(...m){let v="",C="",B=!1;for(let ne=m.length-1;ne>=-1;ne--){let _e;if(ne>=0){if(_e=m[ne],Tf(_e,"path"),_e.length===0)continue}else v.length===0?_e=z4():(_e=aOe[`=${v}`]||z4(),(_e===void 0||_e.slice(0,2).toLowerCase()!==v.toLowerCase()&&_e.charCodeAt(2)===tg)&&(_e=`${v}\\`));const be=_e.length;let Be=0,ct="",Ae=!1;const Ue=_e.charCodeAt(0);if(be===1)Tl(Ue)&&(Be=1,Ae=!0);else if(Tl(Ue))if(Ae=!0,Tl(_e.charCodeAt(1))){let Jt=2,Kt=Jt;for(;Jt<be&&!Tl(_e.charCodeAt(Jt));)Jt++;if(Jt<be&&Jt!==Kt){const fn=_e.slice(Kt,Jt);for(Kt=Jt;Jt<be&&Tl(_e.charCodeAt(Jt));)Jt++;if(Jt<be&&Jt!==Kt){for(Kt=Jt;Jt<be&&!Tl(_e.charCodeAt(Jt));)Jt++;(Jt===be||Jt!==Kt)&&(ct=`\\\\${fn}\\${_e.slice(Kt,Jt)}`,Be=Jt)}}}else Be=1;else WS(Ue)&&_e.charCodeAt(1)===jS&&(ct=_e.slice(0,2),Be=2,be>2&&Tl(_e.charCodeAt(2))&&(Ae=!0,Be=3));if(ct.length>0)if(v.length>0){if(ct.toLowerCase()!==v.toLowerCase())continue}else v=ct;if(B){if(v.length>0)break}else if(C=`${_e.slice(Be)}\\${C}`,B=Ae,Ae&&v.length>0)break}return C=q4(C,!B,"\\",Tl),B?`${v}\\${C}`:`${v}${C}`||"."},normalize(m){Tf(m,"path");const v=m.length;if(v===0)return".";let C=0,B,ne=!1;const _e=m.charCodeAt(0);if(v===1)return Oj(_e)?"\\":m;if(Tl(_e))if(ne=!0,Tl(m.charCodeAt(1))){let Be=2,ct=Be;for(;Be<v&&!Tl(m.charCodeAt(Be));)Be++;if(Be<v&&Be!==ct){const Ae=m.slice(ct,Be);for(ct=Be;Be<v&&Tl(m.charCodeAt(Be));)Be++;if(Be<v&&Be!==ct){for(ct=Be;Be<v&&!Tl(m.charCodeAt(Be));)Be++;if(Be===v)return`\\\\${Ae}\\${m.slice(ct)}\\`;Be!==ct&&(B=`\\\\${Ae}\\${m.slice(ct,Be)}`,C=Be)}}}else C=1;else WS(_e)&&m.charCodeAt(1)===jS&&(B=m.slice(0,2),C=2,v>2&&Tl(m.charCodeAt(2))&&(ne=!0,C=3));let be=C<v?q4(m.slice(C),!ne,"\\",Tl):"";return be.length===0&&!ne&&(be="."),be.length>0&&Tl(m.charCodeAt(v-1))&&(be+="\\"),B===void 0?ne?`\\${be}`:be:ne?`${B}\\${be}`:`${B}${be}`},isAbsolute(m){Tf(m,"path");const v=m.length;if(v===0)return!1;const C=m.charCodeAt(0);return Tl(C)||v>2&&WS(C)&&m.charCodeAt(1)===jS&&Tl(m.charCodeAt(2))},join(...m){if(m.length===0)return".";let v,C;for(let _e=0;_e<m.length;++_e){const be=m[_e];Tf(be,"path"),be.length>0&&(v===void 0?v=C=be:v+=`\\${be}`)}if(v===void 0)return".";let B=!0,ne=0;if(typeof C=="string"&&Tl(C.charCodeAt(0))){++ne;const _e=C.length;_e>1&&Tl(C.charCodeAt(1))&&(++ne,_e>2&&(Tl(C.charCodeAt(2))?++ne:B=!1))}if(B){for(;ne<v.length&&Tl(v.charCodeAt(ne));)ne++;ne>=2&&(v=`\\${v.slice(ne)}`)}return ph.normalize(v)},relative(m,v){if(Tf(m,"from"),Tf(v,"to"),m===v)return"";const C=ph.resolve(m),B=ph.resolve(v);if(C===B||(m=C.toLowerCase(),v=B.toLowerCase(),m===v))return"";let ne=0;for(;ne<m.length&&m.charCodeAt(ne)===tg;)ne++;let _e=m.length;for(;_e-1>ne&&m.charCodeAt(_e-1)===tg;)_e--;const be=_e-ne;let Be=0;for(;Be<v.length&&v.charCodeAt(Be)===tg;)Be++;let ct=v.length;for(;ct-1>Be&&v.charCodeAt(ct-1)===tg;)ct--;const Ae=ct-Be,Ue=be<Ae?be:Ae;let Jt=-1,Kt=0;for(;Kt<Ue;Kt++){const kr=m.charCodeAt(ne+Kt);if(kr!==v.charCodeAt(Be+Kt))break;kr===tg&&(Jt=Kt)}if(Kt!==Ue){if(Jt===-1)return B}else{if(Ae>Ue){if(v.charCodeAt(Be+Kt)===tg)return B.slice(Be+Kt+1);if(Kt===2)return B.slice(Be+Kt)}be>Ue&&(m.charCodeAt(ne+Kt)===tg?Jt=Kt:Kt===2&&(Jt=3)),Jt===-1&&(Jt=0)}let fn="";for(Kt=ne+Jt+1;Kt<=_e;++Kt)(Kt===_e||m.charCodeAt(Kt)===tg)&&(fn+=fn.length===0?"..":"\\..");return Be+=Jt,fn.length>0?`${fn}${B.slice(Be,ct)}`:(B.charCodeAt(Be)===tg&&++Be,B.slice(Be,ct))},toNamespacedPath(m){if(typeof m!="string"||m.length===0)return m;const v=ph.resolve(m);if(v.length<=2)return m;if(v.charCodeAt(0)===tg){if(v.charCodeAt(1)===tg){const C=v.charCodeAt(2);if(C!==dOe&&C!==VS)return`\\\\?\\UNC\\${v.slice(2)}`}}else if(WS(v.charCodeAt(0))&&v.charCodeAt(1)===jS&&v.charCodeAt(2)===tg)return`\\\\?\\${v}`;return m},dirname(m){Tf(m,"path");const v=m.length;if(v===0)return".";let C=-1,B=0;const ne=m.charCodeAt(0);if(v===1)return Tl(ne)?m:".";if(Tl(ne)){if(C=B=1,Tl(m.charCodeAt(1))){let Be=2,ct=Be;for(;Be<v&&!Tl(m.charCodeAt(Be));)Be++;if(Be<v&&Be!==ct){for(ct=Be;Be<v&&Tl(m.charCodeAt(Be));)Be++;if(Be<v&&Be!==ct){for(ct=Be;Be<v&&!Tl(m.charCodeAt(Be));)Be++;if(Be===v)return m;Be!==ct&&(C=B=Be+1)}}}}else WS(ne)&&m.charCodeAt(1)===jS&&(C=v>2&&Tl(m.charCodeAt(2))?3:2,B=C);let _e=-1,be=!0;for(let Be=v-1;Be>=B;--Be)if(Tl(m.charCodeAt(Be))){if(!be){_e=Be;break}}else be=!1;if(_e===-1){if(C===-1)return".";_e=C}return m.slice(0,_e)},basename(m,v){v!==void 0&&Tf(v,"ext"),Tf(m,"path");let C=0,B=-1,ne=!0,_e;if(m.length>=2&&WS(m.charCodeAt(0))&&m.charCodeAt(1)===jS&&(C=2),v!==void 0&&v.length>0&&v.length<=m.length){if(v===m)return"";let be=v.length-1,Be=-1;for(_e=m.length-1;_e>=C;--_e){const ct=m.charCodeAt(_e);if(Tl(ct)){if(!ne){C=_e+1;break}}else Be===-1&&(ne=!1,Be=_e+1),be>=0&&(ct===v.charCodeAt(be)?--be===-1&&(B=_e):(be=-1,B=Be))}return C===B?B=Be:B===-1&&(B=m.length),m.slice(C,B)}for(_e=m.length-1;_e>=C;--_e)if(Tl(m.charCodeAt(_e))){if(!ne){C=_e+1;break}}else B===-1&&(ne=!1,B=_e+1);return B===-1?"":m.slice(C,B)},extname(m){Tf(m,"path");let v=0,C=-1,B=0,ne=-1,_e=!0,be=0;m.length>=2&&m.charCodeAt(1)===jS&&WS(m.charCodeAt(0))&&(v=B=2);for(let Be=m.length-1;Be>=v;--Be){const ct=m.charCodeAt(Be);if(Tl(ct)){if(!_e){B=Be+1;break}continue}ne===-1&&(_e=!1,ne=Be+1),ct===VS?C===-1?C=Be:be!==1&&(be=1):C!==-1&&(be=-1)}return C===-1||ne===-1||be===0||be===1&&C===ne-1&&C===B+1?"":m.slice(C,ne)},format:Bse.bind(null,"\\"),parse(m){Tf(m,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return v;const C=m.length;let B=0,ne=m.charCodeAt(0);if(C===1)return Tl(ne)?(v.root=v.dir=m,v):(v.base=v.name=m,v);if(Tl(ne)){if(B=1,Tl(m.charCodeAt(1))){let Jt=2,Kt=Jt;for(;Jt<C&&!Tl(m.charCodeAt(Jt));)Jt++;if(Jt<C&&Jt!==Kt){for(Kt=Jt;Jt<C&&Tl(m.charCodeAt(Jt));)Jt++;if(Jt<C&&Jt!==Kt){for(Kt=Jt;Jt<C&&!Tl(m.charCodeAt(Jt));)Jt++;Jt===C?B=Jt:Jt!==Kt&&(B=Jt+1)}}}}else if(WS(ne)&&m.charCodeAt(1)===jS){if(C<=2)return v.root=v.dir=m,v;if(B=2,Tl(m.charCodeAt(2))){if(C===3)return v.root=v.dir=m,v;B=3}}B>0&&(v.root=m.slice(0,B));let _e=-1,be=B,Be=-1,ct=!0,Ae=m.length-1,Ue=0;for(;Ae>=B;--Ae){if(ne=m.charCodeAt(Ae),Tl(ne)){if(!ct){be=Ae+1;break}continue}Be===-1&&(ct=!1,Be=Ae+1),ne===VS?_e===-1?_e=Ae:Ue!==1&&(Ue=1):_e!==-1&&(Ue=-1)}return Be!==-1&&(_e===-1||Ue===0||Ue===1&&_e===Be-1&&_e===be+1?v.base=v.name=m.slice(be,Be):(v.name=m.slice(be,_e),v.base=m.slice(be,Be),v.ext=m.slice(_e,Be))),be>0&&be!==B?v.dir=m.slice(0,be-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},_Oe=(()=>{if(HS){const m=/\\/g;return()=>{const v=z4().replace(m,"/");return v.slice(v.indexOf("/"))}}return()=>z4()})(),ng={resolve(...m){let v="",C=!1;for(let B=m.length-1;B>=-1&&!C;B--){const ne=B>=0?m[B]:_Oe();Tf(ne,"path"),ne.length!==0&&(v=`${ne}/${v}`,C=ne.charCodeAt(0)===hp)}return v=q4(v,!C,"/",Oj),C?`/${v}`:v.length>0?v:"."},normalize(m){if(Tf(m,"path"),m.length===0)return".";const v=m.charCodeAt(0)===hp,C=m.charCodeAt(m.length-1)===hp;return m=q4(m,!v,"/",Oj),m.length===0?v?"/":C?"./":".":(C&&(m+="/"),v?`/${m}`:m)},isAbsolute(m){return Tf(m,"path"),m.length>0&&m.charCodeAt(0)===hp},join(...m){if(m.length===0)return".";let v;for(let C=0;C<m.length;++C){const B=m[C];Tf(B,"path"),B.length>0&&(v===void 0?v=B:v+=`/${B}`)}return v===void 0?".":ng.normalize(v)},relative(m,v){if(Tf(m,"from"),Tf(v,"to"),m===v||(m=ng.resolve(m),v=ng.resolve(v),m===v))return"";const C=1,B=m.length,ne=B-C,_e=1,be=v.length-_e,Be=ne<be?ne:be;let ct=-1,Ae=0;for(;Ae<Be;Ae++){const Jt=m.charCodeAt(C+Ae);if(Jt!==v.charCodeAt(_e+Ae))break;Jt===hp&&(ct=Ae)}if(Ae===Be)if(be>Be){if(v.charCodeAt(_e+Ae)===hp)return v.slice(_e+Ae+1);if(Ae===0)return v.slice(_e+Ae)}else ne>Be&&(m.charCodeAt(C+Ae)===hp?ct=Ae:Ae===0&&(ct=0));let Ue="";for(Ae=C+ct+1;Ae<=B;++Ae)(Ae===B||m.charCodeAt(Ae)===hp)&&(Ue+=Ue.length===0?"..":"/..");return`${Ue}${v.slice(_e+ct)}`},toNamespacedPath(m){return m},dirname(m){if(Tf(m,"path"),m.length===0)return".";const v=m.charCodeAt(0)===hp;let C=-1,B=!0;for(let ne=m.length-1;ne>=1;--ne)if(m.charCodeAt(ne)===hp){if(!B){C=ne;break}}else B=!1;return C===-1?v?"/":".":v&&C===1?"//":m.slice(0,C)},basename(m,v){v!==void 0&&Tf(v,"ext"),Tf(m,"path");let C=0,B=-1,ne=!0,_e;if(v!==void 0&&v.length>0&&v.length<=m.length){if(v===m)return"";let be=v.length-1,Be=-1;for(_e=m.length-1;_e>=0;--_e){const ct=m.charCodeAt(_e);if(ct===hp){if(!ne){C=_e+1;break}}else Be===-1&&(ne=!1,Be=_e+1),be>=0&&(ct===v.charCodeAt(be)?--be===-1&&(B=_e):(be=-1,B=Be))}return C===B?B=Be:B===-1&&(B=m.length),m.slice(C,B)}for(_e=m.length-1;_e>=0;--_e)if(m.charCodeAt(_e)===hp){if(!ne){C=_e+1;break}}else B===-1&&(ne=!1,B=_e+1);return B===-1?"":m.slice(C,B)},extname(m){Tf(m,"path");let v=-1,C=0,B=-1,ne=!0,_e=0;for(let be=m.length-1;be>=0;--be){const Be=m.charCodeAt(be);if(Be===hp){if(!ne){C=be+1;break}continue}B===-1&&(ne=!1,B=be+1),Be===VS?v===-1?v=be:_e!==1&&(_e=1):v!==-1&&(_e=-1)}return v===-1||B===-1||_e===0||_e===1&&v===B-1&&v===C+1?"":m.slice(v,B)},format:Bse.bind(null,"/"),parse(m){Tf(m,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return v;const C=m.charCodeAt(0)===hp;let B;C?(v.root="/",B=1):B=0;let ne=-1,_e=0,be=-1,Be=!0,ct=m.length-1,Ae=0;for(;ct>=B;--ct){const Ue=m.charCodeAt(ct);if(Ue===hp){if(!Be){_e=ct+1;break}continue}be===-1&&(Be=!1,be=ct+1),Ue===VS?ne===-1?ne=ct:Ae!==1&&(Ae=1):ne!==-1&&(Ae=-1)}if(be!==-1){const Ue=_e===0&&C?1:_e;ne===-1||Ae===0||Ae===1&&ne===be-1&&ne===_e+1?v.base=v.name=m.slice(Ue,be):(v.name=m.slice(Ue,ne),v.base=m.slice(Ue,be),v.ext=m.slice(ne,be))}return _e>0?v.dir=m.slice(0,_e-1):C&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};ng.win32=ph.win32=ph,ng.posix=ph.posix=ng,HS?ph.normalize:ng.normalize,HS?ph.resolve:ng.resolve,HS?ph.relative:ng.relative,HS?ph.dirname:ng.dirname,HS?ph.basename:ng.basename,HS?ph.extname:ng.extname,HS?ph.sep:ng.sep;const pOe=/^\w[\w\d+.-]*$/,mOe=/^\//,hOe=/^\/\//;function gOe(m,v){if(!m.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${m.authority}", path: "${m.path}", query: "${m.query}", fragment: "${m.fragment}"}`);if(m.scheme&&!pOe.test(m.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(m.path){if(m.authority){if(!mOe.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(hOe.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 yOe(m,v){return!m&&!v?"file":m}function vOe(m,v){switch(m){case"https":case"http":case"file":v?v[0]!==G0&&(v=G0+v):v=G0;break}return v}const $u="",G0="/",bOe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class vA{static isUri(v){return v instanceof vA?!0:v?typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function":!1}constructor(v,C,B,ne,_e,be=!1){typeof v=="object"?(this.scheme=v.scheme||$u,this.authority=v.authority||$u,this.path=v.path||$u,this.query=v.query||$u,this.fragment=v.fragment||$u):(this.scheme=yOe(v,be),this.authority=C||$u,this.path=vOe(this.scheme,B||$u),this.query=ne||$u,this.fragment=_e||$u,gOe(this,be))}get fsPath(){return Pj(this,!1)}with(v){if(!v)return this;let{scheme:C,authority:B,path:ne,query:_e,fragment:be}=v;return C===void 0?C=this.scheme:C===null&&(C=$u),B===void 0?B=this.authority:B===null&&(B=$u),ne===void 0?ne=this.path:ne===null&&(ne=$u),_e===void 0?_e=this.query:_e===null&&(_e=$u),be===void 0?be=this.fragment:be===null&&(be=$u),C===this.scheme&&B===this.authority&&ne===this.path&&_e===this.query&&be===this.fragment?this:new mI(C,B,ne,_e,be)}static parse(v,C=!1){const B=bOe.exec(v);return B?new mI(B[2]||$u,J4(B[4]||$u),J4(B[5]||$u),J4(B[7]||$u),J4(B[9]||$u),C):new mI($u,$u,$u,$u,$u)}static file(v){let C=$u;if(_R&&(v=v.replace(/\\/g,G0)),v[0]===G0&&v[1]===G0){const B=v.indexOf(G0,2);B===-1?(C=v.substring(2),v=G0):(C=v.substring(2,B),v=v.substring(B)||G0)}return new mI("file",C,v,$u,$u)}static from(v,C){return new mI(v.scheme,v.authority,v.path,v.query,v.fragment,C)}static joinPath(v,...C){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let B;return _R&&v.scheme==="file"?B=vA.file(ph.join(Pj(v,!0),...C)).path:B=ng.join(v.path,...C),v.with({path:B})}toString(v=!1){return Mj(this,v)}toJSON(){return this}static revive(v){var C,B;if(v){if(v instanceof vA)return v;{const ne=new mI(v);return ne._formatted=(C=v.external)!==null&&C!==void 0?C:null,ne._fsPath=v._sep===Gse&&(B=v.fsPath)!==null&&B!==void 0?B:null,ne}}else return v}}const Gse=_R?1:void 0;class mI extends vA{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Pj(this,!1)),this._fsPath}toString(v=!1){return v?Mj(this,!0):(this._formatted||(this._formatted=Mj(this,!1)),this._formatted)}toJSON(){const v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=Gse),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}const Use={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 Vse(m,v,C){let B,ne=-1;for(let _e=0;_e<m.length;_e++){const be=m.charCodeAt(_e);if(be>=97&&be<=122||be>=65&&be<=90||be>=48&&be<=57||be===45||be===46||be===95||be===126||v&&be===47||C&&be===91||C&&be===93||C&&be===58)ne!==-1&&(B+=encodeURIComponent(m.substring(ne,_e)),ne=-1),B!==void 0&&(B+=m.charAt(_e));else{B===void 0&&(B=m.substr(0,_e));const Be=Use[be];Be!==void 0?(ne!==-1&&(B+=encodeURIComponent(m.substring(ne,_e)),ne=-1),B+=Be):ne===-1&&(ne=_e)}}return ne!==-1&&(B+=encodeURIComponent(m.substring(ne))),B!==void 0?B:m}function EOe(m){let v;for(let C=0;C<m.length;C++){const B=m.charCodeAt(C);B===35||B===63?(v===void 0&&(v=m.substr(0,C)),v+=Use[B]):v!==void 0&&(v+=m[C])}return v!==void 0?v:m}function Pj(m,v){let C;return m.authority&&m.path.length>1&&m.scheme==="file"?C=`//${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?v?C=m.path.substr(1):C=m.path[1].toLowerCase()+m.path.substr(2):C=m.path,_R&&(C=C.replace(/\//g,"\\")),C}function Mj(m,v){const C=v?EOe:Vse;let B="",{scheme:ne,authority:_e,path:be,query:Be,fragment:ct}=m;if(ne&&(B+=ne,B+=":"),(_e||ne==="file")&&(B+=G0,B+=G0),_e){let Ae=_e.indexOf("@");if(Ae!==-1){const Ue=_e.substr(0,Ae);_e=_e.substr(Ae+1),Ae=Ue.lastIndexOf(":"),Ae===-1?B+=C(Ue,!1,!1):(B+=C(Ue.substr(0,Ae),!1,!1),B+=":",B+=C(Ue.substr(Ae+1),!1,!0)),B+="@"}_e=_e.toLowerCase(),Ae=_e.lastIndexOf(":"),Ae===-1?B+=C(_e,!1,!0):(B+=C(_e.substr(0,Ae),!1,!0),B+=_e.substr(Ae))}if(be){if(be.length>=3&&be.charCodeAt(0)===47&&be.charCodeAt(2)===58){const Ae=be.charCodeAt(1);Ae>=65&&Ae<=90&&(be=`/${String.fromCharCode(Ae+32)}:${be.substr(3)}`)}else if(be.length>=2&&be.charCodeAt(1)===58){const Ae=be.charCodeAt(0);Ae>=65&&Ae<=90&&(be=`${String.fromCharCode(Ae+32)}:${be.substr(2)}`)}B+=C(be,!0,!1)}return Be&&(B+="?",B+=C(Be,!1,!1)),ct&&(B+="#",B+=v?ct:Vse(ct,!1,!1)),B}function jse(m){try{return decodeURIComponent(m)}catch{return m.length>3?m.substr(0,3)+jse(m.substr(3)):m}}const Hse=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function J4(m){return m.match(Hse)?m.replace(Hse,v=>jse(v)):m}class Wp{constructor(v,C){this.lineNumber=v,this.column=C}with(v=this.lineNumber,C=this.column){return v===this.lineNumber&&C===this.column?this:new Wp(v,C)}delta(v=0,C=0){return this.with(this.lineNumber+v,this.column+C)}equals(v){return Wp.equals(this,v)}static equals(v,C){return!v&&!C?!0:!!v&&!!C&&v.lineNumber===C.lineNumber&&v.column===C.column}isBefore(v){return Wp.isBefore(this,v)}static isBefore(v,C){return v.lineNumber<C.lineNumber?!0:C.lineNumber<v.lineNumber?!1:v.column<C.column}isBeforeOrEqual(v){return Wp.isBeforeOrEqual(this,v)}static isBeforeOrEqual(v,C){return v.lineNumber<C.lineNumber?!0:C.lineNumber<v.lineNumber?!1:v.column<=C.column}static compare(v,C){const B=v.lineNumber|0,ne=C.lineNumber|0;if(B===ne){const _e=v.column|0,be=C.column|0;return _e-be}return B-ne}clone(){return new Wp(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(v){return new Wp(v.lineNumber,v.column)}static isIPosition(v){return v&&typeof v.lineNumber=="number"&&typeof v.column=="number"}}class Pl{constructor(v,C,B,ne){v>B||v===B&&C>ne?(this.startLineNumber=B,this.startColumn=ne,this.endLineNumber=v,this.endColumn=C):(this.startLineNumber=v,this.startColumn=C,this.endLineNumber=B,this.endColumn=ne)}isEmpty(){return Pl.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return Pl.containsPosition(this,v)}static containsPosition(v,C){return!(C.lineNumber<v.startLineNumber||C.lineNumber>v.endLineNumber||C.lineNumber===v.startLineNumber&&C.column<v.startColumn||C.lineNumber===v.endLineNumber&&C.column>v.endColumn)}static strictContainsPosition(v,C){return!(C.lineNumber<v.startLineNumber||C.lineNumber>v.endLineNumber||C.lineNumber===v.startLineNumber&&C.column<=v.startColumn||C.lineNumber===v.endLineNumber&&C.column>=v.endColumn)}containsRange(v){return Pl.containsRange(this,v)}static containsRange(v,C){return!(C.startLineNumber<v.startLineNumber||C.endLineNumber<v.startLineNumber||C.startLineNumber>v.endLineNumber||C.endLineNumber>v.endLineNumber||C.startLineNumber===v.startLineNumber&&C.startColumn<v.startColumn||C.endLineNumber===v.endLineNumber&&C.endColumn>v.endColumn)}strictContainsRange(v){return Pl.strictContainsRange(this,v)}static strictContainsRange(v,C){return!(C.startLineNumber<v.startLineNumber||C.endLineNumber<v.startLineNumber||C.startLineNumber>v.endLineNumber||C.endLineNumber>v.endLineNumber||C.startLineNumber===v.startLineNumber&&C.startColumn<=v.startColumn||C.endLineNumber===v.endLineNumber&&C.endColumn>=v.endColumn)}plusRange(v){return Pl.plusRange(this,v)}static plusRange(v,C){let B,ne,_e,be;return C.startLineNumber<v.startLineNumber?(B=C.startLineNumber,ne=C.startColumn):C.startLineNumber===v.startLineNumber?(B=C.startLineNumber,ne=Math.min(C.startColumn,v.startColumn)):(B=v.startLineNumber,ne=v.startColumn),C.endLineNumber>v.endLineNumber?(_e=C.endLineNumber,be=C.endColumn):C.endLineNumber===v.endLineNumber?(_e=C.endLineNumber,be=Math.max(C.endColumn,v.endColumn)):(_e=v.endLineNumber,be=v.endColumn),new Pl(B,ne,_e,be)}intersectRanges(v){return Pl.intersectRanges(this,v)}static intersectRanges(v,C){let B=v.startLineNumber,ne=v.startColumn,_e=v.endLineNumber,be=v.endColumn;const Be=C.startLineNumber,ct=C.startColumn,Ae=C.endLineNumber,Ue=C.endColumn;return B<Be?(B=Be,ne=ct):B===Be&&(ne=Math.max(ne,ct)),_e>Ae?(_e=Ae,be=Ue):_e===Ae&&(be=Math.min(be,Ue)),B>_e||B===_e&&ne>be?null:new Pl(B,ne,_e,be)}equalsRange(v){return Pl.equalsRange(this,v)}static equalsRange(v,C){return!v&&!C?!0:!!v&&!!C&&v.startLineNumber===C.startLineNumber&&v.startColumn===C.startColumn&&v.endLineNumber===C.endLineNumber&&v.endColumn===C.endColumn}getEndPosition(){return Pl.getEndPosition(this)}static getEndPosition(v){return new Wp(v.endLineNumber,v.endColumn)}getStartPosition(){return Pl.getStartPosition(this)}static getStartPosition(v){return new Wp(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,C){return new Pl(this.startLineNumber,this.startColumn,v,C)}setStartPosition(v,C){return new Pl(v,C,this.endLineNumber,this.endColumn)}collapseToStart(){return Pl.collapseToStart(this)}static collapseToStart(v){return new Pl(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return Pl.collapseToEnd(this)}static collapseToEnd(v){return new Pl(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new Pl(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}static fromPositions(v,C=v){return new Pl(v.lineNumber,v.column,C.lineNumber,C.column)}static lift(v){return v?new Pl(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,C){return!(v.endLineNumber<C.startLineNumber||v.endLineNumber===C.startLineNumber&&v.endColumn<C.startColumn||C.endLineNumber<v.startLineNumber||C.endLineNumber===v.startLineNumber&&C.endColumn<v.startColumn)}static areIntersecting(v,C){return!(v.endLineNumber<C.startLineNumber||v.endLineNumber===C.startLineNumber&&v.endColumn<=C.startColumn||C.endLineNumber<v.startLineNumber||C.endLineNumber===v.startLineNumber&&C.endColumn<=v.startColumn)}static compareRangesUsingStarts(v,C){if(v&&C){const _e=v.startLineNumber|0,be=C.startLineNumber|0;if(_e===be){const Be=v.startColumn|0,ct=C.startColumn|0;if(Be===ct){const Ae=v.endLineNumber|0,Ue=C.endLineNumber|0;if(Ae===Ue){const Jt=v.endColumn|0,Kt=C.endColumn|0;return Jt-Kt}return Ae-Ue}return Be-ct}return _e-be}return(v?1:0)-(C?1:0)}static compareRangesUsingEnds(v,C){return v.endLineNumber===C.endLineNumber?v.endColumn===C.endColumn?v.startLineNumber===C.startLineNumber?v.startColumn-C.startColumn:v.startLineNumber-C.startLineNumber:v.endColumn-C.endColumn:v.endLineNumber-C.endLineNumber}static spansMultipleLines(v){return v.endLineNumber>v.startLineNumber}toJSON(){return this}}function TOe(m,v,C=(B,ne)=>B===ne){if(m===v)return!0;if(!m||!v||m.length!==v.length)return!1;for(let B=0,ne=m.length;B<ne;B++)if(!C(m[B],v[B]))return!1;return!0}function*SOe(m,v){let C,B;for(const ne of m)B!==void 0&&v(B,ne)?C.push(ne):(C&&(yield C),C=[ne]),B=ne;C&&(yield C)}function xOe(m,v){for(let C=0;C<=m.length;C++)v(C===0?void 0:m[C-1],C===m.length?void 0:m[C])}function AOe(m,v){for(let C=0;C<m.length;C++)v(C===0?void 0:m[C-1],m[C],C+1===m.length?void 0:m[C+1])}function COe(m,v){for(const C of v)m.push(C)}var Wse;(function(m){function v(_e){return _e<0}m.isLessThan=v;function C(_e){return _e<=0}m.isLessThanOrEqual=C;function B(_e){return _e>0}m.isGreaterThan=B;function ne(_e){return _e===0}m.isNeitherLessOrGreaterThan=ne,m.greaterThan=1,m.lessThan=-1,m.neitherLessOrGreaterThan=0})(Wse||(Wse={}));function K4(m,v){return(C,B)=>v(m(C),m(B))}const X4=(m,v)=>m-v;function LOe(m){return(v,C)=>-m(v,C)}function zse(m){return m<0?0:m>255?255:m|0}function hI(m){return m<0?0:m>4294967295?4294967295:m|0}class IOe{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,C){v=hI(v);const B=this.values,ne=this.prefixSum,_e=C.length;return _e===0?!1:(this.values=new Uint32Array(B.length+_e),this.values.set(B.subarray(0,v),0),this.values.set(B.subarray(v),v+_e),this.values.set(C,v),v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ne.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,C){return v=hI(v),C=hI(C),this.values[v]===C?!1:(this.values[v]=C,v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),!0)}removeValues(v,C){v=hI(v),C=hI(C);const B=this.values,ne=this.prefixSum;if(v>=B.length)return!1;const _e=B.length-v;return C>=_e&&(C=_e),C===0?!1:(this.values=new Uint32Array(B.length-C),this.values.set(B.subarray(0,v),0),this.values.set(B.subarray(v+C),v),this.prefixSum=new Uint32Array(this.values.length),v-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=v-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(ne.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=hI(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let C=this.prefixSumValidIndex[0]+1;C===0&&(this.prefixSum[0]=this.values[0],C++),v>=this.values.length&&(v=this.values.length-1);for(let B=C;B<=v;B++)this.prefixSum[B]=this.prefixSum[B-1]+this.values[B];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let C=0,B=this.values.length-1,ne=0,_e=0,be=0;for(;C<=B;)if(ne=C+(B-C)/2|0,_e=this.prefixSum[ne],be=_e-this.values[ne],v<be)B=ne-1;else if(v>=_e)C=ne+1;else break;return new kOe(ne,v-be)}}class kOe{constructor(v,C){this.index=v,this.remainder=C,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=C}}class wOe{constructor(v,C,B,ne){this._uri=v,this._lines=C,this._eol=B,this._versionId=ne,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(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);const C=v.changes;for(const B of C)this._acceptDeleteRange(B.range),this._acceptInsertText(new Wp(B.range.startLineNumber,B.range.startColumn),B.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const v=this._eol.length,C=this._lines.length,B=new Uint32Array(C);for(let ne=0;ne<C;ne++)B[ne]=this._lines[ne].length+v;this._lineStarts=new IOe(B)}}_setLineText(v,C){this._lines[v]=C,this._lineStarts&&this._lineStarts.setValue(v,this._lines[v].length+this._eol.length)}_acceptDeleteRange(v){if(v.startLineNumber===v.endLineNumber){if(v.startColumn===v.endColumn)return;this._setLineText(v.startLineNumber-1,this._lines[v.startLineNumber-1].substring(0,v.startColumn-1)+this._lines[v.startLineNumber-1].substring(v.endColumn-1));return}this._setLineText(v.startLineNumber-1,this._lines[v.startLineNumber-1].substring(0,v.startColumn-1)+this._lines[v.endLineNumber-1].substring(v.endColumn-1)),this._lines.splice(v.startLineNumber,v.endLineNumber-v.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(v.startLineNumber,v.endLineNumber-v.startLineNumber)}_acceptInsertText(v,C){if(C.length===0)return;const B=VNe(C);if(B.length===1){this._setLineText(v.lineNumber-1,this._lines[v.lineNumber-1].substring(0,v.column-1)+B[0]+this._lines[v.lineNumber-1].substring(v.column-1));return}B[B.length-1]+=this._lines[v.lineNumber-1].substring(v.column-1),this._setLineText(v.lineNumber-1,this._lines[v.lineNumber-1].substring(0,v.column-1)+B[0]);const ne=new Uint32Array(B.length-1);for(let _e=1;_e<B.length;_e++)this._lines.splice(v.lineNumber+_e-1,0,B[_e]),ne[_e-1]=B[_e].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(v.lineNumber,ne)}}const DOe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function ROe(m=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(const C of DOe)m.indexOf(C)>=0||(v+="\\"+C);return v+="\\s]+)",new RegExp(v,"g")}const qse=ROe();function NOe(m){let v=qse;if(m&&m instanceof RegExp)if(m.global)v=m;else{let C="g";m.ignoreCase&&(C+="i"),m.multiline&&(C+="m"),m.unicode&&(C+="u"),v=new RegExp(m.source,C)}return v.lastIndex=0,v}const Jse=new SNe;Jse.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Fj(m,v,C,B,ne){if(ne||(ne=j4.first(Jse)),C.length>ne.maxLen){let Ae=m-ne.maxLen/2;return Ae<0?Ae=0:B+=Ae,C=C.substring(Ae,m+ne.maxLen/2),Fj(m,v,C,B,ne)}const _e=Date.now(),be=m-1-B;let Be=-1,ct=null;for(let Ae=1;!(Date.now()-_e>=ne.timeBudget);Ae++){const Ue=be-ne.windowSize*Ae;v.lastIndex=Math.max(0,Ue);const Jt=OOe(v,C,be,Be);if(!Jt&&ct||(ct=Jt,Ue<=0))break;Be=Ue}if(ct){const Ae={word:ct[0],startColumn:B+1+ct.index,endColumn:B+1+ct.index+ct[0].length};return v.lastIndex=0,Ae}return null}function OOe(m,v,C,B){let ne;for(;ne=m.exec(v);){const _e=ne.index||0;if(_e<=C&&m.lastIndex>=C)return ne;if(B>0&&_e>B)return null}return null}class Bj{constructor(v){const C=zse(v);this._defaultValue=C,this._asciiMap=Bj._createAsciiMap(C),this._map=new Map}static _createAsciiMap(v){const C=new Uint8Array(256);return C.fill(v),C}set(v,C){const B=zse(C);v>=0&&v<256?this._asciiMap[v]=B:this._map.set(v,B)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class POe{constructor(v,C,B){const ne=new Uint8Array(v*C);for(let _e=0,be=v*C;_e<be;_e++)ne[_e]=B;this._data=ne,this.rows=v,this.cols=C}get(v,C){return this._data[v*this.cols+C]}set(v,C,B){this._data[v*this.cols+C]=B}}class MOe{constructor(v){let C=0,B=0;for(let _e=0,be=v.length;_e<be;_e++){const[Be,ct,Ae]=v[_e];ct>C&&(C=ct),Be>B&&(B=Be),Ae>B&&(B=Ae)}C++,B++;const ne=new POe(B,C,0);for(let _e=0,be=v.length;_e<be;_e++){const[Be,ct,Ae]=v[_e];ne.set(Be,ct,Ae)}this._states=ne,this._maxCharCode=C}nextState(v,C){return C<0||C>=this._maxCharCode?0:this._states.get(v,C)}}let Gj=null;function FOe(){return Gj===null&&(Gj=new MOe([[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]])),Gj}let pR=null;function BOe(){if(pR===null){pR=new Bj(0);const m=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let C=0;C<m.length;C++)pR.set(m.charCodeAt(C),1);const v=".,;:";for(let C=0;C<v.length;C++)pR.set(v.charCodeAt(C),2)}return pR}class Y4{static _createLink(v,C,B,ne,_e){let be=_e-1;do{const Be=C.charCodeAt(be);if(v.get(Be)!==2)break;be--}while(be>ne);if(ne>0){const Be=C.charCodeAt(ne-1),ct=C.charCodeAt(be);(Be===40&&ct===41||Be===91&&ct===93||Be===123&&ct===125)&&be--}return{range:{startLineNumber:B,startColumn:ne+1,endLineNumber:B,endColumn:be+2},url:C.substring(ne,be+1)}}static computeLinks(v,C=FOe()){const B=BOe(),ne=[];for(let _e=1,be=v.getLineCount();_e<=be;_e++){const Be=v.getLineContent(_e),ct=Be.length;let Ae=0,Ue=0,Jt=0,Kt=1,fn=!1,kr=!1,ui=!1,la=!1;for(;Ae<ct;){let Yn=!1;const nn=Be.charCodeAt(Ae);if(Kt===13){let Li;switch(nn){case 40:fn=!0,Li=0;break;case 41:Li=fn?0:1;break;case 91:ui=!0,kr=!0,Li=0;break;case 93:ui=!1,Li=kr?0:1;break;case 123:la=!0,Li=0;break;case 125:Li=la?0:1;break;case 39:case 34:case 96:Jt===nn?Li=1:Jt===39||Jt===34||Jt===96?Li=0:Li=1;break;case 42:Li=Jt===42?1:0;break;case 124:Li=Jt===124?1:0;break;case 32:Li=ui?0:1;break;default:Li=B.get(nn)}Li===1&&(ne.push(Y4._createLink(B,Be,_e,Ue,Ae)),Yn=!0)}else if(Kt===12){let Li;nn===91?(kr=!0,Li=0):Li=B.get(nn),Li===1?Yn=!0:Kt=13}else Kt=C.nextState(Kt,nn),Kt===0&&(Yn=!0);Yn&&(Kt=1,fn=!1,kr=!1,la=!1,Ue=Ae+1,Jt=nn),Ae++}Kt===13&&ne.push(Y4._createLink(B,Be,_e,Ue,ct))}return ne}}function GOe(m){return!m||typeof m.getLineCount!="function"||typeof m.getLineContent!="function"?[]:Y4.computeLinks(m)}class Uj{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(v,C,B,ne,_e){if(v&&C){const be=this.doNavigateValueSet(C,_e);if(be)return{range:v,value:be}}if(B&&ne){const be=this.doNavigateValueSet(ne,_e);if(be)return{range:B,value:be}}return null}doNavigateValueSet(v,C){const B=this.numberReplace(v,C);return B!==null?B:this.textReplace(v,C)}numberReplace(v,C){const B=Math.pow(10,v.length-(v.lastIndexOf(".")+1));let ne=Number(v);const _e=parseFloat(v);return!isNaN(ne)&&!isNaN(_e)&&ne===_e?ne===0&&!C?null:(ne=Math.floor(ne*B),ne+=C?B:-B,String(ne/B)):null}textReplace(v,C){return this.valueSetsReplace(this._defaultValueSet,v,C)}valueSetsReplace(v,C,B){let ne=null;for(let _e=0,be=v.length;ne===null&&_e<be;_e++)ne=this.valueSetReplace(v[_e],C,B);return ne}valueSetReplace(v,C,B){let ne=v.indexOf(C);return ne>=0?(ne+=B?1:-1,ne<0?ne=v.length-1:ne%=v.length,v[ne]):null}}Uj.INSTANCE=new Uj;const Kse=Object.freeze(function(m,v){const C=setTimeout(m.bind(v),0);return{dispose(){clearTimeout(C)}}});var $4;(function(m){function v(C){return C===m.None||C===m.Cancelled||C instanceof Q4?!0:!C||typeof C!="object"?!1:typeof C.isCancellationRequested=="boolean"&&typeof C.onCancellationRequested=="function"}m.isCancellationToken=v,m.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xj.None}),m.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Kse})})($4||($4={}));class Q4{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?Kse:(this._emitter||(this._emitter=new M0),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class UOe{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Q4),this._token}cancel(){this._token?this._token instanceof Q4&&this._token.cancel():this._token=$4.Cancelled}dispose(v=!1){var C;v&&this.cancel(),(C=this._parentListener)===null||C===void 0||C.dispose(),this._token?this._token instanceof Q4&&this._token.dispose():this._token=$4.None}}class Vj{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,C){this._keyCodeToStr[v]=C,this._strToKeyCode[C.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}}const Z4=new Vj,jj=new Vj,Hj=new Vj,VOe=new Array(230),jOe=Object.create(null),HOe=Object.create(null);(function(){const m="",v=[[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]],C=[],B=[];for(const ne of v){const[_e,be,Be,ct,Ae,Ue,Jt,Kt,fn]=ne;if(B[be]||(B[be]=!0,jOe[Be]=be,HOe[Be.toLowerCase()]=be),!C[ct]){if(C[ct]=!0,!Ae)throw new Error(`String representation missing for key code ${ct} around scan code ${Be}`);Z4.define(ct,Ae),jj.define(ct,Kt||Ae),Hj.define(ct,fn||Kt||Ae)}Ue&&(VOe[Ue]=ct)}})();var Xse;(function(m){function v(Be){return Z4.keyCodeToStr(Be)}m.toString=v;function C(Be){return Z4.strToKeyCode(Be)}m.fromString=C;function B(Be){return jj.keyCodeToStr(Be)}m.toUserSettingsUS=B;function ne(Be){return Hj.keyCodeToStr(Be)}m.toUserSettingsGeneral=ne;function _e(Be){return jj.strToKeyCode(Be)||Hj.strToKeyCode(Be)}m.fromUserSettings=_e;function be(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Z4.keyCodeToStr(Be)}m.toElectronAccelerator=be})(Xse||(Xse={}));function WOe(m,v){const C=(v&65535)<<16>>>0;return(m|C)>>>0}class oy extends Pl{constructor(v,C,B,ne){super(v,C,B,ne),this.selectionStartLineNumber=v,this.selectionStartColumn=C,this.positionLineNumber=B,this.positionColumn=ne}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return oy.selectionsEqual(this,v)}static selectionsEqual(v,C){return v.selectionStartLineNumber===C.selectionStartLineNumber&&v.selectionStartColumn===C.selectionStartColumn&&v.positionLineNumber===C.positionLineNumber&&v.positionColumn===C.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,C){return this.getDirection()===0?new oy(this.startLineNumber,this.startColumn,v,C):new oy(v,C,this.startLineNumber,this.startColumn)}getPosition(){return new Wp(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Wp(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,C){return this.getDirection()===0?new oy(v,C,this.endLineNumber,this.endColumn):new oy(this.endLineNumber,this.endColumn,v,C)}static fromPositions(v,C=v){return new oy(v.lineNumber,v.column,C.lineNumber,C.column)}static fromRange(v,C){return C===0?new oy(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new oy(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new oy(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,C){if(v&&!C||!v&&C)return!1;if(!v&&!C)return!0;if(v.length!==C.length)return!1;for(let B=0,ne=v.length;B<ne;B++)if(!this.selectionsEqual(v[B],C[B]))return!1;return!0}static isISelection(v){return v&&typeof v.selectionStartLineNumber=="number"&&typeof v.selectionStartColumn=="number"&&typeof v.positionLineNumber=="number"&&typeof v.positionColumn=="number"}static createWithDirection(v,C,B,ne,_e){return _e===0?new oy(v,C,B,ne):new oy(B,ne,v,C)}}const Yse=Object.create(null);function Le(m,v){if(kNe(v)){const C=Yse[v];if(C===void 0)throw new Error(`${m} references an unknown codicon: ${v}`);v=C}return Yse[m]=v,{id:m}}const fs={add:Le("add",6e4),plus:Le("plus",6e4),gistNew:Le("gist-new",6e4),repoCreate:Le("repo-create",6e4),lightbulb:Le("lightbulb",60001),lightBulb:Le("light-bulb",60001),repo:Le("repo",60002),repoDelete:Le("repo-delete",60002),gistFork:Le("gist-fork",60003),repoForked:Le("repo-forked",60003),gitPullRequest:Le("git-pull-request",60004),gitPullRequestAbandoned:Le("git-pull-request-abandoned",60004),recordKeys:Le("record-keys",60005),keyboard:Le("keyboard",60005),tag:Le("tag",60006),tagAdd:Le("tag-add",60006),tagRemove:Le("tag-remove",60006),gitPullRequestLabel:Le("git-pull-request-label",60006),person:Le("person",60007),personFollow:Le("person-follow",60007),personOutline:Le("person-outline",60007),personFilled:Le("person-filled",60007),gitBranch:Le("git-branch",60008),gitBranchCreate:Le("git-branch-create",60008),gitBranchDelete:Le("git-branch-delete",60008),sourceControl:Le("source-control",60008),mirror:Le("mirror",60009),mirrorPublic:Le("mirror-public",60009),star:Le("star",60010),starAdd:Le("star-add",60010),starDelete:Le("star-delete",60010),starEmpty:Le("star-empty",60010),comment:Le("comment",60011),commentAdd:Le("comment-add",60011),alert:Le("alert",60012),warning:Le("warning",60012),search:Le("search",60013),searchSave:Le("search-save",60013),logOut:Le("log-out",60014),signOut:Le("sign-out",60014),logIn:Le("log-in",60015),signIn:Le("sign-in",60015),eye:Le("eye",60016),eyeUnwatch:Le("eye-unwatch",60016),eyeWatch:Le("eye-watch",60016),circleFilled:Le("circle-filled",60017),primitiveDot:Le("primitive-dot",60017),closeDirty:Le("close-dirty",60017),debugBreakpoint:Le("debug-breakpoint",60017),debugBreakpointDisabled:Le("debug-breakpoint-disabled",60017),debugHint:Le("debug-hint",60017),primitiveSquare:Le("primitive-square",60018),edit:Le("edit",60019),pencil:Le("pencil",60019),info:Le("info",60020),issueOpened:Le("issue-opened",60020),gistPrivate:Le("gist-private",60021),gitForkPrivate:Le("git-fork-private",60021),lock:Le("lock",60021),mirrorPrivate:Le("mirror-private",60021),close:Le("close",60022),removeClose:Le("remove-close",60022),x:Le("x",60022),repoSync:Le("repo-sync",60023),sync:Le("sync",60023),clone:Le("clone",60024),desktopDownload:Le("desktop-download",60024),beaker:Le("beaker",60025),microscope:Le("microscope",60025),vm:Le("vm",60026),deviceDesktop:Le("device-desktop",60026),file:Le("file",60027),fileText:Le("file-text",60027),more:Le("more",60028),ellipsis:Le("ellipsis",60028),kebabHorizontal:Le("kebab-horizontal",60028),mailReply:Le("mail-reply",60029),reply:Le("reply",60029),organization:Le("organization",60030),organizationFilled:Le("organization-filled",60030),organizationOutline:Le("organization-outline",60030),newFile:Le("new-file",60031),fileAdd:Le("file-add",60031),newFolder:Le("new-folder",60032),fileDirectoryCreate:Le("file-directory-create",60032),trash:Le("trash",60033),trashcan:Le("trashcan",60033),history:Le("history",60034),clock:Le("clock",60034),folder:Le("folder",60035),fileDirectory:Le("file-directory",60035),symbolFolder:Le("symbol-folder",60035),logoGithub:Le("logo-github",60036),markGithub:Le("mark-github",60036),github:Le("github",60036),terminal:Le("terminal",60037),console:Le("console",60037),repl:Le("repl",60037),zap:Le("zap",60038),symbolEvent:Le("symbol-event",60038),error:Le("error",60039),stop:Le("stop",60039),variable:Le("variable",60040),symbolVariable:Le("symbol-variable",60040),array:Le("array",60042),symbolArray:Le("symbol-array",60042),symbolModule:Le("symbol-module",60043),symbolPackage:Le("symbol-package",60043),symbolNamespace:Le("symbol-namespace",60043),symbolObject:Le("symbol-object",60043),symbolMethod:Le("symbol-method",60044),symbolFunction:Le("symbol-function",60044),symbolConstructor:Le("symbol-constructor",60044),symbolBoolean:Le("symbol-boolean",60047),symbolNull:Le("symbol-null",60047),symbolNumeric:Le("symbol-numeric",60048),symbolNumber:Le("symbol-number",60048),symbolStructure:Le("symbol-structure",60049),symbolStruct:Le("symbol-struct",60049),symbolParameter:Le("symbol-parameter",60050),symbolTypeParameter:Le("symbol-type-parameter",60050),symbolKey:Le("symbol-key",60051),symbolText:Le("symbol-text",60051),symbolReference:Le("symbol-reference",60052),goToFile:Le("go-to-file",60052),symbolEnum:Le("symbol-enum",60053),symbolValue:Le("symbol-value",60053),symbolRuler:Le("symbol-ruler",60054),symbolUnit:Le("symbol-unit",60054),activateBreakpoints:Le("activate-breakpoints",60055),archive:Le("archive",60056),arrowBoth:Le("arrow-both",60057),arrowDown:Le("arrow-down",60058),arrowLeft:Le("arrow-left",60059),arrowRight:Le("arrow-right",60060),arrowSmallDown:Le("arrow-small-down",60061),arrowSmallLeft:Le("arrow-small-left",60062),arrowSmallRight:Le("arrow-small-right",60063),arrowSmallUp:Le("arrow-small-up",60064),arrowUp:Le("arrow-up",60065),bell:Le("bell",60066),bold:Le("bold",60067),book:Le("book",60068),bookmark:Le("bookmark",60069),debugBreakpointConditionalUnverified:Le("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Le("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Le("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Le("debug-breakpoint-data-unverified",60072),debugBreakpointData:Le("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Le("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Le("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Le("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Le("debug-breakpoint-log-disabled",60075),briefcase:Le("briefcase",60076),broadcast:Le("broadcast",60077),browser:Le("browser",60078),bug:Le("bug",60079),calendar:Le("calendar",60080),caseSensitive:Le("case-sensitive",60081),check:Le("check",60082),checklist:Le("checklist",60083),chevronDown:Le("chevron-down",60084),dropDownButton:Le("drop-down-button",60084),chevronLeft:Le("chevron-left",60085),chevronRight:Le("chevron-right",60086),chevronUp:Le("chevron-up",60087),chromeClose:Le("chrome-close",60088),chromeMaximize:Le("chrome-maximize",60089),chromeMinimize:Le("chrome-minimize",60090),chromeRestore:Le("chrome-restore",60091),circle:Le("circle",60092),circleOutline:Le("circle-outline",60092),debugBreakpointUnverified:Le("debug-breakpoint-unverified",60092),circleSlash:Le("circle-slash",60093),circuitBoard:Le("circuit-board",60094),clearAll:Le("clear-all",60095),clippy:Le("clippy",60096),closeAll:Le("close-all",60097),cloudDownload:Le("cloud-download",60098),cloudUpload:Le("cloud-upload",60099),code:Le("code",60100),collapseAll:Le("collapse-all",60101),colorMode:Le("color-mode",60102),commentDiscussion:Le("comment-discussion",60103),compareChanges:Le("compare-changes",60157),creditCard:Le("credit-card",60105),dash:Le("dash",60108),dashboard:Le("dashboard",60109),database:Le("database",60110),debugContinue:Le("debug-continue",60111),debugDisconnect:Le("debug-disconnect",60112),debugPause:Le("debug-pause",60113),debugRestart:Le("debug-restart",60114),debugStart:Le("debug-start",60115),debugStepInto:Le("debug-step-into",60116),debugStepOut:Le("debug-step-out",60117),debugStepOver:Le("debug-step-over",60118),debugStop:Le("debug-stop",60119),debug:Le("debug",60120),deviceCameraVideo:Le("device-camera-video",60121),deviceCamera:Le("device-camera",60122),deviceMobile:Le("device-mobile",60123),diffAdded:Le("diff-added",60124),diffIgnored:Le("diff-ignored",60125),diffModified:Le("diff-modified",60126),diffRemoved:Le("diff-removed",60127),diffRenamed:Le("diff-renamed",60128),diff:Le("diff",60129),discard:Le("discard",60130),editorLayout:Le("editor-layout",60131),emptyWindow:Le("empty-window",60132),exclude:Le("exclude",60133),extensions:Le("extensions",60134),eyeClosed:Le("eye-closed",60135),fileBinary:Le("file-binary",60136),fileCode:Le("file-code",60137),fileMedia:Le("file-media",60138),filePdf:Le("file-pdf",60139),fileSubmodule:Le("file-submodule",60140),fileSymlinkDirectory:Le("file-symlink-directory",60141),fileSymlinkFile:Le("file-symlink-file",60142),fileZip:Le("file-zip",60143),files:Le("files",60144),filter:Le("filter",60145),flame:Le("flame",60146),foldDown:Le("fold-down",60147),foldUp:Le("fold-up",60148),fold:Le("fold",60149),folderActive:Le("folder-active",60150),folderOpened:Le("folder-opened",60151),gear:Le("gear",60152),gift:Le("gift",60153),gistSecret:Le("gist-secret",60154),gist:Le("gist",60155),gitCommit:Le("git-commit",60156),gitCompare:Le("git-compare",60157),gitMerge:Le("git-merge",60158),githubAction:Le("github-action",60159),githubAlt:Le("github-alt",60160),globe:Le("globe",60161),grabber:Le("grabber",60162),graph:Le("graph",60163),gripper:Le("gripper",60164),heart:Le("heart",60165),home:Le("home",60166),horizontalRule:Le("horizontal-rule",60167),hubot:Le("hubot",60168),inbox:Le("inbox",60169),issueClosed:Le("issue-closed",60324),issueReopened:Le("issue-reopened",60171),issues:Le("issues",60172),italic:Le("italic",60173),jersey:Le("jersey",60174),json:Le("json",60175),bracket:Le("bracket",60175),kebabVertical:Le("kebab-vertical",60176),key:Le("key",60177),law:Le("law",60178),lightbulbAutofix:Le("lightbulb-autofix",60179),linkExternal:Le("link-external",60180),link:Le("link",60181),listOrdered:Le("list-ordered",60182),listUnordered:Le("list-unordered",60183),liveShare:Le("live-share",60184),loading:Le("loading",60185),location:Le("location",60186),mailRead:Le("mail-read",60187),mail:Le("mail",60188),markdown:Le("markdown",60189),megaphone:Le("megaphone",60190),mention:Le("mention",60191),milestone:Le("milestone",60192),gitPullRequestMilestone:Le("git-pull-request-milestone",60192),mortarBoard:Le("mortar-board",60193),move:Le("move",60194),multipleWindows:Le("multiple-windows",60195),mute:Le("mute",60196),noNewline:Le("no-newline",60197),note:Le("note",60198),octoface:Le("octoface",60199),openPreview:Le("open-preview",60200),package:Le("package",60201),paintcan:Le("paintcan",60202),pin:Le("pin",60203),play:Le("play",60204),run:Le("run",60204),plug:Le("plug",60205),preserveCase:Le("preserve-case",60206),preview:Le("preview",60207),project:Le("project",60208),pulse:Le("pulse",60209),question:Le("question",60210),quote:Le("quote",60211),radioTower:Le("radio-tower",60212),reactions:Le("reactions",60213),references:Le("references",60214),refresh:Le("refresh",60215),regex:Le("regex",60216),remoteExplorer:Le("remote-explorer",60217),remote:Le("remote",60218),remove:Le("remove",60219),replaceAll:Le("replace-all",60220),replace:Le("replace",60221),repoClone:Le("repo-clone",60222),repoForcePush:Le("repo-force-push",60223),repoPull:Le("repo-pull",60224),repoPush:Le("repo-push",60225),report:Le("report",60226),requestChanges:Le("request-changes",60227),rocket:Le("rocket",60228),rootFolderOpened:Le("root-folder-opened",60229),rootFolder:Le("root-folder",60230),rss:Le("rss",60231),ruby:Le("ruby",60232),saveAll:Le("save-all",60233),saveAs:Le("save-as",60234),save:Le("save",60235),screenFull:Le("screen-full",60236),screenNormal:Le("screen-normal",60237),searchStop:Le("search-stop",60238),server:Le("server",60240),settingsGear:Le("settings-gear",60241),settings:Le("settings",60242),shield:Le("shield",60243),smiley:Le("smiley",60244),sortPrecedence:Le("sort-precedence",60245),splitHorizontal:Le("split-horizontal",60246),splitVertical:Le("split-vertical",60247),squirrel:Le("squirrel",60248),starFull:Le("star-full",60249),starHalf:Le("star-half",60250),symbolClass:Le("symbol-class",60251),symbolColor:Le("symbol-color",60252),symbolCustomColor:Le("symbol-customcolor",60252),symbolConstant:Le("symbol-constant",60253),symbolEnumMember:Le("symbol-enum-member",60254),symbolField:Le("symbol-field",60255),symbolFile:Le("symbol-file",60256),symbolInterface:Le("symbol-interface",60257),symbolKeyword:Le("symbol-keyword",60258),symbolMisc:Le("symbol-misc",60259),symbolOperator:Le("symbol-operator",60260),symbolProperty:Le("symbol-property",60261),wrench:Le("wrench",60261),wrenchSubaction:Le("wrench-subaction",60261),symbolSnippet:Le("symbol-snippet",60262),tasklist:Le("tasklist",60263),telescope:Le("telescope",60264),textSize:Le("text-size",60265),threeBars:Le("three-bars",60266),thumbsdown:Le("thumbsdown",60267),thumbsup:Le("thumbsup",60268),tools:Le("tools",60269),triangleDown:Le("triangle-down",60270),triangleLeft:Le("triangle-left",60271),triangleRight:Le("triangle-right",60272),triangleUp:Le("triangle-up",60273),twitter:Le("twitter",60274),unfold:Le("unfold",60275),unlock:Le("unlock",60276),unmute:Le("unmute",60277),unverified:Le("unverified",60278),verified:Le("verified",60279),versions:Le("versions",60280),vmActive:Le("vm-active",60281),vmOutline:Le("vm-outline",60282),vmRunning:Le("vm-running",60283),watch:Le("watch",60284),whitespace:Le("whitespace",60285),wholeWord:Le("whole-word",60286),window:Le("window",60287),wordWrap:Le("word-wrap",60288),zoomIn:Le("zoom-in",60289),zoomOut:Le("zoom-out",60290),listFilter:Le("list-filter",60291),listFlat:Le("list-flat",60292),listSelection:Le("list-selection",60293),selection:Le("selection",60293),listTree:Le("list-tree",60294),debugBreakpointFunctionUnverified:Le("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Le("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Le("debug-breakpoint-function-disabled",60296),debugStackframeActive:Le("debug-stackframe-active",60297),circleSmallFilled:Le("circle-small-filled",60298),debugStackframeDot:Le("debug-stackframe-dot",60298),debugStackframe:Le("debug-stackframe",60299),debugStackframeFocused:Le("debug-stackframe-focused",60299),debugBreakpointUnsupported:Le("debug-breakpoint-unsupported",60300),symbolString:Le("symbol-string",60301),debugReverseContinue:Le("debug-reverse-continue",60302),debugStepBack:Le("debug-step-back",60303),debugRestartFrame:Le("debug-restart-frame",60304),callIncoming:Le("call-incoming",60306),callOutgoing:Le("call-outgoing",60307),menu:Le("menu",60308),expandAll:Le("expand-all",60309),feedback:Le("feedback",60310),gitPullRequestReviewer:Le("git-pull-request-reviewer",60310),groupByRefType:Le("group-by-ref-type",60311),ungroupByRefType:Le("ungroup-by-ref-type",60312),account:Le("account",60313),gitPullRequestAssignee:Le("git-pull-request-assignee",60313),bellDot:Le("bell-dot",60314),debugConsole:Le("debug-console",60315),library:Le("library",60316),output:Le("output",60317),runAll:Le("run-all",60318),syncIgnored:Le("sync-ignored",60319),pinned:Le("pinned",60320),githubInverted:Le("github-inverted",60321),debugAlt:Le("debug-alt",60305),serverProcess:Le("server-process",60322),serverEnvironment:Le("server-environment",60323),pass:Le("pass",60324),stopCircle:Le("stop-circle",60325),playCircle:Le("play-circle",60326),record:Le("record",60327),debugAltSmall:Le("debug-alt-small",60328),vmConnect:Le("vm-connect",60329),cloud:Le("cloud",60330),merge:Le("merge",60331),exportIcon:Le("export",60332),graphLeft:Le("graph-left",60333),magnet:Le("magnet",60334),notebook:Le("notebook",60335),redo:Le("redo",60336),checkAll:Le("check-all",60337),pinnedDirty:Le("pinned-dirty",60338),passFilled:Le("pass-filled",60339),circleLargeFilled:Le("circle-large-filled",60340),circleLarge:Le("circle-large",60341),circleLargeOutline:Le("circle-large-outline",60341),combine:Le("combine",60342),gather:Le("gather",60342),table:Le("table",60343),variableGroup:Le("variable-group",60344),typeHierarchy:Le("type-hierarchy",60345),typeHierarchySub:Le("type-hierarchy-sub",60346),typeHierarchySuper:Le("type-hierarchy-super",60347),gitPullRequestCreate:Le("git-pull-request-create",60348),runAbove:Le("run-above",60349),runBelow:Le("run-below",60350),notebookTemplate:Le("notebook-template",60351),debugRerun:Le("debug-rerun",60352),workspaceTrusted:Le("workspace-trusted",60353),workspaceUntrusted:Le("workspace-untrusted",60354),workspaceUnspecified:Le("workspace-unspecified",60355),terminalCmd:Le("terminal-cmd",60356),terminalDebian:Le("terminal-debian",60357),terminalLinux:Le("terminal-linux",60358),terminalPowershell:Le("terminal-powershell",60359),terminalTmux:Le("terminal-tmux",60360),terminalUbuntu:Le("terminal-ubuntu",60361),terminalBash:Le("terminal-bash",60362),arrowSwap:Le("arrow-swap",60363),copy:Le("copy",60364),personAdd:Le("person-add",60365),filterFilled:Le("filter-filled",60366),wand:Le("wand",60367),debugLineByLine:Le("debug-line-by-line",60368),inspect:Le("inspect",60369),layers:Le("layers",60370),layersDot:Le("layers-dot",60371),layersActive:Le("layers-active",60372),compass:Le("compass",60373),compassDot:Le("compass-dot",60374),compassActive:Le("compass-active",60375),azure:Le("azure",60376),issueDraft:Le("issue-draft",60377),gitPullRequestClosed:Le("git-pull-request-closed",60378),gitPullRequestDraft:Le("git-pull-request-draft",60379),debugAll:Le("debug-all",60380),debugCoverage:Le("debug-coverage",60381),runErrors:Le("run-errors",60382),folderLibrary:Le("folder-library",60383),debugContinueSmall:Le("debug-continue-small",60384),beakerStop:Le("beaker-stop",60385),graphLine:Le("graph-line",60386),graphScatter:Le("graph-scatter",60387),pieChart:Le("pie-chart",60388),bracketDot:Le("bracket-dot",60389),bracketError:Le("bracket-error",60390),lockSmall:Le("lock-small",60391),azureDevops:Le("azure-devops",60392),verifiedFilled:Le("verified-filled",60393),newLine:Le("newline",60394),layout:Le("layout",60395),layoutActivitybarLeft:Le("layout-activitybar-left",60396),layoutActivitybarRight:Le("layout-activitybar-right",60397),layoutPanelLeft:Le("layout-panel-left",60398),layoutPanelCenter:Le("layout-panel-center",60399),layoutPanelJustify:Le("layout-panel-justify",60400),layoutPanelRight:Le("layout-panel-right",60401),layoutPanel:Le("layout-panel",60402),layoutSidebarLeft:Le("layout-sidebar-left",60403),layoutSidebarRight:Le("layout-sidebar-right",60404),layoutStatusbar:Le("layout-statusbar",60405),layoutMenubar:Le("layout-menubar",60406),layoutCentered:Le("layout-centered",60407),layoutSidebarRightOff:Le("layout-sidebar-right-off",60416),layoutPanelOff:Le("layout-panel-off",60417),layoutSidebarLeftOff:Le("layout-sidebar-left-off",60418),target:Le("target",60408),indent:Le("indent",60409),recordSmall:Le("record-small",60410),errorSmall:Le("error-small",60411),arrowCircleDown:Le("arrow-circle-down",60412),arrowCircleLeft:Le("arrow-circle-left",60413),arrowCircleRight:Le("arrow-circle-right",60414),arrowCircleUp:Le("arrow-circle-up",60415),heartFilled:Le("heart-filled",60420),map:Le("map",60421),mapFilled:Le("map-filled",60422),circleSmall:Le("circle-small",60423),bellSlash:Le("bell-slash",60424),bellSlashDot:Le("bell-slash-dot",60425),commentUnresolved:Le("comment-unresolved",60426),gitPullRequestGoToChanges:Le("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Le("git-pull-request-new-changes",60428),searchFuzzy:Le("search-fuzzy",60429),commentDraft:Le("comment-draft",60430),send:Le("send",60431),sparkle:Le("sparkle",60432),insert:Le("insert",60433),mic:Le("mic",60434),dialogError:Le("dialog-error","error"),dialogWarning:Le("dialog-warning","warning"),dialogInfo:Le("dialog-info","info"),dialogClose:Le("dialog-close","close"),treeItemExpanded:Le("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Le("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Le("tree-filter-on-type-off","list-selection"),treeFilterClear:Le("tree-filter-clear","close"),treeItemLoading:Le("tree-item-loading","loading"),menuSelection:Le("menu-selection","check"),menuSubmenu:Le("menu-submenu","chevron-right"),menuBarMore:Le("menubar-more","more"),scrollbarButtonLeft:Le("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Le("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Le("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Le("scrollbar-button-down","triangle-down"),toolBarMore:Le("toolbar-more","more"),quickInputBack:Le("quick-input-back","arrow-left")};var Wj=function(m,v,C,B){function ne(_e){return _e instanceof C?_e:new C(function(be){be(_e)})}return new(C||(C=Promise))(function(_e,be){function Be(Ue){try{Ae(B.next(Ue))}catch(Jt){be(Jt)}}function ct(Ue){try{Ae(B.throw(Ue))}catch(Jt){be(Jt)}}function Ae(Ue){Ue.done?_e(Ue.value):ne(Ue.value).then(Be,ct)}Ae((B=B.apply(m,v||[])).next())})};class zOe{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new M0,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(v){this._onDidChange.fire({changedLanguages:v,changedColorMap:!1})}register(v,C){return this._tokenizationSupports.set(v,C),this.handleChange([v]),dR(()=>{this._tokenizationSupports.get(v)===C&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,C){var B;(B=this._factories.get(v))===null||B===void 0||B.dispose();const ne=new qOe(this,v,C);return this._factories.set(v,ne),dR(()=>{const _e=this._factories.get(v);!_e||_e!==ne||(this._factories.delete(v),_e.dispose())})}getOrCreate(v){return Wj(this,void 0,void 0,function*(){const C=this.get(v);if(C)return C;const B=this._factories.get(v);return!B||B.isResolved?null:(yield B.resolve(),this.get(v))})}isResolved(v){if(this.get(v))return!0;const B=this._factories.get(v);return!!(!B||B.isResolved)}setColorMap(v){this._colorMap=v,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class qOe extends fR{get isResolved(){return this._isResolved}constructor(v,C,B){super(),this._registry=v,this._languageId=C,this._factory=B,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Wj(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Wj(this,void 0,void 0,function*(){const v=yield this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))})}}class JOe{constructor(v,C,B){this.offset=v,this.type=C,this.language=B,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var $se;(function(m){const v=new Map;v.set(0,fs.symbolMethod),v.set(1,fs.symbolFunction),v.set(2,fs.symbolConstructor),v.set(3,fs.symbolField),v.set(4,fs.symbolVariable),v.set(5,fs.symbolClass),v.set(6,fs.symbolStruct),v.set(7,fs.symbolInterface),v.set(8,fs.symbolModule),v.set(9,fs.symbolProperty),v.set(10,fs.symbolEvent),v.set(11,fs.symbolOperator),v.set(12,fs.symbolUnit),v.set(13,fs.symbolValue),v.set(15,fs.symbolEnum),v.set(14,fs.symbolConstant),v.set(15,fs.symbolEnum),v.set(16,fs.symbolEnumMember),v.set(17,fs.symbolKeyword),v.set(27,fs.symbolSnippet),v.set(18,fs.symbolText),v.set(19,fs.symbolColor),v.set(20,fs.symbolFile),v.set(21,fs.symbolReference),v.set(22,fs.symbolCustomColor),v.set(23,fs.symbolFolder),v.set(24,fs.symbolTypeParameter),v.set(25,fs.account),v.set(26,fs.issues);function C(_e){let be=v.get(_e);return be||(console.info("No codicon found for CompletionItemKind "+_e),be=fs.symbolProperty),be}m.toIcon=C;const B=new Map;B.set("method",0),B.set("function",1),B.set("constructor",2),B.set("field",3),B.set("variable",4),B.set("class",5),B.set("struct",6),B.set("interface",7),B.set("module",8),B.set("property",9),B.set("event",10),B.set("operator",11),B.set("unit",12),B.set("value",13),B.set("constant",14),B.set("enum",15),B.set("enum-member",16),B.set("enumMember",16),B.set("keyword",17),B.set("snippet",27),B.set("text",18),B.set("color",19),B.set("file",20),B.set("reference",21),B.set("customcolor",22),B.set("folder",23),B.set("type-parameter",24),B.set("typeParameter",24),B.set("account",25),B.set("issue",26);function ne(_e,be){let Be=B.get(_e);return typeof Be>"u"&&!be&&(Be=9),Be}m.fromString=ne})($se||($se={}));var Qse;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(Qse||(Qse={}));var Zse;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(Zse||(Zse={}));var ele;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(ele||(ele={})),Yu("Array","array"),Yu("Boolean","boolean"),Yu("Class","class"),Yu("Constant","constant"),Yu("Constructor","constructor"),Yu("Enum","enumeration"),Yu("EnumMember","enumeration member"),Yu("Event","event"),Yu("Field","field"),Yu("File","file"),Yu("Function","function"),Yu("Interface","interface"),Yu("Key","key"),Yu("Method","method"),Yu("Module","module"),Yu("Namespace","namespace"),Yu("Null","null"),Yu("Number","number"),Yu("Object","object"),Yu("Operator","operator"),Yu("Package","package"),Yu("Property","property"),Yu("String","string"),Yu("Struct","struct"),Yu("TypeParameter","type parameter"),Yu("Variable","variable");var tle;(function(m){const v=new Map;v.set(0,fs.symbolFile),v.set(1,fs.symbolModule),v.set(2,fs.symbolNamespace),v.set(3,fs.symbolPackage),v.set(4,fs.symbolClass),v.set(5,fs.symbolMethod),v.set(6,fs.symbolProperty),v.set(7,fs.symbolField),v.set(8,fs.symbolConstructor),v.set(9,fs.symbolEnum),v.set(10,fs.symbolInterface),v.set(11,fs.symbolFunction),v.set(12,fs.symbolVariable),v.set(13,fs.symbolConstant),v.set(14,fs.symbolString),v.set(15,fs.symbolNumber),v.set(16,fs.symbolBoolean),v.set(17,fs.symbolArray),v.set(18,fs.symbolObject),v.set(19,fs.symbolKey),v.set(20,fs.symbolNull),v.set(21,fs.symbolEnumMember),v.set(22,fs.symbolStruct),v.set(23,fs.symbolEvent),v.set(24,fs.symbolOperator),v.set(25,fs.symbolTypeParameter);function C(B){let ne=v.get(B);return ne||(console.info("No codicon found for SymbolKind "+B),ne=fs.symbolProperty),ne}m.toIcon=C})(tle||(tle={}));var nle;(function(m){function v(C){return!C||typeof C!="object"?!1:typeof C.id=="string"&&typeof C.title=="string"}m.is=v})(nle||(nle={}));var rle;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(rle||(rle={})),new zOe;var ile;(function(m){m[m.Unknown=0]="Unknown",m[m.Disabled=1]="Disabled",m[m.Enabled=2]="Enabled"})(ile||(ile={}));var ale;(function(m){m[m.Invoke=1]="Invoke",m[m.Auto=2]="Auto"})(ale||(ale={}));var ole;(function(m){m[m.None=0]="None",m[m.KeepWhitespace=1]="KeepWhitespace",m[m.InsertAsSnippet=4]="InsertAsSnippet"})(ole||(ole={}));var sle;(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.Snippet=27]="Snippet"})(sle||(sle={}));var lle;(function(m){m[m.Deprecated=1]="Deprecated"})(lle||(lle={}));var cle;(function(m){m[m.Invoke=0]="Invoke",m[m.TriggerCharacter=1]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(cle||(cle={}));var ule;(function(m){m[m.EXACT=0]="EXACT",m[m.ABOVE=1]="ABOVE",m[m.BELOW=2]="BELOW"})(ule||(ule={}));var dle;(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"})(dle||(dle={}));var fle;(function(m){m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(fle||(fle={}));var _le;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(_le||(_le={}));var ple;(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"})(ple||(ple={}));var mle;(function(m){m[m.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",m[m.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",m[m.accessibilitySupport=2]="accessibilitySupport",m[m.accessibilityPageSize=3]="accessibilityPageSize",m[m.ariaLabel=4]="ariaLabel",m[m.ariaRequired=5]="ariaRequired",m[m.autoClosingBrackets=6]="autoClosingBrackets",m[m.autoClosingComments=7]="autoClosingComments",m[m.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",m[m.autoClosingDelete=9]="autoClosingDelete",m[m.autoClosingOvertype=10]="autoClosingOvertype",m[m.autoClosingQuotes=11]="autoClosingQuotes",m[m.autoIndent=12]="autoIndent",m[m.automaticLayout=13]="automaticLayout",m[m.autoSurround=14]="autoSurround",m[m.bracketPairColorization=15]="bracketPairColorization",m[m.guides=16]="guides",m[m.codeLens=17]="codeLens",m[m.codeLensFontFamily=18]="codeLensFontFamily",m[m.codeLensFontSize=19]="codeLensFontSize",m[m.colorDecorators=20]="colorDecorators",m[m.colorDecoratorsLimit=21]="colorDecoratorsLimit",m[m.columnSelection=22]="columnSelection",m[m.comments=23]="comments",m[m.contextmenu=24]="contextmenu",m[m.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",m[m.cursorBlinking=26]="cursorBlinking",m[m.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",m[m.cursorStyle=28]="cursorStyle",m[m.cursorSurroundingLines=29]="cursorSurroundingLines",m[m.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",m[m.cursorWidth=31]="cursorWidth",m[m.disableLayerHinting=32]="disableLayerHinting",m[m.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",m[m.domReadOnly=34]="domReadOnly",m[m.dragAndDrop=35]="dragAndDrop",m[m.dropIntoEditor=36]="dropIntoEditor",m[m.emptySelectionClipboard=37]="emptySelectionClipboard",m[m.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",m[m.extraEditorClassName=39]="extraEditorClassName",m[m.fastScrollSensitivity=40]="fastScrollSensitivity",m[m.find=41]="find",m[m.fixedOverflowWidgets=42]="fixedOverflowWidgets",m[m.folding=43]="folding",m[m.foldingStrategy=44]="foldingStrategy",m[m.foldingHighlight=45]="foldingHighlight",m[m.foldingImportsByDefault=46]="foldingImportsByDefault",m[m.foldingMaximumRegions=47]="foldingMaximumRegions",m[m.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",m[m.fontFamily=49]="fontFamily",m[m.fontInfo=50]="fontInfo",m[m.fontLigatures=51]="fontLigatures",m[m.fontSize=52]="fontSize",m[m.fontWeight=53]="fontWeight",m[m.fontVariations=54]="fontVariations",m[m.formatOnPaste=55]="formatOnPaste",m[m.formatOnType=56]="formatOnType",m[m.glyphMargin=57]="glyphMargin",m[m.gotoLocation=58]="gotoLocation",m[m.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",m[m.hover=60]="hover",m[m.inDiffEditor=61]="inDiffEditor",m[m.inlineSuggest=62]="inlineSuggest",m[m.letterSpacing=63]="letterSpacing",m[m.lightbulb=64]="lightbulb",m[m.lineDecorationsWidth=65]="lineDecorationsWidth",m[m.lineHeight=66]="lineHeight",m[m.lineNumbers=67]="lineNumbers",m[m.lineNumbersMinChars=68]="lineNumbersMinChars",m[m.linkedEditing=69]="linkedEditing",m[m.links=70]="links",m[m.matchBrackets=71]="matchBrackets",m[m.minimap=72]="minimap",m[m.mouseStyle=73]="mouseStyle",m[m.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",m[m.mouseWheelZoom=75]="mouseWheelZoom",m[m.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",m[m.multiCursorModifier=77]="multiCursorModifier",m[m.multiCursorPaste=78]="multiCursorPaste",m[m.multiCursorLimit=79]="multiCursorLimit",m[m.occurrencesHighlight=80]="occurrencesHighlight",m[m.overviewRulerBorder=81]="overviewRulerBorder",m[m.overviewRulerLanes=82]="overviewRulerLanes",m[m.padding=83]="padding",m[m.pasteAs=84]="pasteAs",m[m.parameterHints=85]="parameterHints",m[m.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",m[m.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",m[m.quickSuggestions=88]="quickSuggestions",m[m.quickSuggestionsDelay=89]="quickSuggestionsDelay",m[m.readOnly=90]="readOnly",m[m.readOnlyMessage=91]="readOnlyMessage",m[m.renameOnType=92]="renameOnType",m[m.renderControlCharacters=93]="renderControlCharacters",m[m.renderFinalNewline=94]="renderFinalNewline",m[m.renderLineHighlight=95]="renderLineHighlight",m[m.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",m[m.renderValidationDecorations=97]="renderValidationDecorations",m[m.renderWhitespace=98]="renderWhitespace",m[m.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",m[m.roundedSelection=100]="roundedSelection",m[m.rulers=101]="rulers",m[m.scrollbar=102]="scrollbar",m[m.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",m[m.scrollBeyondLastLine=104]="scrollBeyondLastLine",m[m.scrollPredominantAxis=105]="scrollPredominantAxis",m[m.selectionClipboard=106]="selectionClipboard",m[m.selectionHighlight=107]="selectionHighlight",m[m.selectOnLineNumbers=108]="selectOnLineNumbers",m[m.showFoldingControls=109]="showFoldingControls",m[m.showUnused=110]="showUnused",m[m.snippetSuggestions=111]="snippetSuggestions",m[m.smartSelect=112]="smartSelect",m[m.smoothScrolling=113]="smoothScrolling",m[m.stickyScroll=114]="stickyScroll",m[m.stickyTabStops=115]="stickyTabStops",m[m.stopRenderingLineAfter=116]="stopRenderingLineAfter",m[m.suggest=117]="suggest",m[m.suggestFontSize=118]="suggestFontSize",m[m.suggestLineHeight=119]="suggestLineHeight",m[m.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",m[m.suggestSelection=121]="suggestSelection",m[m.tabCompletion=122]="tabCompletion",m[m.tabIndex=123]="tabIndex",m[m.unicodeHighlighting=124]="unicodeHighlighting",m[m.unusualLineTerminators=125]="unusualLineTerminators",m[m.useShadowDOM=126]="useShadowDOM",m[m.useTabStops=127]="useTabStops",m[m.wordBreak=128]="wordBreak",m[m.wordSeparators=129]="wordSeparators",m[m.wordWrap=130]="wordWrap",m[m.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",m[m.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",m[m.wordWrapColumn=133]="wordWrapColumn",m[m.wordWrapOverride1=134]="wordWrapOverride1",m[m.wordWrapOverride2=135]="wordWrapOverride2",m[m.wrappingIndent=136]="wrappingIndent",m[m.wrappingStrategy=137]="wrappingStrategy",m[m.showDeprecated=138]="showDeprecated",m[m.inlayHints=139]="inlayHints",m[m.editorClassName=140]="editorClassName",m[m.pixelRatio=141]="pixelRatio",m[m.tabFocusMode=142]="tabFocusMode",m[m.layoutInfo=143]="layoutInfo",m[m.wrappingInfo=144]="wrappingInfo",m[m.defaultColorDecorators=145]="defaultColorDecorators",m[m.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",m[m.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(mle||(mle={}));var hle;(function(m){m[m.TextDefined=0]="TextDefined",m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(hle||(hle={}));var gle;(function(m){m[m.LF=0]="LF",m[m.CRLF=1]="CRLF"})(gle||(gle={}));var yle;(function(m){m[m.Left=1]="Left",m[m.Right=2]="Right"})(yle||(yle={}));var vle;(function(m){m[m.None=0]="None",m[m.Indent=1]="Indent",m[m.IndentOutdent=2]="IndentOutdent",m[m.Outdent=3]="Outdent"})(vle||(vle={}));var ble;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(ble||(ble={}));var Ele;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(Ele||(Ele={}));var Tle;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(Tle||(Tle={}));var zj;(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"})(zj||(zj={}));var qj;(function(m){m[m.Hint=1]="Hint",m[m.Info=2]="Info",m[m.Warning=4]="Warning",m[m.Error=8]="Error"})(qj||(qj={}));var Jj;(function(m){m[m.Unnecessary=1]="Unnecessary",m[m.Deprecated=2]="Deprecated"})(Jj||(Jj={}));var Sle;(function(m){m[m.Inline=1]="Inline",m[m.Gutter=2]="Gutter"})(Sle||(Sle={}));var xle;(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"})(xle||(xle={}));var Ale;(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"})(Ale||(Ale={}));var Cle;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(Cle||(Cle={}));var Lle;(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"})(Lle||(Lle={}));var Ile;(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"})(Ile||(Ile={}));var kle;(function(m){m[m.None=0]="None",m[m.Text=1]="Text",m[m.Blocks=2]="Blocks"})(kle||(kle={}));var wle;(function(m){m[m.Smooth=0]="Smooth",m[m.Immediate=1]="Immediate"})(wle||(wle={}));var Dle;(function(m){m[m.Auto=1]="Auto",m[m.Hidden=2]="Hidden",m[m.Visible=3]="Visible"})(Dle||(Dle={}));var Kj;(function(m){m[m.LTR=0]="LTR",m[m.RTL=1]="RTL"})(Kj||(Kj={}));var Rle;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(Rle||(Rle={}));var Nle;(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"})(Nle||(Nle={}));var Ole;(function(m){m[m.Deprecated=1]="Deprecated"})(Ole||(Ole={}));var Ple;(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"})(Ple||(Ple={}));var Mle;(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"})(Mle||(Mle={}));var Fle;(function(m){m[m.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",m[m.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",m[m.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",m[m.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Fle||(Fle={}));var Ble;(function(m){m[m.None=0]="None",m[m.Same=1]="Same",m[m.Indent=2]="Indent",m[m.DeepIndent=3]="DeepIndent"})(Ble||(Ble={}));class mR{static chord(v,C){return WOe(v,C)}}mR.CtrlCmd=2048,mR.Shift=1024,mR.Alt=512,mR.WinCtrl=256;function KOe(){return{editor:void 0,languages:void 0,CancellationTokenSource:UOe,Emitter:M0,KeyCode:zj,KeyMod:mR,Position:Wp,Range:Pl,Selection:oy,SelectionDirection:Kj,MarkerSeverity:qj,MarkerTag:Jj,Uri:vA,Token:JOe}}var Gle;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(Gle||(Gle={}));var Ule;(function(m){m[m.Left=1]="Left",m[m.Right=2]="Right"})(Ule||(Ule={}));var Vle;(function(m){m[m.Inline=1]="Inline",m[m.Gutter=2]="Gutter"})(Vle||(Vle={}));var jle;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(jle||(jle={}));function XOe(m,v,C,B,ne){if(B===0)return!0;const _e=v.charCodeAt(B-1);if(m.get(_e)!==0||_e===13||_e===10)return!0;if(ne>0){const be=v.charCodeAt(B);if(m.get(be)!==0)return!0}return!1}function YOe(m,v,C,B,ne){if(B+ne===C)return!0;const _e=v.charCodeAt(B+ne);if(m.get(_e)!==0||_e===13||_e===10)return!0;if(ne>0){const be=v.charCodeAt(B+ne-1);if(m.get(be)!==0)return!0}return!1}function $Oe(m,v,C,B,ne){return XOe(m,v,C,B,ne)&&YOe(m,v,C,B,ne)}class QOe{constructor(v,C){this._wordSeparators=v,this._searchRegex=C,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){const C=v.length;let B;do{if(this._prevMatchStartIndex+this._prevMatchLength===C||(B=this._searchRegex.exec(v),!B))return null;const ne=B.index,_e=B[0].length;if(ne===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){qNe(v,C,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=ne,this._prevMatchLength=_e,!this._wordSeparators||$Oe(this._wordSeparators,v,C,ne,_e))return B}while(B);return null}}function ZOe(m,v="Unreachable"){throw new Error(v)}function eM(m){if(!m()){debugger;m(),MS(new FS("Assertion Failed"))}}function Hle(m,v){let C=0;for(;C<m.length-1;){const B=m[C],ne=m[C+1];if(!v(B,ne))return!1;C++}return!0}class e8e{static computeUnicodeHighlights(v,C,B){const ne=B?B.startLineNumber:1,_e=B?B.endLineNumber:v.getLineCount(),be=new Wle(C),Be=be.getCandidateCodePoints();let ct;Be==="allNonBasicAscii"?ct=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):ct=new RegExp(`${t8e(Array.from(Be))}`,"g");const Ae=new QOe(null,ct),Ue=[];let Jt=!1,Kt,fn=0,kr=0,ui=0;e:for(let la=ne,Yn=_e;la<=Yn;la++){const nn=v.getLineContent(la),Li=nn.length;Ae.reset(0);do if(Kt=Ae.next(nn),Kt){let mi=Kt.index,va=Kt.index+Kt[0].length;if(mi>0){const Tc=nn.charCodeAt(mi-1);Nj(Tc)&&mi--}if(va+1<Li){const Tc=nn.charCodeAt(va-1);Nj(Tc)&&va++}const Bo=nn.substring(mi,va);let jr=Fj(mi+1,qse,nn,0);jr&&jr.endColumn<=mi+1&&(jr=null);const Zo=be.shouldHighlightNonBasicASCII(Bo,jr?jr.word:null);if(Zo!==0){Zo===3?fn++:Zo===2?kr++:Zo===1?ui++:ZOe();const Tc=1e3;if(Ue.length>=Tc){Jt=!0;break e}Ue.push(new Pl(la,mi+1,la,va+1))}}while(Kt)}return{ranges:Ue,hasMore:Jt,ambiguousCharacterCount:fn,invisibleCharacterCount:kr,nonBasicAsciiCharacterCount:ui}}static computeUnicodeHighlightReason(v,C){const B=new Wle(C);switch(B.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{const _e=v.codePointAt(0),be=B.ambiguousCharacters.getPrimaryConfusable(_e),Be=yA.getLocales().filter(ct=>!yA.getInstance(new Set([...C.allowedLocales,ct])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(be),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function t8e(m,v){return`[${UNe(m.map(B=>String.fromCodePoint(B)).join(""))}]`}class Wle{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=yA.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const v=new Set;if(this.options.invisibleCharacters)for(const C of BS.codePoints)zle(String.fromCodePoint(C))||v.add(C);if(this.options.ambiguousCharacters)for(const C of this.ambiguousCharacters.getConfusableCodePoints())v.add(C);for(const C of this.allowedCodePoints)v.delete(C);return v}shouldHighlightNonBasicASCII(v,C){const B=v.codePointAt(0);if(this.allowedCodePoints.has(B))return 0;if(this.options.nonBasicASCII)return 1;let ne=!1,_e=!1;if(C)for(const be of C){const Be=be.codePointAt(0),ct=KNe(be);ne=ne||ct,!ct&&!this.ambiguousCharacters.isAmbiguous(Be)&&!BS.isInvisibleCharacter(Be)&&(_e=!0)}return!ne&&_e?0:this.options.invisibleCharacters&&!zle(v)&&BS.isInvisibleCharacter(B)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(B)?3:0}}function zle(m){return m===" "||m===` `||m===" "}class tM{constructor(v,C,B){this.changes=v,this.moves=C,this.hitTimeout=B}}class n8e{constructor(v,C){this.lineRangeMapping=v,this.changes=C}}class Ml{static addRange(v,C){let B=0;for(;B<C.length&&C[B].endExclusive<v.start;)B++;let ne=B;for(;ne<C.length&&C[ne].start<=v.endExclusive;)ne++;if(B===ne)C.splice(B,0,v);else{const _e=Math.min(v.start,C[B].start),be=Math.max(v.endExclusive,C[ne-1].endExclusive);C.splice(B,ne-B,new Ml(_e,be))}}static tryCreate(v,C){if(!(v>C))return new Ml(v,C)}static ofLength(v){return new Ml(0,v)}constructor(v,C){if(this.start=v,this.endExclusive=C,v>C)throw new FS(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(v){return new Ml(this.start+v,this.endExclusive+v)}deltaStart(v){return new Ml(this.start+v,this.endExclusive)}deltaEnd(v){return new Ml(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(v){return this.start===v.start&&this.endExclusive===v.endExclusive}containsRange(v){return this.start<=v.start&&v.endExclusive<=this.endExclusive}contains(v){return this.start<=v&&v<this.endExclusive}join(v){return new Ml(Math.min(this.start,v.start),Math.max(this.endExclusive,v.endExclusive))}intersect(v){const C=Math.max(this.start,v.start),B=Math.min(this.endExclusive,v.endExclusive);if(C<=B)return new Ml(C,B)}slice(v){return v.slice(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new FS(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new FS(`Invalid clipping range: ${this.toString()}`);return v<this.start?this.endExclusive-(this.start-v)%this.length:v>=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let C=this.start;C<this.endExclusive;C++)v(C)}}function hR(m,v){const C=gR(m,v);return C===-1?void 0:m[C]}function gR(m,v,C=0,B=m.length){let ne=C,_e=B;for(;ne<_e;){const be=Math.floor((ne+_e)/2);v(m[be])?ne=be+1:_e=be}return ne-1}function r8e(m,v){const C=Xj(m,v);return C===m.length?void 0:m[C]}function Xj(m,v,C=0,B=m.length){let ne=C,_e=B;for(;ne<_e;){const be=Math.floor((ne+_e)/2);v(m[be])?_e=be:ne=be+1}return ne}class yR{constructor(v){this._array=v,this._findLastMonotonousLastIdx=0}findLastMonotonous(v){if(yR.assertInvariants){if(this._prevFindLastPredicate){for(const B of this._array)if(this._prevFindLastPredicate(B)&&!v(B))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=v}const C=gR(this._array,v,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=C+1,C===-1?void 0:this._array[C]}}yR.assertInvariants=!1;class mc{static fromRange(v){return new mc(v.startLineNumber,v.endLineNumber)}static joinMany(v){if(v.length===0)return[];let C=new n1(v[0].slice());for(let B=1;B<v.length;B++)C=C.getUnion(new n1(v[B].slice()));return C.ranges}static ofLength(v,C){return new mc(v,v+C)}static deserialize(v){return new mc(v[0],v[1])}constructor(v,C){if(v>C)throw new FS(`startLineNumber ${v} cannot be after endLineNumberExclusive ${C}`);this.startLineNumber=v,this.endLineNumberExclusive=C}contains(v){return this.startLineNumber<=v&&v<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(v){return new mc(this.startLineNumber+v,this.endLineNumberExclusive+v)}deltaLength(v){return new mc(this.startLineNumber,this.endLineNumberExclusive+v)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(v){return new mc(Math.min(this.startLineNumber,v.startLineNumber),Math.max(this.endLineNumberExclusive,v.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(v){const C=Math.max(this.startLineNumber,v.startLineNumber),B=Math.min(this.endLineNumberExclusive,v.endLineNumberExclusive);if(C<=B)return new mc(C,B)}intersectsStrict(v){return this.startLineNumber<v.endLineNumberExclusive&&v.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(v){return this.startLineNumber<=v.endLineNumberExclusive&&v.startLineNumber<=this.endLineNumberExclusive}equals(v){return this.startLineNumber===v.startLineNumber&&this.endLineNumberExclusive===v.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Pl(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Pl(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(v){const C=[];for(let B=this.startLineNumber;B<this.endLineNumberExclusive;B++)C.push(v(B));return C}forEach(v){for(let C=this.startLineNumber;C<this.endLineNumberExclusive;C++)v(C)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(v){return this.startLineNumber<=v&&v<this.endLineNumberExclusive}toOffsetRange(){return new Ml(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class n1{constructor(v=[]){this._normalizedRanges=v}get ranges(){return this._normalizedRanges}addRange(v){if(v.length===0)return;const C=Xj(this._normalizedRanges,ne=>ne.endLineNumberExclusive>=v.startLineNumber),B=gR(this._normalizedRanges,ne=>ne.startLineNumber<=v.endLineNumberExclusive)+1;if(C===B)this._normalizedRanges.splice(C,0,v);else if(C===B-1){const ne=this._normalizedRanges[C];this._normalizedRanges[C]=ne.join(v)}else{const ne=this._normalizedRanges[C].join(this._normalizedRanges[B-1]).join(v);this._normalizedRanges.splice(C,B-C,ne)}}contains(v){const C=hR(this._normalizedRanges,B=>B.startLineNumber<=v);return!!C&&C.endLineNumberExclusive>v}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const C=[];let B=0,ne=0,_e=null;for(;B<this._normalizedRanges.length||ne<v._normalizedRanges.length;){let be=null;if(B<this._normalizedRanges.length&&ne<v._normalizedRanges.length){const Be=this._normalizedRanges[B],ct=v._normalizedRanges[ne];Be.startLineNumber<ct.startLineNumber?(be=Be,B++):(be=ct,ne++)}else B<this._normalizedRanges.length?(be=this._normalizedRanges[B],B++):(be=v._normalizedRanges[ne],ne++);_e===null?_e=be:_e.endLineNumberExclusive>=be.startLineNumber?_e=new mc(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,be.endLineNumberExclusive)):(C.push(_e),_e=be)}return _e!==null&&C.push(_e),new n1(C)}subtractFrom(v){const C=Xj(this._normalizedRanges,be=>be.endLineNumberExclusive>=v.startLineNumber),B=gR(this._normalizedRanges,be=>be.startLineNumber<=v.endLineNumberExclusive)+1;if(C===B)return new n1([v]);const ne=[];let _e=v.startLineNumber;for(let be=C;be<B;be++){const Be=this._normalizedRanges[be];Be.startLineNumber>_e&&ne.push(new mc(_e,Be.startLineNumber)),_e=Be.endLineNumberExclusive}return _e<v.endLineNumberExclusive&&ne.push(new mc(_e,v.endLineNumberExclusive)),new n1(ne)}toString(){return this._normalizedRanges.map(v=>v.toString()).join(", ")}getIntersection(v){const C=[];let B=0,ne=0;for(;B<this._normalizedRanges.length&&ne<v._normalizedRanges.length;){const _e=this._normalizedRanges[B],be=v._normalizedRanges[ne],Be=_e.intersect(be);Be&&!Be.isEmpty&&C.push(Be),_e.endLineNumberExclusive<be.endLineNumberExclusive?B++:ne++}return new n1(C)}getWithDelta(v){return new n1(this._normalizedRanges.map(C=>C.delta(v)))}}class zS{static inverse(v,C,B){const ne=[];let _e=1,be=1;for(const ct of v){const Ae=new YE(new mc(_e,ct.original.startLineNumber),new mc(be,ct.modified.startLineNumber),void 0);Ae.modified.isEmpty||ne.push(Ae),_e=ct.original.endLineNumberExclusive,be=ct.modified.endLineNumberExclusive}const Be=new YE(new mc(_e,C+1),new mc(be,B+1),void 0);return Be.modified.isEmpty||ne.push(Be),ne}constructor(v,C){this.original=v,this.modified=C}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new zS(this.modified,this.original)}join(v){return new zS(this.original.join(v.original),this.modified.join(v.modified))}}class YE extends zS{constructor(v,C,B){super(v,C),this.innerChanges=B}flip(){var v;return new YE(this.modified,this.original,(v=this.innerChanges)===null||v===void 0?void 0:v.map(C=>C.flip()))}}class vR{constructor(v,C){this.originalRange=v,this.modifiedRange=C}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new vR(this.modifiedRange,this.originalRange)}}const i8e=3;class a8e{computeDiff(v,C,B){var ne;const be=new l8e(v,C,{maxComputationTime:B.maxComputationTimeMs,shouldIgnoreTrimWhitespace:B.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Be=[];let ct=null;for(const Ae of be.changes){let Ue;Ae.originalEndLineNumber===0?Ue=new mc(Ae.originalStartLineNumber+1,Ae.originalStartLineNumber+1):Ue=new mc(Ae.originalStartLineNumber,Ae.originalEndLineNumber+1);let Jt;Ae.modifiedEndLineNumber===0?Jt=new mc(Ae.modifiedStartLineNumber+1,Ae.modifiedStartLineNumber+1):Jt=new mc(Ae.modifiedStartLineNumber,Ae.modifiedEndLineNumber+1);let Kt=new YE(Ue,Jt,(ne=Ae.charChanges)===null||ne===void 0?void 0:ne.map(fn=>new vR(new Pl(fn.originalStartLineNumber,fn.originalStartColumn,fn.originalEndLineNumber,fn.originalEndColumn),new Pl(fn.modifiedStartLineNumber,fn.modifiedStartColumn,fn.modifiedEndLineNumber,fn.modifiedEndColumn))));ct&&(ct.modified.endLineNumberExclusive===Kt.modified.startLineNumber||ct.original.endLineNumberExclusive===Kt.original.startLineNumber)&&(Kt=new YE(ct.original.join(Kt.original),ct.modified.join(Kt.modified),ct.innerChanges&&Kt.innerChanges?ct.innerChanges.concat(Kt.innerChanges):void 0),Be.pop()),Be.push(Kt),ct=Kt}return eM(()=>Hle(Be,(Ae,Ue)=>Ue.original.startLineNumber-Ae.original.endLineNumberExclusive===Ue.modified.startLineNumber-Ae.modified.endLineNumberExclusive&&Ae.original.endLineNumberExclusive<Ue.original.startLineNumber&&Ae.modified.endLineNumberExclusive<Ue.modified.startLineNumber)),new tM(Be,[],be.quitEarly)}}function qle(m,v,C,B){return new US(m,v,C).ComputeDiff(B)}let Jle=class{constructor(v){const C=[],B=[];for(let ne=0,_e=v.length;ne<_e;ne++)C[ne]=Yj(v[ne],1),B[ne]=$j(v[ne],1);this.lines=v,this._startColumns=C,this._endColumns=B}getElements(){const v=[];for(let C=0,B=this.lines.length;C<B;C++)v[C]=this.lines[C].substring(this._startColumns[C]-1,this._endColumns[C]-1);return v}getStrictElement(v){return this.lines[v]}getStartLineNumber(v){return v+1}getEndLineNumber(v){return v+1}createCharSequence(v,C,B){const ne=[],_e=[],be=[];let Be=0;for(let ct=C;ct<=B;ct++){const Ae=this.lines[ct],Ue=v?this._startColumns[ct]:1,Jt=v?this._endColumns[ct]:Ae.length+1;for(let Kt=Ue;Kt<Jt;Kt++)ne[Be]=Ae.charCodeAt(Kt-1),_e[Be]=ct+1,be[Be]=Kt,Be++;!v&&ct<B&&(ne[Be]=10,_e[Be]=ct+1,be[Be]=Ae.length+1,Be++)}return new o8e(ne,_e,be)}};class o8e{constructor(v,C,B){this._charCodes=v,this._lineNumbers=C,this._columns=B}toString(){return"["+this._charCodes.map((v,C)=>(v===10?"\\n":String.fromCharCode(v))+`-(${this._lineNumbers[C]},${this._columns[C]})`).join(", ")+"]"}_assertIndex(v,C){if(v<0||v>=C.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}}class gI{constructor(v,C,B,ne,_e,be,Be,ct){this.originalStartLineNumber=v,this.originalStartColumn=C,this.originalEndLineNumber=B,this.originalEndColumn=ne,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=be,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=ct}static createFromDiffChange(v,C,B){const ne=C.getStartLineNumber(v.originalStart),_e=C.getStartColumn(v.originalStart),be=C.getEndLineNumber(v.originalStart+v.originalLength-1),Be=C.getEndColumn(v.originalStart+v.originalLength-1),ct=B.getStartLineNumber(v.modifiedStart),Ae=B.getStartColumn(v.modifiedStart),Ue=B.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),Jt=B.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new gI(ne,_e,be,Be,ct,Ae,Ue,Jt)}}function s8e(m){if(m.length<=1)return m;const v=[m[0]];let C=v[0];for(let B=1,ne=m.length;B<ne;B++){const _e=m[B],be=_e.originalStart-(C.originalStart+C.originalLength),Be=_e.modifiedStart-(C.modifiedStart+C.modifiedLength);Math.min(be,Be)<i8e?(C.originalLength=_e.originalStart+_e.originalLength-C.originalStart,C.modifiedLength=_e.modifiedStart+_e.modifiedLength-C.modifiedStart):(v.push(_e),C=_e)}return v}class bR{constructor(v,C,B,ne,_e){this.originalStartLineNumber=v,this.originalEndLineNumber=C,this.modifiedStartLineNumber=B,this.modifiedEndLineNumber=ne,this.charChanges=_e}static createFromDiffResult(v,C,B,ne,_e,be,Be){let ct,Ae,Ue,Jt,Kt;if(C.originalLength===0?(ct=B.getStartLineNumber(C.originalStart)-1,Ae=0):(ct=B.getStartLineNumber(C.originalStart),Ae=B.getEndLineNumber(C.originalStart+C.originalLength-1)),C.modifiedLength===0?(Ue=ne.getStartLineNumber(C.modifiedStart)-1,Jt=0):(Ue=ne.getStartLineNumber(C.modifiedStart),Jt=ne.getEndLineNumber(C.modifiedStart+C.modifiedLength-1)),be&&C.originalLength>0&&C.originalLength<20&&C.modifiedLength>0&&C.modifiedLength<20&&_e()){const fn=B.createCharSequence(v,C.originalStart,C.originalStart+C.originalLength-1),kr=ne.createCharSequence(v,C.modifiedStart,C.modifiedStart+C.modifiedLength-1);if(fn.getElements().length>0&&kr.getElements().length>0){let ui=qle(fn,kr,_e,!0).changes;Be&&(ui=s8e(ui)),Kt=[];for(let la=0,Yn=ui.length;la<Yn;la++)Kt.push(gI.createFromDiffChange(ui[la],fn,kr))}}return new bR(ct,Ae,Ue,Jt,Kt)}}class l8e{constructor(v,C,B){this.shouldComputeCharChanges=B.shouldComputeCharChanges,this.shouldPostProcessCharChanges=B.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=B.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=B.shouldMakePrettyDiff,this.originalLines=v,this.modifiedLines=C,this.original=new Jle(v),this.modified=new Jle(C),this.continueLineDiff=Kle(B.maxComputationTime),this.continueCharDiff=Kle(B.maxComputationTime===0?0:Math.min(B.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const v=qle(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),C=v.changes,B=v.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Be=[];for(let ct=0,Ae=C.length;ct<Ae;ct++)Be.push(bR.createFromDiffResult(this.shouldIgnoreTrimWhitespace,C[ct],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:B,changes:Be}}const ne=[];let _e=0,be=0;for(let Be=-1,ct=C.length;Be<ct;Be++){const Ae=Be+1<ct?C[Be+1]:null,Ue=Ae?Ae.originalStart:this.originalLines.length,Jt=Ae?Ae.modifiedStart:this.modifiedLines.length;for(;_e<Ue&&be<Jt;){const Kt=this.originalLines[_e],fn=this.modifiedLines[be];if(Kt!==fn){{let kr=Yj(Kt,1),ui=Yj(fn,1);for(;kr>1&&ui>1;){const la=Kt.charCodeAt(kr-2),Yn=fn.charCodeAt(ui-2);if(la!==Yn)break;kr--,ui--}(kr>1||ui>1)&&this._pushTrimWhitespaceCharChange(ne,_e+1,1,kr,be+1,1,ui)}{let kr=$j(Kt,1),ui=$j(fn,1);const la=Kt.length+1,Yn=fn.length+1;for(;kr<la&&ui<Yn;){const nn=Kt.charCodeAt(kr-1),Li=Kt.charCodeAt(ui-1);if(nn!==Li)break;kr++,ui++}(kr<la||ui<Yn)&&this._pushTrimWhitespaceCharChange(ne,_e+1,kr,la,be+1,ui,Yn)}}_e++,be++}Ae&&(ne.push(bR.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Ae,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),_e+=Ae.originalLength,be+=Ae.modifiedLength)}return{quitEarly:B,changes:ne}}_pushTrimWhitespaceCharChange(v,C,B,ne,_e,be,Be){if(this._mergeTrimWhitespaceCharChange(v,C,B,ne,_e,be,Be))return;let ct;this.shouldComputeCharChanges&&(ct=[new gI(C,B,C,ne,_e,be,_e,Be)]),v.push(new bR(C,C,_e,_e,ct))}_mergeTrimWhitespaceCharChange(v,C,B,ne,_e,be,Be){const ct=v.length;if(ct===0)return!1;const Ae=v[ct-1];return Ae.originalEndLineNumber===0||Ae.modifiedEndLineNumber===0?!1:Ae.originalEndLineNumber===C&&Ae.modifiedEndLineNumber===_e?(this.shouldComputeCharChanges&&Ae.charChanges&&Ae.charChanges.push(new gI(C,B,C,ne,_e,be,_e,Be)),!0):Ae.originalEndLineNumber+1===C&&Ae.modifiedEndLineNumber+1===_e?(Ae.originalEndLineNumber=C,Ae.modifiedEndLineNumber=_e,this.shouldComputeCharChanges&&Ae.charChanges&&Ae.charChanges.push(new gI(C,B,C,ne,_e,be,_e,Be)),!0):!1}}function Yj(m,v){const C=jNe(m);return C===-1?v:C+1}function $j(m,v){const C=HNe(m);return C===-1?v:C+2}function Kle(m){if(m===0)return()=>!0;const v=Date.now();return()=>Date.now()-v<m}class $E{static trivial(v,C){return new $E([new zf(Ml.ofLength(v.length),Ml.ofLength(C.length))],!1)}static trivialTimedOut(v,C){return new $E([new zf(Ml.ofLength(v.length),Ml.ofLength(C.length))],!0)}constructor(v,C){this.diffs=v,this.hitTimeout=C}}class zf{static invert(v,C){const B=[];return xOe(v,(ne,_e)=>{B.push(zf.fromOffsetPairs(ne?ne.getEndExclusives():r1.zero,_e?_e.getStarts():new r1(C,(ne?ne.seq2Range.endExclusive-ne.seq1Range.endExclusive:0)+C)))}),B}static fromOffsetPairs(v,C){return new zf(new Ml(v.offset1,C.offset1),new Ml(v.offset2,C.offset2))}constructor(v,C){this.seq1Range=v,this.seq2Range=C}swap(){return new zf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(v){return new zf(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new zf(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new zf(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new zf(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){const C=this.seq1Range.intersect(v.seq1Range),B=this.seq2Range.intersect(v.seq2Range);if(!(!C||!B))return new zf(C,B)}getStarts(){return new r1(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new r1(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class r1{constructor(v,C){this.offset1=v,this.offset2=C}toString(){return`${this.offset1} <-> ${this.offset2}`}}r1.zero=new r1(0,0),r1.max=new r1(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class ER{isValid(){return!0}}ER.instance=new ER;class c8e{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new FS("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Qj{constructor(v,C){this.width=v,this.height=C,this.array=[],this.array=new Array(v*C)}get(v,C){return this.array[v+C*this.width]}set(v,C,B){this.array[v+C*this.width]=B}}function Zj(m){return m===32||m===9}class yI{static getKey(v){let C=this.chrKeys.get(v);return C===void 0&&(C=this.chrKeys.size,this.chrKeys.set(v,C)),C}constructor(v,C,B){this.range=v,this.lines=C,this.source=B,this.histogram=[];let ne=0;for(let _e=v.startLineNumber-1;_e<v.endLineNumberExclusive-1;_e++){const be=C[_e];for(let ct=0;ct<be.length;ct++){ne++;const Ae=be[ct],Ue=yI.getKey(Ae);this.histogram[Ue]=(this.histogram[Ue]||0)+1}ne++;const Be=yI.getKey(` `);this.histogram[Be]=(this.histogram[Be]||0)+1}this.totalCount=ne}computeSimilarity(v){var C,B;let ne=0;const _e=Math.max(this.histogram.length,v.histogram.length);for(let be=0;be<_e;be++)ne+=Math.abs(((C=this.histogram[be])!==null&&C!==void 0?C:0)-((B=v.histogram[be])!==null&&B!==void 0?B:0));return 1-ne/(this.totalCount+v.totalCount)}}yI.chrKeys=new Map;class u8e{compute(v,C,B=ER.instance,ne){if(v.length===0||C.length===0)return $E.trivial(v,C);const _e=new Qj(v.length,C.length),be=new Qj(v.length,C.length),Be=new Qj(v.length,C.length);for(let kr=0;kr<v.length;kr++)for(let ui=0;ui<C.length;ui++){if(!B.isValid())return $E.trivialTimedOut(v,C);const la=kr===0?0:_e.get(kr-1,ui),Yn=ui===0?0:_e.get(kr,ui-1);let nn;v.getElement(kr)===C.getElement(ui)?(kr===0||ui===0?nn=0:nn=_e.get(kr-1,ui-1),kr>0&&ui>0&&be.get(kr-1,ui-1)===3&&(nn+=Be.get(kr-1,ui-1)),nn+=ne?ne(kr,ui):1):nn=-1;const Li=Math.max(la,Yn,nn);if(Li===nn){const mi=kr>0&&ui>0?Be.get(kr-1,ui-1):0;Be.set(kr,ui,mi+1),be.set(kr,ui,3)}else Li===la?(Be.set(kr,ui,0),be.set(kr,ui,1)):Li===Yn&&(Be.set(kr,ui,0),be.set(kr,ui,2));_e.set(kr,ui,Li)}const ct=[];let Ae=v.length,Ue=C.length;function Jt(kr,ui){(kr+1!==Ae||ui+1!==Ue)&&ct.push(new zf(new Ml(kr+1,Ae),new Ml(ui+1,Ue))),Ae=kr,Ue=ui}let Kt=v.length-1,fn=C.length-1;for(;Kt>=0&&fn>=0;)be.get(Kt,fn)===3?(Jt(Kt,fn),Kt--,fn--):be.get(Kt,fn)===1?Kt--:fn--;return Jt(-1,-1),ct.reverse(),new $E(ct,!1)}}class Xle{compute(v,C,B=ER.instance){if(v.length===0||C.length===0)return $E.trivial(v,C);const ne=v,_e=C;function be(ui,la){for(;ui<ne.length&&la<_e.length&&ne.getElement(ui)===_e.getElement(la);)ui++,la++;return ui}let Be=0;const ct=new d8e;ct.set(0,be(0,0));const Ae=new f8e;Ae.set(0,ct.get(0)===0?null:new Yle(null,0,0,ct.get(0)));let Ue=0;e:for(;;){if(Be++,!B.isValid())return $E.trivialTimedOut(ne,_e);const ui=-Math.min(Be,_e.length+Be%2),la=Math.min(Be,ne.length+Be%2);for(Ue=ui;Ue<=la;Ue+=2){const Yn=Ue===la?-1:ct.get(Ue+1),nn=Ue===ui?-1:ct.get(Ue-1)+1,Li=Math.min(Math.max(Yn,nn),ne.length),mi=Li-Ue;if(Li>ne.length||mi>_e.length)continue;const va=be(Li,mi);ct.set(Ue,va);const Bo=Li===Yn?Ae.get(Ue+1):Ae.get(Ue-1);if(Ae.set(Ue,va!==Li?new Yle(Bo,Li,mi,va-Li):Bo),ct.get(Ue)===ne.length&&ct.get(Ue)-Ue===_e.length)break e}}let Jt=Ae.get(Ue);const Kt=[];let fn=ne.length,kr=_e.length;for(;;){const ui=Jt?Jt.x+Jt.length:0,la=Jt?Jt.y+Jt.length:0;if((ui!==fn||la!==kr)&&Kt.push(new zf(new Ml(ui,fn),new Ml(la,kr))),!Jt)break;fn=Jt.x,kr=Jt.y,Jt=Jt.prev}return Kt.reverse(),new $E(Kt,!1)}}class Yle{constructor(v,C,B,ne){this.prev=v,this.x=C,this.y=B,this.length=ne}}class d8e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,C){if(v<0){if(v=-v-1,v>=this.negativeArr.length){const B=this.negativeArr;this.negativeArr=new Int32Array(B.length*2),this.negativeArr.set(B)}this.negativeArr[v]=C}else{if(v>=this.positiveArr.length){const B=this.positiveArr;this.positiveArr=new Int32Array(B.length*2),this.positiveArr.set(B)}this.positiveArr[v]=C}}}class f8e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,C){v<0?(v=-v-1,this.negativeArr[v]=C):this.positiveArr[v]=C}}class _8e{constructor(){this.map=new Map}add(v,C){let B=this.map.get(v);B||(B=new Set,this.map.set(v,B)),B.add(C)}delete(v,C){const B=this.map.get(v);B&&(B.delete(C),B.size===0&&this.map.delete(v))}forEach(v,C){const B=this.map.get(v);B&&B.forEach(C)}get(v){const C=this.map.get(v);return C||new Set}}class nM{constructor(v,C,B){this.lines=v,this.considerWhitespaceChanges=B,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let ne=!1;C.start>0&&C.endExclusive>=v.length&&(C=new Ml(C.start-1,C.endExclusive),ne=!0),this.lineRange=C,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_e<this.lineRange.endExclusive;_e++){let be=v[_e],Be=0;if(ne)Be=be.length,be="",ne=!1;else if(!B){const ct=be.trimStart();Be=be.length-ct.length,be=ct.trimEnd()}this.additionalOffsetByLine.push(Be);for(let ct=0;ct<be.length;ct++)this.elements.push(be.charCodeAt(ct));_e<v.length-1&&(this.elements.push(` `.charCodeAt(0)),this.firstCharOffsetByLine[_e-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Ml(0,this.length))}getText(v){return this.elements.slice(v.start,v.endExclusive).map(C=>String.fromCharCode(C)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){const C=Qle(v>0?this.elements[v-1]:-1),B=Qle(v<this.elements.length?this.elements[v]:-1);if(C===6&&B===7)return 0;let ne=0;return C!==B&&(ne+=10,C===0&&B===1&&(ne+=1)),ne+=$le(C),ne+=$le(B),ne}translateOffset(v){if(this.lineRange.isEmpty)return new Wp(this.lineRange.start+1,1);const C=gR(this.firstCharOffsetByLine,B=>B<=v);return new Wp(this.lineRange.start+C+1,v-this.firstCharOffsetByLine[C]+this.additionalOffsetByLine[C]+1)}translateRange(v){return Pl.fromPositions(this.translateOffset(v.start),this.translateOffset(v.endExclusive))}findWordContaining(v){if(v<0||v>=this.elements.length||!eH(this.elements[v]))return;let C=v;for(;C>0&&eH(this.elements[C-1]);)C--;let B=v;for(;B<this.elements.length&&eH(this.elements[B]);)B++;return new Ml(C,B)}countLinesIn(v){return this.translateOffset(v.endExclusive).lineNumber-this.translateOffset(v.start).lineNumber}isStronglyEqual(v,C){return this.elements[v]===this.elements[C]}extendToFullLines(v){var C,B;const ne=(C=hR(this.firstCharOffsetByLine,be=>be<=v.start))!==null&&C!==void 0?C:0,_e=(B=r8e(this.firstCharOffsetByLine,be=>v.endExclusive<=be))!==null&&B!==void 0?B:this.elements.length;return new Ml(ne,_e)}}function eH(m){return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57}const p8e={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function $le(m){return p8e[m]}function Qle(m){return m===10?7:m===13?6:Zj(m)?5:m>=97&&m<=122?0:m>=65&&m<=90?1:m>=48&&m<=57?2:m===-1?3:4}function m8e(m,v,C,B,ne,_e){let{moves:be,excludedChanges:Be}=h8e(m,v,C,_e);if(!_e.isValid())return[];const ct=m.filter(Ue=>!Be.has(Ue)),Ae=g8e(ct,B,ne,v,C,_e);return COe(be,Ae),be=y8e(be),be=be.filter(Ue=>Ue.original.toOffsetRange().slice(v).map(Kt=>Kt.trim()).join(` `).length>=10),be=v8e(m,be),be}function h8e(m,v,C,B){const ne=[],_e=m.filter(ct=>ct.modified.isEmpty&&ct.original.length>=3).map(ct=>new yI(ct.original,v,ct)),be=new Set(m.filter(ct=>ct.original.isEmpty&&ct.modified.length>=3).map(ct=>new yI(ct.modified,C,ct))),Be=new Set;for(const ct of _e){let Ae=-1,Ue;for(const Jt of be){const Kt=ct.computeSimilarity(Jt);Kt>Ae&&(Ae=Kt,Ue=Jt)}if(Ae>.9&&Ue&&(be.delete(Ue),ne.push(new zS(ct.range,Ue.range)),Be.add(ct.source),Be.add(Ue.source)),!B.isValid())return{moves:ne,excludedChanges:Be}}return{moves:ne,excludedChanges:Be}}function g8e(m,v,C,B,ne,_e){const be=[],Be=new _8e;for(const Kt of m)for(let fn=Kt.original.startLineNumber;fn<Kt.original.endLineNumberExclusive-2;fn++){const kr=`${v[fn-1]}:${v[fn+1-1]}:${v[fn+2-1]}`;Be.add(kr,{range:new mc(fn,fn+3)})}const ct=[];m.sort(K4(Kt=>Kt.modified.startLineNumber,X4));for(const Kt of m){let fn=[];for(let kr=Kt.modified.startLineNumber;kr<Kt.modified.endLineNumberExclusive-2;kr++){const ui=`${C[kr-1]}:${C[kr+1-1]}:${C[kr+2-1]}`,la=new mc(kr,kr+3),Yn=[];Be.forEach(ui,({range:nn})=>{for(const mi of fn)if(mi.originalLineRange.endLineNumberExclusive+1===nn.endLineNumberExclusive&&mi.modifiedLineRange.endLineNumberExclusive+1===la.endLineNumberExclusive){mi.originalLineRange=new mc(mi.originalLineRange.startLineNumber,nn.endLineNumberExclusive),mi.modifiedLineRange=new mc(mi.modifiedLineRange.startLineNumber,la.endLineNumberExclusive),Yn.push(mi);return}const Li={modifiedLineRange:la,originalLineRange:nn};ct.push(Li),Yn.push(Li)}),fn=Yn}if(!_e.isValid())return[]}ct.sort(LOe(K4(Kt=>Kt.modifiedLineRange.length,X4)));const Ae=new n1,Ue=new n1;for(const Kt of ct){const fn=Kt.modifiedLineRange.startLineNumber-Kt.originalLineRange.startLineNumber,kr=Ae.subtractFrom(Kt.modifiedLineRange),ui=Ue.subtractFrom(Kt.originalLineRange).getWithDelta(fn),la=kr.getIntersection(ui);for(const Yn of la.ranges){if(Yn.length<3)continue;const nn=Yn,Li=Yn.delta(-fn);be.push(new zS(Li,nn)),Ae.addRange(nn),Ue.addRange(Li)}}be.sort(K4(Kt=>Kt.original.startLineNumber,X4));const Jt=new yR(m);for(let Kt=0;Kt<be.length;Kt++){const fn=be[Kt],kr=Jt.findLastMonotonous(Bo=>Bo.original.startLineNumber<=fn.original.startLineNumber),ui=hR(m,Bo=>Bo.modified.startLineNumber<=fn.modified.startLineNumber),la=Math.max(fn.original.startLineNumber-kr.original.startLineNumber,fn.modified.startLineNumber-ui.modified.startLineNumber),Yn=Jt.findLastMonotonous(Bo=>Bo.original.startLineNumber<fn.original.endLineNumberExclusive),nn=hR(m,Bo=>Bo.modified.startLineNumber<fn.modified.endLineNumberExclusive),Li=Math.max(Yn.original.endLineNumberExclusive-fn.original.endLineNumberExclusive,nn.modified.endLineNumberExclusive-fn.modified.endLineNumberExclusive);let mi;for(mi=0;mi<la;mi++){const Bo=fn.original.startLineNumber-mi-1,jr=fn.modified.startLineNumber-mi-1;if(Bo>B.length||jr>ne.length||Ae.contains(jr)||Ue.contains(Bo)||!Zle(B[Bo-1],ne[jr-1],_e))break}mi>0&&(Ue.addRange(new mc(fn.original.startLineNumber-mi,fn.original.startLineNumber)),Ae.addRange(new mc(fn.modified.startLineNumber-mi,fn.modified.startLineNumber)));let va;for(va=0;va<Li;va++){const Bo=fn.original.endLineNumberExclusive+va,jr=fn.modified.endLineNumberExclusive+va;if(Bo>B.length||jr>ne.length||Ae.contains(jr)||Ue.contains(Bo)||!Zle(B[Bo-1],ne[jr-1],_e))break}va>0&&(Ue.addRange(new mc(fn.original.endLineNumberExclusive,fn.original.endLineNumberExclusive+va)),Ae.addRange(new mc(fn.modified.endLineNumberExclusive,fn.modified.endLineNumberExclusive+va))),(mi>0||va>0)&&(be[Kt]=new zS(new mc(fn.original.startLineNumber-mi,fn.original.endLineNumberExclusive+va),new mc(fn.modified.startLineNumber-mi,fn.modified.endLineNumberExclusive+va)))}return be}function Zle(m,v,C){if(m.trim()===v.trim())return!0;if(m.length>300&&v.length>300)return!1;const ne=new Xle().compute(new nM([m],new Ml(0,1),!1),new nM([v],new Ml(0,1),!1),C);let _e=0;const be=zf.invert(ne.diffs,m.length);for(const Ue of be)Ue.seq1Range.forEach(Jt=>{Zj(m.charCodeAt(Jt))||_e++});function Be(Ue){let Jt=0;for(let Kt=0;Kt<m.length;Kt++)Zj(Ue.charCodeAt(Kt))||Jt++;return Jt}const ct=Be(m.length>v.length?m:v);return _e/ct>.6&&ct>10}function y8e(m){if(m.length===0)return m;m.sort(K4(C=>C.original.startLineNumber,X4));const v=[m[0]];for(let C=1;C<m.length;C++){const B=v[v.length-1],ne=m[C],_e=ne.original.startLineNumber-B.original.endLineNumberExclusive,be=ne.modified.startLineNumber-B.modified.endLineNumberExclusive;if(_e>=0&&be>=0&&_e+be<=2){v[v.length-1]=B.join(ne);continue}v.push(ne)}return v}function v8e(m,v){const C=new yR(m);return v=v.filter(B=>{const ne=C.findLastMonotonous(Be=>Be.original.endLineNumberExclusive<B.original.endLineNumberExclusive)||new zS(new mc(1,1),new mc(1,1)),_e=hR(m,Be=>Be.modified.endLineNumberExclusive<B.modified.endLineNumberExclusive);return ne!==_e}),v}function ece(m,v,C){let B=C;return B=b8e(m,v,B),B=E8e(m,v,B),B}function b8e(m,v,C){if(C.length===0)return C;const B=[];B.push(C[0]);for(let _e=1;_e<C.length;_e++){const be=B[B.length-1];let Be=C[_e];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const ct=Be.seq1Range.start-be.seq1Range.endExclusive;let Ae;for(Ae=1;Ae<=ct&&!(m.getElement(Be.seq1Range.start-Ae)!==m.getElement(Be.seq1Range.endExclusive-Ae)||v.getElement(Be.seq2Range.start-Ae)!==v.getElement(Be.seq2Range.endExclusive-Ae));Ae++);if(Ae--,Ae===ct){B[B.length-1]=new zf(new Ml(be.seq1Range.start,Be.seq1Range.endExclusive-ct),new Ml(be.seq2Range.start,Be.seq2Range.endExclusive-ct));continue}Be=Be.delta(-Ae)}B.push(Be)}const ne=[];for(let _e=0;_e<B.length-1;_e++){const be=B[_e+1];let Be=B[_e];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const ct=be.seq1Range.start-Be.seq1Range.endExclusive;let Ae;for(Ae=0;Ae<ct&&!(!m.isStronglyEqual(Be.seq1Range.start+Ae,Be.seq1Range.endExclusive+Ae)||!v.isStronglyEqual(Be.seq2Range.start+Ae,Be.seq2Range.endExclusive+Ae));Ae++);if(Ae===ct){B[_e+1]=new zf(new Ml(Be.seq1Range.start+ct,be.seq1Range.endExclusive),new Ml(Be.seq2Range.start+ct,be.seq2Range.endExclusive));continue}Ae>0&&(Be=Be.delta(Ae))}ne.push(Be)}return B.length>0&&ne.push(B[B.length-1]),ne}function E8e(m,v,C){if(!m.getBoundaryScore||!v.getBoundaryScore)return C;for(let B=0;B<C.length;B++){const ne=B>0?C[B-1]:void 0,_e=C[B],be=B+1<C.length?C[B+1]:void 0,Be=new Ml(ne?ne.seq1Range.start+1:0,be?be.seq1Range.endExclusive-1:m.length),ct=new Ml(ne?ne.seq2Range.start+1:0,be?be.seq2Range.endExclusive-1:v.length);_e.seq1Range.isEmpty?C[B]=tce(_e,m,v,Be,ct):_e.seq2Range.isEmpty&&(C[B]=tce(_e.swap(),v,m,ct,Be).swap())}return C}function tce(m,v,C,B,ne){let be=1;for(;m.seq1Range.start-be>=B.start&&m.seq2Range.start-be>=ne.start&&C.isStronglyEqual(m.seq2Range.start-be,m.seq2Range.endExclusive-be)&&be<100;)be++;be--;let Be=0;for(;m.seq1Range.start+Be<B.endExclusive&&m.seq2Range.endExclusive+Be<ne.endExclusive&&C.isStronglyEqual(m.seq2Range.start+Be,m.seq2Range.endExclusive+Be)&&Be<100;)Be++;if(be===0&&Be===0)return m;let ct=0,Ae=-1;for(let Ue=-be;Ue<=Be;Ue++){const Jt=m.seq2Range.start+Ue,Kt=m.seq2Range.endExclusive+Ue,fn=m.seq1Range.start+Ue,kr=v.getBoundaryScore(fn)+C.getBoundaryScore(Jt)+C.getBoundaryScore(Kt);kr>Ae&&(Ae=kr,ct=Ue)}return m.delta(ct)}function T8e(m,v,C){const B=[];for(const ne of C){const _e=B[B.length-1];if(!_e){B.push(ne);continue}ne.seq1Range.start-_e.seq1Range.endExclusive<=2||ne.seq2Range.start-_e.seq2Range.endExclusive<=2?B[B.length-1]=new zf(_e.seq1Range.join(ne.seq1Range),_e.seq2Range.join(ne.seq2Range)):B.push(ne)}return B}function S8e(m,v,C){const B=[];let ne;function _e(){if(!ne)return;const Be=ne.s1Range.length-ne.deleted;ne.s2Range.length-ne.added,Math.max(ne.deleted,ne.added)+(ne.count-1)>Be&&B.push(new zf(ne.s1Range,ne.s2Range)),ne=void 0}for(const Be of C){let ct=function(fn,kr){var ui,la,Yn,nn;if(!ne||!ne.s1Range.containsRange(fn)||!ne.s2Range.containsRange(kr))if(ne&&!(ne.s1Range.endExclusive<fn.start&&ne.s2Range.endExclusive<kr.start)){const va=Ml.tryCreate(ne.s1Range.endExclusive,fn.start),Bo=Ml.tryCreate(ne.s2Range.endExclusive,kr.start);ne.deleted+=(ui=va==null?void 0:va.length)!==null&&ui!==void 0?ui:0,ne.added+=(la=Bo==null?void 0:Bo.length)!==null&&la!==void 0?la:0,ne.s1Range=ne.s1Range.join(fn),ne.s2Range=ne.s2Range.join(kr)}else _e(),ne={added:0,deleted:0,count:0,s1Range:fn,s2Range:kr};const Li=fn.intersect(Be.seq1Range),mi=kr.intersect(Be.seq2Range);ne.count++,ne.deleted+=(Yn=Li==null?void 0:Li.length)!==null&&Yn!==void 0?Yn:0,ne.added+=(nn=mi==null?void 0:mi.length)!==null&&nn!==void 0?nn:0};const Ae=m.findWordContaining(Be.seq1Range.start-1),Ue=v.findWordContaining(Be.seq2Range.start-1),Jt=m.findWordContaining(Be.seq1Range.endExclusive),Kt=v.findWordContaining(Be.seq2Range.endExclusive);Ae&&Jt&&Ue&&Kt&&Ae.equals(Jt)&&Ue.equals(Kt)?ct(Ae,Ue):(Ae&&Ue&&ct(Ae,Ue),Jt&&Kt&&ct(Jt,Kt))}return _e(),x8e(C,B)}function x8e(m,v){const C=[];for(;m.length>0||v.length>0;){const B=m[0],ne=v[0];let _e;B&&(!ne||B.seq1Range.start<ne.seq1Range.start)?_e=m.shift():_e=v.shift(),C.length>0&&C[C.length-1].seq1Range.endExclusive>=_e.seq1Range.start?C[C.length-1]=C[C.length-1].join(_e):C.push(_e)}return C}function A8e(m,v,C){let B=C;if(B.length===0)return B;let ne=0,_e;do{_e=!1;const be=[B[0]];for(let Be=1;Be<B.length;Be++){let Ue=function(Kt,fn){const kr=new Ml(Ae.seq1Range.endExclusive,ct.seq1Range.start);return m.getText(kr).replace(/\s/g,"").length<=4&&(Kt.seq1Range.length+Kt.seq2Range.length>5||fn.seq1Range.length+fn.seq2Range.length>5)};const ct=B[Be],Ae=be[be.length-1];Ue(Ae,ct)?(_e=!0,be[be.length-1]=be[be.length-1].join(ct)):be.push(ct)}B=be}while(ne++<10&&_e);return B}function C8e(m,v,C){let B=C;if(B.length===0)return B;let ne=0,_e;do{_e=!1;const Be=[B[0]];for(let ct=1;ct<B.length;ct++){let Jt=function(fn,kr){const ui=new Ml(Ue.seq1Range.endExclusive,Ae.seq1Range.start);if(m.countLinesIn(ui)>5||ui.length>500)return!1;const Yn=m.getText(ui).trim();if(Yn.length>20||Yn.split(/\r\n|\r|\n/).length>1)return!1;const nn=m.countLinesIn(fn.seq1Range),Li=fn.seq1Range.length,mi=v.countLinesIn(fn.seq2Range),va=fn.seq2Range.length,Bo=m.countLinesIn(kr.seq1Range),jr=kr.seq1Range.length,Zo=v.countLinesIn(kr.seq2Range),Tc=kr.seq2Range.length,Gc=2*40+50;function lr(Ri){return Math.min(Ri,Gc)}return Math.pow(Math.pow(lr(nn*40+Li),1.5)+Math.pow(lr(mi*40+va),1.5),1.5)+Math.pow(Math.pow(lr(Bo*40+jr),1.5)+Math.pow(lr(Zo*40+Tc),1.5),1.5)>Math.pow(Math.pow(Gc,1.5),1.5)*1.3};const Ae=B[ct],Ue=Be[Be.length-1];Jt(Ue,Ae)?(_e=!0,Be[Be.length-1]=Be[Be.length-1].join(Ae)):Be.push(Ae)}B=Be}while(ne++<10&&_e);const be=[];return AOe(B,(Be,ct,Ae)=>{let Ue=ct;function Jt(Yn){return Yn.length>0&&Yn.trim().length<=3&&ct.seq1Range.length+ct.seq2Range.length>100}const Kt=m.extendToFullLines(ct.seq1Range),fn=m.getText(new Ml(Kt.start,ct.seq1Range.start));Jt(fn)&&(Ue=Ue.deltaStart(-fn.length));const kr=m.getText(new Ml(ct.seq1Range.endExclusive,Kt.endExclusive));Jt(kr)&&(Ue=Ue.deltaEnd(kr.length));const ui=zf.fromOffsetPairs(Be?Be.getEndExclusives():r1.zero,Ae?Ae.getStarts():r1.max),la=Ue.intersect(ui);be.push(la)}),be}class nce{constructor(v,C){this.trimmedHash=v,this.lines=C}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){const C=v===0?0:rce(this.lines[v-1]),B=v===this.lines.length?0:rce(this.lines[v]);return 1e3-(C+B)}getText(v){return this.lines.slice(v.start,v.endExclusive).join(` `)}isStronglyEqual(v,C){return this.lines[v]===this.lines[C]}}function rce(m){let v=0;for(;v<m.length&&(m.charCodeAt(v)===32||m.charCodeAt(v)===9);)v++;return v}class L8e{constructor(){this.dynamicProgrammingDiffing=new u8e,this.myersDiffingAlgorithm=new Xle}computeDiff(v,C,B){if(v.length<=1&&TOe(v,C,(va,Bo)=>va===Bo))return new tM([],[],!1);if(v.length===1&&v[0].length===0||C.length===1&&C[0].length===0)return new tM([new YE(new mc(1,v.length+1),new mc(1,C.length+1),[new vR(new Pl(1,1,v.length,v[0].length+1),new Pl(1,1,C.length,C[0].length+1))])],[],!1);const ne=B.maxComputationTimeMs===0?ER.instance:new c8e(B.maxComputationTimeMs),_e=!B.ignoreTrimWhitespace,be=new Map;function Be(va){let Bo=be.get(va);return Bo===void 0&&(Bo=be.size,be.set(va,Bo)),Bo}const ct=v.map(va=>Be(va.trim())),Ae=C.map(va=>Be(va.trim())),Ue=new nce(ct,v),Jt=new nce(Ae,C),Kt=(()=>Ue.length+Jt.length<1700?this.dynamicProgrammingDiffing.compute(Ue,Jt,ne,(va,Bo)=>v[va]===C[Bo]?C[Bo].length===0?.1:1+Math.log(1+C[Bo].length):.99):this.myersDiffingAlgorithm.compute(Ue,Jt))();let fn=Kt.diffs,kr=Kt.hitTimeout;fn=ece(Ue,Jt,fn),fn=A8e(Ue,Jt,fn);const ui=[],la=va=>{if(_e)for(let Bo=0;Bo<va;Bo++){const jr=Yn+Bo,Zo=nn+Bo;if(v[jr]!==C[Zo]){const Tc=this.refineDiff(v,C,new zf(new Ml(jr,jr+1),new Ml(Zo,Zo+1)),ne,_e);for(const Gc of Tc.mappings)ui.push(Gc);Tc.hitTimeout&&(kr=!0)}}};let Yn=0,nn=0;for(const va of fn){eM(()=>va.seq1Range.start-Yn===va.seq2Range.start-nn);const Bo=va.seq1Range.start-Yn;la(Bo),Yn=va.seq1Range.endExclusive,nn=va.seq2Range.endExclusive;const jr=this.refineDiff(v,C,va,ne,_e);jr.hitTimeout&&(kr=!0);for(const Zo of jr.mappings)ui.push(Zo)}la(v.length-Yn);const Li=ice(ui,v,C);let mi=[];return B.computeMoves&&(mi=this.computeMoves(Li,v,C,ct,Ae,ne,_e)),eM(()=>{function va(jr,Zo){if(jr.lineNumber<1||jr.lineNumber>Zo.length)return!1;const Tc=Zo[jr.lineNumber-1];return!(jr.column<1||jr.column>Tc.length+1)}function Bo(jr,Zo){return!(jr.startLineNumber<1||jr.startLineNumber>Zo.length+1||jr.endLineNumberExclusive<1||jr.endLineNumberExclusive>Zo.length+1)}for(const jr of Li){if(!jr.innerChanges)return!1;for(const Zo of jr.innerChanges)if(!(va(Zo.modifiedRange.getStartPosition(),C)&&va(Zo.modifiedRange.getEndPosition(),C)&&va(Zo.originalRange.getStartPosition(),v)&&va(Zo.originalRange.getEndPosition(),v)))return!1;if(!Bo(jr.modified,C)||!Bo(jr.original,v))return!1}return!0}),new tM(Li,mi,kr)}computeMoves(v,C,B,ne,_e,be,Be){return m8e(v,C,B,ne,_e,be).map(Ue=>{const Jt=this.refineDiff(C,B,new zf(Ue.original.toOffsetRange(),Ue.modified.toOffsetRange()),be,Be),Kt=ice(Jt.mappings,C,B,!0);return new n8e(Ue,Kt)})}refineDiff(v,C,B,ne,_e){const be=new nM(v,B.seq1Range,_e),Be=new nM(C,B.seq2Range,_e),ct=be.length+Be.length<500?this.dynamicProgrammingDiffing.compute(be,Be,ne):this.myersDiffingAlgorithm.compute(be,Be,ne);let Ae=ct.diffs;return Ae=ece(be,Be,Ae),Ae=S8e(be,Be,Ae),Ae=T8e(be,Be,Ae),Ae=C8e(be,Be,Ae),{mappings:Ae.map(Jt=>new vR(be.translateRange(Jt.seq1Range),Be.translateRange(Jt.seq2Range))),hitTimeout:ct.hitTimeout}}}function ice(m,v,C,B=!1){const ne=[];for(const _e of SOe(m.map(be=>I8e(be,v,C)),(be,Be)=>be.original.overlapOrTouch(Be.original)||be.modified.overlapOrTouch(Be.modified))){const be=_e[0],Be=_e[_e.length-1];ne.push(new YE(be.original.join(Be.original),be.modified.join(Be.modified),_e.map(ct=>ct.innerChanges[0])))}return eM(()=>!B&&ne.length>0&&ne[0].original.startLineNumber!==ne[0].modified.startLineNumber?!1:Hle(ne,(_e,be)=>be.original.startLineNumber-_e.original.endLineNumberExclusive===be.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive<be.original.startLineNumber&&_e.modified.endLineNumberExclusive<be.modified.startLineNumber)),ne}function I8e(m,v,C){let B=0,ne=0;m.modifiedRange.endColumn===1&&m.originalRange.endColumn===1&&m.originalRange.startLineNumber+B<=m.originalRange.endLineNumber&&m.modifiedRange.startLineNumber+B<=m.modifiedRange.endLineNumber&&(ne=-1),m.modifiedRange.startColumn-1>=C[m.modifiedRange.startLineNumber-1].length&&m.originalRange.startColumn-1>=v[m.originalRange.startLineNumber-1].length&&m.originalRange.startLineNumber<=m.originalRange.endLineNumber+ne&&m.modifiedRange.startLineNumber<=m.modifiedRange.endLineNumber+ne&&(B=1);const _e=new mc(m.originalRange.startLineNumber+B,m.originalRange.endLineNumber+1+ne),be=new mc(m.modifiedRange.startLineNumber+B,m.modifiedRange.endLineNumber+1+ne);return new YE(_e,be,[m])}const ace={getLegacy:()=>new a8e,getDefault:()=>new L8e};function qS(m,v){const C=Math.pow(10,v);return Math.round(m*C)/C}class N_{constructor(v,C,B,ne=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,C))|0,this.b=Math.min(255,Math.max(0,B))|0,this.a=qS(Math.max(Math.min(1,ne),0),3)}static equals(v,C){return v.r===C.r&&v.g===C.g&&v.b===C.b&&v.a===C.a}}class hv{constructor(v,C,B,ne){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=qS(Math.max(Math.min(1,C),0),3),this.l=qS(Math.max(Math.min(1,B),0),3),this.a=qS(Math.max(Math.min(1,ne),0),3)}static equals(v,C){return v.h===C.h&&v.s===C.s&&v.l===C.l&&v.a===C.a}static fromRGBA(v){const C=v.r/255,B=v.g/255,ne=v.b/255,_e=v.a,be=Math.max(C,B,ne),Be=Math.min(C,B,ne);let ct=0,Ae=0;const Ue=(Be+be)/2,Jt=be-Be;if(Jt>0){switch(Ae=Math.min(Ue<=.5?Jt/(2*Ue):Jt/(2-2*Ue),1),be){case C:ct=(B-ne)/Jt+(B<ne?6:0);break;case B:ct=(ne-C)/Jt+2;break;case ne:ct=(C-B)/Jt+4;break}ct*=60,ct=Math.round(ct)}return new hv(ct,Ae,Ue,_e)}static _hue2rgb(v,C,B){return B<0&&(B+=1),B>1&&(B-=1),B<1/6?v+(C-v)*6*B:B<1/2?C:B<2/3?v+(C-v)*(2/3-B)*6:v}static toRGBA(v){const C=v.h/360,{s:B,l:ne,a:_e}=v;let be,Be,ct;if(B===0)be=Be=ct=ne;else{const Ae=ne<.5?ne*(1+B):ne+B-ne*B,Ue=2*ne-Ae;be=hv._hue2rgb(Ue,Ae,C+1/3),Be=hv._hue2rgb(Ue,Ae,C),ct=hv._hue2rgb(Ue,Ae,C-1/3)}return new N_(Math.round(be*255),Math.round(Be*255),Math.round(ct*255),_e)}}class vI{constructor(v,C,B,ne){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=qS(Math.max(Math.min(1,C),0),3),this.v=qS(Math.max(Math.min(1,B),0),3),this.a=qS(Math.max(Math.min(1,ne),0),3)}static equals(v,C){return v.h===C.h&&v.s===C.s&&v.v===C.v&&v.a===C.a}static fromRGBA(v){const C=v.r/255,B=v.g/255,ne=v.b/255,_e=Math.max(C,B,ne),be=Math.min(C,B,ne),Be=_e-be,ct=_e===0?0:Be/_e;let Ae;return Be===0?Ae=0:_e===C?Ae=((B-ne)/Be%6+6)%6:_e===B?Ae=(ne-C)/Be+2:Ae=(C-B)/Be+4,new vI(Math.round(Ae*60),ct,_e,v.a)}static toRGBA(v){const{h:C,s:B,v:ne,a:_e}=v,be=ne*B,Be=be*(1-Math.abs(C/60%2-1)),ct=ne-be;let[Ae,Ue,Jt]=[0,0,0];return C<60?(Ae=be,Ue=Be):C<120?(Ae=Be,Ue=be):C<180?(Ue=be,Jt=Be):C<240?(Ue=Be,Jt=be):C<300?(Ae=Be,Jt=be):C<=360&&(Ae=be,Jt=Be),Ae=Math.round((Ae+ct)*255),Ue=Math.round((Ue+ct)*255),Jt=Math.round((Jt+ct)*255),new N_(Ae,Ue,Jt,_e)}}class Bc{static fromHex(v){return Bc.Format.CSS.parseHex(v)||Bc.red}static equals(v,C){return!v&&!C?!0:!v||!C?!1:v.equals(C)}get hsla(){return this._hsla?this._hsla:hv.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:vI.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof N_)this.rgba=v;else if(v instanceof hv)this._hsla=v,this.rgba=hv.toRGBA(v);else if(v instanceof vI)this._hsva=v,this.rgba=vI.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&N_.equals(this.rgba,v.rgba)&&hv.equals(this.hsla,v.hsla)&&vI.equals(this.hsva,v.hsva)}getRelativeLuminance(){const v=Bc._relativeLuminanceForComponent(this.rgba.r),C=Bc._relativeLuminanceForComponent(this.rgba.g),B=Bc._relativeLuminanceForComponent(this.rgba.b),ne=.2126*v+.7152*C+.0722*B;return qS(ne,4)}static _relativeLuminanceForComponent(v){const C=v/255;return C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){const C=this.getRelativeLuminance(),B=v.getRelativeLuminance();return C>B}isDarkerThan(v){const C=this.getRelativeLuminance(),B=v.getRelativeLuminance();return C<B}lighten(v){return new Bc(new hv(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*v,this.hsla.a))}darken(v){return new Bc(new hv(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*v,this.hsla.a))}transparent(v){const{r:C,g:B,b:ne,a:_e}=this.rgba;return new Bc(new N_(C,B,ne,_e*v))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Bc(new N_(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(v){if(this.isOpaque()||v.rgba.a!==1)return this;const{r:C,g:B,b:ne,a:_e}=this.rgba;return new Bc(new N_(v.rgba.r-_e*(v.rgba.r-C),v.rgba.g-_e*(v.rgba.g-B),v.rgba.b-_e*(v.rgba.b-ne),1))}toString(){return this._toString||(this._toString=Bc.Format.CSS.format(this)),this._toString}static getLighterColor(v,C,B){if(v.isLighterThan(C))return v;B=B||.5;const ne=v.getRelativeLuminance(),_e=C.getRelativeLuminance();return B=B*(_e-ne)/_e,v.lighten(B)}static getDarkerColor(v,C,B){if(v.isDarkerThan(C))return v;B=B||.5;const ne=v.getRelativeLuminance(),_e=C.getRelativeLuminance();return B=B*(ne-_e)/ne,v.darken(B)}}Bc.white=new Bc(new N_(255,255,255,1)),Bc.black=new Bc(new N_(0,0,0,1)),Bc.red=new Bc(new N_(255,0,0,1)),Bc.blue=new Bc(new N_(0,0,255,1)),Bc.green=new Bc(new N_(0,255,0,1)),Bc.cyan=new Bc(new N_(0,255,255,1)),Bc.lightgrey=new Bc(new N_(211,211,211,1)),Bc.transparent=new Bc(new N_(0,0,0,0)),function(m){(function(v){(function(C){function B(fn){return fn.rgba.a===1?`rgb(${fn.rgba.r}, ${fn.rgba.g}, ${fn.rgba.b})`:m.Format.CSS.formatRGBA(fn)}C.formatRGB=B;function ne(fn){return`rgba(${fn.rgba.r}, ${fn.rgba.g}, ${fn.rgba.b}, ${+fn.rgba.a.toFixed(2)})`}C.formatRGBA=ne;function _e(fn){return fn.hsla.a===1?`hsl(${fn.hsla.h}, ${(fn.hsla.s*100).toFixed(2)}%, ${(fn.hsla.l*100).toFixed(2)}%)`:m.Format.CSS.formatHSLA(fn)}C.formatHSL=_e;function be(fn){return`hsla(${fn.hsla.h}, ${(fn.hsla.s*100).toFixed(2)}%, ${(fn.hsla.l*100).toFixed(2)}%, ${fn.hsla.a.toFixed(2)})`}C.formatHSLA=be;function Be(fn){const kr=fn.toString(16);return kr.length!==2?"0"+kr:kr}function ct(fn){return`#${Be(fn.rgba.r)}${Be(fn.rgba.g)}${Be(fn.rgba.b)}`}C.formatHex=ct;function Ae(fn,kr=!1){return kr&&fn.rgba.a===1?m.Format.CSS.formatHex(fn):`#${Be(fn.rgba.r)}${Be(fn.rgba.g)}${Be(fn.rgba.b)}${Be(Math.round(fn.rgba.a*255))}`}C.formatHexA=Ae;function Ue(fn){return fn.isOpaque()?m.Format.CSS.formatHex(fn):m.Format.CSS.formatRGBA(fn)}C.format=Ue;function Jt(fn){const kr=fn.length;if(kr===0||fn.charCodeAt(0)!==35)return null;if(kr===7){const ui=16*Kt(fn.charCodeAt(1))+Kt(fn.charCodeAt(2)),la=16*Kt(fn.charCodeAt(3))+Kt(fn.charCodeAt(4)),Yn=16*Kt(fn.charCodeAt(5))+Kt(fn.charCodeAt(6));return new m(new N_(ui,la,Yn,1))}if(kr===9){const ui=16*Kt(fn.charCodeAt(1))+Kt(fn.charCodeAt(2)),la=16*Kt(fn.charCodeAt(3))+Kt(fn.charCodeAt(4)),Yn=16*Kt(fn.charCodeAt(5))+Kt(fn.charCodeAt(6)),nn=16*Kt(fn.charCodeAt(7))+Kt(fn.charCodeAt(8));return new m(new N_(ui,la,Yn,nn/255))}if(kr===4){const ui=Kt(fn.charCodeAt(1)),la=Kt(fn.charCodeAt(2)),Yn=Kt(fn.charCodeAt(3));return new m(new N_(16*ui+ui,16*la+la,16*Yn+Yn))}if(kr===5){const ui=Kt(fn.charCodeAt(1)),la=Kt(fn.charCodeAt(2)),Yn=Kt(fn.charCodeAt(3)),nn=Kt(fn.charCodeAt(4));return new m(new N_(16*ui+ui,16*la+la,16*Yn+Yn,(16*nn+nn)/255))}return null}C.parseHex=Jt;function Kt(fn){switch(fn){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}})(v.CSS||(v.CSS={}))})(m.Format||(m.Format={}))}(Bc||(Bc={}));function oce(m){const v=[];for(const C of m){const B=Number(C);(B||B===0&&C.replace(/\s/g,"")!=="")&&v.push(B)}return v}function tH(m,v,C,B){return{red:m/255,blue:C/255,green:v/255,alpha:B}}function TR(m,v){const C=v.index,B=v[0].length;if(!C)return;const ne=m.positionAt(C);return{startLineNumber:ne.lineNumber,startColumn:ne.column,endLineNumber:ne.lineNumber,endColumn:ne.column+B}}function k8e(m,v){if(!m)return;const C=Bc.Format.CSS.parseHex(v);if(C)return{range:m,color:tH(C.rgba.r,C.rgba.g,C.rgba.b,C.rgba.a)}}function sce(m,v,C){if(!m||v.length!==1)return;const ne=v[0].values(),_e=oce(ne);return{range:m,color:tH(_e[0],_e[1],_e[2],C?_e[3]:1)}}function lce(m,v,C){if(!m||v.length!==1)return;const ne=v[0].values(),_e=oce(ne),be=new Bc(new hv(_e[0],_e[1]/100,_e[2]/100,C?_e[3]:1));return{range:m,color:tH(be.rgba.r,be.rgba.g,be.rgba.b,be.rgba.a)}}function SR(m,v){return typeof m=="string"?[...m.matchAll(v)]:m.findMatches(v)}function w8e(m){const v=[],B=SR(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/gm);if(B.length>0)for(const ne of B){const _e=ne.filter(Ae=>Ae!==void 0),be=_e[1],Be=_e[2];if(!Be)continue;let ct;if(be==="rgb"){const Ae=/^\(\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;ct=sce(TR(m,ne),SR(Be,Ae),!1)}else if(be==="rgba"){const Ae=/^\(\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;ct=sce(TR(m,ne),SR(Be,Ae),!0)}else if(be==="hsl"){const Ae=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;ct=lce(TR(m,ne),SR(Be,Ae),!1)}else if(be==="hsla"){const Ae=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;ct=lce(TR(m,ne),SR(Be,Ae),!0)}else be==="#"&&(ct=k8e(TR(m,ne),be+Be));ct&&v.push(ct)}return v}function D8e(m){return!m||typeof m.getValue!="function"||typeof m.positionAt!="function"?[]:w8e(m)}var JS=function(m,v,C,B){function ne(_e){return _e instanceof C?_e:new C(function(be){be(_e)})}return new(C||(C=Promise))(function(_e,be){function Be(Ue){try{Ae(B.next(Ue))}catch(Jt){be(Jt)}}function ct(Ue){try{Ae(B.throw(Ue))}catch(Jt){be(Jt)}}function Ae(Ue){Ue.done?_e(Ue.value):ne(Ue.value).then(Be,ct)}Ae((B=B.apply(m,v||[])).next())})};class R8e extends wOe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){const C=[];for(let B=0;B<this._lines.length;B++){const ne=this._lines[B],_e=this.offsetAt(new Wp(B+1,1)),be=ne.matchAll(v);for(const Be of be)(Be.index||Be.index===0)&&(Be.index=Be.index+_e),C.push(Be)}return C}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(v){return this._lines[v-1]}getWordAtPosition(v,C){const B=Fj(v.column,NOe(C),this._lines[v.lineNumber-1],0);return B?new Pl(v.lineNumber,B.startColumn,v.lineNumber,B.endColumn):null}words(v){const C=this._lines,B=this._wordenize.bind(this);let ne=0,_e="",be=0,Be=[];return{*[Symbol.iterator](){for(;;)if(be<Be.length){const ct=_e.substring(Be[be].start,Be[be].end);be+=1,yield ct}else if(ne<C.length)_e=C[ne],Be=B(_e,v),be=0,ne+=1;else break}}}getLineWords(v,C){const B=this._lines[v-1],ne=this._wordenize(B,C),_e=[];for(const be of ne)_e.push({word:B.substring(be.start,be.end),startColumn:be.start+1,endColumn:be.end+1});return _e}_wordenize(v,C){const B=[];let ne;for(C.lastIndex=0;(ne=C.exec(v))&&ne[0].length!==0;)B.push({start:ne.index,end:ne.index+ne[0].length});return B}getValueInRange(v){if(v=this._validateRange(v),v.startLineNumber===v.endLineNumber)return this._lines[v.startLineNumber-1].substring(v.startColumn-1,v.endColumn-1);const C=this._eol,B=v.startLineNumber-1,ne=v.endLineNumber-1,_e=[];_e.push(this._lines[B].substring(v.startColumn-1));for(let be=B+1;be<ne;be++)_e.push(this._lines[be]);return _e.push(this._lines[ne].substring(0,v.endColumn-1)),_e.join(C)}offsetAt(v){return v=this._validatePosition(v),this._ensureLineStarts(),this._lineStarts.getPrefixSum(v.lineNumber-2)+(v.column-1)}positionAt(v){v=Math.floor(v),v=Math.max(0,v),this._ensureLineStarts();const C=this._lineStarts.getIndexOf(v),B=this._lines[C.index].length;return{lineNumber:1+C.index,column:1+Math.min(C.remainder,B)}}_validateRange(v){const C=this._validatePosition({lineNumber:v.startLineNumber,column:v.startColumn}),B=this._validatePosition({lineNumber:v.endLineNumber,column:v.endColumn});return C.lineNumber!==v.startLineNumber||C.column!==v.startColumn||B.lineNumber!==v.endLineNumber||B.column!==v.endColumn?{startLineNumber:C.lineNumber,startColumn:C.column,endLineNumber:B.lineNumber,endColumn:B.column}:v}_validatePosition(v){if(!Wp.isIPosition(v))throw new Error("bad position");let{lineNumber:C,column:B}=v,ne=!1;if(C<1)C=1,B=1,ne=!0;else if(C>this._lines.length)C=this._lines.length,B=this._lines[C-1].length+1,ne=!0;else{const _e=this._lines[C-1].length+1;B<1?(B=1,ne=!0):B>_e&&(B=_e,ne=!0)}return ne?{lineNumber:C,column:B}:v}}class bA{constructor(v,C){this._host=v,this._models=Object.create(null),this._foreignModuleFactory=C,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(v){return this._models[v]}_getModels(){const v=[];return Object.keys(this._models).forEach(C=>v.push(this._models[C])),v}acceptNewModel(v){this._models[v.url]=new R8e(vA.parse(v.url),v.lines,v.EOL,v.versionId)}acceptModelChanged(v,C){if(!this._models[v])return;this._models[v].onEvents(C)}acceptRemovedModel(v){this._models[v]&&delete this._models[v]}computeUnicodeHighlights(v,C,B){return JS(this,void 0,void 0,function*(){const ne=this._getModel(v);return ne?e8e.computeUnicodeHighlights(ne,C,B):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(v,C,B,ne){return JS(this,void 0,void 0,function*(){const _e=this._getModel(v),be=this._getModel(C);return!_e||!be?null:bA.computeDiff(_e,be,B,ne)})}static computeDiff(v,C,B,ne){const _e=ne==="advanced"?ace.getDefault():ace.getLegacy(),be=v.getLinesContent(),Be=C.getLinesContent(),ct=_e.computeDiff(be,Be,B),Ae=ct.changes.length>0?!1:this._modelsAreIdentical(v,C);function Ue(Jt){return Jt.map(Kt=>{var fn;return[Kt.original.startLineNumber,Kt.original.endLineNumberExclusive,Kt.modified.startLineNumber,Kt.modified.endLineNumberExclusive,(fn=Kt.innerChanges)===null||fn===void 0?void 0:fn.map(kr=>[kr.originalRange.startLineNumber,kr.originalRange.startColumn,kr.originalRange.endLineNumber,kr.originalRange.endColumn,kr.modifiedRange.startLineNumber,kr.modifiedRange.startColumn,kr.modifiedRange.endLineNumber,kr.modifiedRange.endColumn])]})}return{identical:Ae,quitEarly:ct.hitTimeout,changes:Ue(ct.changes),moves:ct.moves.map(Jt=>[Jt.lineRangeMapping.original.startLineNumber,Jt.lineRangeMapping.original.endLineNumberExclusive,Jt.lineRangeMapping.modified.startLineNumber,Jt.lineRangeMapping.modified.endLineNumberExclusive,Ue(Jt.changes)])}}static _modelsAreIdentical(v,C){const B=v.getLineCount(),ne=C.getLineCount();if(B!==ne)return!1;for(let _e=1;_e<=B;_e++){const be=v.getLineContent(_e),Be=C.getLineContent(_e);if(be!==Be)return!1}return!0}computeMoreMinimalEdits(v,C,B){return JS(this,void 0,void 0,function*(){const ne=this._getModel(v);if(!ne)return C;const _e=[];let be;C=C.slice(0).sort((ct,Ae)=>{if(ct.range&&Ae.range)return Pl.compareRangesUsingStarts(ct.range,Ae.range);const Ue=ct.range?0:1,Jt=Ae.range?0:1;return Ue-Jt});let Be=0;for(let ct=1;ct<C.length;ct++)Pl.getEndPosition(C[Be].range).equals(Pl.getStartPosition(C[ct].range))?(C[Be].range=Pl.fromPositions(Pl.getStartPosition(C[Be].range),Pl.getEndPosition(C[ct].range)),C[Be].text+=C[ct].text):(Be++,C[Be]=C[ct]);C.length=Be+1;for(let{range:ct,text:Ae,eol:Ue}of C){if(typeof Ue=="number"&&(be=Ue),Pl.isEmpty(ct)&&!Ae)continue;const Jt=ne.getValueInRange(ct);if(Ae=Ae.replace(/\r\n|\n|\r/g,ne.eol),Jt===Ae)continue;if(Math.max(Ae.length,Jt.length)>bA._diffLimit){_e.push({range:ct,text:Ae});continue}const Kt=iOe(Jt,Ae,B),fn=ne.offsetAt(Pl.lift(ct).getStartPosition());for(const kr of Kt){const ui=ne.positionAt(fn+kr.originalStart),la=ne.positionAt(fn+kr.originalStart+kr.originalLength),Yn={text:Ae.substr(kr.modifiedStart,kr.modifiedLength),range:{startLineNumber:ui.lineNumber,startColumn:ui.column,endLineNumber:la.lineNumber,endColumn:la.column}};ne.getValueInRange(Yn.range)!==Yn.text&&_e.push(Yn)}}return typeof be=="number"&&_e.push({eol:be,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e})}computeLinks(v){return JS(this,void 0,void 0,function*(){const C=this._getModel(v);return C?GOe(C):null})}computeDefaultDocumentColors(v){return JS(this,void 0,void 0,function*(){const C=this._getModel(v);return C?D8e(C):null})}textualSuggest(v,C,B,ne){return JS(this,void 0,void 0,function*(){const _e=new H4,be=new RegExp(B,ne),Be=new Set;e:for(const ct of v){const Ae=this._getModel(ct);if(Ae){for(const Ue of Ae.words(be))if(!(Ue===C||!isNaN(Number(Ue)))&&(Be.add(Ue),Be.size>bA._suggestionsLimit))break e}}return{words:Array.from(Be),duration:_e.elapsed()}})}computeWordRanges(v,C,B,ne){return JS(this,void 0,void 0,function*(){const _e=this._getModel(v);if(!_e)return Object.create(null);const be=new RegExp(B,ne),Be=Object.create(null);for(let ct=C.startLineNumber;ct<C.endLineNumber;ct++){const Ae=_e.getLineWords(ct,be);for(const Ue of Ae){if(!isNaN(Number(Ue.word)))continue;let Jt=Be[Ue.word];Jt||(Jt=[],Be[Ue.word]=Jt),Jt.push({startLineNumber:ct,startColumn:Ue.startColumn,endLineNumber:ct,endColumn:Ue.endColumn})}}return Be})}navigateValueSet(v,C,B,ne,_e){return JS(this,void 0,void 0,function*(){const be=this._getModel(v);if(!be)return null;const Be=new RegExp(ne,_e);C.startColumn===C.endColumn&&(C={startLineNumber:C.startLineNumber,startColumn:C.startColumn,endLineNumber:C.endLineNumber,endColumn:C.endColumn+1});const ct=be.getValueInRange(C),Ae=be.getWordAtPosition({lineNumber:C.startLineNumber,column:C.startColumn},Be);if(!Ae)return null;const Ue=be.getValueInRange(Ae);return Uj.INSTANCE.navigateValueSet(C,ct,Ae,Ue,B)})}loadForeignModule(v,C,B){const be={host:DNe(B,(Be,ct)=>this._host.fhr(Be,ct)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(be,C),Promise.resolve(Lj(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(v,C){if(!this._foreignModule||typeof this._foreignModule[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._foreignModule[v].apply(this._foreignModule,C))}catch(B){return Promise.reject(B)}}}bA._diffLimit=1e5,bA._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=KOe());let nH=!1;function cce(m){if(nH)return;nH=!0;const v=new nOe(C=>{globalThis.postMessage(C)},C=>new bA(C,m));globalThis.onmessage=C=>{v.onmessage(C.data)}}globalThis.onmessage=m=>{nH||cce(null)};/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var N8e=Object.defineProperty,O8e=(m,v)=>{for(var C in v)N8e(m,C,{get:v[C],enumerable:!0})},uce={};O8e(uce,{EndOfLineState:()=>F8e,IndentStyle:()=>G8e,ScriptKind:()=>EA,ScriptTarget:()=>U8e,TokenClass:()=>V8e,createClassifier:()=>P8e,createLanguageService:()=>dce,displayPartsToString:()=>M8e,flattenDiagnosticMessageText:()=>B8e,typescript:()=>fce});var U0=void 0,rM={exports:{}},V0=(()=>{var m=Object.defineProperty,v=Object.getOwnPropertyNames,C=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},B=(e,t)=>function(){return t||(0,e[v(e)[0]])((t={exports:{}}).exports,t),t.exports},ne=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},_e,be,Be,ct=C({"src/compiler/corePublic.ts"(){_e="5.0",be="5.0.2",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Ae(e){return e?e.length:0}function Ue(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function Jt(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function Kt(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function fn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function kr(e,t,r){let i=r;if(e){let o=0;for(const s of e)i=t(i,s,o),o++}return i}function ui(e,t,r){const i=[];D.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function la(e,t){if(e.length<=1)return e;const r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Yn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function nn(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function Li(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function mi(e,t,r){if(e===void 0)return-1;for(let i=r??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function va(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 Bo(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return D.fail()}function jr(e,t,r=H0){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Zo(e,t,r=H0){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Tc(e,t,r){for(let i=r||0;i<e.length;i++)if(jr(t,e.charCodeAt(i)))return i;return-1}function Gc(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const o=e[i];t(o,i)&&r++}return r}function lr(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const o=e.slice(0,i);for(i++;i<r;){const s=e[i];t(s)&&o.push(s),i++}return o}}return e}function Ri(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 Fi(e){e.length=0}function Vt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*_o(e,t){for(const r of e)yield t(r)}function pa(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);if(i!==o){const s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function is(e){const t=[];for(const r of e)r&&(Va(r)?Ti(t,r):t.push(r));return t}function ma(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Va(o)?r=Ti(r,o):r=Fn(r,o))}return r||rt}function u_(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Va(o)?Ti(r,o):r.push(o))}return r}function*d_(e,t){for(const r of e){const i=t(r);i&&(yield*i)}}function QE(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=e[i],s=t(o,i);(r||o!==s||Va(s))&&(r||(r=e.slice(0,i)),Va(s)?Ti(r,s):r.push(s))}return r||e}function KS(e,t){const r=[];for(let i=0;i<e.length;i++){const o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function ia(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*TA(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function EI(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[c,f]=s;c!==void 0&&f!==void 0&&r.set(c,f)}}),r}function SA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function gv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*H8e(e){yield e}function iM(e,t,r){let i;if(e){i=[];const o=e.length;let s,c,f=0,d=0;for(;f<o;){for(;d<o;){const y=e[d];if(c=t(y,d),d===0)s=c;else if(c!==s)break;d++}if(f<d){const y=r(e.slice(f,d),s,f,d);y&&i.push(y),f=d}s=c,d++}}return i}function _ce(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,c]=t(o,i);r.set(s,c)}),r}function kt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function rH(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 ba(e,t){return kt(t)?kt(e)?[...e,...t]:t:e}function W8e(e,t){return t}function xR(e){return e.map(W8e)}function z8e(e,t,r){const i=xR(e);hce(e,i,r);let o=e[i[0]];const s=[i[0]];for(let c=1;c<i.length;c++){const f=i[c],d=e[f];t(o,d)||(s.push(f),o=d)}return s.sort(),s.map(c=>e[c])}function q8e(e,t){const r=[];for(const i of e)f_(r,i,t);return r}function xA(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?z8e(e,t,r):q8e(e,t)}function J8e(e,t){if(e.length===0)return rt;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return D.fail("Array is unsorted.")}i.push(r=s)}return i}function iH(){return[]}function yv(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=vv(e,t,ml,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function AR(e,t,r){return J8e(TI(e,t),r||t||Ou)}function pce(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function aM(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let c=1,f=e.length;c<f&&o!==0;c++){const d=t(e[c]);o&1&&r(s,d)>0&&(o&=-2),o&2&&i(s,d)>0&&(o&=-3),s=d}return o}function zp(e,t,r=H0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function CR(e){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function mce(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&D.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const c=o;o<e.length;o++)switch(o>c&&D.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 Fn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function AA(e,t){return e===void 0?t:t===void 0?e:Va(e)?Va(t)?ba(e,t):Fn(e,t):Va(t)?Fn(t,e):[e,t]}function aH(e,t){return t<0?e.length+t:t}function Ti(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:aH(t,r),i=i===void 0?t.length:aH(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function f_(e,t,r){return jr(e,t,r)?!1:(e.push(t),!0)}function sy(e,t,r){return e?(f_(e,t,r),e):[t]}function hce(e,t,r){t.sort((i,o)=>r(e[i],e[o])||Ws(i,o))}function TI(e,t){return e.length===0?e:e.slice().sort(t)}function*K8e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function ly(e,t){const r=xR(e);return hce(e,r,t),r.map(i=>e[i])}function oH(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Yc(e){return e===void 0||e.length===0?void 0:e[0]}function oM(e){if(e)for(const t of e)return t}function us(e){return D.assert(e.length!==0),e[0]}function gce(e){for(const t of e)return t;D.fail("iterator is empty")}function tl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function zo(e){return D.assert(e.length!==0),e[e.length-1]}function Am(e){return e&&e.length===1?e[0]:void 0}function sH(e){return D.checkDefined(Am(e))}function Cm(e){return e&&e.length===1?e[0]:e}function lH(e,t,r){const i=e.slice(0);return i[t]=r,i}function vv(e,t,r,i,o){return XS(e,r(t),r,i,o)}function XS(e,t,r,i,o){if(!kt(e))return-1;let s=o||0,c=e.length-1;for(;s<=c;){const f=s+(c-s>>1),d=r(e[f],f);switch(i(d,t)){case-1:s=f+1;break;case 0:return f;case 1:c=f-1;break}}return~s}function Nu(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let c=i===void 0||i<0?0:i;const f=o===void 0||c+o>s-1?s-1:c+o;let d;for(arguments.length<=2?(d=e[c],c++):d=r;c<=f;)d=t(d,e[c],c),c++;return d}}return r}function Ps(e,t){return dy.call(e,t)}function LR(e,t){return dy.call(e,t)?e[t]:void 0}function rg(e){const t=[];for(const r in e)dy.call(e,r)&&t.push(r);return t}function X8e(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)f_(t,i)}while(e=Object.getPrototypeOf(e));return t}function YS(e){const t=[];for(const r in e)dy.call(e,r)&&t.push(e[r]);return t}function yce(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Ro(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function IR(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Ps(r,i)&&(e[i]=r[i]);return e}function vce(e,t,r=H0){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(dy.call(e,i)&&(!dy.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(dy.call(t,i)&&!dy.call(e,i))return!1;return!0}function i1(e,t,r=ml){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function bce(e,t,r=ml){const i=[];for(const o of e)i[t(o)]=r(o);return i}function kR(e,t,r=ml){const i=__();for(const o of e)i.add(t(o),r(o));return i}function SI(e,t,r=ml){return Ro(kR(e,t).values(),r)}function Ece(e,t){var r;const i={};if(e)for(const o of e){const s=`${t(o)}`;((r=i[s])!=null?r:i[s]=[]).push(o)}return i}function cH(e){const t={};for(const r in e)dy.call(e,r)&&(t[r]=e[r]);return t}function sM(e,t){const r={};for(const i in t)dy.call(t,i)&&(r[i]=t[i]);for(const i in e)dy.call(e,i)&&(r[i]=e[i]);return r}function uH(e,t){for(const r in t)dy.call(t,r)&&(e[r]=t[r])}function Go(e,t){return t?t.bind(e):void 0}function __(){const e=new Map;return e.add=Y8e,e.remove=$8e,e}function Y8e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function $8e(e,t){const r=this.get(e);r&&(RR(r,t),r.length||this.delete(e))}function Tce(){return __()}function dH(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...c){t.push(...c)}function s(){if(i())throw new Error("Queue is empty");const c=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const f=t.length-r;t.copyWithin(0,r),t.length=f,r=0}return c}return{enqueue:o,dequeue:s,isEmpty:i}}function Q8e(e,t){const r=new Map;let i=0;function*o(){for(const c of r.values())Va(c)?yield*c:yield c}const s={has(c){const f=e(c);if(!r.has(f))return!1;const d=r.get(f);if(!Va(d))return t(d,c);for(const y of d)if(t(y,c))return!0;return!1},add(c){const f=e(c);if(r.has(f)){const d=r.get(f);if(Va(d))jr(d,c,t)||(d.push(c),i++);else{const y=d;t(y,c)||(r.set(f,[y,c]),i++)}}else r.set(f,c),i++;return this},delete(c){const f=e(c);if(!r.has(f))return!1;const d=r.get(f);if(Va(d)){for(let y=0;y<d.length;y++)if(t(d[y],c))return d.length===1?r.delete(f):d.length===2?r.set(f,d[1-y]):_H(d,y),i--,!0}else if(t(d,c))return r.delete(f),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(c){for(const f of Ro(r.values()))if(Va(f))for(const d of f)c(d,d,s);else{const d=f;c(d,d,s)}},keys(){return o()},values(){return o()},*entries(){for(const c of o())yield[c,c]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Va(e){return Array.isArray(e)}function wR(e){return Va(e)?e:[e]}function Ha(e){return typeof e=="string"}function cy(e){return typeof e=="number"}function ai(e,t){return e!==void 0&&t(e)?e:void 0}function ao(e,t){return e!==void 0&&t(e)?e:D.fail(`Invalid cast. The supplied value ${e} did not pass the test '${D.getFunctionName(t)}'.`)}function oo(e){}function a1(){return!1}function o1(){return!0}function j0(){}function ml(e){return e}function Sce(e){return e.toLowerCase()}function O_(e){return yH.test(e)?e.replace(yH,Sce):e}function Wa(){throw new Error("Not implemented")}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Lm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function Z8e(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function xce(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function e6e(e,t,r,i,o){if(o){const s=[];for(let c=0;c<arguments.length;c++)s[c]=arguments[c];return c=>Nu(s,(f,d)=>d(f),c)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function H0(e,t){return e===t}function $S(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function QS(e,t){return H0(e,t)}function Ace(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Ws(e,t){return Ace(e,t)}function lM(e,t){return Ws(e==null?void 0:e.start,t==null?void 0:t.start)||Ws(e==null?void 0:e.length,t==null?void 0:t.length)}function fH(e,t){return Nu(e,(r,i)=>t(r,i)===-1?r:i)}function cM(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 Cce(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 Ou(e,t){return Ace(e,t)}function uM(e){return e?cM:Ou}function Lce(){return yM}function Ice(e){yM!==e&&(yM=e,bH=void 0)}function DR(e,t){return(bH||(bH=Gce(yM)))(e,t)}function kce(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function s1(e,t){return Ws(e?1:0,t?1:0)}function xI(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const c of t){const f=r(c);if(f!==void 0&&Math.abs(f.length-e.length)<=i){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;const d=t6e(e,f,o-.1);if(d===void 0)continue;D.assert(d<o),o=d,s=c}}return s}function t6e(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let f=0;f<=t.length;f++)i[f]=f;for(let f=1;f<=e.length;f++){const d=e.charCodeAt(f-1),y=Math.ceil(f>r?f-r:1),h=Math.floor(t.length>r+f?r+f:t.length);o[0]=f;let E=f;for(let L=1;L<y;L++)o[L]=s;for(let L=y;L<=h;L++){const I=e[f-1].toLowerCase()===t[L-1].toLowerCase()?i[L-1]+.1:i[L-1]+2,O=d===t.charCodeAt(L-1)?i[L-1]:Math.min(i[L]+1,o[L-1]+1,I);o[L]=O,E=Math.min(E,O)}for(let L=h+1;L<=t.length;L++)o[L]=s;if(E>r)return;const A=i;i=o,o=A}const c=i[t.length];return c>r?void 0:c}function ic(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function CA(e,t){return ic(e,t)?e.slice(0,e.length-t.length):e}function wce(e,t){return ic(e,t)?e.slice(0,e.length-t.length):void 0}function pu(e,t){return e.indexOf(t)!==-1}function Dce(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 dM(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return l1(e,r),!0;return!1}function l1(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function _H(e,t){e[t]=e[e.length-1],e.pop()}function RR(e,t){return n6e(e,r=>r===t)}function n6e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return _H(e,r),!0;return!1}function ru(e){return e?ml:O_}function Rce({prefix:e,suffix:t}){return`${e}*${t}`}function Nce(e,t){return D.assert(fM(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function pH(e,t,r){let i,o=-1;for(const s of e){const c=t(s);fM(c,r)&&c.prefix.length>o&&(o=c.prefix.length,i=s)}return i}function xa(e,t){return e.lastIndexOf(t,0)===0}function AI(e,t){return xa(e,t)?e.substr(t.length):e}function mH(e,t,r=ml){return xa(r(e),r(t))?e.substring(t.length):void 0}function fM({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&xa(r,e)&&ic(r,t)}function _M(e,t){return r=>e(r)&&t(r)}function Im(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function pM(e){return(...t)=>!e(...t)}function r6e(e){}function ZE(e){return e===void 0?void 0:[e]}function Oce(e,t,r,i,o,s){s=s||oo;let c=0,f=0;const d=e.length,y=t.length;let h=!1;for(;c<d&&f<y;){const E=e[c],A=t[f],L=r(E,A);L===-1?(i(E),c++,h=!0):L===1?(o(A),f++,h=!0):(s(A,E),c++,f++)}for(;c<d;)i(e[c++]),h=!0;for(;f<y;)o(t[f++]),h=!0;return h}function Pce(e){const t=[];return Mce(e,t,void 0,0),t}function Mce(e,t,r,i){for(const o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):Mce(e,t,s,i+1)}}function ZS(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function i6e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function mM(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function Fce(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function a6e(e){let t=e.length-1;for(;t>=0&&sg(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function hH(){return typeof process<"u"&&process.nextTick&&!process.browser&&typeof rM=="object"}var rt,hM,Bce,gH,uy,dy,gM,yH,vH,Gce,bH,yM,c1,NR,CI,o6e=C({"src/compiler/core.ts"(){Oa(),rt=[],hM=new Map,Bce=new Set,gH=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(gH||{}),uy=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=aH(e,t),t<e.length))return e[t]},dy=Object.prototype.hasOwnProperty,gM={push:oo,length:0},yH=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,vH=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(vH||{}),Gce=(()=>{let e,t;const r=f();return d;function i(y,h,E){if(y===h)return 0;if(y===void 0)return-1;if(h===void 0)return 1;const A=E(y,h);return A<0?-1:A>0?1:0}function o(y){const h=new Intl.Collator(y,{usage:"sort",sensitivity:"variant"}).compare;return(E,A)=>i(E,A,h)}function s(y){if(y!==void 0)return c();return(E,A)=>i(E,A,h);function h(E,A){return E.localeCompare(A)}}function c(){return(E,A)=>i(E,A,y);function y(E,A){return h(E.toUpperCase(),A.toUpperCase())||h(E,A)}function h(E,A){return E<A?-1:E>A?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?o:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?s:c}function d(y){return y===void 0?e||(e=r(y)):y==="en-US"?t||(t=r(y)):r(y)}})(),c1=String.prototype.trim?e=>e.trim():e=>NR(CI(e)),NR=String.prototype.trimEnd?e=>e.trimEnd():a6e,CI=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),EH,D,s6e=C({"src/compiler/debug.ts"(){Oa(),Oa(),EH=(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))(EH||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Wt){return e.currentLogLevel<=Wt}e.shouldLog=r;function i(Wt,dn){e.loggingHost&&r(Wt)&&e.loggingHost.log(Wt,dn)}function o(Wt){i(3,Wt)}e.log=o,(Wt=>{function dn(gi){i(1,gi)}Wt.error=dn;function rr(gi){i(2,gi)}Wt.warn=rr;function cr(gi){i(3,gi)}Wt.log=cr;function Pi(gi){i(4,gi)}Wt.trace=Pi})(o=e.log||(e.log={}));const s={};function c(){return t}e.getAssertionLevel=c;function f(Wt){const dn=t;if(t=Wt,Wt>dn)for(const rr of rg(s)){const cr=s[rr];cr!==void 0&&e[rr]!==cr.assertion&&Wt>=cr.level&&(e[rr]=cr,s[rr]=void 0)}}e.setAssertionLevel=f;function d(Wt){return t>=Wt}e.shouldAssert=d;function y(Wt,dn){return d(Wt)?!0:(s[dn]={level:Wt,assertion:e[dn]},e[dn]=oo,!1)}function h(Wt,dn){const rr=new Error(Wt?`Debug Failure. ${Wt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(rr,dn||h),rr}e.fail=h;function E(Wt,dn,rr){return h(`${dn||"Unexpected node."}\r Node ${Qe(Wt.kind)} was unexpected.`,rr||E)}e.failBadSyntaxKind=E;function A(Wt,dn,rr,cr){Wt||(dn=dn?`False expression: ${dn}`:"False expression.",rr&&(dn+=`\r Verbose Debug Information: `+(typeof rr=="string"?rr:rr())),h(dn,cr||A))}e.assert=A;function L(Wt,dn,rr,cr,Pi){if(Wt!==dn){const gi=rr?cr?`${rr} ${cr}`:rr:"";h(`Expected ${Wt} === ${dn}. ${gi}`,Pi||L)}}e.assertEqual=L;function I(Wt,dn,rr,cr){Wt>=dn&&h(`Expected ${Wt} < ${dn}. ${rr||""}`,cr||I)}e.assertLessThan=I;function O(Wt,dn,rr){Wt>dn&&h(`Expected ${Wt} <= ${dn}`,rr||O)}e.assertLessThanOrEqual=O;function k(Wt,dn,rr){Wt<dn&&h(`Expected ${Wt} >= ${dn}`,rr||k)}e.assertGreaterThanOrEqual=k;function G(Wt,dn,rr){Wt==null&&h(dn,rr||G)}e.assertIsDefined=G;function V(Wt,dn,rr){return G(Wt,dn,rr||V),Wt}e.checkDefined=V;function H(Wt,dn,rr){for(const cr of Wt)G(cr,dn,rr||H)}e.assertEachIsDefined=H;function te(Wt,dn,rr){return H(Wt,dn,rr||te),Wt}e.checkEachDefined=te;function X(Wt,dn="Illegal value:",rr){const cr=typeof Wt=="object"&&Ps(Wt,"kind")&&Ps(Wt,"pos")?"SyntaxKind: "+Qe(Wt.kind):JSON.stringify(Wt);return h(`${dn} ${cr}`,rr||X)}e.assertNever=X;function Y(Wt,dn,rr,cr){y(1,"assertEachNode")&&A(dn===void 0||Yn(Wt,dn),rr||"Unexpected node.",()=>`Node array did not pass test '${ce(dn)}'.`,cr||Y)}e.assertEachNode=Y;function P(Wt,dn,rr,cr){y(1,"assertNode")&&A(Wt!==void 0&&(dn===void 0||dn(Wt)),rr||"Unexpected node.",()=>`Node ${Qe(Wt==null?void 0:Wt.kind)} did not pass test '${ce(dn)}'.`,cr||P)}e.assertNode=P;function de(Wt,dn,rr,cr){y(1,"assertNotNode")&&A(Wt===void 0||dn===void 0||!dn(Wt),rr||"Unexpected node.",()=>`Node ${Qe(Wt.kind)} should not have passed test '${ce(dn)}'.`,cr||de)}e.assertNotNode=de;function re(Wt,dn,rr,cr){y(1,"assertOptionalNode")&&A(dn===void 0||Wt===void 0||dn(Wt),rr||"Unexpected node.",()=>`Node ${Qe(Wt==null?void 0:Wt.kind)} did not pass test '${ce(dn)}'.`,cr||re)}e.assertOptionalNode=re;function ye(Wt,dn,rr,cr){y(1,"assertOptionalToken")&&A(dn===void 0||Wt===void 0||Wt.kind===dn,rr||"Unexpected node.",()=>`Node ${Qe(Wt==null?void 0:Wt.kind)} was not a '${Qe(dn)}' token.`,cr||ye)}e.assertOptionalToken=ye;function ae(Wt,dn,rr){y(1,"assertMissingNode")&&A(Wt===void 0,dn||"Unexpected node.",()=>`Node ${Qe(Wt.kind)} was unexpected'.`,rr||ae)}e.assertMissingNode=ae;function W(Wt){}e.type=W;function ce(Wt){if(typeof Wt!="function")return"";if(Ps(Wt,"name"))return Wt.name;{const dn=Function.prototype.toString.call(Wt),rr=/^function\s+([\w\$]+)\s*\(/.exec(dn);return rr?rr[1]:""}}e.getFunctionName=ce;function me(Wt){return`{ name: ${ta(Wt.escapedName)}; flags: ${Ye(Wt.flags)}; declarations: ${Vt(Wt.declarations,dn=>Qe(dn.kind))} }`}e.formatSymbol=me;function ve(Wt=0,dn,rr){const cr=ee(dn);if(Wt===0)return cr.length>0&&cr[0][0]===0?cr[0][1]:"0";if(rr){const Pi=[];let gi=Wt;for(const[Rn,an]of cr){if(Rn>Wt)break;Rn!==0&&Rn&Wt&&(Pi.push(an),gi&=~Rn)}if(gi===0)return Pi.join("|")}else for(const[Pi,gi]of cr)if(Pi===Wt)return gi;return Wt.toString()}e.formatEnum=ve;const Se=new Map;function ee(Wt){const dn=Se.get(Wt);if(dn)return dn;const rr=[];for(const Pi in Wt){const gi=Wt[Pi];typeof gi=="number"&&rr.push([gi,Pi])}const cr=ly(rr,(Pi,gi)=>Ws(Pi[0],gi[0]));return Se.set(Wt,cr),cr}function Qe(Wt){return ve(Wt,SM,!1)}e.formatSyntaxKind=Qe;function je(Wt){return ve(Wt,PM,!1)}e.formatSnippetKind=je;function Ge(Wt){return ve(Wt,xM,!0)}e.formatNodeFlags=Ge;function qe(Wt){return ve(Wt,AM,!0)}e.formatModifierFlags=qe;function Oe(Wt){return ve(Wt,OM,!0)}e.formatTransformFlags=Oe;function Me(Wt){return ve(Wt,MM,!0)}e.formatEmitFlags=Me;function Ye(Wt){return ve(Wt,kM,!0)}e.formatSymbolFlags=Ye;function ze(Wt){return ve(Wt,wM,!0)}e.formatTypeFlags=ze;function Fe(Wt){return ve(Wt,RM,!0)}e.formatSignatureFlags=Fe;function st(Wt){return ve(Wt,DM,!0)}e.formatObjectFlags=st;function Ct(Wt){return ve(Wt,FR,!0)}e.formatFlowFlags=Ct;function Et(Wt){return ve(Wt,CM,!0)}e.formatRelationComparisonResult=Et;function jt(Wt){return ve(Wt,cF,!0)}e.formatCheckMode=jt;function tt(Wt){return ve(Wt,uF,!0)}e.formatSignatureCheckMode=tt;function at(Wt){return ve(Wt,sF,!0)}e.formatTypeFacts=at;let sn=!1,Qt;function On(Wt){"__debugFlowFlags"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(){const dn=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",rr=this.flags&~(2048-1);return`${dn}${rr?` (${Ct(rr)})`:""}`}},__debugFlowFlags:{get(){return ve(this.flags,FR,!0)}},__debugToString:{value(){return vn(this)}}})}function jn(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Object.prototype),On(Qt)),Object.setPrototypeOf(Wt,Qt)):On(Wt))}e.attachFlowNodeDebugInfo=jn;let In;function Zt(Wt){"__tsDebuggerDisplay"in Wt||Object.defineProperties(Wt,{__tsDebuggerDisplay:{value(dn){return dn=String(dn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${dn}`}}})}function _r(Wt){sn&&(typeof Object.setPrototypeOf=="function"?(In||(In=Object.create(Array.prototype),Zt(In)),Object.setPrototypeOf(Wt,In)):Zt(Wt))}e.attachNodeArrayDebugInfo=_r;function Ii(){if(sn)return;const Wt=new WeakMap,dn=new WeakMap;Object.defineProperties(Hc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const cr=this.flags&33554432?"TransientSymbol":"Symbol",Pi=this.flags&-33554433;return`${cr} '${Fl(this)}'${Pi?` (${Ye(Pi)})`:""}`}},__debugFlags:{get(){return Ye(this.flags)}}}),Object.defineProperties(Hc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const cr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Pi=this.flags&524288?this.objectFlags&-1344:0;return`${cr}${this.symbol?` '${Fl(this.symbol)}'`:""}${Pi?` (${st(Pi)})`:""}`}},__debugFlags:{get(){return ze(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?st(this.objectFlags):""}},__debugTypeToString:{value(){let cr=Wt.get(this);return cr===void 0&&(cr=this.checker.typeToString(this),Wt.set(this,cr)),cr}}}),Object.defineProperties(Hc.getSignatureConstructor().prototype,{__debugFlags:{get(){return Fe(this.flags)}},__debugSignatureToString:{value(){var cr;return(cr=this.checker)==null?void 0:cr.signatureToString(this)}}});const rr=[Hc.getNodeConstructor(),Hc.getIdentifierConstructor(),Hc.getTokenConstructor(),Hc.getSourceFileConstructor()];for(const cr of rr)Ps(cr.prototype,"__debugKind")||Object.defineProperties(cr.prototype,{__tsDebuggerDisplay:{value(){return`${xl(this)?"GeneratedIdentifier":He(this)?`Identifier '${Mr(this)}'`:Ni(this)?`PrivateIdentifier '${Mr(this)}'`:Vo(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:b_(this)?`NumericLiteral ${this.text}`:t5(this)?`BigIntLiteral ${this.text}n`:Bl(this)?"TypeParameterDeclaration":Ba(this)?"ParameterDeclaration":ql(this)?"ConstructorDeclaration":q_(this)?"GetAccessorDeclaration":e_(this)?"SetAccessorDeclaration":AC(this)?"CallSignatureDeclaration":qO(this)?"ConstructSignatureDeclaration":Mx(this)?"IndexSignatureDeclaration":a5(this)?"TypePredicateNode":J_(this)?"TypeReferenceNode":Lh(this)?"FunctionTypeNode":zk(this)?"ConstructorTypeNode":qk(this)?"TypeQueryNode":cf(this)?"TypeLiteralNode":ZJ(this)?"ArrayTypeNode":CC(this)?"TupleTypeNode":eK(this)?"OptionalTypeNode":tK(this)?"RestTypeNode":Fx(this)?"UnionTypeNode":JO(this)?"IntersectionTypeNode":LC(this)?"ConditionalTypeNode":IC(this)?"InferTypeNode":Bx(this)?"ParenthesizedTypeNode":o5(this)?"ThisTypeNode":Gx(this)?"TypeOperatorNode":Ux(this)?"IndexedAccessTypeNode":Kk(this)?"MappedTypeNode":ab(this)?"LiteralTypeNode":Jk(this)?"NamedTupleMember":vg(this)?"ImportTypeNode":Qe(this.kind)}${this.flags?` (${Ge(this.flags)})`:""}`}},__debugKind:{get(){return Qe(this.kind)}},__debugNodeFlags:{get(){return Ge(this.flags)}},__debugModifierFlags:{get(){return qe($fe(this))}},__debugTransformFlags:{get(){return Oe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return BI(this)}},__debugEmitFlags:{get(){return Me(vo(this))}},__debugGetText:{value(Pi){if(Zs(this))return"";let gi=dn.get(this);if(gi===void 0){const Rn=Ea(this),an=Rn&&Zn(Rn);gi=an?v1(an,Rn,Pi):"",dn.set(this,gi)}return gi}}});sn=!0}e.enableDebugInfo=Ii;function $i(Wt){const dn=Wt&7;let rr=dn===0?"in out":dn===3?"[bivariant]":dn===2?"in":dn===1?"out":dn===4?"[independent]":"";return Wt&8?rr+=" (unmeasurable)":Wt&16&&(rr+=" (unreliable)"),rr}e.formatVariance=$i;class Qi{__debugToString(){var dn;switch(this.kind){case 3:return((dn=this.debugInfo)==null?void 0:dn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ui(this.sources,this.targets||Vt(this.sources,()=>"any"),(rr,cr)=>`${rr.__debugTypeToString()} -> ${typeof cr=="string"?cr:cr.__debugTypeToString()}`).join(", ");case 2:return ui(this.sources,this.targets,(rr,cr)=>`${rr.__debugTypeToString()} -> ${cr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return X(this)}}}e.DebugTypeMapper=Qi;function Or(Wt){return e.isDebugging?Object.setPrototypeOf(Wt,Qi.prototype):Wt}e.attachDebugPrototypeIfDebug=Or;function At(Wt){return console.log(vn(Wt))}e.printControlFlowGraph=At;function vn(Wt){let dn=-1;function rr(K){return K.id||(K.id=dn,dn--),K.id}let cr;(K=>{K.lr="─",K.ud="│",K.dr="╭",K.dl="╮",K.ul="╯",K.ur="╰",K.udr="├",K.udl="┤",K.dlr="┬",K.ulr="┴",K.udlr="╫"})(cr||(cr={}));let Pi;(K=>{K[K.None=0]="None",K[K.Up=1]="Up",K[K.Down=2]="Down",K[K.Left=4]="Left",K[K.Right=8]="Right",K[K.UpDown=3]="UpDown",K[K.LeftRight=12]="LeftRight",K[K.UpLeft=5]="UpLeft",K[K.UpRight=9]="UpRight",K[K.DownLeft=6]="DownLeft",K[K.DownRight=10]="DownRight",K[K.UpDownLeft=7]="UpDownLeft",K[K.UpDownRight=11]="UpDownRight",K[K.UpLeftRight=13]="UpLeftRight",K[K.DownLeftRight=14]="DownLeftRight",K[K.UpDownLeftRight=15]="UpDownLeftRight",K[K.NoChildren=16]="NoChildren"})(Pi||(Pi={}));const gi=2032,Rn=882,an=Object.create(null),Pn=[],Ar=he(Wt,new Set);for(const K of Pn)K.text=Er(K.flowNode,K.circular),We(K);const Hr=Ze(Ar),we=Xe(Hr);return Ut(Ar,0),ue();function yt(K){return!!(K.flags&128)}function Nt(K){return!!(K.flags&12)&&!!K.antecedents}function Ce(K){return!!(K.flags&gi)}function pt(K){return!!(K.flags&Rn)}function pe(K){const Pe=[];for(const Z of K.edges)Z.source===K&&Pe.push(Z.target);return Pe}function ie(K){const Pe=[];for(const Z of K.edges)Z.target===K&&Pe.push(Z.source);return Pe}function he(K,Pe){const Z=rr(K);let Re=an[Z];if(Re&&Pe.has(K))return Re.circular=!0,Re={id:-1,flowNode:K,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Pn.push(Re),Re;if(Pe.add(K),!Re)if(an[Z]=Re={id:Z,flowNode:K,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Pn.push(Re),Nt(K))for(const q of K.antecedents)j(Re,q,Pe);else Ce(K)&&j(Re,K.antecedent,Pe);return Pe.delete(K),Re}function j(K,Pe,Z){const Re=he(Pe,Z),q={source:K,target:Re};K.edges.push(q),Re.edges.push(q)}function We(K){if(K.level!==-1)return K.level;let Pe=0;for(const Z of ie(K))Pe=Math.max(Pe,We(Z)+1);return K.level=Pe}function Ze(K){let Pe=0;for(const Z of pe(K))Pe=Math.max(Pe,Ze(Z));return Pe+1}function Xe(K){const Pe=zt(Array(K),0);for(const Z of Pn)Pe[Z.level]=Math.max(Pe[Z.level],Z.text.length);return Pe}function Ut(K,Pe){if(K.lane===-1){K.lane=Pe,K.endLane=Pe;const Z=pe(K);for(let Re=0;Re<Z.length;Re++){Re>0&&Pe++;const q=Z[Re];Ut(q,Pe),q.endLane>K.endLane&&(Pe=q.endLane)}K.endLane=Pe}}function cn(K){if(K&2)return"Start";if(K&4)return"Branch";if(K&8)return"Loop";if(K&16)return"Assignment";if(K&32)return"True";if(K&64)return"False";if(K&128)return"SwitchClause";if(K&256)return"ArrayMutation";if(K&512)return"Call";if(K&1024)return"ReduceLabel";if(K&1)return"Unreachable";throw new Error}function Sn(K){const Pe=Zn(K);return v1(Pe,K,!1)}function Er(K,Pe){let Z=cn(K.flags);if(Pe&&(Z=`${Z}#${rr(K)}`),pt(K))K.node&&(Z+=` (${Sn(K.node)})`);else if(yt(K)){const Re=[];for(let q=K.clauseStart;q<K.clauseEnd;q++){const Rt=K.switchStatement.caseBlock.clauses[q];e8(Rt)?Re.push("default"):Re.push(Sn(Rt.expression))}Z+=` (${Re.join(", ")})`}return Pe==="circularity"?`Circular(${Z})`:Z}function ue(){const K=we.length,Pe=Pn.reduce((gt,ft)=>Math.max(gt,ft.lane),0)+1,Z=zt(Array(Pe),""),Re=we.map(()=>Array(Pe)),q=we.map(()=>zt(Array(Pe),0));for(const gt of Pn){Re[gt.level][gt.lane]=gt;const ft=pe(gt);for(let $n=0;$n<ft.length;$n++){const oi=ft[$n];let Ai=8;oi.lane===gt.lane&&(Ai|=4),$n>0&&(Ai|=1),$n<ft.length-1&&(Ai|=2),q[gt.level][oi.lane]|=Ai}ft.length===0&&(q[gt.level][gt.lane]|=16);const _n=ie(gt);for(let $n=0;$n<_n.length;$n++){const oi=_n[$n];let Ai=4;$n>0&&(Ai|=1),$n<_n.length-1&&(Ai|=2),q[gt.level-1][oi.lane]|=Ai}}for(let gt=0;gt<K;gt++)for(let ft=0;ft<Pe;ft++){const _n=gt>0?q[gt-1][ft]:0,$n=ft>0?q[gt][ft-1]:0;let oi=q[gt][ft];oi||(_n&8&&(oi|=12),$n&2&&(oi|=3),q[gt][ft]=oi)}for(let gt=0;gt<K;gt++)for(let ft=0;ft<Z.length;ft++){const _n=q[gt][ft],$n=_n&4?"─":" ",oi=Re[gt][ft];oi?(Rt(ft,oi.text),gt<K-1&&(Rt(ft," "),Rt(ft,it($n,we[gt]-oi.text.length)))):gt<K-1&&Rt(ft,it($n,we[gt]+1)),Rt(ft,mt(_n)),Rt(ft,_n&8&><K-1&&!Re[gt+1][ft]?"─":" ")}return` ${Z.join(` `)} `;function Rt(gt,ft){Z[gt]+=ft}}function mt(K){switch(K){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function zt(K,Pe){if(K.fill)K.fill(Pe);else for(let Z=0;Z<K.length;Z++)K[Z]=Pe;return K}function it(K,Pe){if(K.repeat)return Pe>0?K.repeat(Pe):"";let Z="";for(;Z.length<Pe;)Z+=K;return Z}}e.formatControlFlowGraph=vn})(D||(D={}))}});function Uce(e){const t=jce.exec(e);if(!t)return;const[,r,i="0",o="0",s="",c=""]=t;if(!(s&&!Hce.test(s))&&!(c&&!zce.test(c)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:c}}function l6e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=e[i],s=t[i];if(o===s)continue;const c=SH.test(o),f=SH.test(s);if(c||f){if(c!==f)return c?-1:1;const d=Ws(+o,+s);if(d)return d}else{const d=Ou(o,s);if(d)return d}}return Ws(e.length,t.length)}function Vce(e){const t=[];for(let r of c1(e).split(Jce)){if(!r)continue;const i=[];r=c1(r);const o=Yce.exec(r);if(o){if(!c6e(o[1],o[2],i))return}else for(const s of r.split(Kce)){const c=$ce.exec(c1(s));if(!c||!u6e(c[1],c[2],i))return}t.push(i)}return t}function TH(e){const t=Xce.exec(e);if(!t)return;const[,r,i="*",o="*",s,c]=t;return{version:new P_(qf(r)?0:parseInt(r,10),qf(r)||qf(i)?0:parseInt(i,10),qf(r)||qf(i)||qf(o)?0:parseInt(o,10),s,c),major:r,minor:i,patch:o}}function c6e(e,t,r){const i=TH(e);if(!i)return!1;const o=TH(t);return o?(qf(i.major)||r.push(qp(">=",i.version)),qf(o.major)||r.push(qf(o.minor)?qp("<",o.version.increment("major")):qf(o.patch)?qp("<",o.version.increment("minor")):qp("<=",o.version)),!0):!1}function u6e(e,t,r){const i=TH(t);if(!i)return!1;const{version:o,major:s,minor:c,patch:f}=i;if(qf(s))(e==="<"||e===">")&&r.push(qp("<",P_.zero));else switch(e){case"~":r.push(qp(">=",o)),r.push(qp("<",o.increment(qf(c)?"major":"minor")));break;case"^":r.push(qp(">=",o)),r.push(qp("<",o.increment(o.major>0||qf(c)?"major":o.minor>0||qf(f)?"minor":"patch")));break;case"<":case">=":r.push(qf(c)||qf(f)?qp(e,o.with({prerelease:"0"})):qp(e,o));break;case"<=":case">":r.push(qf(c)?qp(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):qf(f)?qp(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):qp(e,o));break;case"=":case void 0:qf(c)||qf(f)?(r.push(qp(">=",o.with({prerelease:"0"}))),r.push(qp("<",o.increment(qf(c)?"major":"minor").with({prerelease:"0"})))):r.push(qp("=",o));break;default:return!1}return!0}function qf(e){return e==="*"||e==="x"||e==="X"}function qp(e,t){return{operator:e,operand:t}}function d6e(e,t){if(t.length===0)return!0;for(const r of t)if(f6e(e,r))return!0;return!1}function f6e(e,t){for(const r of t)if(!_6e(e,r.operator,r.operand))return!1;return!0}function _6e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return D.assertNever(t)}}function p6e(e){return Vt(e,m6e).join(" || ")||"*"}function m6e(e){return Vt(e,h6e).join(" ")}function h6e(e){return`${e.operator}${e.operand}`}var jce,Hce,Wce,zce,qce,SH,ex,P_,LA,Jce,Kce,Xce,Yce,$ce,g6e=C({"src/compiler/semver.ts"(){Oa(),jce=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Hce=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Wce=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,zce=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,qce=/^[a-z0-9-]+$/i,SH=/^(0|[1-9]\d*)$/,ex=class{constructor(e,t=0,r=0,i="",o=""){typeof e=="string"&&({major:e,minor:t,patch:r,prerelease:i,build:o}=D.checkDefined(Uce(e),"Invalid version")),D.assert(e>=0,"Invalid argument: major"),D.assert(t>=0,"Invalid argument: minor"),D.assert(r>=0,"Invalid argument: patch");const s=i?Va(i)?i:i.split("."):rt,c=o?Va(o)?o:o.split("."):rt;D.assert(Yn(s,f=>Wce.test(f)),"Invalid argument: prerelease"),D.assert(Yn(c,f=>qce.test(f)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=s,this.build=c}static tryParse(e){const t=Uce(e);if(!t)return;const{major:r,minor:i,patch:o,prerelease:s,build:c}=t;return new ex(r,i,o,s,c)}compareTo(e){return this===e?0:e===void 0?1:Ws(this.major,e.major)||Ws(this.minor,e.minor)||Ws(this.patch,e.patch)||l6e(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new ex(this.major+1,0,0);case"minor":return new ex(this.major,this.minor+1,0);case"patch":return new ex(this.major,this.minor,this.patch+1);default:return D.assertNever(e)}}with(e){const{major:t=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:s=this.build}=e;return new ex(t,r,i,o,s)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return kt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),kt(this.build)&&(e+=`+${this.build.join(".")}`),e}},P_=ex,P_.zero=new ex(0,0,0,["0"]),LA=class{constructor(e){this._alternatives=e?D.checkDefined(Vce(e),"Invalid range spec."):rt}static tryParse(e){const t=Vce(e);if(t){const r=new LA("");return r._alternatives=t,r}}test(e){return typeof e=="string"&&(e=new P_(e)),d6e(e,this._alternatives)}toString(){return p6e(this._alternatives)}},Jce=/\|\|/g,Kce=/\s+/g,Xce=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Yce=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,$ce=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Qce(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function y6e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Qce(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function v6e(){if(hH())try{let e;const{performance:t,PerformanceObserver:r}=U0("perf_hooks");if(Qce(t,r)){e=t;const i=new P_(process.versions.node);return new LA("<12.16.3 || 13 <13.13").test(i)&&(e={get timeOrigin(){return t.timeOrigin},now(){return t.now()},mark(s){return t.mark(s)},measure(s,c="nodeStart",f){f===void 0&&(f="__performance.measure-fix__",t.mark(f)),t.measure(s,c,f),f==="__performance.measure-fix__"&&t.clearMarks("__performance.measure-fix__")},clearMarks(s){return t.clearMarks(s)},clearMeasures(s){return t.clearMeasures(s)}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch{}}function Zce(){return vM}var vM,xH,il,b6e=C({"src/compiler/performanceCore.ts"(){Oa(),vM=y6e()||v6e(),xH=vM==null?void 0:vM.performance,il=xH?()=>xH.now():Date.now?Date.now:()=>+new Date}}),eue,OR,tue,Jp,E6e=C({"src/compiler/perfLogger.ts"(){Oa(),eue={logEvent:oo,logErrEvent:oo,logPerfEvent:oo,logInfoEvent:oo,logStartCommand:oo,logStopCommand:oo,logStartUpdateProgram:oo,logStopUpdateProgram:oo,logStartUpdateGraph:oo,logStopUpdateGraph:oo,logStartResolveModule:oo,logStopResolveModule:oo,logStartParseSourceFile:oo,logStopParseSourceFile:oo,logStartReadFile:oo,logStopReadFile:oo,logStartBindFile:oo,logStopBindFile:oo,logStartScheduledOperation:oo,logStopScheduledOperation:oo};try{const e=(tue={}.TS_ETW_MODULE_PATH)!=null?tue:"./node_modules/@microsoft/typescript-etw";OR=U0(e)}catch{OR=void 0}Jp=OR!=null&&OR.logEvent?OR:eue}});function nue(e,t,r,i){return e?bM(t,r,i):EM}function bM(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&al(t)}function s(){--i===0?(al(r),Jf(e,t,r)):i<0&&D.fail("enter/exit count does not match.")}}function al(e){var t;if(tx){const r=(t=IA.get(e))!=null?t:0;IA.set(e,r+1),nx.set(e,il()),u1==null||u1.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Jf(e,t,r){var i,o;if(tx){const s=(i=r!==void 0?nx.get(r):void 0)!=null?i:il(),c=(o=t!==void 0?nx.get(t):void 0)!=null?o:AH,f=rx.get(e)||0;rx.set(e,f+(s-c)),u1==null||u1.measure(e,t,r)}}function T6e(e){return IA.get(e)||0}function S6e(e){return rx.get(e)||0}function x6e(e){rx.forEach((t,r)=>e(r,t))}function A6e(e){nx.forEach((t,r)=>e(r))}function C6e(e){e!==void 0?rx.delete(e):rx.clear(),u1==null||u1.clearMeasures(e)}function L6e(e){e!==void 0?(IA.delete(e),nx.delete(e)):(IA.clear(),nx.clear()),u1==null||u1.clearMarks(e)}function I6e(){return tx}function k6e(e=$c){var t;return tx||(tx=!0,LI||(LI=Zce()),LI&&(AH=LI.performance.timeOrigin,(LI.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(u1=LI.performance))),!0}function w6e(){tx&&(nx.clear(),IA.clear(),rx.clear(),u1=void 0,tx=!1)}var LI,u1,EM,tx,AH,nx,IA,rx,D6e=C({"src/compiler/performance.ts"(){Oa(),EM={enter:oo,exit:oo},tx=!1,AH=il(),nx=new Map,IA=new Map,rx=new Map}}),PR={};ne(PR,{clearMarks:()=>L6e,clearMeasures:()=>C6e,createTimer:()=>bM,createTimerIf:()=>nue,disable:()=>w6e,enable:()=>k6e,forEachMark:()=>A6e,forEachMeasure:()=>x6e,getCount:()=>T6e,getDuration:()=>S6e,isEnabled:()=>I6e,mark:()=>al,measure:()=>Jf,nullTimer:()=>EM});var d1=C({"src/compiler/_namespaces/ts.performance.ts"(){D6e()}}),bi,MR,rue,iue,R6e=C({"src/compiler/tracing.ts"(){Oa(),d1(),(e=>{let t,r=0,i=0,o;const s=[];let c;const f=[];function d(Y,P,de){if(D.assert(!bi,"Tracing already started"),t===void 0)try{t=U0("fs")}catch(ce){throw new Error(`tracing requires having fs (original error: ${ce.message||ce})`)}o=Y,s.length=0,c===void 0&&(c=Bi(P,"legend.json")),t.existsSync(P)||t.mkdirSync(P,{recursive:!0});const re=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ye=Bi(P,`trace${re}.json`),ae=Bi(P,`types${re}.json`);f.push({configFilePath:de,tracePath:ye,typesPath:ae}),i=t.openSync(ye,"w"),bi=e;const W={cat:"__metadata",ph:"M",ts:1e3*il(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...W},{name:"thread_name",args:{name:"Main"},...W},{name:"TracingStartedInBrowser",...W,cat:"disabled-by-default-devtools.timeline"}].map(ce=>JSON.stringify(ce)).join(`, `))}e.startTracing=d;function y(){D.assert(bi,"Tracing is not in progress"),D.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),bi=void 0,s.length?te(s):f[f.length-1].typesPath=void 0}e.stopTracing=y;function h(Y){o!=="server"&&s.push(Y)}e.recordType=h,(Y=>{Y.Parse="parse",Y.Program="program",Y.Bind="bind",Y.Check="check",Y.CheckTypes="checkTypes",Y.Emit="emit",Y.Session="session"})(e.Phase||(e.Phase={}));function E(Y,P,de){V("I",Y,P,de,'"s":"g"')}e.instant=E;const A=[];function L(Y,P,de,re=!1){re&&V("B",Y,P,de),A.push({phase:Y,name:P,args:de,time:1e3*il(),separateBeginAndEnd:re})}e.push=L;function I(Y){D.assert(A.length>0),G(A.length-1,1e3*il(),Y),A.length--}e.pop=I;function O(){const Y=1e3*il();for(let P=A.length-1;P>=0;P--)G(P,Y);A.length=0}e.popAll=O;const k=1e3*10;function G(Y,P,de){const{phase:re,name:ye,args:ae,time:W,separateBeginAndEnd:ce}=A[Y];ce?(D.assert(!de,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",re,ye,ae,void 0,P)):k-W%k<=P-W&&V("X",re,ye,{...ae,results:de},`"dur":${P-W}`,W)}function V(Y,P,de,re,ye,ae=1e3*il()){o==="server"&&P==="checkTypes"||(al("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${Y}","cat":"${P}","ts":${ae},"name":"${de}"`),ye&&t.writeSync(i,`,${ye}`),re&&t.writeSync(i,`,"args":${JSON.stringify(re)}`),t.writeSync(i,"}"),al("endTracing"),Jf("Tracing","beginTracing","endTracing"))}function H(Y){const P=Zn(Y);return P?{path:P.path,start:de(ol(P,Y.pos)),end:de(ol(P,Y.end))}:void 0;function de(re){return{line:re.line+1,character:re.character+1}}}function te(Y){var P,de,re,ye,ae,W,ce,me,ve,Se,ee,Qe,je,Ge,qe,Oe,Me,Ye,ze,Fe,st,Ct;al("beginDumpTypes");const Et=f[f.length-1].typesPath,jt=t.openSync(Et,"w"),tt=new Map;t.writeSync(jt,"[");const at=Y.length;for(let sn=0;sn<at;sn++){const Qt=Y[sn],On=Qt.objectFlags,jn=(P=Qt.aliasSymbol)!=null?P:Qt.symbol;let In;if(On&16|Qt.flags&2944)try{In=(de=Qt.checker)==null?void 0:de.typeToString(Qt)}catch{In=void 0}let Zt={};if(Qt.flags&8388608){const dn=Qt;Zt={indexedAccessObjectType:(re=dn.objectType)==null?void 0:re.id,indexedAccessIndexType:(ye=dn.indexType)==null?void 0:ye.id}}let _r={};if(On&4){const dn=Qt;_r={instantiatedType:(ae=dn.target)==null?void 0:ae.id,typeArguments:(W=dn.resolvedTypeArguments)==null?void 0:W.map(rr=>rr.id),referenceLocation:H(dn.node)}}let Ii={};if(Qt.flags&16777216){const dn=Qt;Ii={conditionalCheckType:(ce=dn.checkType)==null?void 0:ce.id,conditionalExtendsType:(me=dn.extendsType)==null?void 0:me.id,conditionalTrueType:(Se=(ve=dn.resolvedTrueType)==null?void 0:ve.id)!=null?Se:-1,conditionalFalseType:(Qe=(ee=dn.resolvedFalseType)==null?void 0:ee.id)!=null?Qe:-1}}let $i={};if(Qt.flags&33554432){const dn=Qt;$i={substitutionBaseType:(je=dn.baseType)==null?void 0:je.id,constraintType:(Ge=dn.constraint)==null?void 0:Ge.id}}let Qi={};if(On&1024){const dn=Qt;Qi={reverseMappedSourceType:(qe=dn.source)==null?void 0:qe.id,reverseMappedMappedType:(Oe=dn.mappedType)==null?void 0:Oe.id,reverseMappedConstraintType:(Me=dn.constraintType)==null?void 0:Me.id}}let Or={};if(On&256){const dn=Qt;Or={evolvingArrayElementType:dn.elementType.id,evolvingArrayFinalType:(Ye=dn.finalArrayType)==null?void 0:Ye.id}}let At;const vn=Qt.checker.getRecursionIdentity(Qt);vn&&(At=tt.get(vn),At||(At=tt.size,tt.set(vn,At)));const Wt={id:Qt.id,intrinsicName:Qt.intrinsicName,symbolName:(jn==null?void 0:jn.escapedName)&&ta(jn.escapedName),recursionId:At,isTuple:On&8?!0:void 0,unionTypes:Qt.flags&1048576?(ze=Qt.types)==null?void 0:ze.map(dn=>dn.id):void 0,intersectionTypes:Qt.flags&2097152?Qt.types.map(dn=>dn.id):void 0,aliasTypeArguments:(Fe=Qt.aliasTypeArguments)==null?void 0:Fe.map(dn=>dn.id),keyofType:Qt.flags&4194304?(st=Qt.type)==null?void 0:st.id:void 0,...Zt,..._r,...Ii,...$i,...Qi,...Or,destructuringPattern:H(Qt.pattern),firstDeclaration:H((Ct=jn==null?void 0:jn.declarations)==null?void 0:Ct[0]),flags:D.formatTypeFlags(Qt.flags).split("|"),display:In};t.writeSync(jt,JSON.stringify(Wt)),sn<at-1&&t.writeSync(jt,`, `)}t.writeSync(jt,`] `),t.closeSync(jt),al("endDumpTypes"),Jf("Dump types","beginDumpTypes","endDumpTypes")}function X(){c&&t.writeFileSync(c,JSON.stringify(f))}e.dumpLegend=X})(MR||(MR={})),rue=MR.startTracing,iue=MR.dumpLegend}});function TM(e,t=!0){const r=BR[e.category];return t?r.toLowerCase():r}var SM,xM,AM,CH,CM,LM,LH,FR,IH,II,IM,kH,wH,DH,RH,NH,OH,PH,MH,FH,BH,GH,UH,VH,jH,kM,HH,WH,zH,qH,wM,DM,JH,KH,XH,YH,$H,RM,QH,ZH,eW,tW,nW,rW,BR,GR,iW,aW,oW,sW,NM,lW,cW,uW,dW,fW,_W,pW,mW,hW,OM,PM,MM,gW,yW,vW,bW,EW,TW,SW,xW,UR,aue=C({"src/compiler/types.ts"(){SM=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(SM||{}),xM=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(xM||{}),AM=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(AM||{}),CH=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(CH||{}),CM=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(CM||{}),LM=(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))(LM||{}),LH=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(LH||{}),FR=(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))(FR||{}),IH=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(IH||{}),II=class{},IM=(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))(IM||{}),kH=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(kH||{}),wH=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(wH||{}),DH=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(DH||{}),RH=(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))(RH||{}),NH=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(NH||{}),OH=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(OH||{}),PH=(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))(PH||{}),MH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(MH||{}),FH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(FH||{}),BH=(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))(BH||{}),GH=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(GH||{}),UH=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(UH||{}),VH=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(VH||{}),jH=(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))(jH||{}),kM=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(kM||{}),HH=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(HH||{}),WH=(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))(WH||{}),zH=(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))(zH||{}),qH=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(qH||{}),wM=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=134348796]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(wM||{}),DM=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(DM||{}),JH=(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))(JH||{}),KH=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(KH||{}),XH=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(XH||{}),YH=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(YH||{}),$H=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))($H||{}),RM=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(RM||{}),QH=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(QH||{}),ZH=(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))(ZH||{}),eW=(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))(eW||{}),tW=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(tW||{}),nW=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(nW||{}),rW=(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))(rW||{}),BR=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(BR||{}),GR=(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))(GR||{}),iW=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(iW||{}),aW=(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))(aW||{}),oW=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(oW||{}),sW=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(sW||{}),NM=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(NM||{}),lW=(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))(lW||{}),cW=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(cW||{}),uW=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(uW||{}),dW=(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))(dW||{}),fW=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(fW||{}),_W=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(_W||{}),pW=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(pW||{}),mW=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(mW||{}),hW=(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))(hW||{}),OM=(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))(OM||{}),PM=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(PM||{}),MM=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(MM||{}),gW=(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))(gW||{}),yW=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(yW||{}),vW=(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))(vW||{}),bW=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(bW||{}),EW=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(EW||{}),TW=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(TW||{}),SW=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(SW||{}),xW=(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))(xW||{}),UR={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function VR(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function N6e(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function ix(e,t){return e.getModifiedTime(t)||ig}function AW(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function O6e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",FM);WR=s("TSC_WATCH_POLLINGCHUNKSIZE",HR)||WR,zR=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",HR)||zR;function r(c,f){return e.getEnvironmentVariable(`${c}_${f.toUpperCase()}`)}function i(c){let f;return d("Low"),d("Medium"),d("High"),f;function d(y){const h=r(c,y);h&&((f||(f={}))[y]=Number(h))}}function o(c,f){const d=i(c);if(d)return y("Low"),y("Medium"),y("High"),!0;return!1;function y(h){f[h]=d[h]||f[h]}}function s(c,f){const d=i(c);return(t||d)&&AW(d?{...f,...d}:f)}}function oue(e,t,r,i,o){let s=r;for(let f=t.length;i&&f;c(),f--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const y=B6e(d,ix(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o==null||o(d,r,y),t[r]&&(s<r&&(t[s]=d,t[r]=void 0),s++)}return r;function c(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function P6e(e){const t=[],r=[],i=f(250),o=f(500),s=f(2e3);return c;function c(k,G,V){const H={fileName:k,callback:G,unchangedPolls:0,mtime:ix(e,k)};return t.push(H),A(H,V),{close:()=>{H.isClosed=!0,RR(t,H)}}}function f(k){const G=[];return G.pollingInterval=k,G.pollIndex=0,G.pollScheduled=!1,G}function d(k){k.pollIndex=h(k,k.pollingInterval,k.pollIndex,WR[k.pollingInterval]),k.length?O(k.pollingInterval):(D.assert(k.pollIndex===0),k.pollScheduled=!1)}function y(k){h(r,250,0,r.length),d(k),!k.pollScheduled&&r.length&&O(250)}function h(k,G,V,H){return oue(e,k,V,H,te);function te(X,Y,P){P?(X.unchangedPolls=0,k!==r&&(k[Y]=void 0,L(X))):X.unchangedPolls!==zR[G]?X.unchangedPolls++:k===r?(X.unchangedPolls=1,k[Y]=void 0,A(X,250)):G!==2e3&&(X.unchangedPolls++,k[Y]=void 0,A(X,G===250?500:2e3))}}function E(k){switch(k){case 250:return i;case 500:return o;case 2e3:return s}}function A(k,G){E(G).push(k),I(G)}function L(k){r.push(k),I(250)}function I(k){E(k).pollScheduled||O(k)}function O(k){E(k).pollScheduled=e.setTimeout(k===250?y:d,k,E(k))}}function M6e(e,t){const r=__(),i=new Map,o=ru(t);return s;function s(f,d,y,h){const E=o(f);r.add(E,d);const A=hi(E)||".",L=i.get(A)||c(hi(f)||".",A,h);return L.referenceCount++,{close:()=>{L.referenceCount===1?(L.close(),i.delete(A)):L.referenceCount--,r.remove(E,d)}}}function c(f,d,y){const h=e(f,1,(E,A,L)=>{if(!Ha(A))return;const I=Pa(A,f),O=I&&r.get(o(I));if(O)for(const k of O)k(I,1,L)},!1,500,y);return h.referenceCount=0,i.set(d,h),h}}function F6e(e){const t=[];let r=0,i;return o;function o(f,d){const y={fileName:f,callback:d,mtime:ix(e,f)};return t.push(y),c(),{close:()=>{y.isClosed=!0,RR(t,y)}}}function s(){i=void 0,r=oue(e,t,r,WR[250]),c()}function c(){!t.length||i||(i=e.setTimeout(s,2e3))}}function sue(e,t,r,i,o){const c=ru(t)(r),f=e.get(c);return f?f.callbacks.push(i):e.set(c,{watcher:o((d,y,h)=>{var E;return(E=e.get(c))==null?void 0:E.callbacks.slice().forEach(A=>A(d,y,h))}),callbacks:[i]}),{close:()=>{const d=e.get(c);d&&(!dM(d.callbacks,i)||d.callbacks.length||(e.delete(c),Km(d)))}}}function B6e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,lue(r,i),t),!0):!1}function lue(e,t){return e===0?0:t===0?2:1}function jR(e){return LW(e)}function cue(e){LW=e}function G6e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:c,clearTimeout:f}){const d=new Map,y=__(),h=new Map;let E;const A=uM(!t),L=ru(t);return(P,de,re,ye)=>re?I(P,ye,de):e(P,de,re,ye);function I(P,de,re){const ye=L(P);let ae=d.get(ye);ae?ae.refCount++:(ae={watcher:e(P,ce=>{X(ce,de)||(de!=null&&de.synchronousWatchDirectory?(O(ye,ce),te(P,ye,de)):k(P,ye,ce,de))},!1,de),refCount:1,childWatches:rt},d.set(ye,ae),te(P,ye,de));const W=re&&{dirName:P,callback:re};return W&&y.add(ye,W),{dirName:P,close:()=>{const ce=D.checkDefined(d.get(ye));W&&y.remove(ye,W),ce.refCount--,!ce.refCount&&(d.delete(ye),Km(ce),ce.childWatches.forEach(Um))}}}function O(P,de,re){let ye,ae;Ha(de)?ye=de:ae=de,y.forEach((W,ce)=>{if(!(ae&&ae.get(ce)===!0)&&(ce===P||xa(P,ce)&&P[ce.length]===Ms))if(ae)if(re){const me=ae.get(ce);me?me.push(...re):ae.set(ce,re.slice())}else ae.set(ce,!0);else W.forEach(({callback:me})=>me(ye))})}function k(P,de,re,ye){const ae=d.get(de);if(ae&&o(P,1)){G(P,de,re,ye);return}O(de,re),H(ae)}function G(P,de,re,ye){const ae=h.get(de);ae?ae.fileNames.push(re):h.set(de,{dirName:P,options:ye,fileNames:[re]}),E&&(f(E),E=void 0),E=c(V,1e3)}function V(){E=void 0,jR(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`);const P=il(),de=new Map;for(;!E&&h.size;){const ye=h.entries().next();D.assert(!ye.done);const{value:[ae,{dirName:W,options:ce,fileNames:me}]}=ye;h.delete(ae);const ve=te(W,ae,ce);O(ae,de,ve?void 0:me)}jR(`sysLog:: invokingWatchers:: Elapsed:: ${il()-P}ms:: ${h.size}`),y.forEach((ye,ae)=>{const W=de.get(ae);W&&ye.forEach(({callback:ce,dirName:me})=>{Va(W)?W.forEach(ce):ce(me)})});const re=il()-P;jR(`sysLog:: Elapsed:: ${re}ms:: onTimerToUpdateChildWatches:: ${h.size} ${E}`)}function H(P){if(!P)return;const de=P.childWatches;P.childWatches=rt;for(const re of de)re.close(),H(d.get(L(re.dirName)))}function te(P,de,re){const ye=d.get(de);if(!ye)return!1;let ae;const W=Oce(o(P,1)?ia(i(P),ve=>{const Se=Pa(ve,P);return!X(Se,re)&&A(Se,qo(s(Se)))===0?Se:void 0}):rt,ye.childWatches,(ve,Se)=>A(ve,Se.dirName),ce,Um,me);return ye.childWatches=ae||rt,W;function ce(ve){const Se=I(ve,re);me(Se)}function me(ve){(ae||(ae=[])).push(ve)}}function X(P,de){return kt(qR,re=>Y(P,re))||uue(P,de,t,r)}function Y(P,de){return pu(P,de)?!0:t?!1:pu(L(P),de)}}function U6e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function V6e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||ig),t(e,s!==ig?0:2,s)):t(e,1,s)}}function uue(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(O5(e,t==null?void 0:t.excludeFiles,r,i())||O5(e,t==null?void 0:t.excludeDirectories,r,i()))}function due(e,t,r,i,o){return(s,c)=>{if(s==="rename"){const f=c?qo(Bi(e,c)):e;(!c||!uue(f,r,i,o))&&t(f)}}}function fue({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:c,getCurrentDirectory:f,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:y,realpath:h,tscWatchFile:E,useNonPollingWatchers:A,tscWatchDirectory:L,inodeWatching:I,sysLog:O}){const k=new Map,G=new Map,V=new Map;let H,te,X,Y,P=!1;return{watchFile:de,watchDirectory:ce};function de(je,Ge,qe,Oe){Oe=ae(Oe,A);const Me=D.checkDefined(Oe.watchFile);switch(Me){case 0:return Se(je,Ge,250,void 0);case 1:return Se(je,Ge,qe,void 0);case 2:return re()(je,Ge,qe,void 0);case 3:return ye()(je,Ge,void 0,void 0);case 4:return ee(je,0,V6e(je,Ge,t),!1,qe,X8(Oe));case 5:return X||(X=M6e(ee,c)),X(je,Ge,qe,X8(Oe));default:D.assertNever(Me)}}function re(){return H||(H=P6e({getModifiedTime:t,setTimeout:r}))}function ye(){return te||(te=F6e({getModifiedTime:t,setTimeout:r}))}function ae(je,Ge){if(je&&je.watchFile!==void 0)return je;switch(E){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return W(4,1,je);case"UseFsEventsWithFallbackDynamicPolling":return W(4,2,je);case"UseFsEventsOnParentDirectory":Ge=!0;default:return Ge?W(5,1,je):{watchFile:4}}}function W(je,Ge,qe){const Oe=qe==null?void 0:qe.fallbackPolling;return{watchFile:je,fallbackPolling:Oe===void 0?Ge:Oe}}function ce(je,Ge,qe,Oe){return d?ee(je,1,due(je,Ge,Oe,c,f),qe,500,X8(Oe)):(Y||(Y=G6e({useCaseSensitiveFileNames:c,getCurrentDirectory:f,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:y,watchDirectory:me,realpath:h,setTimeout:r,clearTimeout:i})),Y(je,Ge,qe,Oe))}function me(je,Ge,qe,Oe){D.assert(!qe);const Me=ve(Oe),Ye=D.checkDefined(Me.watchDirectory);switch(Ye){case 1:return Se(je,()=>Ge(je),500,void 0);case 2:return re()(je,()=>Ge(je),500,void 0);case 3:return ye()(je,()=>Ge(je),void 0,void 0);case 0:return ee(je,1,due(je,Ge,Oe,c,f),qe,500,X8(Me));default:D.assertNever(Ye)}}function ve(je){if(je&&je.watchDirectory!==void 0)return je;switch(L){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Ge=je==null?void 0:je.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ge!==void 0?Ge:void 0}}}function Se(je,Ge,qe,Oe){return sue(k,c,je,Ge,Me=>e(je,Me,qe,Oe))}function ee(je,Ge,qe,Oe,Me,Ye){return sue(Oe?V:G,c,je,qe,ze=>Qe(je,Ge,ze,Oe,Me,Ye))}function Qe(je,Ge,qe,Oe,Me,Ye){let ze,Fe;I&&(ze=je.substring(je.lastIndexOf(Ms)),Fe=ze.slice(Ms.length));let st=s(je,Ge)?Et():at();return{close:()=>{st&&(st.close(),st=void 0)}};function Ct(sn){st&&(O(`sysLog:: ${je}:: Changing watcher to ${sn===Et?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=sn())}function Et(){if(P)return O(`sysLog:: ${je}:: Defaulting to watchFile`),tt();try{const sn=o(je,Oe,I?jt:qe);return sn.on("error",()=>{qe("rename",""),Ct(at)}),sn}catch(sn){return P||(P=sn.code==="ENOSPC"),O(`sysLog:: ${je}:: Changing to watchFile`),tt()}}function jt(sn,Qt){let On;if(Qt&&ic(Qt,"~")&&(On=Qt,Qt=Qt.slice(0,Qt.length-1)),sn==="rename"&&(!Qt||Qt===Fe||ic(Qt,ze))){const jn=t(je)||ig;On&&qe(sn,On,jn),qe(sn,Qt,jn),I?Ct(jn===ig?at:Et):jn===ig&&Ct(at)}else On&&qe(sn,On),qe(sn,Qt)}function tt(){return de(je,U6e(qe),Me,Ye)}function at(){return de(je,(sn,Qt,On)=>{Qt===0&&(On||(On=t(je)||ig),On!==ig&&(qe("rename","",On),Ct(Et)))},Me,Ye)}}}function _ue(e){const t=e.writeFile;e.writeFile=(r,i,o)=>xq(r,i,!!o,(s,c,f)=>t.call(e,s,c,f),s=>e.createDirectory(s),s=>e.directoryExists(s))}function j6e(e){$c=e}var CW,FM,ig,HR,WR,zR,qR,LW,IW,$c,H6e=C({"src/compiler/sys.ts"(){Oa(),CW=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(CW||{}),FM=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(FM||{}),ig=new Date(0),HR={Low:32,Medium:64,High:256},WR=AW(HR),zR=AW(HR),qR=["/node_modules/.","/.git","/.#"],LW=oo,IW=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(IW||{}),$c=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=U0("fs"),s=U0("path"),c=U0("os");let f;try{f=U0("crypto")}catch{f=void 0}let d,y="./profile.cpuprofile";const h=U0("buffer").Buffer,E=process.platform==="linux"||process.platform==="darwin",A=c.platform(),L=ye(),I=o.realpathSync.native?process.platform==="win32"?Me:o.realpathSync.native:o.realpathSync,O=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,k=process.platform==="win32"||process.platform==="darwin",G=Ed(()=>process.cwd()),{watchFile:V,watchDirectory:H}=fue({pollingWatchFileWorker:W,getModifiedTime:ze,setTimeout,clearTimeout,fsWatchWorker:ce,useCaseSensitiveFileNames:L,getCurrentDirectory:G,fileSystemEntryExists:je,fsSupportsRecursiveFsWatch:k,getAccessibleSortedChildDirectories:Et=>ee(Et).directories,realpath:Ye,tscWatchFile:{}.TSC_WATCHFILE,useNonPollingWatchers:{}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{}.TSC_WATCHDIRECTORY,inodeWatching:E,sysLog:jR}),te={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:L,write(Et){process.stdout.write(Et)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ve,writeFile:Se,watchFile:V,watchDirectory:H,resolvePath:Et=>s.resolve(Et),fileExists:Ge,directoryExists:qe,createDirectory(Et){if(!te.directoryExists(Et))try{o.mkdirSync(Et)}catch(jt){if(jt.code!=="EEXIST")throw jt}},getExecutingFilePath(){return O},getCurrentDirectory:G,getDirectories:Oe,getEnvironmentVariable(Et){return process.env[Et]||""},readDirectory:Qe,getModifiedTime:ze,setModifiedTime:Fe,deleteFile:st,createHash:f?Ct:VR,createSHA256Hash:f?Ct:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(Et){try{const jt=X(Et);if(jt!=null&&jt.isFile())return jt.size}catch{}return 0},exit(Et){de(()=>process.exit(Et))},enableCPUProfiler:Y,disableCPUProfiler:de,cpuProfilingEnabled:()=>!!d||jr(process.execArgv,"--cpu-prof")||jr(process.execArgv,"--prof"),realpath:Ye,debugMode:!!{}.NODE_INSPECTOR_IPC||!!{}.VSCODE_INSPECTOR_OPTIONS||kt(process.execArgv,Et=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Et)),tryEnableSourceMapsForHost(){try{U0("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:re,base64decode:Et=>re(Et,"base64").toString("utf8"),base64encode:Et=>re(Et).toString("base64"),require:(Et,jt)=>{try{const tt=zhe(jt,Et,te);return{module:U0(tt),modulePath:tt,error:void 0}}catch(tt){return{module:void 0,modulePath:void 0,error:tt}}}};return te;function X(Et){return o.statSync(Et,{throwIfNoEntry:!1})}function Y(Et,jt){if(d)return jt(),!1;const tt=U0("inspector");if(!tt||!tt.Session)return jt(),!1;const at=new tt.Session;return at.connect(),at.post("Profiler.enable",()=>{at.post("Profiler.start",()=>{d=at,y=Et,jt()})}),!0}function P(Et){let jt=0;const tt=new Map,at=Qc(s.dirname(O)),sn=`file://${Kp(at)===1?"":"/"}${at}`;for(const Qt of Et.nodes)if(Qt.callFrame.url){const On=Qc(Qt.callFrame.url);Tv(sn,On,L)?Qt.callFrame.url=ax(sn,On,sn,ru(L),!0):i.test(On)||(Qt.callFrame.url=(tt.has(On)?tt:tt.set(On,`external${jt}.js`)).get(On),jt++)}return Et}function de(Et){if(d&&d!=="stopping"){const jt=d;return d.post("Profiler.stop",(tt,{profile:at})=>{var sn;if(!tt){try{(sn=X(y))!=null&&sn.isDirectory()&&(y=s.join(y,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(y),{recursive:!0})}catch{}o.writeFileSync(y,JSON.stringify(P(at)))}d=void 0,jt.disconnect(),Et()}),d="stopping",!0}else return Et(),!1}function re(Et,jt){return h.from&&h.from!==Int8Array.from?h.from(Et,jt):new h(Et,jt)}function ye(){return A==="win32"||A==="win64"?!1:!Ge(ae(__filename))}function ae(Et){return Et.replace(/\w/g,jt=>{const tt=jt.toUpperCase();return jt===tt?jt.toLowerCase():tt})}function W(Et,jt,tt){o.watchFile(Et,{persistent:!0,interval:tt},sn);let at;return{close:()=>o.unwatchFile(Et,sn)};function sn(Qt,On){const jn=+On.mtime==0||at===2;if(+Qt.mtime==0){if(jn)return;at=2}else if(jn)at=0;else{if(+Qt.mtime==+On.mtime)return;at=1}jt(Et,at,Qt.mtime)}}function ce(Et,jt,tt){return o.watch(Et,k?{persistent:!0,recursive:!!jt}:{persistent:!0},tt)}function me(Et,jt){let tt;try{tt=o.readFileSync(Et)}catch{return}let at=tt.length;if(at>=2&&tt[0]===254&&tt[1]===255){at&=-2;for(let sn=0;sn<at;sn+=2){const Qt=tt[sn];tt[sn]=tt[sn+1],tt[sn+1]=Qt}return tt.toString("utf16le",2)}return at>=2&&tt[0]===255&&tt[1]===254?tt.toString("utf16le",2):at>=3&&tt[0]===239&&tt[1]===187&&tt[2]===191?tt.toString("utf8",3):tt.toString("utf8")}function ve(Et,jt){Jp.logStartReadFile(Et);const tt=me(Et);return Jp.logStopReadFile(),tt}function Se(Et,jt,tt){Jp.logEvent("WriteFile: "+Et),tt&&(jt=e+jt);let at;try{at=o.openSync(Et,"w"),o.writeSync(at,jt,void 0,"utf8")}finally{at!==void 0&&o.closeSync(at)}}function ee(Et){Jp.logEvent("ReadDir: "+(Et||"."));try{const jt=o.readdirSync(Et||".",{withFileTypes:!0}),tt=[],at=[];for(const sn of jt){const Qt=typeof sn=="string"?sn:sn.name;if(Qt==="."||Qt==="..")continue;let On;if(typeof sn=="string"||sn.isSymbolicLink()){const jn=Bi(Et,Qt);try{if(On=X(jn),!On)continue}catch{continue}}else On=sn;On.isFile()?tt.push(Qt):On.isDirectory()&&at.push(Qt)}return tt.sort(),at.sort(),{files:tt,directories:at}}catch{return C7}}function Qe(Et,jt,tt,at,sn){return Zq(Et,jt,tt,at,L,process.cwd(),sn,ee,Ye)}function je(Et,jt){const tt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const at=X(Et);if(!at)return!1;switch(jt){case 0:return at.isFile();case 1:return at.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=tt}}function Ge(Et){return je(Et,0)}function qe(Et){return je(Et,1)}function Oe(Et){return ee(Et).directories.slice()}function Me(Et){return Et.length<260?o.realpathSync.native(Et):o.realpathSync(Et)}function Ye(Et){try{return I(Et)}catch{return Et}}function ze(Et){var jt;const tt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(jt=X(Et))==null?void 0:jt.mtime}catch{return}finally{Error.stackTraceLimit=tt}}function Fe(Et,jt){try{o.utimesSync(Et,jt,jt)}catch{return}}function st(Et){try{return o.unlinkSync(Et)}catch{return}}function Ct(Et){const jt=f.createHash("sha256");return jt.update(Et),jt.digest("hex")}}let r;return hH()&&(r=t()),r&&_ue(r),r})(),$c&&$c.getEnvironmentVariable&&(O6e($c),D.setAssertionLevel(/^development$/i.test($c.getEnvironmentVariable("NODE_ENV"))?1:0)),$c&&$c.debugMode&&(D.isDebugging=!0)}});function kW(e){return e===47||e===92}function pue(e){return JR(e)<0}function km(e){return JR(e)>0}function W6e(e){const t=JR(e);return t>0&&t===e.length}function kI(e){return JR(e)!==0}function Sf(e){return/^\.\.?($|[\\/])/.test(e)}function wW(e){return!kI(e)&&!Sf(e)}function kA(e){return pu(mu(e),".")}function cc(e,t){return e.length>t.length&&ic(e,t)}function Sc(e,t){for(const r of t)if(cc(e,r))return!0;return!1}function bv(e){return e.length>0&&kW(e.charCodeAt(e.length-1))}function mue(e){return e>=97&&e<=122||e>=65&&e<=90}function z6e(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function JR(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Ms:YR,2);return i<0?e.length:i+1}if(mue(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(MW);if(r!==-1){const i=r+MW.length,o=e.indexOf(Ms,i);if(o!==-1){const s=e.slice(0,r),c=e.slice(i,o);if(s==="file"&&(c===""||c==="localhost")&&mue(e.charCodeAt(o+1))){const f=z6e(e,o+2);if(f!==-1){if(e.charCodeAt(f)===47)return~(f+1);if(f===e.length)return~f}}return~(o+1)}return~e.length}return 0}function Kp(e){const t=JR(e);return t<0?~t:t}function hi(e){e=Qc(e);const t=Kp(e);return t===e.length?e:(e=tT(e),e.slice(0,Math.max(t,e.lastIndexOf(Ms))))}function mu(e,t,r){if(e=Qc(e),Kp(e)===e.length)return"";e=tT(e);const o=e.slice(Math.max(Kp(e),e.lastIndexOf(Ms)+1)),s=t!==void 0&&r!==void 0?BM(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function hue(e,t,r){if(xa(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function q6e(e,t,r){if(typeof t=="string")return hue(e,t,r)||"";for(const i of t){const o=hue(e,i,r);if(o)return o}return""}function BM(e,t,r){if(t)return q6e(tT(e),t,r?$S:QS);const i=mu(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function J6e(e,t){const r=e.substring(0,t),i=e.substring(t).split(Ms);return i.length&&!tl(i)&&i.pop(),[r,...i]}function ld(e,t=""){return e=Bi(t,e),J6e(e,Kp(e))}function f1(e){return e.length===0?"":(e[0]&&Pu(e[0]))+e.slice(1).join(Ms)}function Qc(e){return e.indexOf("\\")!==-1?e.replace(gue,Ms):e}function eT(e){if(!kt(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Bi(e,...t){e&&(e=Qc(e));for(let r of t)r&&(r=Qc(r),!e||Kp(r)!==0?e=r:e=Pu(e)+r);return e}function Ev(e,...t){return qo(kt(t)?Bi(e,...t):Qc(e))}function KR(e,t){return eT(ld(e,t))}function Pa(e,t){return f1(KR(e,t))}function qo(e){if(e=Qc(e),!$R.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!$R.test(e)))return e;const r=f1(eT(ld(e)));return r&&bv(e)?Pu(r):r}function K6e(e){return e.length===0?"":e.slice(1).join(Ms)}function DW(e,t){return K6e(KR(e,t))}function zs(e,t,r){const i=km(e)?qo(e):Pa(e,t);return r(i)}function tT(e){return bv(e)?e.substr(0,e.length-1):e}function Pu(e){return bv(e)?e:e+Ms}function _1(e){return!kI(e)&&!Sf(e)?"./"+e:e}function RW(e,t,r,i){const o=r!==void 0&&i!==void 0?BM(e,r,i):BM(e);return o?e.slice(0,e.length-o.length)+(xa(t,".")?t:"."+t):e}function NW(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,Kp(e)),o=t.substring(0,Kp(t)),s=cM(i,o);if(s!==0)return s;const c=e.substring(i.length),f=t.substring(o.length);if(!$R.test(c)&&!$R.test(f))return r(c,f);const d=eT(ld(e)),y=eT(ld(t)),h=Math.min(d.length,y.length);for(let E=1;E<h;E++){const A=r(d[E],y[E]);if(A!==0)return A}return Ws(d.length,y.length)}function X6e(e,t){return NW(e,t,Ou)}function Y6e(e,t){return NW(e,t,cM)}function nT(e,t,r,i){return typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),NW(e,t,uM(i))}function Tv(e,t,r,i){if(typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=eT(ld(e)),s=eT(ld(t));if(s.length<o.length)return!1;const c=i?$S:QS;for(let f=0;f<o.length;f++)if(!(f===0?$S:c)(o[f],s[f]))return!1;return!0}function OW(e,t,r){const i=r(e),o=r(t);return xa(i,o+"/")||xa(i,o+"\\")}function PW(e,t,r,i){const o=eT(ld(e)),s=eT(ld(t));let c;for(c=0;c<o.length&&c<s.length;c++){const y=i(o[c]),h=i(s[c]);if(!(c===0?$S:r)(y,h))break}if(c===0)return s;const f=s.slice(c),d=[];for(;c<o.length;c++)d.push("..");return["",...d,...f]}function wm(e,t,r){D.assert(Kp(e)>0==Kp(t)>0,"Paths must either both be absolute or both be relative");const s=PW(e,t,(typeof r=="boolean"?r:!1)?$S:QS,typeof r=="function"?r:ml);return f1(s)}function wI(e,t,r){return km(e)?ax(t,e,t,r,!1):e}function XR(e,t,r){return _1(wm(hi(e),t,r))}function ax(e,t,r,i,o){const s=PW(Ev(r,e),Ev(r,t),QS,i),c=s[0];if(o&&km(c)){const f=c.charAt(0)===Ms?"file://":"file:///";s[0]=f+c}return f1(s)}function ag(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=hi(e);if(i===e)return;e=i}}function GM(e){return ic(e,"/node_modules")}var Ms,YR,MW,gue,$R,$6e=C({"src/compiler/path.ts"(){Oa(),Ms="/",YR="\\",MW="://",gue=/\\/g,$R=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function T(e,t,r,i,o,s,c){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:c}}var _,Q6e=C({"src/compiler/diagnosticInformationMap.generated.ts"(){aue(),_={Unterminated_string_literal:T(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:T(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:T(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:T(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:T(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:T(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:T(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:T(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:T(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:T(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:T(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:T(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:T(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:T(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:T(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:T(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:T(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:T(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:T(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:T(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:T(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:T(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:T(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:T(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:T(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:T(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:T(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:T(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:T(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:T(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:T(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:T(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:T(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:T(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:T(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:T(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:T(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:T(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:T(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:T(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:T(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:T(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:T(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:T(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:T(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:T(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:T(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:T(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:T(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:T(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:T(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:T(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:T(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:T(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:T(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:T(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:T(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:T(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:T(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:T(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:T(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:T(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:T(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:T(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:T(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:T(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:T(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:T(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:T(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:T(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:T(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:T(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:T(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:T(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:T(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:T(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:T(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:T(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:T(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:T(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:T(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:T(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:T(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:T(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:T(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:T(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:T(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:T(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:T(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:T(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:T(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:T(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:T(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:T(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:T(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:T(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:T(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:T(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:T(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:T(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:T(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:T(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:T(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:T(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:T(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:T(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:T(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:T(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:T(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:T(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:T(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:T(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:T(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:T(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:T(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:T(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:T(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:T(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:T(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:T(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:T(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:T(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:T(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:T(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:T(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:T(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:T(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:T(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:T(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:T(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:T(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:T(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:T(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:T(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:T(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:T(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:T(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:T(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:T(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:T(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:T(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:T(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:T(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:T(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:T(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:T(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:T(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:T(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:T(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:T(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:T(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:T(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:T(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:T(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:T(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:T(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:T(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:T(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:T(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:T(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:T(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:T(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:T(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:T(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:T(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:T(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:T(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:T(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:T(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:T(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:T(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:T(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:T(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:T(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:T(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:T(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:T(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:T(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:T(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:T(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:T(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:T(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:T(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:T(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:T(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:T(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:T(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:T(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:T(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:T(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:T(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:T(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:T(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:T(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:T(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:T(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:T(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:T(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:T(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:T(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:T(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:T(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:T(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:T(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:T(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:T(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:T(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:T(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:T(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:T(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:T(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:T(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:T(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:T(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:T(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:T(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:T(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:T(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:T(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:T(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:T(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:T(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:T(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:T(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:T(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:T(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:T(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:T(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:T(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:T(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:T(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:T(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:T(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:T(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:T(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:T(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:T(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:T(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:T(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:T(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:T(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:T(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:T(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:T(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:T(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:T(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:T(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:T(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:T(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:T(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:T(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:T(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:T(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:T(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:T(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:T(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:T(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:T(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:T(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:T(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:T(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:T(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:T(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:T(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:T(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:T(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:T(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:T(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:T(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:T(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:T(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:T(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:T(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:T(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:T(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:T(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:T(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:T(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:T(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:T(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:T(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:T(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:T(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:T(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:T(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:T(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:T(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:T(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:T(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:T(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:T(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:T(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:T(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:T(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:T(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:T(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:T(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:T(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:T(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:T(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:T(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:T(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:T(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:T(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:T(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:T(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:T(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:T(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:T(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:T(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:T(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:T(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:T(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:T(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:T(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:T(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:T(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:T(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:T(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:T(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:T(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:T(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:T(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:T(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:T(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:T(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:T(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:T(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:T(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:T(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:T(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:T(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:T(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:T(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:T(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:T(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:T(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:T(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:T(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:T(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:T(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:T(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:T(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:T(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:T(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:T(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:T(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:T(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:T(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:T(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:T(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:T(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:T(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:T(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:T(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:T(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:T(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:T(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:T(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:T(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:T(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:T(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:T(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:T(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:T(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:T(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:T(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:T(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:T(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:T(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:T(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:T(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:T(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:T(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:T(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:T(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:T(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:T(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:T(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:T(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:T(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:T(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:T(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:T(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:T(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:T(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:T(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:T(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:T(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:T(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:T(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:T(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:T(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:T(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:T(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:T(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:T(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:T(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:T(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:T(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:T(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:T(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:T(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:T(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:T(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:T(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:T(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:T(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:T(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:T(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:T(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:T(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:T(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:T(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:T(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:T(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:T(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:T(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:T(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:T(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:T(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:T(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:T(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:T(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:T(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:T(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:T(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:T(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:T(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:T(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:T(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:T(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:T(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:T(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:T(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:T(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:T(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:T(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:T(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:T(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:T(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:T(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:T(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:T(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:T(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:T(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:T(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:T(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:T(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:T(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:T(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:T(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:T(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:T(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:T(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:T(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:T(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:T(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:T(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:T(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:T(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:T(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:T(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:T(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:T(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:T(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:T(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:T(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:T(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:T(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:T(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:T(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:T(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:T(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:T(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:T(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:T(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:T(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:T(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:T(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:T(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:T(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:T(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:T(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:T(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:T(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:T(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:T(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:T(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:T(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:T(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:T(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:T(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:T(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:T(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:T(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:T(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:T(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:T(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:T(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:T(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:T(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:T(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:T(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:T(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:T(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:T(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:T(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:T(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:T(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:T(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:T(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:T(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:T(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:T(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:T(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:T(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:T(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:T(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:T(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:T(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:T(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:T(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:T(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:T(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:T(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:T(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:T(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:T(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:T(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:T(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:T(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:T(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:T(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:T(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:T(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:T(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:T(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:T(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:T(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:T(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:T(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:T(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:T(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:T(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:T(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:T(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:T(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:T(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:T(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:T(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:T(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:T(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:T(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:T(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:T(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:T(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:T(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:T(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:T(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:T(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:T(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:T(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:T(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:T(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:T(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:T(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:T(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:T(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:T(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:T(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:T(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:T(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:T(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:T(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:T(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:T(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:T(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:T(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:T(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:T(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:T(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:T(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:T(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:T(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:T(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:T(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:T(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:T(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:T(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:T(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:T(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:T(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:T(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:T(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:T(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:T(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:T(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:T(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:T(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:T(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:T(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:T(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:T(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:T(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:T(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:T(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:T(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:T(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:T(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:T(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:T(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:T(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:T(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:T(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:T(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:T(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:T(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:T(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:T(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:T(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:T(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:T(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:T(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:T(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:T(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:T(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:T(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:T(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:T(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:T(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:T(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:T(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:T(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:T(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:T(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:T(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:T(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:T(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:T(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:T(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:T(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:T(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:T(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:T(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:T(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:T(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:T(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:T(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:T(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:T(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:T(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:T(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:T(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:T(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:T(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:T(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:T(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:T(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:T(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:T(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:T(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:T(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:T(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:T(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:T(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:T(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:T(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:T(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:T(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:T(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:T(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:T(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:T(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:T(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:T(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:T(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:T(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:T(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:T(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:T(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:T(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:T(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:T(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:T(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:T(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:T(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:T(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:T(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:T(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:T(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:T(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:T(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:T(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:T(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:T(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:T(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:T(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:T(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:T(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:T(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:T(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:T(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:T(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:T(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:T(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:T(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:T(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:T(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:T(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:T(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:T(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:T(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:T(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:T(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:T(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:T(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:T(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:T(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:T(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:T(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:T(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:T(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:T(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:T(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:T(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:T(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:T(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:T(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:T(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:T(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:T(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:T(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:T(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:T(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:T(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:T(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:T(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:T(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:T(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:T(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:T(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:T(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:T(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:T(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:T(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:T(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:T(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:T(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:T(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:T(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:T(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:T(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:T(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:T(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:T(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:T(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:T(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:T(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:T(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:T(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:T(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:T(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:T(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:T(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:T(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:T(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:T(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:T(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:T(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:T(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:T(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:T(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:T(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:T(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:T(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:T(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:T(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:T(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:T(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:T(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:T(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:T(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:T(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:T(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:T(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:T(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:T(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:T(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:T(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:T(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:T(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:T(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:T(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:T(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:T(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:T(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:T(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:T(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:T(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:T(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:T(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:T(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:T(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:T(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:T(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:T(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:T(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:T(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:T(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:T(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:T(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:T(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:T(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:T(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:T(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:T(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:T(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:T(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:T(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:T(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:T(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:T(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:T(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:T(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:T(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:T(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:T(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:T(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:T(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:T(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:T(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:T(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:T(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:T(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:T(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),Import_declaration_0_is_using_private_name_1:T(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:T(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:T(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:T(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:T(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:T(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:T(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:T(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:T(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:T(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:T(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:T(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:T(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:T(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:T(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:T(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:T(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:T(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:T(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:T(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:T(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:T(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:T(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:T(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:T(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:T(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:T(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:T(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:T(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:T(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:T(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:T(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:T(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:T(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:T(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:T(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:T(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:T(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:T(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:T(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:T(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:T(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:T(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:T(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:T(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:T(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:T(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:T(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:T(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:T(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:T(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:T(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:T(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:T(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:T(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:T(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:T(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:T(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:T(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:T(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:T(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:T(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:T(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:T(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:T(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:T(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:T(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:T(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:T(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:T(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:T(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:T(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:T(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:T(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:T(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:T(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:T(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:T(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:T(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:T(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:T(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:T(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:T(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:T(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:T(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:T(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:T(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:T(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:T(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:T(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:T(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:T(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:T(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:T(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:T(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:T(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:T(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:T(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:T(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:T(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:T(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:T(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:T(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:T(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:T(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:T(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:T(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:T(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:T(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:T(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:T(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:T(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:T(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:T(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:T(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:T(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:T(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:T(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:T(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:T(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:T(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:T(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:T(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:T(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:T(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:T(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:T(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:T(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:T(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:T(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:T(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:T(6024,3,"options_6024","options"),file:T(6025,3,"file_6025","file"),Examples_Colon_0:T(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:T(6027,3,"Options_Colon_6027","Options:"),Version_0:T(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:T(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:T(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:T(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:T(6034,3,"KIND_6034","KIND"),FILE:T(6035,3,"FILE_6035","FILE"),VERSION:T(6036,3,"VERSION_6036","VERSION"),LOCATION:T(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:T(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:T(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:T(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:T(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:T(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:T(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:T(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:T(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:T(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:T(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:T(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:T(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:T(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:T(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:T(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:T(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:T(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:T(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:T(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:T(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:T(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:T(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:T(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:T(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:T(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:T(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:T(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:T(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:T(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:T(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:T(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:T(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:T(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:T(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:T(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:T(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:T(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:T(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:T(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:T(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:T(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:T(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:T(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:T(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:T(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:T(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:T(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:T(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:T(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:T(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:T(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:T(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:T(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:T(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:T(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:T(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:T(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:T(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:T(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:T(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:T(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:T(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:T(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:T(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:T(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:T(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:T(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:T(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:T(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:T(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:T(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:T(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:T(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:T(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:T(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:T(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:T(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:T(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:T(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:T(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:T(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:T(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:T(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:T(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:T(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:T(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:T(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:T(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:T(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:T(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:T(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:T(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:T(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:T(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:T(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:T(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:T(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:T(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:T(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:T(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:T(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:T(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:T(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:T(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:T(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:T(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:T(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:T(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:T(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:T(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:T(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:T(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:T(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:T(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:T(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:T(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:T(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:T(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:T(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:T(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:T(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:T(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:T(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:T(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:T(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:T(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:T(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:T(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:T(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:T(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:T(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:T(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:T(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:T(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:T(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:T(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:T(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:T(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:T(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:T(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:T(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:T(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:T(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:T(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:T(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:T(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:T(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:T(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:T(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:T(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:T(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:T(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:T(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:T(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:T(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:T(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:T(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:T(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:T(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:T(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:T(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:T(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:T(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:T(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:T(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:T(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:T(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:T(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:T(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:T(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:T(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:T(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:T(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:T(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:T(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:T(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:T(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:T(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:T(6244,3,"Modules_6244","Modules"),File_Management:T(6245,3,"File_Management_6245","File Management"),Emit:T(6246,3,"Emit_6246","Emit"),JavaScript_Support:T(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:T(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:T(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:T(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:T(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:T(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:T(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:T(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:T(6255,3,"Projects_6255","Projects"),Output_Formatting:T(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:T(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:T(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:T(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:T(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:T(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:T(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:T(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:T(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:T(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:T(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:T(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:T(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:T(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:T(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:T(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:T(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:T(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:T(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:T(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:T(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:T(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:T(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:T(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:T(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:T(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:T(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:T(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:T(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:T(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:T(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:T(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:T(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:T(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:T(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:T(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:T(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:T(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:T(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:T(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:T(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:T(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:T(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:T(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:T(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:T(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:T(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:T(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:T(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:T(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:T(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:T(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:T(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:T(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:T(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:T(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:T(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:T(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:T(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:T(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:T(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:T(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:T(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:T(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:T(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:T(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:T(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:T(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:T(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:T(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:T(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:T(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:T(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:T(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:T(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:T(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:T(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:T(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:T(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:T(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:T(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:T(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:T(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:T(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:T(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:T(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:T(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:T(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:T(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:T(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:T(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:T(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:T(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:T(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:T(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:T(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:T(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:T(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:T(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:T(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:T(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:T(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:T(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:T(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:T(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:T(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:T(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:T(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:T(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:T(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:T(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:T(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:T(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:T(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:T(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:T(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:T(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:T(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:T(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:T(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:T(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:T(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:T(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:T(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:T(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:T(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:T(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:T(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:T(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:T(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:T(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:T(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:T(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:T(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:T(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:T(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:T(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:T(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:T(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:T(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:T(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:T(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:T(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:T(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:T(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:T(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:T(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:T(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:T(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:T(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:T(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:T(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:T(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:T(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:T(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:T(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:T(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:T(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:T(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:T(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:T(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:T(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:T(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:T(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:T(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:T(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:T(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:T(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:T(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:T(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:T(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:T(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:T(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:T(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:T(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:T(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:T(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:T(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:T(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:T(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:T(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:T(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:T(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:T(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:T(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:T(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:T(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:T(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:T(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:T(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:T(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:T(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:T(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:T(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:T(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:T(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:T(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:T(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:T(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:T(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:T(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:T(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:T(6902,3,"type_Colon_6902","type:"),default_Colon:T(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:T(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:T(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:T(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:T(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:T(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:T(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:T(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:T(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:T(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:T(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:T(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:T(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:T(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:T(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:T(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:T(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:T(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:T(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:T(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:T(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:T(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:T(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:T(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:T(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:T(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:T(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:T(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:T(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:T(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:T(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:T(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:T(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:T(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:T(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:T(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:T(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:T(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:T(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:T(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:T(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:T(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:T(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:T(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:T(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:T(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:T(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:T(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:T(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:T(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:T(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:T(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:T(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:T(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:T(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:T(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:T(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:T(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:T(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:T(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:T(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:T(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:T(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:T(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:T(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:T(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:T(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:T(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:T(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:T(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:T(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:T(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:T(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:T(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:T(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:T(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:T(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:T(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:T(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:T(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:T(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:T(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:T(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:T(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:T(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:T(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:T(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:T(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:T(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:T(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:T(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:T(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:T(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:T(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:T(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:T(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:T(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:T(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:T(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:T(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:T(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:T(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:T(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:T(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:T(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:T(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:T(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:T(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:T(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:T(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:T(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:T(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:T(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:T(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:T(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:T(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:T(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:T(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:T(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:T(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:T(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:T(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:T(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:T(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:T(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:T(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:T(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:T(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:T(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:T(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:T(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:T(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:T(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:T(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:T(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:T(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:T(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:T(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:T(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:T(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:T(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:T(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:T(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:T(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:T(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:T(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:T(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:T(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:T(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:T(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:T(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:T(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:T(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:T(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:T(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:T(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:T(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:T(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:T(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:T(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:T(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:T(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:T(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:T(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:T(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:T(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:T(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:T(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:T(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:T(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:T(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:T(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:T(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:T(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:T(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:T(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:T(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:T(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:T(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:T(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:T(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:T(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:T(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:T(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:T(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:T(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:T(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:T(95005,3,"Extract_function_95005","Extract function"),Extract_constant:T(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:T(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:T(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:T(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:T(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:T(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:T(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:T(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:T(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:T(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:T(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:T(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:T(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:T(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:T(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:T(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:T(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:T(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:T(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:T(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:T(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:T(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:T(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:T(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:T(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:T(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:T(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:T(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:T(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:T(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:T(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:T(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:T(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:T(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:T(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:T(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:T(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:T(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:T(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:T(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:T(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:T(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:T(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:T(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:T(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:T(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:T(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:T(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:T(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:T(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:T(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:T(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:T(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:T(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:T(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:T(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:T(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:T(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:T(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:T(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:T(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:T(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:T(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:T(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:T(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:T(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:T(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:T(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:T(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:T(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:T(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:T(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:T(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:T(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:T(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:T(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:T(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:T(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:T(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:T(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:T(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:T(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:T(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:T(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:T(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:T(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:T(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:T(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:T(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:T(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:T(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:T(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:T(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:T(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:T(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:T(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:T(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:T(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:T(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:T(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:T(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:T(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:T(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:T(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:T(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:T(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:T(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:T(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:T(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:T(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:T(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:T(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:T(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:T(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:T(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:T(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:T(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:T(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:T(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:T(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:T(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:T(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:T(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:T(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:T(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:T(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:T(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:T(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:T(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:T(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:T(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:T(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:T(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:T(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:T(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:T(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:T(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:T(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:T(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:T(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:T(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:T(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:T(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:T(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:T(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:T(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:T(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:T(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:T(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:T(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:T(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:T(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:T(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:T(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:T(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:T(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:T(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:T(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:T(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:T(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:T(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:T(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:T(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:T(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:T(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:T(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:T(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:T(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:T(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:T(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:T(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:T(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:T(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:T(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:T(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:T(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:T(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:T(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:T(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:T(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:T(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:T(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:T(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:T(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:T(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:T(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:T(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:T(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:T(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:T(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:T(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:T(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:T(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:T(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:T(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:T(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:T(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:T(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:T(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:T(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:T(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:T(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:T(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:T(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function Qu(e){return e>=79}function yue(e){return e===31||Qu(e)}function DI(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 UM(e,t){return t>=2?DI(e,Iue):t===1?DI(e,Cue):DI(e,xue)}function Z6e(e,t){return t>=2?DI(e,kue):t===1?DI(e,Lue):DI(e,Aue)}function ePe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function yo(e){return Rue[e]}function rT(e){return VW.get(e)}function QR(e){const t=[];let r=0,i=0;for(;r<e.length;){const o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&hu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function ZR(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):FW(og(e),t,r,e.text,i)}function FW(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:D.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Zo(e,QR(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?D.assert(s<e[t+1]):i!==void 0&&D.assert(s<=i.length),s)}function og(e){return e.lineMap||(e.lineMap=QR(e.text))}function eN(e,t){const r=RI(e,t);return{line:r,character:t-e[r]}}function RI(e,t,r){let i=vv(e,t,ml,Ws,r);return i<0&&(i=~i-1,D.assert(i!==-1,"position cannot precede the beginning of the file")),i}function NI(e,t,r){if(t===r)return 0;const i=og(e),o=Math.min(t,r),s=o===r,c=s?t:r,f=RI(i,o),d=RI(i,c,f);return s?f-d:d-f}function ol(e,t){return eN(og(e),t)}function sg(e){return Dm(e)||hu(e)}function Dm(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function hu(e){return e===10||e===13||e===8232||e===8233}function OI(e){return e>=48&&e<=57}function VM(e){return OI(e)||e>=65&&e<=70||e>=97&&e<=102}function tPe(e){return e<=1114111}function BW(e){return e>=48&&e<=55}function vue(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Jo(e,t,r,i,o){if(em(t))return t;let s=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!hu(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(wA(e,t)){t=PI(e,t),s=!1;continue}break;case 35:if(t===0&&GW(e,t)){t=UW(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(c>127&&sg(c)){t++;continue}break}return t}}function wA(e,t){if(D.assert(t>=0),t===0||hu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+iN<e.length){for(let i=0;i<iN;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+iN)===32}}return!1}function PI(e,t,r){r&&r(_.Merge_conflict_marker_encountered,t,iN);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!hu(e.charCodeAt(t));)t++;else for(D.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&wA(e,t))break;t++}return t}function GW(e,t){return D.assert(t===0),WM.test(e)}function UW(e,t){const r=WM.exec(e)[0];return t=t+r.length,t}function jM(e,t,r,i,o,s,c){let f,d,y,h,E=!1,A=i,L=c;if(r===0){A=!0;const I=HM(t);I&&(r=I.length)}e:for(;r>=0&&r<t.length;){const I=t.charCodeAt(r);switch(I){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;A=!0,E&&(h=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const O=t.charCodeAt(r+1);let k=!1;if(O===47||O===42){const G=O===47?2:3,V=r;if(r+=2,O===47)for(;r<t.length;){if(hu(t.charCodeAt(r))){k=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(A){if(E&&(L=o(f,d,y,h,s,L),!e&&L))return L;f=V,d=r,y=G,h=k,E=!0}continue}break e;default:if(I>127&&sg(I)){E&&hu(I)&&(h=!0),r++;continue}break e}}return E&&(L=o(f,d,y,h,s,L)),L}function tN(e,t,r,i){return jM(!1,e,t,!1,r,i)}function nN(e,t,r,i){return jM(!1,e,t,!0,r,i)}function bue(e,t,r,i,o){return jM(!0,e,t,!1,r,i,o)}function Eue(e,t,r,i,o){return jM(!0,e,t,!0,r,i,o)}function Tue(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function mh(e,t){return bue(e,t,Tue,void 0,void 0)}function W0(e,t){return Eue(e,t,Tue,void 0,void 0)}function HM(e){const t=WM.exec(e);if(t)return t[0]}function hh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&UM(e,t)}function z0(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&Z6e(e,t)}function M_(e,t,r){let i=_y(e,0);if(!hh(i,t))return!1;for(let o=Sv(i);o<e.length;o+=Sv(i))if(!z0(i=_y(e,o),t,r))return!1;return!0}function fy(e,t,r=0,i,o,s,c){var f=i,d,y,h,E,A,L,I,O,k=0;Wt(f,s,c);var G={getStartPos:()=>h,getTextPos:()=>d,getToken:()=>A,getTokenPos:()=>E,getTokenText:()=>f.substring(E,d),getTokenValue:()=>L,hasUnicodeEscape:()=>(I&1024)!==0,hasExtendedUnicodeEscape:()=>(I&8)!==0,hasPrecedingLineBreak:()=>(I&1)!==0,hasPrecedingJSDocComment:()=>(I&2)!==0,isIdentifier:()=>A===79||A>116,isReservedWord:()=>A>=81&&A<=116,isUnterminated:()=>(I&4)!==0,getCommentDirectives:()=>O,getNumericLiteralFlags:()=>I&1008,getTokenFlags:()=>I,reScanGreaterToken:Ye,reScanAsteriskEqualsToken:ze,reScanSlashToken:Fe,reScanTemplateToken:Et,reScanTemplateHeadOrNoSubstitutionTemplate:jt,scanJsxIdentifier:jn,scanJsxAttributeValue:In,reScanJsxAttributeValue:Zt,reScanJsxToken:tt,reScanLessThanToken:at,reScanHashToken:sn,reScanQuestionToken:Qt,reScanInvalidIdentifier:Oe,scanJsxToken:On,scanJsDocToken:_r,scan:qe,getText:At,clearCommentDirectives:vn,setText:Wt,setScriptTarget:rr,setLanguageVariant:cr,setOnError:dn,setTextPos:Pi,setInJSDocType:gi,tryScan:Or,lookAhead:Qi,scanRange:$i};return D.isDebugging&&Object.defineProperty(G,"__debugShowCurrentPositionInText",{get:()=>{const Rn=G.getText();return Rn.slice(0,G.getStartPos())+"║"+Rn.slice(G.getStartPos())}}),G;function V(Rn,an=d,Pn){if(o){const Ar=d;d=an,o(Rn,Pn||0),d=Ar}}function H(){let Rn=d,an=!1,Pn=!1,Ar="";for(;;){const Hr=f.charCodeAt(d);if(Hr===95){I|=512,an?(an=!1,Pn=!0,Ar+=f.substring(Rn,d)):V(Pn?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++,Rn=d;continue}if(OI(Hr)){an=!0,Pn=!1,d++;continue}break}return f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),Ar+f.substring(Rn,d)}function te(){const Rn=d,an=H();let Pn,Ar;f.charCodeAt(d)===46&&(d++,Pn=H());let Hr=d;if(f.charCodeAt(d)===69||f.charCodeAt(d)===101){d++,I|=16,(f.charCodeAt(d)===43||f.charCodeAt(d)===45)&&d++;const yt=d,Nt=H();Nt?(Ar=f.substring(Hr,yt)+Nt,Hr=d):V(_.Digit_expected)}let we;if(I&512?(we=an,Pn&&(we+="."+Pn),Ar&&(we+=Ar)):we=f.substring(Rn,Hr),Pn!==void 0||I&16)return X(Rn,Pn===void 0&&!!(I&16)),{type:8,value:""+ +we};{L=we;const yt=Ge();return X(Rn),{type:yt,value:L}}}function X(Rn,an){if(!hh(_y(f,d),e))return;const Pn=d,{length:Ar}=ee();Ar===1&&f[Pn]==="n"?V(an?_.A_bigint_literal_cannot_use_exponential_notation:_.A_bigint_literal_must_be_an_integer,Rn,Pn-Rn+1):(V(_.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Pn,Ar),d=Pn)}function Y(){const Rn=d;for(;BW(f.charCodeAt(d));)d++;return+f.substring(Rn,d)}function P(Rn,an){const Pn=re(Rn,!1,an);return Pn?parseInt(Pn,16):-1}function de(Rn,an){return re(Rn,!0,an)}function re(Rn,an,Pn){let Ar=[],Hr=!1,we=!1;for(;Ar.length<Rn||an;){let yt=f.charCodeAt(d);if(Pn&&yt===95){I|=512,Hr?(Hr=!1,we=!0):V(we?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Hr=Pn,yt>=65&&yt<=70)yt+=97-65;else if(!(yt>=48&&yt<=57||yt>=97&&yt<=102))break;Ar.push(yt),d++,we=!1}return Ar.length<Rn&&(Ar=[]),f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...Ar)}function ye(Rn=!1){const an=f.charCodeAt(d);d++;let Pn="",Ar=d;for(;;){if(d>=y){Pn+=f.substring(Ar,d),I|=4,V(_.Unterminated_string_literal);break}const Hr=f.charCodeAt(d);if(Hr===an){Pn+=f.substring(Ar,d),d++;break}if(Hr===92&&!Rn){Pn+=f.substring(Ar,d),Pn+=W(),Ar=d;continue}if(hu(Hr)&&!Rn){Pn+=f.substring(Ar,d),I|=4,V(_.Unterminated_string_literal);break}d++}return Pn}function ae(Rn){const an=f.charCodeAt(d)===96;d++;let Pn=d,Ar="",Hr;for(;;){if(d>=y){Ar+=f.substring(Pn,d),I|=4,V(_.Unterminated_template_literal),Hr=an?14:17;break}const we=f.charCodeAt(d);if(we===96){Ar+=f.substring(Pn,d),d++,Hr=an?14:17;break}if(we===36&&d+1<y&&f.charCodeAt(d+1)===123){Ar+=f.substring(Pn,d),d+=2,Hr=an?15:16;break}if(we===92){Ar+=f.substring(Pn,d),Ar+=W(Rn),Pn=d;continue}if(we===13){Ar+=f.substring(Pn,d),d++,d<y&&f.charCodeAt(d)===10&&d++,Ar+=` `,Pn=d;continue}d++}return D.assert(Hr!==void 0),L=Ar,Hr}function W(Rn){const an=d;if(d++,d>=y)return V(_.Unexpected_end_of_text),"";const Pn=f.charCodeAt(d);switch(d++,Pn){case 48:return Rn&&d<y&&OI(f.charCodeAt(d))?(d++,I|=2048,f.substring(an,d)):"\0";case 98:return"\b";case 116:return" ";case 110:return` `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Rn){for(let Ar=d;Ar<d+4;Ar++)if(Ar<y&&!VM(f.charCodeAt(Ar))&&f.charCodeAt(Ar)!==123)return d=Ar,I|=2048,f.substring(an,d)}if(d<y&&f.charCodeAt(d)===123){if(d++,Rn&&!VM(f.charCodeAt(d)))return I|=2048,f.substring(an,d);if(Rn){const Ar=d,Hr=de(1,!1),we=Hr?parseInt(Hr,16):-1;if(!tPe(we)||f.charCodeAt(d)!==125)return I|=2048,f.substring(an,d);d=Ar}return I|=8,me()}return I|=1024,ce(4);case 120:if(Rn)if(VM(f.charCodeAt(d))){if(!VM(f.charCodeAt(d+1)))return d++,I|=2048,f.substring(an,d)}else return I|=2048,f.substring(an,d);return ce(2);case 13:d<y&&f.charCodeAt(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Pn)}}function ce(Rn){const an=P(Rn,!1);return an>=0?String.fromCharCode(an):(V(_.Hexadecimal_digit_expected),"")}function me(){const Rn=de(1,!1),an=Rn?parseInt(Rn,16):-1;let Pn=!1;return an<0?(V(_.Hexadecimal_digit_expected),Pn=!0):an>1114111&&(V(_.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Pn=!0),d>=y?(V(_.Unexpected_end_of_text),Pn=!0):f.charCodeAt(d)===125?d++:(V(_.Unterminated_Unicode_escape_sequence),Pn=!0),Pn?"":MI(an)}function ve(){if(d+5<y&&f.charCodeAt(d+1)===117){const Rn=d;d+=2;const an=P(4,!1);return d=Rn,an}return-1}function Se(){if(_y(f,d+1)===117&&_y(f,d+2)===123){const Rn=d;d+=3;const an=de(1,!1),Pn=an?parseInt(an,16):-1;return d=Rn,Pn}return-1}function ee(){let Rn="",an=d;for(;d<y;){let Pn=_y(f,d);if(z0(Pn,e))d+=Sv(Pn);else if(Pn===92){if(Pn=Se(),Pn>=0&&z0(Pn,e)){d+=3,I|=8,Rn+=me(),an=d;continue}if(Pn=ve(),!(Pn>=0&&z0(Pn,e)))break;I|=1024,Rn+=f.substring(an,d),Rn+=MI(Pn),d+=6,an=d}else break}return Rn+=f.substring(an,d),Rn}function Qe(){const Rn=L.length;if(Rn>=2&&Rn<=12){const an=L.charCodeAt(0);if(an>=97&&an<=122){const Pn=Sue.get(L);if(Pn!==void 0)return A=Pn}}return A=79}function je(Rn){let an="",Pn=!1,Ar=!1;for(;;){const Hr=f.charCodeAt(d);if(Hr===95){I|=512,Pn?(Pn=!1,Ar=!0):V(Ar?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Pn=!0,!OI(Hr)||Hr-48>=Rn)break;an+=f[d],d++,Ar=!1}return f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),an}function Ge(){return f.charCodeAt(d)===110?(L+="n",I&384&&(L=Dk(L)+"n"),d++,9):(L=""+(I&128?parseInt(L.slice(2),2):I&256?parseInt(L.slice(2),8):+L),8)}function qe(){h=d,I=0;let Rn=!1;for(;;){if(E=d,d>=y)return A=1;const an=_y(f,d);if(an===35&&d===0&&GW(f,d)){if(d=UW(f,d),t)continue;return A=6}switch(an){case 10:case 13:if(I|=1,t){d++;continue}else return an===13&&d+1<y&&f.charCodeAt(d+1)===10?d+=2:d++,A=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<y&&Dm(f.charCodeAt(d));)d++;return A=5}case 33:return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,A=37):(d+=2,A=35):(d++,A=53);case 34:case 39:return L=ye(),A=10;case 96:return A=ae(!1);case 37:return f.charCodeAt(d+1)===61?(d+=2,A=69):(d++,A=44);case 38:return f.charCodeAt(d+1)===38?f.charCodeAt(d+2)===61?(d+=3,A=76):(d+=2,A=55):f.charCodeAt(d+1)===61?(d+=2,A=73):(d++,A=50);case 40:return d++,A=20;case 41:return d++,A=21;case 42:if(f.charCodeAt(d+1)===61)return d+=2,A=66;if(f.charCodeAt(d+1)===42)return f.charCodeAt(d+2)===61?(d+=3,A=67):(d+=2,A=42);if(d++,k&&!Rn&&I&1){Rn=!0;continue}return A=41;case 43:return f.charCodeAt(d+1)===43?(d+=2,A=45):f.charCodeAt(d+1)===61?(d+=2,A=64):(d++,A=39);case 44:return d++,A=27;case 45:return f.charCodeAt(d+1)===45?(d+=2,A=46):f.charCodeAt(d+1)===61?(d+=2,A=65):(d++,A=40);case 46:return OI(f.charCodeAt(d+1))?(L=te().value,A=8):f.charCodeAt(d+1)===46&&f.charCodeAt(d+2)===46?(d+=3,A=25):(d++,A=24);case 47:if(f.charCodeAt(d+1)===47){for(d+=2;d<y&&!hu(f.charCodeAt(d));)d++;if(O=st(O,f.slice(E,d),wue,E),t)continue;return A=2}if(f.charCodeAt(d+1)===42){d+=2,f.charCodeAt(d)===42&&f.charCodeAt(d+1)!==47&&(I|=2);let Nt=!1,Ce=E;for(;d<y;){const pt=f.charCodeAt(d);if(pt===42&&f.charCodeAt(d+1)===47){d+=2,Nt=!0;break}d++,hu(pt)&&(Ce=d,I|=1)}if(O=st(O,f.slice(Ce,d),Due,Ce),Nt||V(_.Asterisk_Slash_expected),t)continue;return Nt||(I|=4),A=3}return f.charCodeAt(d+1)===61?(d+=2,A=68):(d++,A=43);case 48:if(d+2<y&&(f.charCodeAt(d+1)===88||f.charCodeAt(d+1)===120))return d+=2,L=de(1,!0),L||(V(_.Hexadecimal_digit_expected),L="0"),L="0x"+L,I|=64,A=Ge();if(d+2<y&&(f.charCodeAt(d+1)===66||f.charCodeAt(d+1)===98))return d+=2,L=je(2),L||(V(_.Binary_digit_expected),L="0"),L="0b"+L,I|=128,A=Ge();if(d+2<y&&(f.charCodeAt(d+1)===79||f.charCodeAt(d+1)===111))return d+=2,L=je(8),L||(V(_.Octal_digit_expected),L="0"),L="0o"+L,I|=256,A=Ge();if(d+1<y&&BW(f.charCodeAt(d+1)))return L=""+Y(),I|=32,A=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:A,value:L}=te(),A;case 58:return d++,A=58;case 59:return d++,A=26;case 60:if(wA(f,d)){if(d=PI(f,d,V),t)continue;return A=7}return f.charCodeAt(d+1)===60?f.charCodeAt(d+2)===61?(d+=3,A=70):(d+=2,A=47):f.charCodeAt(d+1)===61?(d+=2,A=32):r===1&&f.charCodeAt(d+1)===47&&f.charCodeAt(d+2)!==42?(d+=2,A=30):(d++,A=29);case 61:if(wA(f,d)){if(d=PI(f,d,V),t)continue;return A=7}return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,A=36):(d+=2,A=34):f.charCodeAt(d+1)===62?(d+=2,A=38):(d++,A=63);case 62:if(wA(f,d)){if(d=PI(f,d,V),t)continue;return A=7}return d++,A=31;case 63:return f.charCodeAt(d+1)===46&&!OI(f.charCodeAt(d+2))?(d+=2,A=28):f.charCodeAt(d+1)===63?f.charCodeAt(d+2)===61?(d+=3,A=77):(d+=2,A=60):(d++,A=57);case 91:return d++,A=22;case 93:return d++,A=23;case 94:return f.charCodeAt(d+1)===61?(d+=2,A=78):(d++,A=52);case 123:return d++,A=18;case 124:if(wA(f,d)){if(d=PI(f,d,V),t)continue;return A=7}return f.charCodeAt(d+1)===124?f.charCodeAt(d+2)===61?(d+=3,A=75):(d+=2,A=56):f.charCodeAt(d+1)===61?(d+=2,A=74):(d++,A=51);case 125:return d++,A=19;case 126:return d++,A=54;case 64:return d++,A=59;case 92:const Pn=Se();if(Pn>=0&&hh(Pn,e))return d+=3,I|=8,L=me()+ee(),A=Qe();const Ar=ve();return Ar>=0&&hh(Ar,e)?(d+=6,I|=1024,L=String.fromCharCode(Ar)+ee(),A=Qe()):(V(_.Invalid_character),d++,A=0);case 35:if(d!==0&&f[d+1]==="!")return V(_.can_only_be_used_at_the_start_of_a_file),d++,A=0;const Hr=_y(f,d+1);if(Hr===92){d++;const Nt=Se();if(Nt>=0&&hh(Nt,e))return d+=3,I|=8,L="#"+me()+ee(),A=80;const Ce=ve();if(Ce>=0&&hh(Ce,e))return d+=6,I|=1024,L="#"+String.fromCharCode(Ce)+ee(),A=80;d--}return hh(Hr,e)?(d++,Me(Hr,e)):(L="#",V(_.Invalid_character,d++,Sv(an))),A=80;default:const we=Me(an,e);if(we)return A=we;if(Dm(an)){d+=Sv(an);continue}else if(hu(an)){I|=1,d+=Sv(an);continue}const yt=Sv(an);return V(_.Invalid_character,d,yt),d+=yt,A=0}}}function Oe(){D.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=E=h,I=0;const Rn=_y(f,d),an=Me(Rn,99);return an?A=an:(d+=Sv(Rn),A)}function Me(Rn,an){let Pn=Rn;if(hh(Pn,an)){for(d+=Sv(Pn);d<y&&z0(Pn=_y(f,d),an);)d+=Sv(Pn);return L=f.substring(E,d),Pn===92&&(L+=ee()),Qe()}}function Ye(){if(A===31){if(f.charCodeAt(d)===62)return f.charCodeAt(d+1)===62?f.charCodeAt(d+2)===61?(d+=3,A=72):(d+=2,A=49):f.charCodeAt(d+1)===61?(d+=2,A=71):(d++,A=48);if(f.charCodeAt(d)===61)return d++,A=33}return A}function ze(){return D.assert(A===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=E+1,A=63}function Fe(){if(A===43||A===68){let Rn=E+1,an=!1,Pn=!1;for(;;){if(Rn>=y){I|=4,V(_.Unterminated_regular_expression_literal);break}const Ar=f.charCodeAt(Rn);if(hu(Ar)){I|=4,V(_.Unterminated_regular_expression_literal);break}if(an)an=!1;else if(Ar===47&&!Pn){Rn++;break}else Ar===91?Pn=!0:Ar===92?an=!0:Ar===93&&(Pn=!1);Rn++}for(;Rn<y&&z0(f.charCodeAt(Rn),e);)Rn++;d=Rn,L=f.substring(E,d),A=13}return A}function st(Rn,an,Pn,Ar){const Hr=Ct(CI(an),Pn);return Hr===void 0?Rn:Fn(Rn,{range:{pos:Ar,end:d},type:Hr})}function Ct(Rn,an){const Pn=an.exec(Rn);if(Pn)switch(Pn[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Et(Rn){return D.assert(A===19,"'reScanTemplateToken' should only be called on a '}'"),d=E,A=ae(Rn)}function jt(){return d=E,A=ae(!0)}function tt(Rn=!0){return d=E=h,A=On(Rn)}function at(){return A===47?(d=E+1,A=29):A}function sn(){return A===80?(d=E+1,A=62):A}function Qt(){return D.assert(A===60,"'reScanQuestionToken' should only be called on a '??'"),d=E+1,A=57}function On(Rn=!0){if(h=E=d,d>=y)return A=1;let an=f.charCodeAt(d);if(an===60)return f.charCodeAt(d+1)===47?(d+=2,A=30):(d++,A=29);if(an===123)return d++,A=18;let Pn=0;for(;d<y&&(an=f.charCodeAt(d),an!==123);){if(an===60){if(wA(f,d))return d=PI(f,d,V),A=7;break}if(an===62&&V(_.Unexpected_token_Did_you_mean_or_gt,d,1),an===125&&V(_.Unexpected_token_Did_you_mean_or_rbrace,d,1),hu(an)&&Pn===0)Pn=-1;else{if(!Rn&&hu(an)&&Pn>0)break;sg(an)||(Pn=d)}d++}return L=f.substring(h,d),Pn===-1?12:11}function jn(){if(Qu(A)){let Rn=!1;for(;d<y;){const an=f.charCodeAt(d);if(an===45){L+="-",d++;continue}else if(an===58&&!Rn){L+=":",d++,Rn=!0,A=79;continue}const Pn=d;if(L+=ee(),d===Pn)break}return L.slice(-1)===":"&&(L=L.slice(0,-1),d--),Qe()}return A}function In(){switch(h=d,f.charCodeAt(d)){case 34:case 39:return L=ye(!0),A=10;default:return qe()}}function Zt(){return d=E=h,In()}function _r(){if(h=E=d,I=0,d>=y)return A=1;const Rn=_y(f,d);switch(d+=Sv(Rn),Rn){case 9:case 11:case 12:case 32:for(;d<y&&Dm(f.charCodeAt(d));)d++;return A=5;case 64:return A=59;case 13:f.charCodeAt(d)===10&&d++;case 10:return I|=1,A=4;case 42:return A=41;case 123:return A=18;case 125:return A=19;case 91:return A=22;case 93:return A=23;case 60:return A=29;case 62:return A=31;case 61:return A=63;case 44:return A=27;case 46:return A=24;case 96:return A=61;case 35:return A=62;case 92:d--;const an=Se();if(an>=0&&hh(an,e))return d+=3,I|=8,L=me()+ee(),A=Qe();const Pn=ve();return Pn>=0&&hh(Pn,e)?(d+=6,I|=1024,L=String.fromCharCode(Pn)+ee(),A=Qe()):(d++,A=0)}if(hh(Rn,e)){let an=Rn;for(;d<y&&z0(an=_y(f,d),e)||f.charCodeAt(d)===45;)d+=Sv(an);return L=f.substring(E,d),an===92&&(L+=ee()),A=Qe()}else return A=0}function Ii(Rn,an){const Pn=d,Ar=h,Hr=E,we=A,yt=L,Nt=I,Ce=Rn();return(!Ce||an)&&(d=Pn,h=Ar,E=Hr,A=we,L=yt,I=Nt),Ce}function $i(Rn,an,Pn){const Ar=y,Hr=d,we=h,yt=E,Nt=A,Ce=L,pt=I,pe=O;Wt(f,Rn,an);const ie=Pn();return y=Ar,d=Hr,h=we,E=yt,A=Nt,L=Ce,I=pt,O=pe,ie}function Qi(Rn){return Ii(Rn,!0)}function Or(Rn){return Ii(Rn,!1)}function At(){return f}function vn(){O=void 0}function Wt(Rn,an,Pn){f=Rn||"",y=Pn===void 0?f.length:an+Pn,Pi(an||0)}function dn(Rn){o=Rn}function rr(Rn){e=Rn}function cr(Rn){r=Rn}function Pi(Rn){D.assert(Rn>=0),d=Rn,h=Rn,E=Rn,A=0,L=void 0,I=0}function gi(Rn){k+=Rn?1:-1}}function Sv(e){return e>=65536?2:1}function nPe(e){if(D.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function MI(e){return Nue(e)}var rN,Sue,VW,xue,Aue,Cue,Lue,Iue,kue,wue,Due,Rue,iN,WM,_y,Nue,rPe=C({"src/compiler/scanner.ts"(){Oa(),rN={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},Sue=new Map(Object.entries(rN)),VW=new Map(Object.entries({...rN,"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})),xue=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Aue=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Cue=[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],Lue=[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],Iue=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],kue=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],wue=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Due=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Rue=ePe(VW),iN=7,WM=/^#!.*/,_y=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const o=t.charCodeAt(r);if(o>=55296&&o<=56319&&i>r+1){const s=t.charCodeAt(r+1);if(s>=56320&&s<=57343)return(o-55296)*1024+s-56320+65536}return o},Nue=String.fromCodePoint?e=>String.fromCodePoint(e):nPe}});function Uc(e){return Sf(e)||km(e)}function DA(e){return AR(e,Ck)}function zM(e){switch(es(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function iu(e){return e.start+e.length}function Oue(e){return e.length===0}function jW(e,t){return t>=e.start&&t<iu(e)}function qM(e,t){return t>=e.pos&&t<=e.end}function Pue(e,t){return t.start>=e.start&&iu(t)<=iu(e)}function iPe(e,t){return Mue(e,t)!==void 0}function Mue(e,t){const r=Bue(e,t);return r&&r.length===0?void 0:r}function aPe(e,t){return KM(e.start,e.length,t.start,t.length)}function JM(e,t,r){return KM(e.start,e.length,t,r)}function KM(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function Fue(e,t){return t<=iu(e)&&t>=e.start}function Bue(e,t){const r=Math.max(e.start,t.start),i=Math.min(iu(e),iu(t));return r<=i?hc(r,i):void 0}function wc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function hc(e,t){return wc(e,t-e)}function FI(e){return wc(e.span.start,e.newLength)}function Gue(e){return Oue(e.span)&&e.newLength===0}function aN(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function oPe(e){if(e.length===0)return vz;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=iu(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const c=e[s],f=r,d=i,y=o,h=c.span.start,E=iu(c.span),A=h+c.newLength;r=Math.min(f,h),i=Math.max(d,d+(E-y)),o=Math.max(A,A+(y-E))}return aN(hc(r,i),o-r)}function sPe(e){if(e&&e.kind===165){for(let t=e;t;t=t.parent)if(Ka(t)||di(t)||t.kind===261)return t}}function tf(e,t){return Ba(e)&&Yr(e,16476)&&t.kind===173}function Uue(e){return Xa(e)?Yn(e.elements,Vue):!1}function Vue(e){return Rc(e)?!0:Uue(e.name)}function RA(e){let t=e.parent;for(;ps(t.parent);)t=t.parent.parent;return t.parent}function HW(e,t){ps(e)&&(e=RA(e));let r=t(e);return e.kind===257&&(e=e.parent),e&&e.kind===258&&(r|=t(e),e=e.parent),e&&e.kind===240&&(r|=t(e)),r}function py(e){return HW(e,Fu)}function WW(e){return HW(e,Xfe)}function gp(e){return HW(e,t=>t.flags)}function lPe(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Fs(_.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],c=o[3];jr(bz,i)&&!f(s,c,r)&&f(s,void 0,r),Ice(e);function f(d,y,h){const E=qo(t.getExecutingFilePath()),A=hi(E);let L=Bi(A,d);if(y&&(L=L+"-"+y),L=t.resolvePath(Bi(L,"diagnosticMessages.generated.json")),!t.fileExists(L))return!1;let I="";try{I=t.readFile(L)}catch{return h&&h.push(Fs(_.Unable_to_open_file_0,L)),!1}try{g_e(JSON.parse(I))}catch{return h&&h.push(Fs(_.Corrupted_locale_file_0,L)),!1}return!0}}function Sl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function nr(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function BI(e){return(e.flags&8)===0}function Ea(e,t){if(e===void 0||BI(e))return e;for(e=e.original;e;){if(BI(e))return!t||t(e)?e:void 0;e=e.original}}function sl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function ta(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Mr(e){return ta(e.escapedText)}function q0(e){const t=rT(e.escapedText);return t?ai(t,Ad):void 0}function Fl(e){return e.valueDeclaration&&Zu(e.valueDeclaration)?Mr(e.valueDeclaration.name):ta(e.escapedName)}function jue(e){const t=e.parent.parent;if(t){if(vu(t))return XM(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return XM(t.declarationList.declarations[0]);break;case 241:let r=t.expression;switch(r.kind===223&&r.operatorToken.kind===63&&(r=r.left),r.kind){case 208:return r.name;case 209:const i=r.argumentExpression;if(He(i))return i}break;case 214:return XM(t.expression);case 253:{if(vu(t.statement)||vt(t.statement))return XM(t.statement);break}}}}function XM(e){const t=ka(e);return t&&He(t)?t:void 0}function oN(e,t){return!!(gu(e)&&He(e.name)&&Mr(e.name)===Mr(t)||uc(e)&&kt(e.declarationList.declarations,r=>oN(r,t)))}function Hue(e){return e.name||jue(e)}function gu(e){return!!e.name}function zW(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:r}=e;if(r.kind===163)return r.right;break}case 210:case 223:{const r=e;switch(Ll(r)){case 1:case 4:case 5:case 3:return U3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 349:return Hue(e);case 343:return jue(e);case 274:{const{expression:r}=e;return He(r)?r:void 0}case 209:const t=e;if(G3(t))return t.argumentExpression}return e.name}function ka(e){if(e!==void 0)return zW(e)||(Bs(e)||Js(e)||Uu(e)?qW(e):void 0)}function qW(e){if(e.parent){if(qc(e.parent)||ps(e.parent))return e.parent.name;if(br(e.parent)&&e===e.parent.right){if(He(e.parent.left))return e.parent.left;if(ll(e.parent.left))return U3(e.parent.left)}else if(Ki(e.parent)&&He(e.parent.name))return e.parent.name}else return}function xv(e){if($f(e))return lr(e.modifiers,Bu)}function iT(e){if(Yr(e,126975))return lr(e.modifiers,uo)}function Wue(e,t){if(e.name)if(He(e.name)){const r=e.name.escapedText;return UI(e.parent,t).filter(i=>am(i)&&He(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);D.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=UI(e.parent,t).filter(am);if(r<i.length)return[i[r]]}return rt}function GI(e){return Wue(e,!1)}function zue(e){return Wue(e,!0)}function que(e,t){const r=e.name.escapedText;return UI(e.parent,t).filter(i=>Tp(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Jue(e){return que(e,!1)}function Kue(e){return que(e,!0)}function Xue(e){return!!Kf(e,am)}function Yue(e){return Kf(e,MC)}function $ue(e){return $W(e,hK)}function JW(e){return Kf(e,Qpe)}function cPe(e){return Kf(e,uK)}function Que(e){return Kf(e,uK,!0)}function uPe(e){return Kf(e,dK)}function Zue(e){return Kf(e,dK,!0)}function dPe(e){return Kf(e,fK)}function ede(e){return Kf(e,fK,!0)}function fPe(e){return Kf(e,_K)}function tde(e){return Kf(e,_K,!0)}function nde(e){return Kf(e,_5,!0)}function KW(e){return Kf(e,pK)}function rde(e){return Kf(e,pK,!0)}function XW(e){return Kf(e,t8)}function YM(e){return Kf(e,Zpe)}function ide(e){return Kf(e,p5)}function _Pe(e){return Kf(e,Tp)}function YW(e){return Kf(e,m5)}function p1(e){const t=Kf(e,rw);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Av(e){let t=Kf(e,rw);return!t&&Ba(e)&&(t=nn(GI(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function sN(e){const t=ide(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=p1(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(cf(i)){const o=nn(i.members,AC);return o&&o.type}if(Lh(i)||PC(i))return i.type}}function UI(e,t){var r,i;if(!zN(e))return rt;let o=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(o===void 0||t){const s=rq(e,t);D.assert(s.length<2||s[0]!==s[1]),o=ma(s,c=>qm(c)?c.tags:c),t||((i=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function m1(e){return UI(e,!1)}function pPe(e){return UI(e,!0)}function Kf(e,t,r){return nn(UI(e,r),t)}function $W(e,t){return m1(e).filter(t)}function mPe(e,t){return m1(e).filter(r=>r.kind===t)}function lN(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===324?t.text:hPe(t)).join("")}function hPe(e){const t=e.kind===327?"link":e.kind===328?"linkcode":"linkplain",r=e.name?Af(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Cv(e){if(G1(e)){if(nw(e.parent)){const t=ok(e.parent);if(t&&Ae(t.tags))return ma(t.tags,r=>Tp(r)?r.typeParameters:void 0)}return rt}if(h_(e))return D.assert(e.parent.kind===323),ma(e.parent.tags,t=>Tp(t)?t.typeParameters:void 0);if(e.typeParameters||ume(e)&&e.typeParameters)return e.typeParameters;if(fr(e)){const t=$3(e);if(t.length)return t;const r=Av(e);if(r&&Lh(r)&&r.typeParameters)return r.typeParameters}return rt}function NA(e){return e.constraint?e.constraint:Tp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function lg(e){return e.kind===79||e.kind===80}function $M(e){return e.kind===175||e.kind===174}function QM(e){return Fr(e)&&!!(e.flags&32)}function QW(e){return cl(e)&&!!(e.flags&32)}function aT(e){return no(e)&&!!(e.flags&32)}function yu(e){const t=e.kind;return!!(e.flags&32)&&(t===208||t===209||t===210||t===232)}function VI(e){return yu(e)&&!jx(e)&&!!e.questionDotToken}function ZM(e){return VI(e.parent)&&e.parent.expression===e}function jI(e){return!yu(e.parent)||VI(e.parent)||e!==e.parent.expression}function ZW(e){return e.kind===223&&e.operatorToken.kind===60}function cg(e){return J_(e)&&He(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function F_(e){return bu(e,8)}function e3(e){return jx(e)&&!!(e.flags&32)}function HI(e){return e.kind===249||e.kind===248}function ez(e){return e.kind===277||e.kind===276}function ade(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function tz(e){return ade(e)||e.kind===303||e.kind===307}function t3(e){return e.kind===351||e.kind===344}function gPe(e){return cN(e.kind)}function cN(e){return e>=163}function nz(e){return e>=0&&e<=162}function ox(e){return nz(e.kind)}function h1(e){return Ps(e,"pos")&&Ps(e,"end")}function WI(e){return 8<=e&&e<=14}function oT(e){return WI(e.kind)}function rz(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function Lv(e){return 14<=e&&e<=17}function ode(e){return Lv(e.kind)}function n3(e){const t=e.kind;return t===16||t===17}function sx(e){return Ld(e)||dd(e)}function iz(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function sde(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function g1(e){return iz(e)||sde(e)}function lde(e){return Vo(e)||He(e)}function az(e){return e.kind===10||Lv(e.kind)}function xl(e){var t;return He(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function lx(e){var t;return Ni(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Zu(e){return(to(e)||MA(e))&&Ni(e.name)}function OA(e){return Fr(e)&&Ni(e.name)}function my(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function zI(e){return!!(xx(e)&16476)}function oz(e){return zI(e)||e===124||e===161||e===127}function uo(e){return my(e.kind)}function nf(e){const t=e.kind;return t===163||t===79}function yl(e){const t=e.kind;return t===79||t===80||t===10||t===8||t===164}function gh(e){const t=e.kind;return t===79||t===203||t===204}function Ka(e){return!!e&&cx(e.kind)}function PA(e){return!!e&&(cx(e.kind)||kl(e))}function Qs(e){return e&&ude(e.kind)}function cde(e){return e.kind===110||e.kind===95}function ude(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function cx(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return ude(e)}}function sz(e){return qi(e)||rm(e)||lo(e)&&Ka(e.parent)}function Vc(e){const t=e.kind;return t===173||t===169||t===171||t===174||t===175||t===178||t===172||t===237}function di(e){return e&&(e.kind===260||e.kind===228)}function J0(e){return e&&(e.kind===174||e.kind===175)}function rf(e){return to(e)&&Bm(e)}function MA(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function dde(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function nl(e){return uo(e)||Bu(e)}function sT(e){const t=e.kind;return t===177||t===176||t===168||t===170||t===178||t===174||t===175}function r3(e){return sT(e)||Vc(e)}function hy(e){const t=e.kind;return t===299||t===300||t===301||t===171||t===174||t===175}function Gi(e){return Vq(e.kind)}function fde(e){switch(e.kind){case 181:case 182:return!0}return!1}function Xa(e){if(e){const t=e.kind;return t===204||t===203}return!1}function qI(e){const t=e.kind;return t===206||t===207}function i3(e){const t=e.kind;return t===205||t===229}function uN(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function _de(e){return Ki(e)||Ba(e)||fN(e)||_N(e)}function dN(e){return lz(e)||cz(e)}function lz(e){switch(e.kind){case 203:case 207:return!0}return!1}function fN(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function cz(e){switch(e.kind){case 204:case 206:return!0}return!1}function _N(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return nd(e,!0)}function pde(e){const t=e.kind;return t===208||t===163||t===202}function mde(e){const t=e.kind;return t===208||t===163}function ux(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function ug(e){return e.kind===210||e.kind===211}function FA(e){const t=e.kind;return t===225||t===14}function Td(e){return hde(F_(e).kind)}function hde(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function uz(e){return gde(F_(e).kind)}function gde(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return hde(e)}}function yde(e){switch(e.kind){case 222:return!0;case 221:return e.operator===45||e.operator===46;default:return!1}}function vde(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return oT(e)}}function vt(e){return yPe(F_(e).kind)}function yPe(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return gde(e)}}function lT(e){const t=e.kind;return t===213||t===231}function vPe(e){return oK(e)||c5(e)}function Iv(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&Iv(e.statement,t)}return!1}function bde(e){return Gl(e)||eu(e)}function Ede(e){return kt(e,bde)}function a3(e){return!TN(e)&&!Gl(e)&&!Yr(e,1)&&!Mu(e)}function pN(e){return TN(e)||Gl(e)||Yr(e,1)}function BA(e){return e.kind===246||e.kind===247}function o3(e){return lo(e)||vt(e)}function dz(e){return lo(e)}function Xp(e){return Vu(e)||vt(e)}function Tde(e){const t=e.kind;return t===265||t===264||t===79}function bPe(e){const t=e.kind;return t===265||t===264}function EPe(e){const t=e.kind;return t===79||t===264}function fz(e){const t=e.kind;return t===272||t===271}function mN(e){return e.kind===264||e.kind===263}function Rm(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function Nm(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function TPe(e){return e===216||e===205||e===260||e===228||e===172||e===173||e===263||e===302||e===278||e===259||e===215||e===174||e===270||e===268||e===273||e===261||e===288||e===171||e===170||e===264||e===267||e===271||e===277||e===166||e===299||e===169||e===168||e===175||e===300||e===262||e===165||e===257||e===349||e===341||e===351}function _z(e){return e===259||e===279||e===260||e===261||e===262||e===263||e===264||e===269||e===268||e===275||e===274||e===267}function pz(e){return e===249||e===248||e===256||e===243||e===241||e===239||e===246||e===247||e===245||e===242||e===253||e===250||e===252||e===254||e===255||e===240||e===244||e===251||e===355||e===359||e===358}function vu(e){return e.kind===165?e.parent&&e.parent.kind!==348||fr(e):TPe(e.kind)}function Sde(e){return _z(e.kind)}function hN(e){return pz(e.kind)}function wa(e){const t=e.kind;return pz(t)||_z(t)||SPe(e)}function SPe(e){return e.kind!==238||e.parent!==void 0&&(e.parent.kind===255||e.parent.kind===295)?!1:!pT(e)}function xde(e){const t=e.kind;return pz(t)||_z(t)||t===238}function Ade(e){const t=e.kind;return t===280||t===163||t===79}function JI(e){const t=e.kind;return t===108||t===79||t===208}function gN(e){const t=e.kind;return t===281||t===291||t===282||t===11||t===285}function s3(e){const t=e.kind;return t===288||t===290}function Cde(e){const t=e.kind;return t===10||t===291}function ed(e){const t=e.kind;return t===283||t===282}function mz(e){const t=e.kind;return t===292||t===293}function GA(e){return e.kind>=312&&e.kind<=353}function hz(e){return e.kind===323||e.kind===322||e.kind===324||dx(e)||KI(e)||tw(e)||G1(e)}function KI(e){return e.kind>=330&&e.kind<=353}function gy(e){return e.kind===175}function kv(e){return e.kind===174}function xf(e){if(!zN(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function l3(e){return!!e.type}function wv(e){return!!e.initializer}function cT(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function gz(e){return e.kind===288||e.kind===290||hy(e)}function c3(e){return e.kind===180||e.kind===230}function Lde(e){let t=Ez;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&sg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===Ez?void 0:t}function xs(e){return e.kind===10||e.kind===14}function dx(e){return e.kind===327||e.kind===328||e.kind===329}function yz(e){const t=tl(e.parameters);return!!t&&yh(t)}function yh(e){const t=am(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===321}var vz,bz,Ez,xPe=C({"src/compiler/utilitiesPublic.ts"(){Oa(),vz=aN(wc(0,0),0),bz=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Ez=1073741823}});function Al(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Ide(e,t){return lr(e.declarations||rt,r=>r.kind===t)}function so(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function Om(e){return(e.flags&33554432)!==0}function APe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&sg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:oo,decreaseIndent:oo,clear:()=>e=""}}function Tz(e,t){return e.configFilePath!==t.configFilePath||kde(e,t)}function kde(e,t){return UA(e,t,M5)}function wde(e,t){return UA(e,t,oX)}function UA(e,t,r){return e!==t&&r.some(i=>!oJ(l7(e,i),l7(t,i)))}function Dde(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(qi(e))return;e=e.parent}}function af(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function XI(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function yN(e,t){e.forEach((r,i)=>{t.set(i,r)})}function YI(e){const t=Fk.getText();try{return e(Fk),Fk.getText()}finally{Fk.clear(),Fk.writeKeyword(t)}}function vN(e){return e.end-e.pos}function VA(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:o.resolvedModule}function Rde(e,t,r,i){e.resolvedModules||(e.resolvedModules=BT()),e.resolvedModules.set(t,i,r)}function Nde(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=BT()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function CPe(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:o.resolvedTypeReferenceDirective}function Sz(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Ode(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&&LPe(e.resolvedModule.packageId,t.resolvedModule.packageId)}function LPe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function u3({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function uT(e){return`${u3(e)}@${e.version}`}function Pde(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 xz(e,t,r,i,o,s){D.assert(e.length===r.length);for(let c=0;c<e.length;c++){const f=r[c],d=e[c],y=s.getName(d),h=s.getMode(d,t),E=i&&i.get(y,h);if(E?!f||!o(E,f):f)return!0}return!1}function bN(e){return IPe(e),(e.flags&524288)!==0}function IPe(e){e.flags&1048576||((e.flags&131072||Ma(e,bN))&&(e.flags|=524288),e.flags|=1048576)}function Zn(e){for(;e&&e.kind!==308;)e=e.parent;return e}function d3(e){return Zn(e.valueDeclaration||Nz(e))}function f3(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function Mde(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Dv(e,t){return D.assert(e>=0),og(t)[e]}function kPe(e){const t=Zn(e),r=ol(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function EN(e,t){D.assert(e>=0);const r=og(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let c=r[i+1]-1;for(D.assert(hu(o.charCodeAt(c)));s<=c&&hu(o.charCodeAt(c));)c--;return c}}function _3(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Cl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function p_(e){return!Cl(e)}function Fde(e,t){return Bl(e)?t===e.expression:kl(e)?t===e.modifiers:If(e)?t===e.initializer:to(e)?t===e.questionToken&&rf(e):qc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$I(e.modifiers,t,nl):t_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$I(e.modifiers,t,nl):ac(e)?t===e.exclamationToken:ql(e)?t===e.typeParameters||t===e.type||$I(e.typeParameters,t,Bl):q_(e)?t===e.typeParameters||$I(e.typeParameters,t,Bl):e_(e)?t===e.typeParameters||t===e.type||$I(e.typeParameters,t,Bl):ZO(e)?t===e.modifiers||$I(e.modifiers,t,nl):!1}function $I(e,t,r){return!e||Va(t)||!r(t)?!1:jr(e,t)}function Bde(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 Gde(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 Ude(e){return yp(e)||!!(vo(e)&2097152)}function Pm(e,t){return Bde(e,t,yp)}function Az(e,t){return Bde(e,t,Ude)}function wPe(e,t){return Gde(e,t,yp)}function y1(e,t){return Gde(e,t,Ude)}function Cz(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(hJ.test(i)||gJ.test(i)||J_e.test(i)||K_e.test(i))}return!1}function p3(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Vde(e,t){const r=new Map(t.map(c=>[`${ol(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Ro(r.entries()).filter(([c,f])=>f.type===0&&!i.get(c)).map(([c,f])=>f)}function s(c){return r.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function dT(e,t,r){return Cl(e)?e.pos:GA(e)||e.kind===11?Jo((t||Zn(e)).text,e.pos,!1,!0):r&&xf(e)?dT(e.jsDoc[0],t):e.kind===354&&e._children.length>0?dT(e._children[0],t,r):Jo((t||Zn(e)).text,e.pos,!1,!1,wN(e))}function Lz(e,t){const r=!Cl(e)&&X_(e)?Li(e.modifiers,Bu):void 0;return r?Jo((t||Zn(e)).text,r.end):dT(e,t)}function v1(e,t,r=!1){return QI(e.text,t,r)}function DPe(e){return!!nr(e,OT)}function m3(e){return!!(eu(e)&&e.exportClause&&kh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function QI(e,t,r=!1){if(Cl(t))return"";let i=e.substring(r?t.pos:Jo(e,t.pos),t.end);return DPe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>CI(o.replace(/^\s*\*/,""))).join(` `)),i}function xc(e,t=!1){return v1(Zn(e),e,t)}function RPe(e){return e.pos}function jA(e,t){return vv(e,t,RPe,Ws)}function vo(e){const t=e.emitNode;return t&&t.flags||0}function B_(e){const t=e.emitNode;return t&&t.internalFlags||0}function Iz(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:rt})),AsyncIterator:new Map(Object.entries({es2015:rt})),Atomics:new Map(Object.entries({es2017:rt})),SharedArrayBuffer:new Map(Object.entries({es2017:rt})),AsyncIterable:new Map(Object.entries({es2018:rt})),AsyncIterableIterator:new Map(Object.entries({es2018:rt})),AsyncGenerator:new Map(Object.entries({es2018:rt})),AsyncGeneratorFunction:new Map(Object.entries({es2018:rt})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:rt,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:rt})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:rt,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:rt,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function jde(e,t,r){var i;if(t&&NPe(e,r))return v1(t,e);switch(e.kind){case 10:{const o=r&2?hq:r&1||vo(e)&33554432?bx:rO;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const o=r&1||vo(e)&33554432?bx:rO,s=(i=e.rawText)!=null?i:e4e(o(e.text,96));switch(e.kind){case 14:return"`"+s+"`";case 15:return"`"+s+"${";case 16:return"}"+s+"${";case 17:return"}"+s+"`"}break}case 8:case 9:return e.text;case 13:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return D.fail(`Literal kind '${e.kind}' not accounted for.`)}function NPe(e,t){return Zs(e)||!e.parent||t&4&&e.isUnterminated?!1:b_(e)&&e.numericLiteralFlags&512?!!(t&8):!t5(e)}function Hde(e){return Ha(e)?'"'+rO(e)+'"':""+e}function Wde(e){return mu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function kz(e){return(gp(e)&3)!==0||wz(e)}function wz(e){const t=Fm(e);return t.kind===257&&t.parent.kind===295}function Mu(e){return Jl(e)&&(e.name.kind===10||Yp(e))}function h3(e){return Jl(e)&&e.name.kind===10}function Dz(e){return Jl(e)&&Vo(e.name)}function zde(e){return Jl(e)||He(e)}function ZI(e){return OPe(e.valueDeclaration)}function OPe(e){return!!e&&e.kind===264&&!e.body}function qde(e){return e.kind===308||e.kind===264||PA(e)}function Yp(e){return!!(e.flags&1024)}function b1(e){return Mu(e)&&Rz(e)}function Rz(e){switch(e.parent.kind){case 308:return Zl(e.parent);case 265:return Mu(e.parent.parent)&&qi(e.parent.parent.parent)&&!Zl(e.parent.parent.parent)}return!1}function Nz(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!b1(r)&&!(Jl(r)&&Yp(r)))}function PPe(e){return e===1||e===100||e===199}function fx(e,t){return Zl(e)||H_(t)||PPe(au(t))&&!!e.commonJsModuleIndicator}function Oz(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:v_(t,"alwaysStrict")||ame(e.statements)?!0:Zl(e)||H_(t)?au(t)>=5?!0:!t.noImplicitUseStrict:!1}function Pz(e){return!!(e.flags&16777216)||Yr(e,2)}function Mz(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!PA(t)}return!1}function Fz(e){switch(D.type(e),e.kind){case 341:case 349:case 326:return!0;default:return Bz(e)}}function Bz(e){switch(D.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function fT(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function Jde(e){return fT(e)||x1(e)}function g3(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function Kde(e){return TN(e)||Jl(e)||vg(e)||sf(e)}function TN(e){return fT(e)||eu(e)}function Mm(e){return nr(e.parent,t=>Mz(t,t.parent))}function Xde(e,t){let r=Mm(e);for(;r;)t(r),r=Mm(r)}function ws(e){return!e||vN(e)===0?"(Missing)":xc(e)}function Yde(e){return e.declaration?ws(e.declaration.parameters[0].name):void 0}function SN(e){return e.kind===164&&!Xf(e.expression)}function y3(e){var t;switch(e.kind){case 79:case 80:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 10:case 8:case 14:return sl(e.text);case 164:return Xf(e.expression)?sl(e.expression.text):void 0;default:return D.assertNever(e)}}function HA(e){return D.checkDefined(y3(e))}function Af(e){switch(e.kind){case 108:return"this";case 80:case 79:return vN(e)===0?Mr(e):xc(e);case 163:return Af(e.left)+"."+Af(e.right);case 208:return He(e.name)||Ni(e.name)?Af(e.expression)+"."+Af(e.name):D.assertNever(e.name);case 314:return Af(e.left)+Af(e.right);default:return D.assertNever(e)}}function Nr(e,t,r,i,o,s){const c=Zn(e);return cd(c,e,t,r,i,o,s)}function WA(e,t,r,i,o,s,c){const f=Jo(e.text,t.pos);return Dc(e,f,t.end-f,r,i,o,s,c)}function cd(e,t,r,i,o,s,c){const f=E1(e,t);return Dc(e,f.start,f.length,r,i,o,s,c)}function dg(e,t,r,i){const o=E1(e,t);return v3(e,o.start,o.length,r,i)}function xN(e,t,r,i){const o=Jo(e.text,t.pos);return v3(e,o,t.end-o,r,i)}function Gz(e,t,r){D.assertGreaterThanOrEqual(t,0),D.assertGreaterThanOrEqual(r,0),e&&(D.assertLessThanOrEqual(t,e.text.length),D.assertLessThanOrEqual(t+r,e.text.length))}function v3(e,t,r,i,o){return Gz(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function Uz(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 $de(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Vz(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function yy(e,t){const r=fy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenPos();return hc(i,r.getTextPos())}function Qde(e,t){const r=fy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function MPe(e,t){const r=Jo(e.text,t.pos);if(t.body&&t.body.kind===238){const{line:i}=ol(e,t.body.pos),{line:o}=ol(e,t.body.end);if(i<o)return wc(r,EN(i,e)-r+1)}return hc(r,t.end)}function E1(e,t){let r=t;switch(t.kind){case 308:const s=Jo(e.text,0,!1);return s===e.text.length?wc(0,0):yy(e,s);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=t.name;break;case 216:return MPe(e,t);case 292:case 293:const c=Jo(e.text,t.pos),f=t.statements.length>0?t.statements[0].pos:t.end;return hc(c,f)}if(r===void 0)return yy(e,t.pos);D.assert(!qm(r));const i=Cl(r),o=i||Nx(t)?r.pos:Jo(e.text,r.pos);return i?(D.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(D.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),hc(o,r.end)}function of(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function m_(e){return e.scriptKind===6}function T1(e){return!!(py(e)&2048)}function b3(e){return!!(py(e)&64&&!tf(e,e.parent))}function fg(e){return!!(gp(e)&2)}function ek(e){return!!(gp(e)&1)}function zA(e){return e.kind===210&&e.expression.kind===106}function sf(e){return e.kind===210&&e.expression.kind===100}function qA(e){return Xk(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function K0(e){return vg(e)&&ab(e.argument)&&Vo(e.argument.literal)}function yp(e){return e.kind===241&&e.expression.kind===10}function E3(e){return!!(vo(e)&2097152)}function T3(e){return E3(e)&&yc(e)}function FPe(e){return He(e.name)&&!e.initializer}function S3(e){return E3(e)&&uc(e)&&Yn(e.declarationList.declarations,FPe)}function jz(e,t){return e.kind!==11?mh(t.text,e.pos):void 0}function Hz(e,t){const r=e.kind===166||e.kind===165||e.kind===215||e.kind===216||e.kind===214||e.kind===257||e.kind===278?ba(W0(t,e.pos),mh(t,e.pos)):mh(t,e.pos);return lr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function vh(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return e.parent.kind!==219;case 230:return Vd(e.parent)&&!cO(e);case 165:return e.parent.kind===197||e.parent.kind===192;case 79:(e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e)&&(e=e.parent),D.assert(e.kind===79||e.kind===163||e.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:t}=e;if(t.kind===183)return!1;if(t.kind===202)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return Vd(t.parent)&&!cO(t);case 165:return e===t.constraint;case 348:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:return e===t.type;case 213:return e===t.type;case 210:case 211:return jr(t.typeArguments,e);case 212:return!1}}}return!1}function Wz(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function _T(e,t){return r(e);function r(i){switch(i.kind){case 250:return t(i);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return Ma(i,r)}}}function Zde(e,t){return r(e);function r(i){switch(i.kind){case 226:t(i);const o=i.expression;o&&r(o);return;case 263:case 261:case 264:case 262:return;default:if(Ka(i)){if(i.name&&i.name.kind===164){r(i.name.expression);return}}else vh(i)||Ma(i,r)}}}function zz(e){return e&&e.kind===185?e.elementType:e&&e.kind===180?Am(e.typeArguments):void 0}function efe(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function JA(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function tfe(e){return JA(e)||J0(e)}function x3(e){return e.parent.kind===258&&e.parent.parent.kind===240}function nfe(e){return fr(e)?Ls(e.parent)&&br(e.parent.parent)&&Ll(e.parent.parent)===2||A3(e.parent):!1}function A3(e){return fr(e)?br(e)&&Ll(e)===1:!1}function rfe(e){return(Ki(e)?fg(e)&&He(e.name)&&x3(e):to(e)?mk(e)&&gc(e):If(e)&&mk(e))||A3(e)}function ife(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function qz(e,t){for(;;){if(t&&t(e),e.statement.kind!==253)return e.statement;e=e.statement}}function pT(e){return e&&e.kind===238&&Ka(e.parent)}function G_(e){return e&&e.kind===171&&e.parent.kind===207}function C3(e){return(e.kind===171||e.kind===174||e.kind===175)&&(e.parent.kind===207||e.parent.kind===228)}function afe(e){return e&&e.kind===1}function BPe(e){return e&&e.kind===0}function KA(e,t,r){return e.properties.filter(i=>{if(i.kind===299){const o=y3(i.name);return t===o||!!r&&r===o}return!1})}function ofe(e,t,r){return Kt(KA(e,t),i=>Gu(i.initializer)?nn(i.initializer.elements,o=>Vo(o)&&o.text===r):void 0)}function tk(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ai(t,Ls)}}function L3(e,t,r){return Kt(AN(e,t),i=>Gu(i.initializer)?nn(i.initializer.elements,o=>Vo(o)&&o.text===r):void 0)}function AN(e,t){const r=tk(e);return r?KA(r,t):rt}function Cf(e){return nr(e.parent,Ka)}function sfe(e){return nr(e.parent,Qs)}function Ac(e){return nr(e.parent,di)}function GPe(e){return nr(e.parent,t=>di(t)||Ka(t)?"quit":kl(t))}function I3(e){return nr(e.parent,PA)}function Sd(e,t,r){for(D.assert(e.kind!==308);;){if(e=e.parent,!e)return D.fail();switch(e.kind){case 164:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 167:e.parent.kind===166&&Vc(e.parent.parent)?e=e.parent.parent:Vc(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function lfe(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function k3(e){He(e)&&(Nc(e.parent)||yc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Sd(e,!0,!1);return qi(t)}function cfe(e){const t=Sd(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function CN(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:e.parent.kind===166&&Vc(e.parent.parent)?e=e.parent.parent:Vc(e.parent)&&(e=e.parent);break}}}function mT(e){if(e.kind===215||e.kind===216){let t=e,r=e.parent;for(;r.kind===214;)t=r,r=r.parent;if(r.kind===210&&r.expression===t)return r}}function UPe(e){return e.kind===106||ud(e)}function ud(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===106}function LN(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===108}function w3(e){var t;return!!e&&Ki(e)&&((t=e.initializer)==null?void 0:t.kind)===108}function ufe(e){return!!e&&(t_(e)||qc(e))&&br(e.parent.parent)&&e.parent.parent.operatorToken.kind===63&&e.parent.parent.right.kind===108}function IN(e){switch(e.kind){case 180:return e.typeName;case 230:return zl(e.expression)?e.expression:void 0;case 79:case 163:return e}}function D3(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function R3(e,t,r,i){if(e&&gu(t)&&Ni(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return r!==void 0&&(e?Nc(r):di(r)&&!k1(t)&&!Lq(t));case 174:case 175:case 171:return t.body!==void 0&&r!==void 0&&(e?Nc(r):di(r));case 166:return e?r!==void 0&&r.body!==void 0&&(r.kind===173||r.kind===171||r.kind===175)&&L1(r)!==t&&i!==void 0&&i.kind===260:!1}return!1}function XA(e,t,r,i){return $f(t)&&R3(e,t,r,i)}function kN(e,t,r,i){return XA(e,t,r,i)||nk(e,t,r)}function nk(e,t,r){switch(t.kind){case 260:return kt(t.members,i=>kN(e,i,t,r));case 228:return!e&&kt(t.members,i=>kN(e,i,t,r));case 171:case 175:case 173:return kt(t.parameters,i=>XA(e,i,t,r));default:return!1}}function S1(e,t){if(XA(e,t))return!0;const r=Th(t);return!!r&&nk(e,r,t)}function Jz(e,t,r){let i;if(J0(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:c}=ST(r.members,t),f=$f(o)?o:s&&$f(s)?s:void 0;if(!f||t!==f)return!1;i=c==null?void 0:c.parameters}else ac(t)&&(i=t.parameters);if(XA(e,t,r))return!0;if(i){for(const o of i)if(!I1(o)&&XA(e,o,t,r))return!0}return!1}function Kz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return Kz(e.textSourceNode);case 14:return e.text===""}return!1}return e.text===""}function rk(e){const{parent:t}=e;return t.kind===283||t.kind===282||t.kind===284?t.tagName===e:!1}function _g(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!Vd(e.parent)&&!MC(e.parent);case 163:for(;e.parent.kind===163;)e=e.parent;return e.parent.kind===183||dx(e.parent)||ew(e.parent)||sb(e.parent)||rk(e);case 314:for(;sb(e.parent);)e=e.parent;return e.parent.kind===183||dx(e.parent)||ew(e.parent)||sb(e.parent)||rk(e);case 80:return br(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===101;case 79:if(e.parent.kind===183||dx(e.parent)||ew(e.parent)||sb(e.parent)||rk(e))return!0;case 8:case 9:case 10:case 14:case 108:return N3(e);default:return!1}}function N3(e){const{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:const r=t;return r.initializer===e&&r.initializer.kind!==258||r.condition===e||r.incrementor===e;case 246:case 247:const i=t;return i.initializer===e&&i.initializer.kind!==258||i.expression===e;case 213:case 231:return e===t.expression;case 236:return e===t.expression;case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!vh(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return _g(t)}}function O3(e){for(;e.kind===163||e.kind===79;)e=e.parent;return e.kind===183}function dfe(e){return kh(e)&&!!e.parent.moduleSpecifier}function X0(e){return e.kind===268&&e.moduleReference.kind===280}function ik(e){return D.assert(X0(e)),e.moduleReference.expression}function Xz(e){return x1(e)&&xk(e.initializer).arguments[0]}function YA(e){return e.kind===268&&e.moduleReference.kind!==280}function td(e){return fr(e)}function VPe(e){return!fr(e)}function fr(e){return!!e&&!!(e.flags&262144)}function P3(e){return!!e&&!!(e.flags&67108864)}function Yz(e){return!m_(e)}function wN(e){return!!e&&!!(e.flags&8388608)}function M3(e){return J_(e)&&He(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===152||e.typeArguments[0].kind===148)}function xd(e,t){if(e.kind!==210)return!1;const{expression:r,arguments:i}=e;if(r.kind!==79||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||xs(o)}function $z(e){return _fe(e,!1)}function x1(e){return _fe(e,!0)}function ffe(e){return ps(e)&&x1(e.parent.parent)}function _fe(e,t){return Ki(e)&&!!e.initializer&&xd(t?xk(e.initializer):e.initializer,!0)}function Qz(e){return uc(e)&&e.declarationList.declarations.length>0&&Yn(e.declarationList.declarations,t=>$z(t))}function DN(e){return e===39||e===34}function F3(e,t){return v1(t,e).charCodeAt(0)===34}function ak(e){return br(e)||ll(e)||He(e)||no(e)}function RN(e){return fr(e)&&e.initializer&&br(e.initializer)&&(e.initializer.operatorToken.kind===56||e.initializer.operatorToken.kind===60)&&e.name&&zl(e.name)&&$A(e.name,e.initializer.left)?e.initializer.right:e.initializer}function NN(e){const t=RN(e);return t&&Y0(t,eb(e.name))}function jPe(e,t){return Ue(e.properties,r=>qc(r)&&He(r.name)&&r.name.escapedText==="value"&&r.initializer&&Y0(r.initializer,t))}function _x(e){if(e&&e.parent&&br(e.parent)&&e.parent.operatorToken.kind===63){const t=eb(e.parent.left);return Y0(e.parent.right,t)||HPe(e.parent.left,e.parent.right,t)}if(e&&no(e)&&px(e)){const t=jPe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function Y0(e,t){if(no(e)){const r=js(e.expression);return r.kind===215||r.kind===216?e:void 0}if(e.kind===215||e.kind===228||e.kind===216||Ls(e)&&(e.properties.length===0||t))return e}function HPe(e,t,r){const i=br(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===60)&&Y0(t.right,r);if(i&&$A(e,t.left))return i}function pfe(e){const t=Ki(e.parent)?e.parent.name:br(e.parent)&&e.parent.operatorToken.kind===63?e.parent.left:void 0;return t&&Y0(e.right,eb(t))&&zl(t)&&$A(t,e.left)}function Zz(e){if(br(e.parent)){const t=(e.parent.operatorToken.kind===56||e.parent.operatorToken.kind===60)&&br(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===63&&He(t.left))return t.left}else if(Ki(e.parent))return e.parent.name}function $A(e,t){return U_(e)&&U_(t)?V_(e)===V_(t):lg(e)&&B3(t)&&(t.expression.kind===108||He(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?$A(e,MN(t)):B3(e)&&B3(t)?pg(e)===pg(t)&&$A(e.expression,t.expression):!1}function ON(e){for(;nd(e,!0);)e=e.right;return e}function hT(e){return He(e)&&e.escapedText==="exports"}function eq(e){return He(e)&&e.escapedText==="module"}function bh(e){return(Fr(e)||PN(e))&&eq(e.expression)&&pg(e)==="exports"}function Ll(e){const t=WPe(e);return t===5||fr(e)?t:0}function px(e){return Ae(e.arguments)===3&&Fr(e.expression)&&He(e.expression.expression)&&Mr(e.expression.expression)==="Object"&&Mr(e.expression.name)==="defineProperty"&&Xf(e.arguments[1])&&mx(e.arguments[0],!0)}function B3(e){return Fr(e)||PN(e)}function PN(e){return cl(e)&&Xf(e.argumentExpression)}function gT(e,t){return Fr(e)&&(!t&&e.expression.kind===108||He(e.name)&&mx(e.expression,!0))||G3(e,t)}function G3(e,t){return PN(e)&&(!t&&e.expression.kind===108||zl(e.expression)||gT(e.expression,!0))}function mx(e,t){return zl(e)||gT(e,t)}function MN(e){return Fr(e)?e.name:e.argumentExpression}function WPe(e){if(no(e)){if(!px(e))return 0;const t=e.arguments[0];return hT(t)||bh(t)?8:gT(t)&&pg(t)==="prototype"?9:7}return e.operatorToken.kind!==63||!ll(e.left)||zPe(ON(e))?0:mx(e.left.expression,!0)&&pg(e.left)==="prototype"&&Ls(tq(e))?6:FN(e.left)}function zPe(e){return Vx(e)&&b_(e.expression)&&e.expression.text==="0"}function U3(e){if(Fr(e))return e.name;const t=js(e.argumentExpression);return b_(t)||xs(t)?t:e}function pg(e){const t=U3(e);if(t){if(He(t))return t.escapedText;if(xs(t)||b_(t))return sl(t.text)}}function FN(e){if(e.expression.kind===108)return 4;if(bh(e))return 2;if(mx(e.expression,!0)){if(eb(e.expression))return 3;let t=e;for(;!He(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&pg(t)==="exports")&&gT(e))return 1;if(mx(e,!0)||cl(e)&&q3(e))return 5}return 0}function tq(e){for(;br(e.right);)e=e.right;return e.right}function BN(e){return br(e)&&Ll(e)===3}function mfe(e){return fr(e)&&e.parent&&e.parent.kind===241&&(!cl(e)||PN(e))&&!!p1(e.parent)}function GN(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&16777216&&!fr(t)&&!(r.flags&16777216))&&ak(r)&&!ak(t)||r.kind!==t.kind&&zde(r))&&(e.valueDeclaration=t)}function hfe(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===259||Ki(t)&&t.initializer&&Ka(t.initializer)}function UN(e){var t,r;switch(e.kind){case 257:case 205:return(t=nr(e.initializer,i=>xd(i,!0)))==null?void 0:t.arguments[0];case 269:return ai(e.moduleSpecifier,xs);case 268:return ai((r=ai(e.moduleReference,zm))==null?void 0:r.expression,xs);case 270:case 277:return ai(e.parent.moduleSpecifier,xs);case 271:case 278:return ai(e.parent.parent.moduleSpecifier,xs);case 273:return ai(e.parent.parent.parent.moduleSpecifier,xs);default:D.assertNever(e)}}function VN(e){return jN(e)||D.failBadSyntaxKind(e.parent)}function jN(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return sf(e.parent)||xd(e.parent,!1)?e.parent:void 0;case 198:return D.assert(Vo(e)),ai(e.parent.parent,vg);default:return}}function QA(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return e.moduleReference.kind===280?e.moduleReference.expression:void 0;case 202:return K0(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return e.name.kind===10?e.name:void 0;default:return D.assertNever(e)}}function ZA(e){switch(e.kind){case 269:return e.importClause&&ai(e.importClause.namedBindings,Uv);case 268:return e;case 275:return e.exportClause&&ai(e.exportClause,kh);default:return D.assertNever(e)}}function hx(e){return e.kind===269&&!!e.importClause&&!!e.importClause.name}function V3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Uv(e.namedBindings)?t(e.namedBindings):Ue(e.namedBindings.elements,t);if(r)return r}}function gx(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return e.questionToken!==void 0}return!1}function eC(e){const t=PC(e)?Yc(e.parameters):void 0,r=ai(t&&t.name,He);return!!r&&r.escapedText==="new"}function h_(e){return e.kind===349||e.kind===341||e.kind===343}function HN(e){return h_(e)||nm(e)}function qPe(e){return ou(e)&&br(e.expression)&&e.expression.operatorToken.kind===63?ON(e.expression):void 0}function gfe(e){return ou(e)&&br(e.expression)&&Ll(e.expression)!==0&&br(e.expression.right)&&(e.expression.right.operatorToken.kind===56||e.expression.right.operatorToken.kind===60)?e.expression.right.right:void 0}function nq(e){switch(e.kind){case 240:const t=tC(e);return t&&t.initializer;case 169:return e.initializer;case 299:return e.initializer}}function tC(e){return uc(e)?Yc(e.declarationList.declarations):void 0}function yfe(e){return Jl(e)&&e.body&&e.body.kind===264?e.body:void 0}function WN(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function zN(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function rq(e,t){let r;JA(e)&&wv(e)&&xf(e.initializer)&&(r=Ti(r,vfe(e,zo(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(xf(i)&&(r=Ti(r,vfe(e,zo(i.jsDoc)))),i.kind===166){r=Ti(r,(t?zue:GI)(i));break}if(i.kind===165){r=Ti(r,(t?Kue:Jue)(i));break}i=iq(i)}return r||rt}function vfe(e,t){if(qm(t)){const r=lr(t.tags,i=>bfe(e,i));return t.tags===r?[t]:r}return bfe(e,t)?[t]:void 0}function bfe(e,t){return!(rw(t)||m5(t))||!t.parent||!qm(t.parent)||!Ud(t.parent.parent)||t.parent.parent===e}function iq(e){const t=e.parent;if(t.kind===299||t.kind===274||t.kind===169||t.kind===241&&e.kind===208||t.kind===250||yfe(t)||br(e)&&e.operatorToken.kind===63)return t;if(t.parent&&(tC(t.parent)===e||br(t)&&t.operatorToken.kind===63))return t.parent;if(t.parent&&t.parent.parent&&(tC(t.parent.parent)||nq(t.parent.parent)===e||gfe(t.parent.parent)))return t.parent.parent}function qN(e){if(e.symbol)return e.symbol;if(!He(e.name))return;const t=e.name.escapedText,r=$0(e);if(!r)return;const i=nn(r.parameters,o=>o.name.kind===79&&o.name.escapedText===t);return i&&i.symbol}function j3(e){if(qm(e.parent)&&e.parent.tags){const t=nn(e.parent.tags,h_);if(t)return t}return $0(e)}function $0(e){const t=nC(e);if(t)return If(t)&&t.type&&Ka(t.type)?t.type:Ka(t)?t:void 0}function nC(e){const t=yx(e);if(t)return gfe(t)||qPe(t)||nq(t)||tC(t)||yfe(t)||t}function yx(e){const t=ok(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===tl(r.jsDoc))return r}function ok(e){return nr(e.parent,qm)}function Efe(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&nn(r,i=>i.name.escapedText===t)}function JPe(e){return!!e.typeArguments}function yT(e){let t=e.parent;for(;;){switch(t.kind){case 223:const r=t.operatorToken.kind;return vy(r)&&t.left===e?r===63||hk(r)?1:2:0;case 221:case 222:const i=t.operator;return i===45||i===46?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Eh(e){return yT(e)!==0}function Tfe(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function Sfe(e){return Bs(e)||Js(e)||MA(e)||yc(e)||ql(e)}function xfe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function JN(e){return xfe(e,193)}function Rv(e){return xfe(e,214)}function Afe(e){let t;for(;e&&e.kind===193;)t=e,e=e.parent;return[t,e]}function aq(e){for(;Bx(e);)e=e.type;return e}function js(e,t){return bu(e,t?17:1)}function oq(e){return e.kind!==208&&e.kind!==209?!1:(e=Rv(e.parent),e&&e.kind===217)}function vT(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function mg(e){return!qi(e)&&!Xa(e)&&vu(e.parent)&&e.parent.name===e}function KN(e){const t=e.parent;switch(e.kind){case 10:case 14:case 8:if(As(t))return t.parent;case 79:if(vu(t))return t.name===e?t:void 0;if(Cd(t)){const r=t.parent;return am(r)&&r.name===t?r:void 0}else{const r=t.parent;return br(r)&&Ll(r)!==0&&(r.left.symbol||r.symbol)&&ka(r)===e?r:void 0}case 80:return vu(t)&&t.name===e?t:void 0;default:return}}function XN(e){return Xf(e)&&e.parent.kind===164&&vu(e.parent.parent)}function Cfe(e){const t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function KPe(e){return e.kind===268||e.kind===267||e.kind===270&&e.name||e.kind===271||e.kind===277||e.kind===273||e.kind===278||e.kind===274&&rC(e)?!0:fr(e)&&(br(e)&&Ll(e)===2&&rC(e)||Fr(e)&&br(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===63&&YN(e.parent.right))}function sq(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do e=e.parent;while(e.parent.kind===163);return sq(e)}}function YN(e){return zl(e)||Uu(e)}function rC(e){const t=lq(e);return YN(t)}function lq(e){return Gl(e)?e.expression:e.right}function Lfe(e){return e.kind===300?e.name:e.kind===299?e.initializer:e.parent.right}function $p(e){const t=A1(e);if(t&&fr(e)){const r=Yue(e);if(r)return r.class}return t}function A1(e){const t=$N(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function iC(e){if(fr(e))return $ue(e).map(t=>t.class);{const t=$N(e.heritageClauses,117);return t==null?void 0:t.types}}function sk(e){return id(e)?lk(e)||rt:di(e)&&ba(ZE($p(e)),iC(e))||rt}function lk(e){const t=$N(e.heritageClauses,94);return t?t.types:void 0}function $N(e,t){if(e){for(const r of e)if(r.token===t)return r}}function Q0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ad(e){return 81<=e&&e<=162}function H3(e){return 126<=e&&e<=162}function Ife(e){return Ad(e)&&!H3(e)}function XPe(e){return 117<=e&&e<=125}function vx(e){const t=rT(e);return t!==void 0&&Ife(t)}function YPe(e){const t=rT(e);return t!==void 0&&Ad(t)}function W3(e){const t=q0(e);return!!t&&!H3(t)}function aC(e){return 2<=e&&e<=7}function jc(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Yr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function oC(e){switch(e.kind){case 259:case 215:case 216:case 171:return e.body!==void 0&&e.asteriskToken===void 0&&Yr(e,512)}return!1}function Xf(e){return xs(e)||b_(e)}function z3(e){return Gv(e)&&(e.operator===39||e.operator===40)&&b_(e.operand)}function Nv(e){const t=ka(e);return!!t&&q3(t)}function q3(e){if(!(e.kind===164||e.kind===209))return!1;const t=cl(e)?js(e.argumentExpression):e.expression;return!Xf(t)&&!z3(t)}function C1(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return sl(e.text);case 164:const t=e.expression;return Xf(t)?sl(t.text):z3(t)?t.operator===40?yo(t.operator)+t.operand.text:t.operand.text:void 0;default:return D.assertNever(e)}}function U_(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function V_(e){return lg(e)?Mr(e):e.text}function ck(e){return lg(e)?e.escapedText:sl(e.text)}function $Pe(e){return`__@${bo(e)}@${e.escapedName}`}function QN(e,t){return`__#${bo(e)}@${t}`}function ZN(e){return xa(e.escapedName,"__@")}function kfe(e){return xa(e.escapedName,"__#")}function QPe(e){return e.kind===79&&e.escapedText==="Symbol"}function wfe(e){return He(e)?Mr(e)==="__proto__":Vo(e)&&e.text==="__proto__"}function uk(e,t){switch(e=bu(e),e.kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return typeof t=="function"?t(e):!0}function cq(e){switch(e.kind){case 299:return!wfe(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return He(e.name)&&!!e.initializer;case 166:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 205:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return He(e.left)}break;case 274:return!0}return!1}function Yf(e,t){if(!cq(e))return!1;switch(e.kind){case 299:return uk(e.initializer,t);case 300:return uk(e.objectAssignmentInitializer,t);case 257:case 166:case 205:case 169:return uk(e.initializer,t);case 223:return uk(e.right,t);case 274:return uk(e.expression,t)}}function uq(e){return e.escapedText==="push"||e.escapedText==="unshift"}function bT(e){return Fm(e).kind===166}function Fm(e){for(;e.kind===205;)e=e.parent.parent;return e}function dq(e){const t=e.kind;return t===173||t===215||t===259||t===216||t===171||t===174||t===175||t===264||t===308}function Zs(e){return em(e.pos)||em(e.end)}function ZPe(e){return Ea(e,qi)||e}function fq(e){const t=pq(e),r=e.kind===211&&e.arguments!==void 0;return _q(e.kind,t,r)}function _q(e,t,r){switch(e){case 211:return r?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function J3(e){const t=pq(e),r=e.kind===211&&e.arguments!==void 0;return eO(e.kind,t,r)}function pq(e){return e.kind===223?e.operatorToken.kind:e.kind===221||e.kind===222?e.operator:e.kind}function eO(e,t,r){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return tO(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return r?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function tO(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function nO(e){return lr(e,t=>{switch(t.kind){case 291:return!!t.expression;case 11:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function sC(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:c,getDiagnostics:f};function o(d){let y;if(d.file?y=r.get(d.file.fileName):y=e,!y)return;const h=vv(y,d,ml,i7);if(h>=0)return y[h]}function s(d){let y;d.file?(y=r.get(d.file.fileName),y||(y=[],r.set(d.file.fileName,y),yv(t,d.file.fileName,Ou))):(i&&(i=!1,e=e.slice()),y=e),yv(y,d,i7)}function c(){return i=!0,e}function f(d){if(d)return r.get(d)||[];const y=u_(t,h=>r.get(h));return e.length&&y.unshift(...e),y}}function e4e(e){return e.replace(X_e,"\\${")}function mq(e){return e&&!!(Ox(e)?e.templateFlags:e.head.templateFlags||kt(e.templateSpans,t=>!!t.literal.templateFlags))}function Dfe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function t4e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Z_e.get(e)||Dfe(e.charCodeAt(0))}function bx(e,t){const r=t===96?Q_e:t===39?$_e:Y_e;return e.replace(r,t4e)}function rO(e,t){return e=bx(e,t),TJ.test(e)?e.replace(TJ,r=>Dfe(r.charCodeAt(0))):e}function n4e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function r4e(e){return e.charCodeAt(0)===0?"�":npe.get(e)||n4e(e.charCodeAt(0))}function hq(e,t){const r=t===39?tpe:epe;return e.replace(r,r4e)}function j_(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&i4e(e.charCodeAt(0))?e.substring(1,t-1):e}function i4e(e){return e===39||e===34||e===96}function dk(e){const t=e.charCodeAt(0);return t>=97&&t<=122||pu(e,"-")||pu(e,":")}function K3(e){const t=vC[1];for(let r=vC.length;r<=e;r++)vC.push(vC[r-1]+t);return vC[e]}function lC(){return vC[1].length}function iO(){return pu(be,"-dev")||pu(be,"-insiders")}function aO(e){var t,r,i,o,s,c=!1;function f(k){const G=QR(k);G.length>1?(o=o+G.length-1,s=t.length-k.length+zo(G),i=s-t.length===0):i=!1}function d(k){k&&k.length&&(i&&(k=K3(r)+k,i=!1),t+=k,f(k))}function y(k){k&&(c=!1),d(k)}function h(k){k&&(c=!0),d(k)}function E(){t="",r=0,i=!0,o=0,s=0,c=!1}function A(k){k!==void 0&&(t+=k,f(k),c=!1)}function L(k){k&&k.length&&y(k)}function I(k){(!i||k)&&(t+=e,o++,s=t.length,i=!0,c=!1)}function O(){return i?t.length:t.length+e.length}return E(),{write:y,rawWrite:A,writeLiteral:L,writeLine:I,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*lC():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&sg(t.charCodeAt(t.length-1)),clear:E,writeKeyword:y,writeOperator:y,writeParameter:y,writeProperty:y,writePunctuation:y,writeSpace:y,writeStringLiteral:y,writeSymbol:(k,G)=>y(k),writeTrailingSemicolon:y,writeComment:h,getTextPosWithWriteLine:O}}function gq(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 oO(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Z0(e){return ru(oO(e))}function X3(e,t,r){return t.moduleName||yq(e,t.fileName,r&&r.fileName)}function Rfe(e,t){return e.getCanonicalFileName(Pa(t,e.getCurrentDirectory()))}function Nfe(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=QA(r);if(!(o&&xs(o)&&!Sf(o.text)&&Rfe(e,i.path).indexOf(Rfe(e,Pu(e.getCommonSourceDirectory())))===-1))return X3(e,i)}function yq(e,t,r){const i=d=>e.getCanonicalFileName(d),o=zs(r?hi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=Pa(t,e.getCurrentDirectory()),c=ax(o,s,o,i,!1),f=Gd(c);return r?_1(f):f}function Ofe(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Gd(Y3(e,t,i.outDir)):o=Gd(e),o+r}function Pfe(e,t){return vq(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function vq(e,t,r,i,o){const s=t.declarationDir||t.outDir,c=s?Sq(e,s,r,i,o):e,f=bq(c);return Gd(c)+f}function bq(e){return Sc(e,[".mjs",".mts"])?".d.mts":Sc(e,[".cjs",".cts"])?".d.cts":Sc(e,[".json"])?".d.json.ts":".d.ts"}function Mfe(e){return Sc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Sc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Sc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function qs(e){return e.outFile||e.out}function Eq(e,t){var r,i;if(e.paths)return(i=e.baseUrl)!=null?i:D.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Tq(e,t,r){const i=e.getCompilerOptions();if(qs(i)){const o=au(i),s=i.emitDeclarationOnly||o===2||o===4;return lr(e.getSourceFiles(),c=>(s||!Zl(c))&&Ex(c,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return lr(o,s=>Ex(s,e,r))}}function Ex(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&td(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(m_(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Y3(e,t,r){return Sq(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function Sq(e,t,r,i,o){let s=Pa(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Bi(t,s)}function fk(e,t,r,i,o,s,c){e.writeFile(r,i,o,f=>{t.add(Fs(_.Could_not_write_file_0_Colon_1,r,f))},s,c)}function Ffe(e,t,r){if(e.length>Kp(e)&&!r(e)){const i=hi(e);Ffe(i,t,r),t(e)}}function xq(e,t,r,i,o,s){try{i(e,t,r)}catch{Ffe(hi(qo(e)),o,s),i(e,t,r)}}function _k(e,t){const r=og(e);return RI(r,t)}function ET(e,t){return RI(e,t)}function Th(e){return nn(e.members,t=>ql(t)&&p_(t.body))}function pk(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&I1(e.parameters[0]);return e.parameters[t?1:0]}}function Bfe(e){const t=pk(e);return t&&t.type}function L1(e){if(e.parameters.length&&!G1(e)){const t=e.parameters[0];if(I1(t))return t}}function I1(e){return TT(e.name)}function TT(e){return!!e&&e.kind===79&&Aq(e)}function Tx(e){if(!TT(e))return!1;for(;Cd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===183}function Aq(e){return e.escapedText==="this"}function ST(e,t){let r,i,o,s;return Nv(t)?(r=t,t.kind===174?o=t:t.kind===175?s=t:D.fail("Accessor has wrong kind")):Ue(e,c=>{if(J0(c)&&Ja(c)===Ja(t)){const f=C1(c.name),d=C1(t.name);f===d&&(r?i||(i=c):r=c,c.kind===174&&!o&&(o=c),c.kind===175&&!s&&(s=c))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Zc(e){if(!fr(e)&&yc(e))return;const t=e.type;return t||!fr(e)?t:t3(e)?e.typeExpression&&e.typeExpression.type:Av(e)}function Gfe(e){return e.type}function vp(e){return G1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(fr(e)?sN(e):void 0)}function $3(e){return ma(m1(e),t=>a4e(t)?t.typeParameters:void 0)}function a4e(e){return Tp(e)&&!(e.parent.kind===323&&(e.parent.tags.some(h_)||e.parent.tags.some(nw)))}function Ufe(e){const t=pk(e);return t&&Zc(t)}function Vfe(e,t,r,i){jfe(e,t,r.pos,i)}function jfe(e,t,r,i){i&&i.length&&r!==i[0].pos&&ET(e,r)!==ET(e,i[0].pos)&&t.writeLine()}function Hfe(e,t,r,i){r!==i&&ET(e,r)!==ET(e,i)&&t.writeLine()}function Wfe(e,t,r,i,o,s,c,f){if(i&&i.length>0){o&&r.writeSpace(" ");let d=!1;for(const y of i)d&&(r.writeSpace(" "),d=!1),f(e,t,r,y.pos,y.end,c),y.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function zfe(e,t,r,i,o,s,c){let f,d;if(c?o.pos===0&&(f=lr(mh(e,o.pos),y)):f=mh(e,o.pos),f){const h=[];let E;for(const A of f){if(E){const L=ET(t,E.end);if(ET(t,A.pos)>=L+2)break}h.push(A),E=A}if(h.length){const A=ET(t,zo(h).end);ET(t,Jo(e,o.pos))>=A+2&&(Vfe(t,r,o,f),Wfe(e,t,r,h,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:zo(h).end})}}return d;function y(h){return p3(e,h.pos)}}function cC(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const c=eN(t,i),f=t.length;let d;for(let y=i,h=c.line;y<o;h++){const E=h+1===f?e.length+1:t[h+1];if(y!==i){d===void 0&&(d=qfe(e,t[c.line],i));const L=r.getIndent()*lC()-d+qfe(e,y,E);if(L>0){let I=L%lC();const O=K3((L-I)/lC());for(r.rawWrite(O);I;)r.rawWrite(" "),I--}else r.rawWrite("")}o4e(e,o,r,s,y,E),y=E}}else r.writeComment(e.substring(i,o))}function o4e(e,t,r,i,o,s){const c=Math.min(t,s-1),f=c1(e.substring(o,c));f?(r.writeComment(f),c!==t&&r.writeLine()):r.rawWrite(i)}function qfe(e,t,r){let i=0;for(;t<r&&Dm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=lC()-i%lC():i++;return i}function Q3(e){return Fu(e)!==0}function Jfe(e){return Ov(e)!==0}function Bd(e,t){return!!Sx(e,t)}function Yr(e,t){return!!Kfe(e,t)}function Ja(e){return Vc(e)&&gc(e)||kl(e)}function gc(e){return Yr(e,32)}function Cq(e){return Bd(e,16384)}function k1(e){return Yr(e,256)}function Lq(e){return Yr(e,2)}function Bm(e){return Yr(e,128)}function mk(e){return Bd(e,64)}function $f(e){return Yr(e,131072)}function Sx(e,t){return Fu(e)&t}function Kfe(e,t){return Ov(e)&t}function Iq(e,t,r){return e.kind>=0&&e.kind<=162?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=kq(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||fr(e))&&e.parent&&(e.modifierFlagsCache|=Yfe(e)|4096),e.modifierFlagsCache&-536875009)}function Fu(e){return Iq(e,!0)}function Xfe(e){return Iq(e,!0,!0)}function Ov(e){return Iq(e,!1)}function Yfe(e){let t=0;return e.parent&&!Ba(e)&&(fr(e)&&(Que(e)&&(t|=4),Zue(e)&&(t|=8),ede(e)&&(t|=16),tde(e)&&(t|=64),nde(e)&&(t|=16384)),rde(e)&&(t|=8192)),t}function $fe(e){return kq(e)|Yfe(e)}function kq(e){let t=X_(e)?Gm(e.modifiers):0;return(e.flags&4||e.kind===79&&e.flags&2048)&&(t|=1),t}function Gm(e){let t=0;if(e)for(const r of e)t|=xx(r.kind);return t}function xx(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function Qfe(e){return e===56||e===55}function Zfe(e){return Qfe(e)||e===53}function hk(e){return e===75||e===76||e===77}function wq(e){return br(e)&&hk(e.operatorToken.kind)}function sO(e){return Qfe(e)||e===60}function lO(e){return br(e)&&sO(e.operatorToken.kind)}function vy(e){return e>=63&&e<=78}function Dq(e){const t=Rq(e);return t&&!t.isImplements?t.class:void 0}function Rq(e){if(xy(e)){if(Vd(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===117};if(MC(e.parent)){const t=nC(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function nd(e,t){return br(e)&&(t?e.operatorToken.kind===63:vy(e.operatorToken.kind))&&Td(e.left)}function s4e(e){return nd(e.parent)&&e.parent.left===e}function by(e){if(nd(e,!0)){const t=e.left.kind;return t===207||t===206}return!1}function cO(e){return Dq(e)!==void 0}function zl(e){return e.kind===79||uO(e)}function Lf(e){switch(e.kind){case 79:return e;case 163:do e=e.left;while(e.kind!==79);return e;case 208:do e=e.expression;while(e.kind!==79);return e}}function gk(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===233||e.kind===208&&gk(e.expression)||e.kind===214&&gk(e.expression)}function uO(e){return Fr(e)&&He(e.name)&&zl(e.expression)}function dO(e){if(Fr(e)){const t=dO(e.expression);if(t!==void 0)return t+"."+Af(e.name)}else if(cl(e)){const t=dO(e.expression);if(t!==void 0&&yl(e.argumentExpression))return t+"."+C1(e.argumentExpression)}else if(He(e))return ta(e.escapedText)}function eb(e){return gT(e)&&pg(e)==="prototype"}function yk(e){return e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e}function e_e(e){return Fr(e.parent)&&e.parent.name===e||cl(e.parent)&&e.parent.argumentExpression===e}function t_e(e){return Cd(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e||sb(e.parent)&&e.parent.right===e}function Nq(e){return e.kind===207&&e.properties.length===0}function n_e(e){return e.kind===206&&e.elements.length===0}function uC(e){if(!(!l4e(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function l4e(e){return e&&Ae(e.declarations)>0&&Yr(e.declarations[0],1024)}function Z3(e){return nn(spe,t=>cc(e,t))}function c4e(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):D.assert(!1,"Unexpected code point")}return t}function r_e(e){let t="";const r=c4e(e);let i=0;const o=r.length;let s,c,f,d;for(;i<o;)s=r[i]>>2,c=(r[i]&3)<<4|r[i+1]>>4,f=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?f=d=64:i+2>=o&&(d=64),t+=N1.charAt(s)+N1.charAt(c)+N1.charAt(f)+N1.charAt(d),i+=3;return t}function u4e(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let c=e[r];for(;(c&192)===128;)s=s<<6|c&63,r++,c=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function i_e(e,t){return e&&e.base64encode?e.base64encode(t):r_e(t)}function a_e(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==N1.charCodeAt(64);){const s=N1.indexOf(t[o]),c=N1.indexOf(t[o+1]),f=N1.indexOf(t[o+2]),d=N1.indexOf(t[o+3]),y=(s&63)<<2|c>>4&3,h=(c&15)<<4|f>>2&15,E=(f&3)<<6|d&63;h===0&&f!==0?i.push(y):E===0&&d!==0?i.push(y,h):i.push(y,h,E),o+=4}return u4e(i)}function Oq(e,t){const r=Ha(t)?t:t.readFile(e);if(!r)return;const i=VK(e,r);return i.error?void 0:i.config}function vk(e,t){return Oq(e,t)||{}}function Qp(e,t){return!t.directoryExists||t.directoryExists(e)}function tb(e){switch(e.newLine){case 0:return rpe;case 1:case void 0:return ipe}}function g_(e,t=e){return D.assert(t>=e||t===-1),{pos:e,end:t}}function e7(e,t){return g_(e.pos,t)}function nb(e,t){return g_(t,e.end)}function Pv(e){const t=X_(e)?Li(e.modifiers,Bu):void 0;return t&&!em(t.end)?nb(e,t.end):e}function Zp(e){if(to(e)||ac(e))return nb(e,e.name.pos);const t=X_(e)?tl(e.modifiers):void 0;return t&&!em(t.end)?nb(e,t.end):Pv(e)}function d4e(e){return e.pos===e.end}function Pq(e,t){return g_(e,e+yo(t).length)}function xT(e,t){return s_e(e,e,t)}function t7(e,t,r){return y_(bk(e,r,!1),bk(t,r,!1),r)}function o_e(e,t,r){return y_(e.end,t.end,r)}function s_e(e,t,r){return y_(bk(e,r,!1),t.end,r)}function fO(e,t,r){return y_(e.end,bk(t,r,!1),r)}function Mq(e,t,r,i){const o=bk(t,r,i);return NI(r,e.end,o)}function f4e(e,t,r){return NI(r,e.end,t.end)}function l_e(e,t){return!y_(e.pos,e.end,t)}function y_(e,t,r){return NI(r,e,t)===0}function bk(e,t,r){return em(e.pos)?-1:Jo(t.text,e.pos,!1,r)}function c_e(e,t,r,i){const o=Jo(r.text,e,!1,i),s=_4e(o,t,r);return NI(r,s??t,o)}function u_e(e,t,r,i){const o=Jo(r.text,e,!1,i);return NI(r,e,Math.min(t,o))}function _4e(e,t=0,r){for(;e-- >t;)if(!sg(r.text.charCodeAt(e)))return e}function _O(e){const t=Ea(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function Ek(e){return lr(e.declarations,Fq)}function Fq(e){return Ki(e)&&e.initializer!==void 0}function p4e(e){return e.watch&&Ps(e,"watch")}function Um(e){e.close()}function Il(e){return e.flags&33554432?e.links.checkFlags:0}function Qf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&nn(e.declarations,e_)||e.flags&32768&&nn(e.declarations,q_)||e.valueDeclaration,i=py(r);return e.parent&&e.parent.flags&32?i:i&-29}if(Il(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,o=r&2048?32:0;return i|o}return e.flags&4194304?36:0}function lf(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function Tk(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Bq(e){return dC(e)===1}function Sk(e){return dC(e)!==0}function dC(e){const{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:return dC(t);case 222:case 221:const{operator:i}=t;return i===45||i===46?r():0;case 223:const{left:o,operatorToken:s}=t;return o===e&&vy(s.kind)?s.kind===63?1:r():0;case 208:return t.name!==e?0:dC(t);case 299:{const c=dC(t.parent);return e===t.name?m4e(c):c}case 300:return e===t.objectAssignmentInitializer?0:dC(t.parent);case 206:return dC(t);default:return 0}function r(){return t.parent&&Rv(t.parent).kind===241?1:2}}function m4e(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return D.assertNever(e)}}function Gq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!Gq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Zf(e,t){e.forEach(t),e.clear()}function hg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,c)=>{const f=t.get(c);f===void 0?(e.delete(c),i(s,c)):o&&o(s,f,c)})}function fC(e,t,r){hg(e,t,r);const{createNewValue:i}=r;t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function d_e(e){if(e.flags&32){const t=gg(e);return!!t&&Yr(t,256)}return!1}function gg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function ti(e){return e.flags&3899393?e.objectFlags:0}function h4e(e,t){return!!ag(e,r=>t(r)?!0:void 0)}function n7(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&ZO(e.declarations[0])}function f_e({moduleSpecifier:e}){return Vo(e)?e.text:xc(e)}function Uq(e){let t;return Ma(e,r=>{p_(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(p_(r[i])){t=r[i];break}}),t}function bp(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function Ax(e){return di(e)||id(e)||cf(e)}function Vq(e){return e>=179&&e<=202||e===131||e===157||e===148||e===160||e===149||e===134||e===152||e===153||e===114||e===155||e===144||e===139||e===230||e===315||e===316||e===317||e===318||e===319||e===320||e===321}function ll(e){return e.kind===208||e.kind===209}function __e(e){return e.kind===208?e.name:(D.assert(e.kind===209),e.argumentExpression)}function p_e(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function jq(e){return e.kind===272||e.kind===276}function xk(e){for(;ll(e);)e=e.expression;return e}function g4e(e,t){if(ll(e.parent)&&e_e(e))return r(e.parent);function r(i){if(i.kind===208){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===209)if(He(i.argumentExpression)||xs(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ll(i.expression))return r(i.expression);if(He(i.expression))return t(i.expression)}}function Ak(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function y4e(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function v4e(e,t){this.flags=t,(D.isDebugging||bi)&&(this.checker=e)}function b4e(e,t){this.flags=t,D.isDebugging&&(this.checker=e)}function Hq(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 E4e(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 T4e(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 S4e(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function m_e(e){SJ.push(e),e(Hc)}function h_e(e){Object.assign(Hc,e),Ue(SJ,t=>t(Hc))}function Sh(e,t,r=0){return e.replace(/{(\d+)}/g,(i,o)=>""+D.checkDefined(t[+o+r]))}function g_e(e){wO=e}function y_e(e){!wO&&e&&(wO=e())}function No(e){return wO&&wO[e.key]||e.message}function _C(e,t,r,i){Gz(void 0,t,r);let o=No(i);return arguments.length>4&&(o=Sh(o,arguments,4)),{file:void 0,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function x4e(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function v_e(e,t){const r=t.fileName||"",i=t.text.length;D.assertEqual(e.fileName,r),D.assertLessThanOrEqual(e.start,i),D.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)x4e(s)&&s.fileName===r?(D.assertLessThanOrEqual(s.start,i),D.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(v_e(s,t))):o.relatedInformation.push(s)}return o}function Cx(e,t){const r=[];for(const i of e)r.push(v_e(i,t));return r}function Dc(e,t,r,i){Gz(e,t,r);let o=No(i);return arguments.length>4&&(o=Sh(o,arguments,4)),{file:e,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function Wq(e,t){let r=No(t);return arguments.length>2&&(r=Sh(r,arguments,2)),r}function Fs(e){let t=No(e);return arguments.length>1&&(t=Sh(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function r7(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Na(e,t){let r=No(t);return arguments.length>2&&(r=Sh(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function b_e(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function E_e(e){return e.file?e.file.path:void 0}function Ck(e,t){return i7(e,t)||A4e(e,t)||0}function i7(e,t){return Ou(E_e(e),E_e(t))||Ws(e.start,t.start)||Ws(e.length,t.length)||Ws(e.code,t.code)||T_e(e.messageText,t.messageText)||0}function A4e(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Ws(e.relatedInformation.length,t.relatedInformation.length)||Ue(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return Ck(r,o)})||0:e.relatedInformation?-1:1}function T_e(e,t){if(typeof e=="string"&&typeof t=="string")return Ou(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Ou(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=T_e(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function pO(e){return e===4||e===2||e===1||e===6?1:0}function S_e(e){if(e.transformFlags&2)return ed(e)||qx(e)?e:Ma(e,S_e)}function C4e(e){return e.isDeclarationFile?void 0:S_e(e)}function L4e(e){return(e.impliedNodeFormat===99||Sc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function mO(e){switch(x_e(e)){case 3:return o=>{o.externalModuleIndicator=u8(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=u8(o)};case 2:const t=[u8];(e.jsx===4||e.jsx===5)&&t.push(C4e),t.push(L4e);const r=Im(...t);return o=>void(o.externalModuleIndicator=r(o))}}function es(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function au(e){return typeof e.module=="number"?e.module:es(e)>=2?5:1}function zq(e){return e>=5&&e<=99}function vl(e){let t=e.moduleResolution;if(t===void 0)switch(au(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function x_e(e){return e.moduleDetection||(au(e)===100||au(e)===199?3:2)}function a7(e){switch(au(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function H_(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function o7(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function A_e(e){return e.allowUnreachableCode===!1}function C_e(e){return e.allowUnusedLabels===!1}function s7(e){return!!(z_(e)&&e.declarationMap)}function W_(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(au(e)){case 100:case 199:return!0}}function AT(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:W_(e)||au(e)===4||vl(e)===100}function Lx(e){return e>=3&&e<=99||e===100}function qq(e){const t=vl(e);if(!Lx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function I4e(e){const t=vl(e);if(!Lx(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function CT(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:vl(e)===100}function z_(e){return!!(e.declaration||e.composite)}function w1(e){return!!(e.preserveConstEnums||H_(e))}function hO(e){return!!(e.incremental||e.composite)}function v_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function gO(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function yO(e){return e.useDefineForClassFields===void 0?es(e)>=9:e.useDefineForClassFields}function L_e(e,t){return UA(t,e,rX)}function I_e(e,t){return UA(t,e,iX)}function k_e(e,t){return UA(t,e,aX)}function l7(e,t){return t.strictFlag?v_(e,t.name):e[t.name]}function Jq(e){const t=e.jsx;return t===2||t===4||t===5}function c7(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Va(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function u7(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Kq(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 w_e(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(f,d)=>(o||(o=new Map)).set(f,d),setSymlinkedDirectory:(f,d)=>{let y=zs(f,e,t);Ok(y)||(y=Pu(y),d!==!1&&!(r!=null&&r.has(y))&&(i||(i=__())).add(Pu(d.realPath),f),(r||(r=new Map)).set(y,d))},setSymlinksFromResolutions(f,d){var y,h;D.assert(!s),s=!0;for(const E of f)(y=E.resolvedModules)==null||y.forEach(A=>c(this,A.resolvedModule)),(h=E.resolvedTypeReferenceDirectiveNames)==null||h.forEach(A=>c(this,A.resolvedTypeReferenceDirective));d.forEach(E=>c(this,E.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function c(f,d){if(!d||!d.originalPath||!d.resolvedFileName)return;const{resolvedFileName:y,originalPath:h}=d;f.setSymlinkedFile(zs(h,e,t),y);const[E,A]=k4e(y,h,e,t)||rt;E&&A&&f.setSymlinkedDirectory(A,{real:E,realPath:zs(E,e,t)})}}function k4e(e,t,r,i){const o=ld(Pa(e,r)),s=ld(Pa(t,r));let c=!1;for(;o.length>=2&&s.length>=2&&!D_e(o[o.length-2],i)&&!D_e(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),c=!0;return c?[f1(o),f1(s)]:void 0}function D_e(e,t){return e!==void 0&&(t(e)==="node_modules"||xa(e,"@"))}function w4e(e){return kW(e.charCodeAt(0))?e.slice(1):void 0}function Xq(e,t,r){const i=mH(e,t,r);return i===void 0?void 0:w4e(i)}function D4e(e){return e.replace(E7,R4e)}function R4e(e){return"\\"+e}function Lk(e,t,r){const i=d7(e,t,r);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function d7(e,t,r){if(!(e===void 0||e.length===0))return ma(e,i=>i&&R_e(i,t,r,IJ[r]))}function Yq(e){return!/[.*?]/.test(e)}function $q(e,t,r){const i=e&&R_e(e,t,r,IJ[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function R_e(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}){let c="",f=!1;const d=KR(e,t),y=zo(d);if(r!=="exclude"&&y==="**")return;d[0]=tT(d[0]),Yq(y)&&d.push("**","*");let h=0;for(let E of d){if(E==="**")c+=o;else if(r==="directories"&&(c+="(",h++),f&&(c+=Ms),r!=="exclude"){let A="";E.charCodeAt(0)===42?(A+="([^./]"+i+")?",E=E.substr(1)):E.charCodeAt(0)===63&&(A+="[^./]",E=E.substr(1)),A+=E.replace(E7,s),A!==E&&(c+=T7),c+=A}else c+=E.replace(E7,s);f=!0}for(;h>0;)c+=")?",h--;return c}function Qq(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Ik(e,t,r,i,o){e=qo(e),o=qo(o);const s=Bi(o,e);return{includeFilePatterns:Vt(d7(r,s,"files"),c=>`^${c}$`),includeFilePattern:Lk(r,s,"files"),includeDirectoryPattern:Lk(r,s,"directories"),excludePattern:Lk(t,s,"exclude"),basePaths:N4e(e,r,i)}}function Mv(e,t){return new RegExp(e,t?"":"i")}function Zq(e,t,r,i,o,s,c,f,d){e=qo(e),s=qo(s);const y=Ik(e,r,i,o,s),h=y.includeFilePatterns&&y.includeFilePatterns.map(G=>Mv(G,o)),E=y.includeDirectoryPattern&&Mv(y.includeDirectoryPattern,o),A=y.excludePattern&&Mv(y.excludePattern,o),L=h?h.map(()=>[]):[[]],I=new Map,O=ru(o);for(const G of y.basePaths)k(G,Bi(s,G),c);return is(L);function k(G,V,H){const te=O(d(V));if(I.has(te))return;I.set(te,!0);const{files:X,directories:Y}=f(G);for(const P of TI(X,Ou)){const de=Bi(G,P),re=Bi(V,P);if(!(t&&!Sc(de,t))&&!(A&&A.test(re)))if(!h)L[0].push(de);else{const ye=mi(h,ae=>ae.test(re));ye!==-1&&L[ye].push(de)}}if(!(H!==void 0&&(H--,H===0)))for(const P of TI(Y,Ou)){const de=Bi(G,P),re=Bi(V,P);(!E||E.test(re))&&(!A||!A.test(re))&&k(de,re,H)}}}function N4e(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const c=km(s)?s:qo(Bi(e,s));o.push(O4e(c))}o.sort(uM(!r));for(const s of o)Yn(i,c=>!Tv(c,s,e,!r))&&i.push(s)}return i}function O4e(e){const t=Tc(e,ape);return t<0?kA(e)?tT(hi(e)):e:e.substring(0,e.lastIndexOf(Ms,t))}function f7(e,t){return t||eJ(e)||3}function eJ(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function kk(e,t){const r=e&&gO(e);if(!t||t.length===0)return r?DO:bC;const i=r?DO:bC,o=is(i);return[...i,...ia(t,c=>c.scriptKind===7||r&&P4e(c.scriptKind)&&o.indexOf(c.extension)===-1?[c.extension]:void 0)]}function vO(e,t){return!e||!CT(e)?t:t===DO?lpe:t===bC?ope:[...t,[".json"]]}function P4e(e){return e===1||e===2}function Ix(e){return kt(Bk,t=>cc(e,t))}function bO(e){return kt(kJ,t=>cc(e,t))}function N_e({imports:e},t=Im(Ix,bO)){return Kt(e,({text:r})=>Sf(r)?t(r):void 0)||!1}function tJ(e,t,r,i){if(e==="js"||t===99)return pw(r)&&o()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!pw(r))return N_e(i)?2:0;return o();function o(){let s=!1;const c=i.imports.length?i.imports.map(f=>f.text):td(i)?M4e(i).map(f=>f.arguments[0].text):rt;for(const f of c)if(Sf(f)){if(bO(f))return 3;Ix(f)&&(s=!0)}return s?2:0}}function M4e(e){let t=0,r;for(const i of e.statements){if(t>3)break;Qz(i)?r=ba(r,i.declarationList.declarations.map(o=>o.initializer)):ou(i)&&xd(i.expression,!0)?r=Fn(r,i.expression):t++}return r||rt}function O_e(e,t,r){if(!e)return!1;const i=kk(t,r);for(const o of is(vO(t,i)))if(cc(e,o))return!0;return!1}function P_e(e){const t=e.match(/\//g);return t?t.length:0}function EO(e,t){return Ws(P_e(e),P_e(t))}function Gd(e){for(const t of A7){const r=M_e(e,t);if(r!==void 0)return r}return e}function M_e(e,t){return cc(e,t)?TO(e,t):void 0}function TO(e,t){return e.substring(0,e.length-t.length)}function D1(e,t){return RW(e,t,A7,!1)}function pC(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function _7(e){return ia(rg(e),t=>pC(t))}function em(e){return!(e>=0)}function p7(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||xa(e,".d.")&&ic(e,".ts")}function SO(e){return p7(e)||e===".json"}function xO(e){const t=xh(e);return t!==void 0?t:D.fail(`File ${e} has unknown extension.`)}function F4e(e){return xh(e)!==void 0}function xh(e){return nn(A7,t=>cc(e,t))}function AO(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function nJ(e,t){const r=[];for(const i of e){if(i===t)return t;Ha(i)||r.push(i)}return pH(r,i=>i,t)}function rJ(e,t){const r=e.indexOf(t);return D.assert(r!==-1),e.slice(r)}function Ko(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),D.assert(e.relatedInformation!==rt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function F_e(e,t){D.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function iJ(e){return{pos:dT(e),end:e.end}}function aJ(e,t){const r=t.pos-1,i=Math.min(e.text.length,Jo(e.text,t.end)+1);return{pos:r,end:i}}function wk(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function oJ(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&vce(e,t,oJ)}function Dk(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const y=e.length-1;let h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,y)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let y=i-1,h=0;y>=r;y--,h+=t){const E=h>>>4,A=e.charCodeAt(y),I=(A<=57?A-48:10+A-(A<=70?65:97))<<(h&15);s[E]|=I;const O=I>>>16;O&&(s[E+1]|=O)}let c="",f=s.length-1,d=!0;for(;d;){let y=0;d=!1;for(let h=f;h>=0;h--){const E=y<<16|s[h],A=E/10|0;s[h]=A,y=E-A*10,A&&!d&&(f=h,d=!0)}c=y+c}return c}function R1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function B_e(e){if(m7(e,!1))return sJ(e)}function sJ(e){const t=e.startsWith("-"),r=Dk(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function m7(e,t){if(e==="")return!1;const r=fy(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===40;s&&(o=r.scan());const c=r.getTokenFlags();return i&&o===9&&r.getTextPos()===e.length+1&&!(c&512)&&(!t||e===R1({negative:s,base10Value:Dk(r.getTokenValue())}))}function kx(e){return!!(e.flags&16777216)||O3(e)||U4e(e)||G4e(e)||!(_g(e)||B4e(e))}function B4e(e){return He(e)&&t_(e.parent)&&e.parent.name===e}function G4e(e){for(;e.kind===79||e.kind===208;)e=e.parent;if(e.kind!==164)return!1;if(Yr(e.parent,256))return!0;const t=e.parent.parent.kind;return t===261||t===184}function U4e(e){if(e.kind!==79)return!1;const t=nr(e.parent,r=>{switch(r.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return(t==null?void 0:t.token)===117||(t==null?void 0:t.parent.kind)===261}function G_e(e){return J_(e)&&He(e.typeName)}function U_e(e,t=H0){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;i<o;i++){const s=e[i];if(!t(r,s))return!1}return!0}function Rk(e,t){return e.pos=t,e}function mC(e,t){return e.end=t,e}function Vm(e,t,r){return mC(Rk(e,t),r)}function Nk(e,t,r){return Vm(e,t,t+r)}function V_e(e,t){return e&&(e.flags=t),e}function Uo(e,t){return e&&t&&(e.parent=t),e}function hC(e,t){if(e)for(const r of e)Uo(r,t);return e}function Fv(e,t){if(!e)return e;return d8(e,GA(e)?r:o),e;function r(s,c){if(t&&s.parent===c)return"skip";Uo(s,c)}function i(s){if(xf(s))for(const c of s.jsDoc)r(c,s),d8(c,r)}function o(s,c){return r(s,c)||i(s)}}function V4e(e){return!Rc(e)}function lJ(e){return Gu(e)&&Yn(e.elements,V4e)}function j_e(e){for(D.assertIsDefined(e.parent);;){const t=e.parent;if(Ud(t)){e=t;continue}if(ou(t)||Vx(t)||DT(t)&&(t.initializer===e||t.incrementor===e))return!0;if(Yk(t)){if(e!==zo(t.elements))return!0;e=t;continue}if(br(t)&&t.operatorToken.kind===27){if(e===t.left)return!0;e=t;continue}return!1}}function Ok(e){return kt(qR,t=>pu(e,t))}function H_e(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:r}=e;return r.kind===192?void 0:r.typeParameters;case 166:return e.parent.parameters;case 201:return e.parent.templateSpans;case 236:return e.parent.templateSpans;case 167:{const{parent:i}=e;return Yx(i)?i.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:t}=e;if(KI(e))return tw(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return sT(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return Gi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return gN(e)?t.children:void 0;case 283:case 282:return Gi(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:return t.statements;case 266:return t.clauses;case 260:case 228:return Vc(e)?t.members:void 0;case 263:return B1(e)?t.members:void 0;case 308:return t.statements}}function h7(e){if(!e.typeParameters){if(kt(e.parameters,t=>!Zc(t)))return!0;if(e.kind!==216){const t=Yc(e.parameters);if(!(t&&I1(t)))return!0}}return!1}function Pk(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function W_e(e){return e.kind===257&&e.parent.kind===295}function cJ(e){const t=e.valueDeclaration&&Fm(e.valueDeclaration);return!!t&&(Ba(t)||W_e(t))}function gC(e){return e.kind===215||e.kind===216}function LT(e){return e.replace(/\$/gm,()=>"\\$")}function Ah(e){return(+e).toString()===e}function g7(e,t,r,i){return M_(e,t)?N.createIdentifier(e):!i&&Ah(e)&&+e>=0?N.createNumericLiteral(+e):N.createStringLiteral(e,!!r)}function Mk(e){return!!(e.flags&262144&&e.isThisType)}function uJ(e){let t=0,r=0,i=0,o=0,s;(y=>{y[y.BeforeNodeModules=0]="BeforeNodeModules",y[y.NodeModules=1]="NodeModules",y[y.Scope=2]="Scope",y[y.PackageContent=3]="PackageContent"})(s||(s={}));let c=0,f=0,d=0;for(;f>=0;)switch(c=f,f=e.indexOf("/",c+1),d){case 0:e.indexOf(Ly,c)===c&&(t=c,r=f,d=1);break;case 1:case 2:d===1&&e.charAt(c+1)==="@"?d=2:(i=f,d=3);break;case 3:e.indexOf(Ly,c)===c?d=1:d=3;break}return o=c,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function j4e(e){var t;return e.kind===344?(t=e.typeExpression)==null?void 0:t.type:e.type}function yC(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function CO(e){return ob(e)||uc(e)||yc(e)||Nc(e)||id(e)||yC(e)||Jl(e)&&!b1(e)&&!Yp(e)}function LO(e){if(!t3(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===319}function dJ(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&hh(e.charCodeAt(1),t):hh(r,t)}function z_e(e){var t;return((t=jJ(e))==null?void 0:t.kind)===0}function IO(e){return fr(e)&&(e.type&&e.type.kind===319||GI(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===319))}function fJ(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||IO(e);case 351:case 344:return LO(e);default:return!1}}function q_e(e){const t=e.kind;return(t===208||t===209)&&jx(e.expression)}function _J(e){return fr(e)&&Ud(e)&&xf(e)&&!!YW(e)}function pJ(e){return D.checkDefined(y7(e))}function y7(e){const t=YW(e);return t&&t.typeExpression&&t.typeExpression.type}var v7,rb,kO,b7,Fk,mJ,hJ,J_e,gJ,K_e,yJ,vJ,bJ,EJ,X_e,Y_e,$_e,Q_e,Z_e,TJ,epe,tpe,npe,vC,N1,rpe,ipe,Hc,SJ,wO,E7,ape,xJ,T7,AJ,CJ,LJ,IJ,bC,kJ,ope,spe,wJ,Bk,DO,lpe,S7,x7,DJ,A7,C7,H4e=C({"src/compiler/utilities.ts"(){Oa(),v7=[],rb="tslib",kO=160,b7=1e6,Fk=APe(),mJ=(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))(mJ||{}),hJ=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,J_e=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,gJ=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,K_e=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,yJ=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(yJ||{}),vJ=(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))(vJ||{}),bJ=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(bJ||{}),EJ=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(EJ||{}),X_e=/\$\{/g,Y_e=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,$_e=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Q_e=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Z_e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029"," ":"\\u0085","\r\n":"\\r\\n"})),TJ=/[^\u0000-\u007F]/g,epe=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,tpe=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,npe=new Map(Object.entries({'"':""","'":"'"})),vC=[""," "],N1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rpe=`\r `,ipe=` `,Hc={getNodeConstructor:()=>Hq,getTokenConstructor:()=>E4e,getIdentifierConstructor:()=>T4e,getPrivateIdentifierConstructor:()=>Hq,getSourceFileConstructor:()=>Hq,getSymbolConstructor:()=>y4e,getTypeConstructor:()=>v4e,getSignatureConstructor:()=>b4e,getSourceMapSourceConstructor:()=>S4e},SJ=[],E7=/[^\w\s\/]/g,ape=[42,63],xJ=["node_modules","bower_components","jspm_packages"],T7=`(?!(${xJ.join("|")})(/|$))`,AJ={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${T7}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qq(e,AJ.singleAsteriskRegexFragment)},CJ={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${T7}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Qq(e,CJ.singleAsteriskRegexFragment)},LJ={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Qq(e,LJ.singleAsteriskRegexFragment)},IJ={files:AJ,directories:CJ,exclude:LJ},bC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],kJ=is(bC),ope=[...bC,[".json"]],spe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],wJ=[[".js",".jsx"],[".mjs"],[".cjs"]],Bk=is(wJ),DO=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],lpe=[...DO,[".json"]],S7=[".d.ts",".d.cts",".d.mts"],x7=[".ts",".cts",".mts",".tsx"],DJ=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(DJ||{}),A7=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],C7={files:rt,directories:rt}}});function cpe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:f,createBaseTokenNode:d,createBaseNode:y};function s(h){return new(o||(o=Hc.getSourceFileConstructor()))(h,-1,-1)}function c(h){return new(r||(r=Hc.getIdentifierConstructor()))(h,-1,-1)}function f(h){return new(i||(i=Hc.getPrivateIdentifierConstructor()))(h,-1,-1)}function d(h){return new(t||(t=Hc.getTokenConstructor()))(h,-1,-1)}function y(h){return new(e||(e=Hc.getNodeConstructor()))(h,-1,-1)}}var W4e=C({"src/compiler/factory/baseNodeFactory.ts"(){Oa()}});function upe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:y,parenthesizeRightSideOfBinary:h,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:L,parenthesizeExpressionOfExportDefault:I,parenthesizeExpressionOfNew:O,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:G,parenthesizeOperandOfPrefixUnary:V,parenthesizeExpressionsOfCommaDelimitedList:H,parenthesizeExpressionForDisallowedComma:te,parenthesizeExpressionOfExpressionStatement:X,parenthesizeConciseBodyOfArrowFunction:Y,parenthesizeCheckTypeOfConditionalType:P,parenthesizeExtendsTypeOfConditionalType:de,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:re,parenthesizeConstituentTypesOfIntersectionType:W,parenthesizeConstituentTypeOfIntersectionType:ae,parenthesizeOperandOfTypeOperator:ce,parenthesizeOperandOfReadonlyTypeOperator:me,parenthesizeNonArrayTypeOfPostfixType:ve,parenthesizeElementTypesOfTupleType:Se,parenthesizeElementTypeOfTupleType:ee,parenthesizeTypeOfOptionalType:je,parenthesizeTypeArguments:Oe,parenthesizeLeadingTypeArgument:Ge};function i(Me){t||(t=new Map);let Ye=t.get(Me);return Ye||(Ye=ze=>y(Me,ze),t.set(Me,Ye)),Ye}function o(Me){r||(r=new Map);let Ye=r.get(Me);return Ye||(Ye=ze=>h(Me,void 0,ze),r.set(Me,Ye)),Ye}function s(Me,Ye,ze,Fe){const st=eO(223,Me),Ct=_q(223,Me),Et=F_(Ye);if(!ze&&Ye.kind===216&&st>3)return!0;const jt=J3(Et);switch(Ws(jt,st)){case-1:return!(!ze&&Ct===1&&Ye.kind===226);case 1:return!1;case 0:if(ze)return Ct===1;if(br(Et)&&Et.operatorToken.kind===Me){if(c(Me))return!1;if(Me===39){const at=Fe?f(Fe):0;if(WI(at)&&at===f(Et))return!1}}return fq(Et)===0}}function c(Me){return Me===41||Me===51||Me===50||Me===52||Me===27}function f(Me){if(Me=F_(Me),WI(Me.kind))return Me.kind;if(Me.kind===223&&Me.operatorToken.kind===39){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;const Ye=f(Me.left),ze=WI(Ye)&&Ye===f(Me.right)?Ye:0;return Me.cachedLiteralKind=ze,ze}return 0}function d(Me,Ye,ze,Fe){return F_(Ye).kind===214?Ye:s(Me,Ye,ze,Fe)?e.createParenthesizedExpression(Ye):Ye}function y(Me,Ye){return d(Me,Ye,!0)}function h(Me,Ye,ze){return d(Me,ze,!1,Ye)}function E(Me){return iw(Me)?e.createParenthesizedExpression(Me):Me}function A(Me){const Ye=eO(224,57),ze=F_(Me),Fe=J3(ze);return Ws(Fe,Ye)!==1?e.createParenthesizedExpression(Me):Me}function L(Me){const Ye=F_(Me);return iw(Ye)?e.createParenthesizedExpression(Me):Me}function I(Me){const Ye=F_(Me);let ze=iw(Ye);if(!ze)switch(Ak(Ye,!1).kind){case 228:case 215:ze=!0}return ze?e.createParenthesizedExpression(Me):Me}function O(Me){const Ye=Ak(Me,!0);switch(Ye.kind){case 210:return e.createParenthesizedExpression(Me);case 211:return Ye.arguments?Me:e.createParenthesizedExpression(Me)}return k(Me)}function k(Me,Ye){const ze=F_(Me);return Td(ze)&&(ze.kind!==211||ze.arguments)&&(Ye||!yu(ze))?Me:ht(e.createParenthesizedExpression(Me),Me)}function G(Me){return Td(Me)?Me:ht(e.createParenthesizedExpression(Me),Me)}function V(Me){return uz(Me)?Me:ht(e.createParenthesizedExpression(Me),Me)}function H(Me){const Ye=pa(Me,te);return ht(e.createNodeArray(Ye,Me.hasTrailingComma),Me)}function te(Me){const Ye=F_(Me),ze=J3(Ye),Fe=eO(223,27);return ze>Fe?Me:ht(e.createParenthesizedExpression(Me),Me)}function X(Me){const Ye=F_(Me);if(no(Ye)){const Fe=Ye.expression,st=F_(Fe).kind;if(st===215||st===216){const Ct=e.updateCallExpression(Ye,ht(e.createParenthesizedExpression(Fe),Fe),Ye.typeArguments,Ye.arguments);return e.restoreOuterExpressions(Me,Ct,8)}}const ze=Ak(Ye,!1).kind;return ze===207||ze===215?ht(e.createParenthesizedExpression(Me),Me):Me}function Y(Me){return!lo(Me)&&(iw(Me)||Ak(Me,!1).kind===207)?ht(e.createParenthesizedExpression(Me),Me):Me}function P(Me){switch(Me.kind){case 181:case 182:case 191:return e.createParenthesizedType(Me)}return Me}function de(Me){switch(Me.kind){case 191:return e.createParenthesizedType(Me)}return Me}function re(Me){switch(Me.kind){case 189:case 190:return e.createParenthesizedType(Me)}return P(Me)}function ye(Me){return e.createNodeArray(pa(Me,re))}function ae(Me){switch(Me.kind){case 189:case 190:return e.createParenthesizedType(Me)}return re(Me)}function W(Me){return e.createNodeArray(pa(Me,ae))}function ce(Me){switch(Me.kind){case 190:return e.createParenthesizedType(Me)}return ae(Me)}function me(Me){switch(Me.kind){case 195:return e.createParenthesizedType(Me)}return ce(Me)}function ve(Me){switch(Me.kind){case 192:case 195:case 183:return e.createParenthesizedType(Me)}return ce(Me)}function Se(Me){return e.createNodeArray(pa(Me,ee))}function ee(Me){return Qe(Me)?e.createParenthesizedType(Me):Me}function Qe(Me){return OC(Me)?Me.postfix:Jk(Me)||Lh(Me)||zk(Me)||Gx(Me)?Qe(Me.type):LC(Me)?Qe(Me.falseType):Fx(Me)||JO(Me)?Qe(zo(Me.types)):IC(Me)?!!Me.typeParameter.constraint&&Qe(Me.typeParameter.constraint):!1}function je(Me){return Qe(Me)?e.createParenthesizedType(Me):ve(Me)}function Ge(Me){return fde(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function qe(Me,Ye){return Ye===0?Ge(Me):Me}function Oe(Me){if(kt(Me))return e.createNodeArray(pa(Me,qe))}}var RJ,z4e=C({"src/compiler/factory/parenthesizerRules.ts"(){Oa(),RJ={getParenthesizeLeftSideOfBinaryForOperator:e=>ml,getParenthesizeRightSideOfBinaryForOperator:e=>ml,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:ml,parenthesizeConditionOfConditionalExpression:ml,parenthesizeBranchOfConditionalExpression:ml,parenthesizeExpressionOfExportDefault:ml,parenthesizeExpressionOfNew:e=>ao(e,Td),parenthesizeLeftSideOfAccess:e=>ao(e,Td),parenthesizeOperandOfPostfixUnary:e=>ao(e,Td),parenthesizeOperandOfPrefixUnary:e=>ao(e,uz),parenthesizeExpressionsOfCommaDelimitedList:e=>ao(e,h1),parenthesizeExpressionForDisallowedComma:ml,parenthesizeExpressionOfExpressionStatement:ml,parenthesizeConciseBodyOfArrowFunction:ml,parenthesizeCheckTypeOfConditionalType:ml,parenthesizeExtendsTypeOfConditionalType:ml,parenthesizeConstituentTypesOfUnionType:e=>ao(e,h1),parenthesizeConstituentTypeOfUnionType:ml,parenthesizeConstituentTypesOfIntersectionType:e=>ao(e,h1),parenthesizeConstituentTypeOfIntersectionType:ml,parenthesizeOperandOfTypeOperator:ml,parenthesizeOperandOfReadonlyTypeOperator:ml,parenthesizeNonArrayTypeOfPostfixType:ml,parenthesizeElementTypesOfTupleType:e=>ao(e,h1),parenthesizeElementTypeOfTupleType:ml,parenthesizeTypeOfOptionalType:ml,parenthesizeTypeArguments:e=>e&&ao(e,h1),parenthesizeLeadingTypeArgument:ml}}});function dpe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:o,convertToAssignmentPattern:s,convertToObjectAssignmentPattern:c,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:d};function t(y,h){if(lo(y))return y;const E=e.createReturnStatement(y);ht(E,y);const A=e.createBlock([E],h);return ht(A,y),A}function r(y){if(!y.body)return D.fail("Cannot convert a FunctionDeclaration without a body");const h=e.createFunctionExpression(iT(y),y.asteriskToken,y.name,y.typeParameters,y.parameters,y.type,y.body);return Wr(h,y),ht(h,y),FO(y)&&VJ(h,!0),h}function i(y){if(ps(y)){if(y.dotDotDotToken)return D.assertNode(y.name,He),Wr(ht(e.createSpreadElement(y.name),y),y);const h=d(y.name);return y.initializer?Wr(ht(e.createAssignment(h,y.initializer),y),y):h}return ao(y,vt)}function o(y){if(ps(y)){if(y.dotDotDotToken)return D.assertNode(y.name,He),Wr(ht(e.createSpreadAssignment(y.name),y),y);if(y.propertyName){const h=d(y.name);return Wr(ht(e.createPropertyAssignment(y.propertyName,y.initializer?e.createAssignment(h,y.initializer):h),y),y)}return D.assertNode(y.name,He),Wr(ht(e.createShorthandPropertyAssignment(y.name,y.initializer),y),y)}return ao(y,hy)}function s(y){switch(y.kind){case 204:case 206:return f(y);case 203:case 207:return c(y)}}function c(y){return Hm(y)?Wr(ht(e.createObjectLiteralExpression(Vt(y.elements,o)),y),y):ao(y,Ls)}function f(y){return kC(y)?Wr(ht(e.createArrayLiteralExpression(Vt(y.elements,i)),y),y):ao(y,Gu)}function d(y){return Xa(y)?s(y):ao(y,vt)}}var NJ,q4e=C({"src/compiler/factory/nodeConverters.ts"(){Oa(),NJ={convertToFunctionBlock:Wa,convertToFunctionExpression:Wa,convertToArrayAssignmentElement:Wa,convertToObjectAssignmentElement:Wa,convertToAssignmentPattern:Wa,convertToObjectAssignmentPattern:Wa,convertToArrayAssignmentPattern:Wa,convertToAssignmentElementTarget:Wa}}});function J4e(e){BJ.push(e)}function RO(e,t){const r=e&8?K4e:X4e,i=Ed(()=>e&1?RJ:upe(G)),o=Ed(()=>e&2?NJ:dpe(G)),s=Lm(b=>(w,F)=>U(w,b,F)),c=Lm(b=>w=>A_(b,w)),f=Lm(b=>w=>Z_(w,b)),d=Lm(b=>()=>cE(b)),y=Lm(b=>w=>By(b,w)),h=Lm(b=>(w,F)=>Rs(b,w,F)),E=Lm(b=>(w,F)=>vS(b,w,F)),A=Lm(b=>(w,F)=>uE(b,w,F)),L=Lm(b=>(w,F)=>Gh(b,w,F)),I=Lm(b=>(w,F,se)=>u0(b,w,F,se)),O=Lm(b=>(w,F,se)=>d0(b,w,F,se)),k=Lm(b=>(w,F,se,Je)=>du(b,w,F,se,Je)),G={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:V,createNumericLiteral:Y,createBigIntLiteral:P,createStringLiteral:re,createStringLiteralFromNode:ye,createRegularExpressionLiteral:ae,createLiteralLikeNode:W,createIdentifier:ve,createTempVariable:Se,createLoopVariable:ee,createUniqueName:Qe,getGeneratedNameForNode:je,createPrivateIdentifier:qe,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:Ye,createToken:Fe,createSuper:st,createThis:Ct,createNull:Et,createTrue:jt,createFalse:tt,createModifier:at,createModifiersFromModifierFlags:sn,createQualifiedName:Qt,updateQualifiedName:On,createComputedPropertyName:jn,updateComputedPropertyName:In,createTypeParameterDeclaration:Zt,updateTypeParameterDeclaration:_r,createParameterDeclaration:Ii,updateParameterDeclaration:$i,createDecorator:Qi,updateDecorator:Or,createPropertySignature:At,updatePropertySignature:vn,createPropertyDeclaration:dn,updatePropertyDeclaration:rr,createMethodSignature:cr,updateMethodSignature:Pi,createMethodDeclaration:gi,updateMethodDeclaration:Rn,createConstructorDeclaration:we,updateConstructorDeclaration:yt,createGetAccessorDeclaration:Ce,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:ie,updateSetAccessorDeclaration:he,createCallSignature:We,updateCallSignature:Ze,createConstructSignature:Xe,updateConstructSignature:Ut,createIndexSignature:cn,updateIndexSignature:Sn,createClassStaticBlockDeclaration:Pn,updateClassStaticBlockDeclaration:Ar,createTemplateLiteralTypeSpan:Er,updateTemplateLiteralTypeSpan:ue,createKeywordTypeNode:mt,createTypePredicateNode:zt,updateTypePredicateNode:it,createTypeReferenceNode:K,updateTypeReferenceNode:Pe,createFunctionTypeNode:Z,updateFunctionTypeNode:Re,createConstructorTypeNode:Rt,updateConstructorTypeNode:_n,createTypeQueryNode:Ai,updateTypeQueryNode:Ci,createTypeLiteralNode:ji,updateTypeLiteralNode:mo,createArrayTypeNode:To,updateArrayTypeNode:io,createTupleTypeNode:ca,updateTupleTypeNode:Hi,createNamedTupleMember:Xr,updateNamedTupleMember:ss,createOptionalTypeNode:_i,updateOptionalTypeNode:ua,createRestTypeNode:wn,updateRestTypeNode:fa,createUnionTypeNode:Ul,updateUnionTypeNode:Xl,createIntersectionTypeNode:Vl,updateIntersectionTypeNode:Co,createConditionalTypeNode:La,updateConditionalTypeNode:Xo,createInferTypeNode:jl,updateInferTypeNode:tu,createImportTypeNode:Kc,updateImportTypeNode:Ds,createParenthesizedType:hl,updateParenthesizedType:el,createThisTypeNode:Ks,createTypeOperatorNode:rn,updateTypeOperatorNode:Hl,createIndexedAccessTypeNode:xu,updateIndexedAccessTypeNode:zu,createMappedTypeNode:fe,updateMappedTypeNode:It,createLiteralTypeNode:Ht,updateLiteralTypeNode:Q,createTemplateLiteralType:zd,updateTemplateLiteralType:oc,createObjectBindingPattern:ot,updateObjectBindingPattern:xt,createArrayBindingPattern:mn,updateArrayBindingPattern:Dr,createBindingElement:Pr,updateBindingElement:Ta,createArrayLiteralExpression:ls,updateArrayLiteralExpression:ho,createObjectLiteralExpression:jo,updateObjectLiteralExpression:Ya,createPropertyAccessExpression:e&4?(b,w)=>or(dc(b,w),262144):dc,updatePropertyAccessExpression:_d,createPropertyAccessChain:e&4?(b,w,F)=>or(Es(b,w,F),262144):Es,updatePropertyAccessChain:ds,createElementAccessExpression:qd,updateElementAccessExpression:Wl,createElementAccessChain:Nf,updateElementAccessChain:xe,createCallExpression:Nn,updateCallExpression:Xi,createCallChain:Lo,updateCallChain:oe,createNewExpression:ut,updateNewExpression:Mt,createTaggedTemplateExpression:Pt,updateTaggedTemplateExpression:un,createTypeAssertion:Vn,updateTypeAssertion:Rr,createParenthesizedExpression:ni,updateParenthesizedExpression:Mi,createFunctionExpression:ja,updateFunctionExpression:Ho,createArrowFunction:Ts,updateArrowFunction:Xs,createDeleteExpression:pd,updateDeleteExpression:ff,createTypeOfExpression:tc,updateTypeOfExpression:Jd,createVoidExpression:Au,updateVoidExpression:_f,createAwaitExpression:x_,updateAwaitExpression:Yo,createPrefixUnaryExpression:A_,updatePrefixUnaryExpression:pf,createPostfixUnaryExpression:Z_,updatePostfixUnaryExpression:kp,createBinaryExpression:U,updateBinaryExpression:qt,createConditionalExpression:Xn,updateConditionalExpression:Da,createTemplateExpression:Ia,updateTemplateExpression:Ie,createTemplateHead:Tn,createTemplateMiddle:Hn,createTemplateTail:qr,createNoSubstitutionTemplateLiteral:Ji,createTemplateLiteralLikeNode:bn,createYieldExpression:tr,updateYieldExpression:pn,createSpreadElement:dr,updateSpreadElement:Aa,createClassExpression:Ys,updateClassExpression:sc,createOmittedExpression:Ym,createExpressionWithTypeArguments:Cg,updateExpressionWithTypeArguments:ep,createAsExpression:hb,updateAsExpression:Zv,createNonNullExpression:x2,updateNonNullExpression:sS,createSatisfiesExpression:A2,updateSatisfiesExpression:Lg,createNonNullChain:tp,updateNonNullChain:e0,createMetaProperty:Ph,updateMetaProperty:wp,createTemplateSpan:t0,updateTemplateSpan:Z1,createSemicolonClassElement:gb,createBlock:Ig,updateBlock:lS,createVariableStatement:eE,updateVariableStatement:tE,createEmptyStatement:nE,createExpressionStatement:n0,updateExpressionStatement:C2,createIfStatement:rE,updateIfStatement:iE,createDoStatement:r0,updateDoStatement:yb,createWhileStatement:i0,updateWhileStatement:cS,createForStatement:kg,updateForStatement:$o,createForInStatement:aE,updateForInStatement:vL,createForOfStatement:My,updateForOfStatement:wg,createContinueStatement:$m,updateContinueStatement:np,createBreakStatement:kd,updateBreakStatement:wd,createReturnStatement:Dd,updateReturnStatement:vb,createWithStatement:bb,updateWithStatement:L2,createSwitchStatement:Eb,updateSwitchStatement:Dg,createLabeledStatement:Tb,updateLabeledStatement:uS,createThrowStatement:Sb,updateThrowStatement:bL,createTryStatement:I2,updateTryStatement:a0,createDebuggerStatement:oE,createVariableDeclaration:Ke,updateVariableDeclaration:Fy,createVariableDeclarationList:lm,updateVariableDeclarationList:o0,createFunctionDeclaration:xb,updateFunctionDeclaration:s0,createClassDeclaration:dS,updateClassDeclaration:ts,createInterfaceDeclaration:rp,updateInterfaceDeclaration:sE,createTypeAliasDeclaration:vc,updateTypeAliasDeclaration:Mh,createEnumDeclaration:Ab,updateEnumDeclaration:ip,createModuleDeclaration:Cb,updateModuleDeclaration:cu,createModuleBlock:Ng,updateModuleBlock:Pc,createCaseBlock:fS,updateCaseBlock:EL,createNamespaceExportDeclaration:Wi,updateNamespaceExportDeclaration:Jr,createImportEqualsDeclaration:Kd,updateImportEqualsDeclaration:lE,createImportDeclaration:Og,updateImportDeclaration:Fh,createImportClause:Zm,updateImportClause:_l,createAssertClause:Lb,updateAssertClause:_S,createAssertEntry:Ib,updateAssertEntry:pS,createImportTypeAssertionContainer:r_,updateImportTypeAssertionContainer:k2,createNamespaceImport:w2,updateNamespaceImport:l0,createNamespaceExport:mS,updateNamespaceExport:hS,createNamedImports:D2,updateNamedImports:kb,createImportSpecifier:gS,updateImportSpecifier:Of,createExportAssignment:Pg,updateExportAssignment:Dp,createExportDeclaration:ap,updateExportDeclaration:R2,createNamedExports:cm,updateNamedExports:yS,createExportSpecifier:md,updateExportSpecifier:Mg,createMissingDeclaration:um,createExternalModuleReference:dm,updateExternalModuleReference:Fg,get createJSDocAllType(){return d(315)},get createJSDocUnknownType(){return d(316)},get createJSDocNonNullableType(){return E(318)},get updateJSDocNonNullableType(){return A(318)},get createJSDocNullableType(){return E(317)},get updateJSDocNullableType(){return A(317)},get createJSDocOptionalType(){return y(319)},get updateJSDocOptionalType(){return h(319)},get createJSDocVariadicType(){return y(321)},get updateJSDocVariadicType(){return h(321)},get createJSDocNamepathType(){return y(322)},get updateJSDocNamepathType(){return h(322)},createJSDocFunctionType:Gy,updateJSDocFunctionType:N2,createJSDocTypeLiteral:Db,updateJSDocTypeLiteral:Rb,createJSDocTypeExpression:O2,updateJSDocTypeExpression:TL,createJSDocSignature:P2,updateJSDocSignature:pr,createJSDocTemplateTag:c0,updateJSDocTemplateTag:eh,createJSDocTypedefTag:ir,updateJSDocTypedefTag:M2,createJSDocParameterTag:Uy,updateJSDocParameterTag:Ic,createJSDocPropertyTag:C_,updateJSDocPropertyTag:Rp,createJSDocCallbackTag:Vy,updateJSDocCallbackTag:dE,createJSDocOverloadTag:op,updateJSDocOverloadTag:jy,createJSDocAugmentsTag:Yl,updateJSDocAugmentsTag:nc,createJSDocImplementsTag:Bg,updateJSDocImplementsTag:Gg,createJSDocSeeTag:uu,updateJSDocSeeTag:L_,createJSDocNameReference:th,updateJSDocNameReference:Rd,createJSDocMemberName:fE,updateJSDocMemberName:Nb,createJSDocLink:Ob,updateJSDocLink:Np,createJSDocLinkCode:Bh,updateJSDocLinkCode:_E,createJSDocLinkPlain:Hy,updateJSDocLinkPlain:Nl,get createJSDocTypeTag(){return O(347)},get updateJSDocTypeTag(){return k(347)},get createJSDocReturnTag(){return O(345)},get updateJSDocReturnTag(){return k(345)},get createJSDocThisTag(){return O(346)},get updateJSDocThisTag(){return k(346)},get createJSDocAuthorTag(){return L(333)},get updateJSDocAuthorTag(){return I(333)},get createJSDocClassTag(){return L(335)},get updateJSDocClassTag(){return I(335)},get createJSDocPublicTag(){return L(336)},get updateJSDocPublicTag(){return I(336)},get createJSDocPrivateTag(){return L(337)},get updateJSDocPrivateTag(){return I(337)},get createJSDocProtectedTag(){return L(338)},get updateJSDocProtectedTag(){return I(338)},get createJSDocReadonlyTag(){return L(339)},get updateJSDocReadonlyTag(){return I(339)},get createJSDocOverrideTag(){return L(340)},get updateJSDocOverrideTag(){return I(340)},get createJSDocDeprecatedTag(){return L(334)},get updateJSDocDeprecatedTag(){return I(334)},get createJSDocThrowsTag(){return O(352)},get updateJSDocThrowsTag(){return k(352)},get createJSDocSatisfiesTag(){return O(353)},get updateJSDocSatisfiesTag(){return k(353)},createJSDocEnumTag:pE,updateJSDocEnumTag:Vh,createJSDocUnknownTag:Uh,updateJSDocUnknownTag:bc,createJSDocText:Pb,updateJSDocText:hd,createJSDocComment:nh,updateJSDocComment:Mb,createJsxElement:f0,updateJsxElement:mE,createJsxSelfClosingElement:Wy,updateJsxSelfClosingElement:bS,createJsxOpeningElement:_0,updateJsxOpeningElement:Ug,createJsxClosingElement:Mf,updateJsxClosingElement:hE,createJsxFragment:mf,createJsxText:p0,updateJsxText:F2,createJsxOpeningFragment:as,createJsxJsxClosingFragment:Ir,updateJsxFragment:jh,createJsxAttribute:Xd,updateJsxAttribute:gd,createJsxAttributes:ES,updateJsxAttributes:gE,createJsxSpreadAttribute:zy,updateJsxSpreadAttribute:B2,createJsxExpression:qy,updateJsxExpression:fm,createCaseClause:Op,updateCaseClause:Vg,createDefaultClause:m0,updateDefaultClause:Hh,createHeritageClause:_m,updateHeritageClause:TS,createCatchClause:$l,updateCatchClause:hf,createPropertyAssignment:rh,updatePropertyAssignment:Nd,createShorthandPropertyAssignment:Jy,updateShorthandPropertyAssignment:jg,createSpreadAssignment:Ff,updateSpreadAssignment:Ns,createEnumMember:vE,updateEnumMember:bE,createSourceFile:Hg,updateSourceFile:xE,createRedirectedSourceFile:h0,createBundle:AE,updateBundle:Ky,createUnparsedSource:Yd,createUnparsedPrologue:SL,createUnparsedPrepend:Wg,createUnparsedTextLike:U2,createUnparsedSyntheticReference:V2,createInputFiles:S,createSyntheticExpression:le,createSyntaxList:ke,createNotEmittedStatement:on,createPartiallyEmittedExpression:Cr,updatePartiallyEmittedExpression:Si,createCommaListExpression:Vi,updateCommaListExpression:fo,createEndOfDeclarationMarker:nu,createMergeDeclarationMarker:$d,createSyntheticReferenceExpression:gf,updateSyntheticReferenceExpression:Xy,cloneNode:I_,get createComma(){return s(27)},get createAssignment(){return s(63)},get createLogicalOr(){return s(56)},get createLogicalAnd(){return s(55)},get createBitwiseOr(){return s(51)},get createBitwiseXor(){return s(52)},get createBitwiseAnd(){return s(50)},get createStrictEquality(){return s(36)},get createStrictInequality(){return s(37)},get createEquality(){return s(34)},get createInequality(){return s(35)},get createLessThan(){return s(29)},get createLessThanEquals(){return s(32)},get createGreaterThan(){return s(31)},get createGreaterThanEquals(){return s(33)},get createLeftShift(){return s(47)},get createRightShift(){return s(48)},get createUnsignedRightShift(){return s(49)},get createAdd(){return s(39)},get createSubtract(){return s(40)},get createMultiply(){return s(41)},get createDivide(){return s(43)},get createModulo(){return s(44)},get createExponent(){return s(42)},get createPrefixPlus(){return c(39)},get createPrefixMinus(){return c(40)},get createPrefixIncrement(){return c(45)},get createPrefixDecrement(){return c(46)},get createBitwiseNot(){return c(54)},get createLogicalNot(){return c(53)},get createPostfixIncrement(){return f(45)},get createPostfixDecrement(){return f(46)},createImmediatelyInvokedFunctionExpression:CE,createImmediatelyInvokedArrowFunction:Bf,createVoidZero:ih,createExportDefault:$y,createExternalModuleExport:i_,createTypeCheck:LE,createMethodCall:v0,createGlobalMethodCall:ns,createFunctionBindCall:fc,createFunctionCallCall:kP,createFunctionApplyCall:Ss,createArraySliceCall:j2,createArrayConcatCall:H2,createObjectDefinePropertyCall:z,createObjectGetOwnPropertyDescriptorCall:Ee,createReflectGetCall:$e,createReflectSetCall:Tt,createPropertyDescriptor:Cn,createCallBinding:Is,createAssignmentTargetWrapper:Io,inlineExpressions:rs,getInternalName:Pp,getLocalName:pm,getExportName:zg,getDeclarationName:k_,getNamespaceMemberName:Qy,getExternalModuleOrNamespaceExportName:W2,restoreOuterExpressions:xi,restoreEnclosingLabel:ki,createUseStrictPrologue:sp,copyPrologue:IE,copyStandardPrologue:b0,copyCustomPrologue:AL,ensureUseStrict:Gf,liftToBlock:z2,mergeLexicalEnvironment:mD,updateModifiers:hD};return Ue(BJ,b=>b(G)),G;function V(b,w){if(b===void 0||b===rt)b=[];else if(h1(b)){if(w===void 0||b.hasTrailingComma===w)return b.transformFlags===void 0&&fpe(b),D.attachNodeArrayDebugInfo(b),b;const Je=b.slice();return Je.pos=b.pos,Je.end=b.end,Je.hasTrailingComma=w,Je.transformFlags=b.transformFlags,D.attachNodeArrayDebugInfo(Je),Je}const F=b.length,se=F>=1&&F<=4?b.slice():b;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!w,se.transformFlags=0,fpe(se),D.attachNodeArrayDebugInfo(se),se}function H(b){return t.createBaseNode(b)}function te(b){const w=H(b);return w.symbol=void 0,w.localSymbol=void 0,w}function X(b,w){return b!==w&&(b.typeArguments=w.typeArguments),r(b,w)}function Y(b,w=0){const F=te(8);return F.text=typeof b=="number"?b+"":b,F.numericLiteralFlags=w,w&384&&(F.transformFlags|=1024),F}function P(b){const w=ze(9);return w.text=typeof b=="string"?b:R1(b)+"n",w.transformFlags|=4,w}function de(b,w){const F=te(10);return F.text=b,F.singleQuote=w,F}function re(b,w,F){const se=de(b,w);return se.hasExtendedUnicodeEscape=F,F&&(se.transformFlags|=1024),se}function ye(b){const w=de(V_(b),void 0);return w.textSourceNode=b,w}function ae(b){const w=ze(13);return w.text=b,w}function W(b,w){switch(b){case 8:return Y(w,0);case 9:return P(w);case 10:return re(w,void 0);case 11:return p0(w,!1);case 12:return p0(w,!0);case 13:return ae(w);case 14:return bn(b,w,void 0,0)}}function ce(b){const w=t.createBaseIdentifierNode(79);return w.escapedText=b,w.jsDoc=void 0,w.flowNode=void 0,w.symbol=void 0,w}function me(b,w,F,se){const Je=ce(sl(b));return UO(Je,{flags:w,id:OO,prefix:F,suffix:se}),OO++,Je}function ve(b,w,F){w===void 0&&b&&(w=rT(b)),w===79&&(w=void 0);const se=ce(sl(b));return F&&(se.flags|=128),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&128&&(se.transformFlags|=1024),se}function Se(b,w,F,se){let Je=1;w&&(Je|=8);const Xt=me("",Je,F,se);return b&&b(Xt),Xt}function ee(b){let w=2;return b&&(w|=8),me("",w,void 0,void 0)}function Qe(b,w=0,F,se){return D.assert(!(w&7),"Argument out of range: flags"),D.assert((w&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(b,3|w,F,se)}function je(b,w=0,F,se){D.assert(!(w&7),"Argument out of range: flags");const Je=b?lg(b)?MT(!1,F,b,se,Mr):`generated@${ms(b)}`:"";(F||se)&&(w|=16);const Xt=me(Je,4|w,F,se);return Xt.original=b,Xt}function Ge(b){const w=t.createBasePrivateIdentifierNode(80);return w.escapedText=b,w.transformFlags|=16777216,w}function qe(b){return xa(b,"#")||D.fail("First character of private identifier must be #: "+b),Ge(sl(b))}function Oe(b,w,F,se){const Je=Ge(sl(b));return UO(Je,{flags:w,id:OO,prefix:F,suffix:se}),OO++,Je}function Me(b,w,F){b&&!xa(b,"#")&&D.fail("First character of private identifier must be #: "+b);const se=8|(b?3:1);return Oe(b??"",se,w,F)}function Ye(b,w,F){const se=lg(b)?MT(!0,w,b,F,Mr):`#generated@${ms(b)}`,Xt=Oe(se,4|(w||F?16:0),w,F);return Xt.original=b,Xt}function ze(b){return t.createBaseTokenNode(b)}function Fe(b){D.assert(b>=0&&b<=162,"Invalid token"),D.assert(b<=14||b>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),D.assert(b<=8||b>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),D.assert(b!==79,"Invalid token. Use 'createIdentifier' to create identifiers");const w=ze(b);let F=0;switch(b){case 132:F=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:F=1;break;case 106:F=134218752,w.flowNode=void 0;break;case 124:F=1024;break;case 127:F=16777216;break;case 108:F=16384,w.flowNode=void 0;break}return F&&(w.transformFlags|=F),w}function st(){return Fe(106)}function Ct(){return Fe(108)}function Et(){return Fe(104)}function jt(){return Fe(110)}function tt(){return Fe(95)}function at(b){return Fe(b)}function sn(b){const w=[];return b&1&&w.push(at(93)),b&2&&w.push(at(136)),b&1024&&w.push(at(88)),b&2048&&w.push(at(85)),b&4&&w.push(at(123)),b&8&&w.push(at(121)),b&16&&w.push(at(122)),b&256&&w.push(at(126)),b&32&&w.push(at(124)),b&16384&&w.push(at(161)),b&64&&w.push(at(146)),b&128&&w.push(at(127)),b&512&&w.push(at(132)),b&32768&&w.push(at(101)),b&65536&&w.push(at(145)),w.length?w:void 0}function Qt(b,w){const F=H(163);return F.left=b,F.right=El(w),F.transformFlags|=hr(F.left)|Gk(F.right),F.flowNode=void 0,F}function On(b,w,F){return b.left!==w||b.right!==F?r(Qt(w,F),b):b}function jn(b){const w=H(164);return w.expression=i().parenthesizeExpressionOfComputedPropertyName(b),w.transformFlags|=hr(w.expression)|1024|131072,w}function In(b,w){return b.expression!==w?r(jn(w),b):b}function Zt(b,w,F,se){const Je=te(165);return Je.modifiers=ko(b),Je.name=El(w),Je.constraint=F,Je.default=se,Je.transformFlags=1,Je.expression=void 0,Je.jsDoc=void 0,Je}function _r(b,w,F,se,Je){return b.modifiers!==w||b.name!==F||b.constraint!==se||b.default!==Je?r(Zt(w,F,se,Je),b):b}function Ii(b,w,F,se,Je,Xt){var Gr,ea;const $a=te(166);return $a.modifiers=ko(b),$a.dotDotDotToken=w,$a.name=El(F),$a.questionToken=se,$a.type=Je,$a.initializer=ev(Xt),TT($a.name)?$a.transformFlags=1:$a.transformFlags=Oo($a.modifiers)|hr($a.dotDotDotToken)|Ey($a.name)|hr($a.questionToken)|hr($a.initializer)|(((Gr=$a.questionToken)!=null?Gr:$a.type)?1:0)|(((ea=$a.dotDotDotToken)!=null?ea:$a.initializer)?1024:0)|(Gm($a.modifiers)&16476?8192:0),$a.jsDoc=void 0,$a}function $i(b,w,F,se,Je,Xt,Gr){return b.modifiers!==w||b.dotDotDotToken!==F||b.name!==se||b.questionToken!==Je||b.type!==Xt||b.initializer!==Gr?r(Ii(w,F,se,Je,Xt,Gr),b):b}function Qi(b){const w=H(167);return w.expression=i().parenthesizeLeftSideOfAccess(b,!1),w.transformFlags|=hr(w.expression)|1|8192|33554432,w}function Or(b,w){return b.expression!==w?r(Qi(w),b):b}function At(b,w,F,se){const Je=te(168);return Je.modifiers=ko(b),Je.name=El(w),Je.type=se,Je.questionToken=F,Je.transformFlags=1,Je.initializer=void 0,Je.jsDoc=void 0,Je}function vn(b,w,F,se,Je){return b.modifiers!==w||b.name!==F||b.questionToken!==se||b.type!==Je?Wt(At(w,F,se,Je),b):b}function Wt(b,w){return b!==w&&(b.initializer=w.initializer),r(b,w)}function dn(b,w,F,se,Je){const Xt=te(169);Xt.modifiers=ko(b),Xt.name=El(w),Xt.questionToken=F&&Bv(F)?F:void 0,Xt.exclamationToken=F&&zO(F)?F:void 0,Xt.type=se,Xt.initializer=ev(Je);const Gr=Xt.flags&16777216||Gm(Xt.modifiers)&2;return Xt.transformFlags=Oo(Xt.modifiers)|Ey(Xt.name)|hr(Xt.initializer)|(Gr||Xt.questionToken||Xt.exclamationToken||Xt.type?1:0)|(As(Xt.name)||Gm(Xt.modifiers)&32&&Xt.initializer?8192:0)|16777216,Xt.jsDoc=void 0,Xt}function rr(b,w,F,se,Je,Xt){return b.modifiers!==w||b.name!==F||b.questionToken!==(se!==void 0&&Bv(se)?se:void 0)||b.exclamationToken!==(se!==void 0&&zO(se)?se:void 0)||b.type!==Je||b.initializer!==Xt?r(dn(w,F,se,Je,Xt),b):b}function cr(b,w,F,se,Je,Xt){const Gr=te(170);return Gr.modifiers=ko(b),Gr.name=El(w),Gr.questionToken=F,Gr.typeParameters=ko(se),Gr.parameters=ko(Je),Gr.type=Xt,Gr.transformFlags=1,Gr.jsDoc=void 0,Gr.locals=void 0,Gr.nextContainer=void 0,Gr.typeArguments=void 0,Gr}function Pi(b,w,F,se,Je,Xt,Gr){return b.modifiers!==w||b.name!==F||b.questionToken!==se||b.typeParameters!==Je||b.parameters!==Xt||b.type!==Gr?X(cr(w,F,se,Je,Xt,Gr),b):b}function gi(b,w,F,se,Je,Xt,Gr,ea){const $a=te(171);if($a.modifiers=ko(b),$a.asteriskToken=w,$a.name=El(F),$a.questionToken=se,$a.exclamationToken=void 0,$a.typeParameters=ko(Je),$a.parameters=V(Xt),$a.type=Gr,$a.body=ea,!$a.body)$a.transformFlags=1;else{const yf=Gm($a.modifiers)&512,qg=!!$a.asteriskToken,Jg=yf&&qg;$a.transformFlags=Oo($a.modifiers)|hr($a.asteriskToken)|Ey($a.name)|hr($a.questionToken)|Oo($a.typeParameters)|Oo($a.parameters)|hr($a.type)|hr($a.body)&-67108865|(Jg?128:yf?256:qg?2048:0)|($a.questionToken||$a.typeParameters||$a.type?1:0)|1024}return $a.typeArguments=void 0,$a.jsDoc=void 0,$a.locals=void 0,$a.nextContainer=void 0,$a.flowNode=void 0,$a.endFlowNode=void 0,$a.returnFlowNode=void 0,$a}function Rn(b,w,F,se,Je,Xt,Gr,ea,$a){return b.modifiers!==w||b.asteriskToken!==F||b.name!==se||b.questionToken!==Je||b.typeParameters!==Xt||b.parameters!==Gr||b.type!==ea||b.body!==$a?an(gi(w,F,se,Je,Xt,Gr,ea,$a),b):b}function an(b,w){return b!==w&&(b.exclamationToken=w.exclamationToken),r(b,w)}function Pn(b){const w=te(172);return w.body=b,w.transformFlags=hr(b)|16777216,w.modifiers=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Ar(b,w){return b.body!==w?Hr(Pn(w),b):b}function Hr(b,w){return b!==w&&(b.modifiers=w.modifiers),r(b,w)}function we(b,w,F){const se=te(173);return se.modifiers=ko(b),se.parameters=V(w),se.body=F,se.transformFlags=Oo(se.modifiers)|Oo(se.parameters)|hr(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function yt(b,w,F,se){return b.modifiers!==w||b.parameters!==F||b.body!==se?Nt(we(w,F,se),b):b}function Nt(b,w){return b!==w&&(b.typeParameters=w.typeParameters,b.type=w.type),X(b,w)}function Ce(b,w,F,se,Je){const Xt=te(174);return Xt.modifiers=ko(b),Xt.name=El(w),Xt.parameters=V(F),Xt.type=se,Xt.body=Je,Xt.body?Xt.transformFlags=Oo(Xt.modifiers)|Ey(Xt.name)|Oo(Xt.parameters)|hr(Xt.type)|hr(Xt.body)&-67108865|(Xt.type?1:0):Xt.transformFlags=1,Xt.typeArguments=void 0,Xt.typeParameters=void 0,Xt.jsDoc=void 0,Xt.locals=void 0,Xt.nextContainer=void 0,Xt.flowNode=void 0,Xt.endFlowNode=void 0,Xt.returnFlowNode=void 0,Xt}function pt(b,w,F,se,Je,Xt){return b.modifiers!==w||b.name!==F||b.parameters!==se||b.type!==Je||b.body!==Xt?pe(Ce(w,F,se,Je,Xt),b):b}function pe(b,w){return b!==w&&(b.typeParameters=w.typeParameters),X(b,w)}function ie(b,w,F,se){const Je=te(175);return Je.modifiers=ko(b),Je.name=El(w),Je.parameters=V(F),Je.body=se,Je.body?Je.transformFlags=Oo(Je.modifiers)|Ey(Je.name)|Oo(Je.parameters)|hr(Je.body)&-67108865|(Je.type?1:0):Je.transformFlags=1,Je.typeArguments=void 0,Je.typeParameters=void 0,Je.type=void 0,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je.endFlowNode=void 0,Je.returnFlowNode=void 0,Je}function he(b,w,F,se,Je){return b.modifiers!==w||b.name!==F||b.parameters!==se||b.body!==Je?j(ie(w,F,se,Je),b):b}function j(b,w){return b!==w&&(b.typeParameters=w.typeParameters,b.type=w.type),X(b,w)}function We(b,w,F){const se=te(176);return se.typeParameters=ko(b),se.parameters=ko(w),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ze(b,w,F,se){return b.typeParameters!==w||b.parameters!==F||b.type!==se?X(We(w,F,se),b):b}function Xe(b,w,F){const se=te(177);return se.typeParameters=ko(b),se.parameters=ko(w),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ut(b,w,F,se){return b.typeParameters!==w||b.parameters!==F||b.type!==se?X(Xe(w,F,se),b):b}function cn(b,w,F){const se=te(178);return se.modifiers=ko(b),se.parameters=ko(w),se.type=F,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Sn(b,w,F,se){return b.parameters!==F||b.type!==se||b.modifiers!==w?X(cn(w,F,se),b):b}function Er(b,w){const F=H(201);return F.type=b,F.literal=w,F.transformFlags=1,F}function ue(b,w,F){return b.type!==w||b.literal!==F?r(Er(w,F),b):b}function mt(b){return Fe(b)}function zt(b,w,F){const se=H(179);return se.assertsModifier=b,se.parameterName=El(w),se.type=F,se.transformFlags=1,se}function it(b,w,F,se){return b.assertsModifier!==w||b.parameterName!==F||b.type!==se?r(zt(w,F,se),b):b}function K(b,w){const F=H(180);return F.typeName=El(b),F.typeArguments=w&&i().parenthesizeTypeArguments(V(w)),F.transformFlags=1,F}function Pe(b,w,F){return b.typeName!==w||b.typeArguments!==F?r(K(w,F),b):b}function Z(b,w,F){const se=te(181);return se.typeParameters=ko(b),se.parameters=ko(w),se.type=F,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Re(b,w,F,se){return b.typeParameters!==w||b.parameters!==F||b.type!==se?q(Z(w,F,se),b):b}function q(b,w){return b!==w&&(b.modifiers=w.modifiers),X(b,w)}function Rt(...b){return b.length===4?gt(...b):b.length===3?ft(...b):D.fail("Incorrect number of arguments specified.")}function gt(b,w,F,se){const Je=te(182);return Je.modifiers=ko(b),Je.typeParameters=ko(w),Je.parameters=ko(F),Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.typeArguments=void 0,Je}function ft(b,w,F){return gt(void 0,b,w,F)}function _n(...b){return b.length===5?$n(...b):b.length===4?oi(...b):D.fail("Incorrect number of arguments specified.")}function $n(b,w,F,se,Je){return b.modifiers!==w||b.typeParameters!==F||b.parameters!==se||b.type!==Je?X(Rt(w,F,se,Je),b):b}function oi(b,w,F,se){return $n(b,b.modifiers,w,F,se)}function Ai(b,w){const F=H(183);return F.exprName=b,F.typeArguments=w&&i().parenthesizeTypeArguments(w),F.transformFlags=1,F}function Ci(b,w,F){return b.exprName!==w||b.typeArguments!==F?r(Ai(w,F),b):b}function ji(b){const w=te(184);return w.members=V(b),w.transformFlags=1,w}function mo(b,w){return b.members!==w?r(ji(w),b):b}function To(b){const w=H(185);return w.elementType=i().parenthesizeNonArrayTypeOfPostfixType(b),w.transformFlags=1,w}function io(b,w){return b.elementType!==w?r(To(w),b):b}function ca(b){const w=H(186);return w.elements=V(i().parenthesizeElementTypesOfTupleType(b)),w.transformFlags=1,w}function Hi(b,w){return b.elements!==w?r(ca(w),b):b}function Xr(b,w,F,se){const Je=te(199);return Je.dotDotDotToken=b,Je.name=w,Je.questionToken=F,Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je}function ss(b,w,F,se,Je){return b.dotDotDotToken!==w||b.name!==F||b.questionToken!==se||b.type!==Je?r(Xr(w,F,se,Je),b):b}function _i(b){const w=H(187);return w.type=i().parenthesizeTypeOfOptionalType(b),w.transformFlags=1,w}function ua(b,w){return b.type!==w?r(_i(w),b):b}function wn(b){const w=H(188);return w.type=b,w.transformFlags=1,w}function fa(b,w){return b.type!==w?r(wn(w),b):b}function ec(b,w,F){const se=H(b);return se.types=G.createNodeArray(F(w)),se.transformFlags=1,se}function rl(b,w,F){return b.types!==w?r(ec(b.kind,w,F),b):b}function Ul(b){return ec(189,b,i().parenthesizeConstituentTypesOfUnionType)}function Xl(b,w){return rl(b,w,i().parenthesizeConstituentTypesOfUnionType)}function Vl(b){return ec(190,b,i().parenthesizeConstituentTypesOfIntersectionType)}function Co(b,w){return rl(b,w,i().parenthesizeConstituentTypesOfIntersectionType)}function La(b,w,F,se){const Je=H(191);return Je.checkType=i().parenthesizeCheckTypeOfConditionalType(b),Je.extendsType=i().parenthesizeExtendsTypeOfConditionalType(w),Je.trueType=F,Je.falseType=se,Je.transformFlags=1,Je.locals=void 0,Je.nextContainer=void 0,Je}function Xo(b,w,F,se,Je){return b.checkType!==w||b.extendsType!==F||b.trueType!==se||b.falseType!==Je?r(La(w,F,se,Je),b):b}function jl(b){const w=H(192);return w.typeParameter=b,w.transformFlags=1,w}function tu(b,w){return b.typeParameter!==w?r(jl(w),b):b}function zd(b,w){const F=H(200);return F.head=b,F.templateSpans=V(w),F.transformFlags=1,F}function oc(b,w,F){return b.head!==w||b.templateSpans!==F?r(zd(w,F),b):b}function Kc(b,w,F,se,Je=!1){const Xt=H(202);return Xt.argument=b,Xt.assertions=w,Xt.qualifier=F,Xt.typeArguments=se&&i().parenthesizeTypeArguments(se),Xt.isTypeOf=Je,Xt.transformFlags=1,Xt}function Ds(b,w,F,se,Je,Xt=b.isTypeOf){return b.argument!==w||b.assertions!==F||b.qualifier!==se||b.typeArguments!==Je||b.isTypeOf!==Xt?r(Kc(w,F,se,Je,Xt),b):b}function hl(b){const w=H(193);return w.type=b,w.transformFlags=1,w}function el(b,w){return b.type!==w?r(hl(w),b):b}function Ks(){const b=H(194);return b.transformFlags=1,b}function rn(b,w){const F=H(195);return F.operator=b,F.type=b===146?i().parenthesizeOperandOfReadonlyTypeOperator(w):i().parenthesizeOperandOfTypeOperator(w),F.transformFlags=1,F}function Hl(b,w){return b.type!==w?r(rn(b.operator,w),b):b}function xu(b,w){const F=H(196);return F.objectType=i().parenthesizeNonArrayTypeOfPostfixType(b),F.indexType=w,F.transformFlags=1,F}function zu(b,w,F){return b.objectType!==w||b.indexType!==F?r(xu(w,F),b):b}function fe(b,w,F,se,Je,Xt){const Gr=te(197);return Gr.readonlyToken=b,Gr.typeParameter=w,Gr.nameType=F,Gr.questionToken=se,Gr.type=Je,Gr.members=Xt&&V(Xt),Gr.transformFlags=1,Gr.locals=void 0,Gr.nextContainer=void 0,Gr}function It(b,w,F,se,Je,Xt,Gr){return b.readonlyToken!==w||b.typeParameter!==F||b.nameType!==se||b.questionToken!==Je||b.type!==Xt||b.members!==Gr?r(fe(w,F,se,Je,Xt,Gr),b):b}function Ht(b){const w=H(198);return w.literal=b,w.transformFlags=1,w}function Q(b,w){return b.literal!==w?r(Ht(w),b):b}function ot(b){const w=H(203);return w.elements=V(b),w.transformFlags|=Oo(w.elements)|1024|524288,w.transformFlags&32768&&(w.transformFlags|=65664),w}function xt(b,w){return b.elements!==w?r(ot(w),b):b}function mn(b){const w=H(204);return w.elements=V(b),w.transformFlags|=Oo(w.elements)|1024|524288,w}function Dr(b,w){return b.elements!==w?r(mn(w),b):b}function Pr(b,w,F,se){const Je=te(205);return Je.dotDotDotToken=b,Je.propertyName=El(w),Je.name=El(F),Je.initializer=ev(se),Je.transformFlags|=hr(Je.dotDotDotToken)|Ey(Je.propertyName)|Ey(Je.name)|hr(Je.initializer)|(Je.dotDotDotToken?32768:0)|1024,Je.flowNode=void 0,Je}function Ta(b,w,F,se,Je){return b.propertyName!==F||b.dotDotDotToken!==w||b.name!==se||b.initializer!==Je?r(Pr(w,F,se,Je),b):b}function ls(b,w){const F=H(206),se=b&&tl(b),Je=V(b,se&&Rc(se)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Je),F.multiLine=w,F.transformFlags|=Oo(F.elements),F}function ho(b,w){return b.elements!==w?r(ls(w,b.multiLine),b):b}function jo(b,w){const F=te(207);return F.properties=V(b),F.multiLine=w,F.transformFlags|=Oo(F.properties),F.jsDoc=void 0,F}function Ya(b,w){return b.properties!==w?r(jo(w,b.multiLine),b):b}function dl(b,w,F){const se=te(208);return se.expression=b,se.questionDotToken=w,se.name=F,se.transformFlags=hr(se.expression)|hr(se.questionDotToken)|(He(se.name)?Gk(se.name):hr(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function dc(b,w){const F=dl(i().parenthesizeLeftSideOfAccess(b,!1),void 0,El(w));return Hk(b)&&(F.transformFlags|=384),F}function _d(b,w,F){return QM(b)?ds(b,w,b.questionDotToken,ao(F,He)):b.expression!==w||b.name!==F?r(dc(w,F),b):b}function Es(b,w,F){const se=dl(i().parenthesizeLeftSideOfAccess(b,!0),w,El(F));return se.flags|=32,se.transformFlags|=32,se}function ds(b,w,F,se){return D.assert(!!(b.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),b.expression!==w||b.questionDotToken!==F||b.name!==se?r(Es(w,F,se),b):b}function fl(b,w,F){const se=te(209);return se.expression=b,se.questionDotToken=w,se.argumentExpression=F,se.transformFlags|=hr(se.expression)|hr(se.questionDotToken)|hr(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function qd(b,w){const F=fl(i().parenthesizeLeftSideOfAccess(b,!1),void 0,E0(w));return Hk(b)&&(F.transformFlags|=384),F}function Wl(b,w,F){return QW(b)?xe(b,w,b.questionDotToken,F):b.expression!==w||b.argumentExpression!==F?r(qd(w,F),b):b}function Nf(b,w,F){const se=fl(i().parenthesizeLeftSideOfAccess(b,!0),w,E0(F));return se.flags|=32,se.transformFlags|=32,se}function xe(b,w,F,se){return D.assert(!!(b.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),b.expression!==w||b.questionDotToken!==F||b.argumentExpression!==se?r(Nf(w,F,se),b):b}function Dt(b,w,F,se){const Je=te(210);return Je.expression=b,Je.questionDotToken=w,Je.typeArguments=F,Je.arguments=se,Je.transformFlags|=hr(Je.expression)|hr(Je.questionDotToken)|Oo(Je.typeArguments)|Oo(Je.arguments),Je.typeArguments&&(Je.transformFlags|=1),ud(Je.expression)&&(Je.transformFlags|=16384),Je}function Nn(b,w,F){const se=Dt(i().parenthesizeLeftSideOfAccess(b,!1),void 0,ko(w),i().parenthesizeExpressionsOfCommaDelimitedList(V(F)));return Wk(se.expression)&&(se.transformFlags|=8388608),se}function Xi(b,w,F,se){return aT(b)?oe(b,w,b.questionDotToken,F,se):b.expression!==w||b.typeArguments!==F||b.arguments!==se?r(Nn(w,F,se),b):b}function Lo(b,w,F,se){const Je=Dt(i().parenthesizeLeftSideOfAccess(b,!0),w,ko(F),i().parenthesizeExpressionsOfCommaDelimitedList(V(se)));return Je.flags|=32,Je.transformFlags|=32,Je}function oe(b,w,F,se,Je){return D.assert(!!(b.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),b.expression!==w||b.questionDotToken!==F||b.typeArguments!==se||b.arguments!==Je?r(Lo(w,F,se,Je),b):b}function ut(b,w,F){const se=te(211);return se.expression=i().parenthesizeExpressionOfNew(b),se.typeArguments=ko(w),se.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,se.transformFlags|=hr(se.expression)|Oo(se.typeArguments)|Oo(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function Mt(b,w,F,se){return b.expression!==w||b.typeArguments!==F||b.arguments!==se?r(ut(w,F,se),b):b}function Pt(b,w,F){const se=H(212);return se.tag=i().parenthesizeLeftSideOfAccess(b,!1),se.typeArguments=ko(w),se.template=F,se.transformFlags|=hr(se.tag)|Oo(se.typeArguments)|hr(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),mq(se.template)&&(se.transformFlags|=128),se}function un(b,w,F,se){return b.tag!==w||b.typeArguments!==F||b.template!==se?r(Pt(w,F,se),b):b}function Vn(b,w){const F=H(213);return F.expression=i().parenthesizeOperandOfPrefixUnary(w),F.type=b,F.transformFlags|=hr(F.expression)|hr(F.type)|1,F}function Rr(b,w,F){return b.type!==w||b.expression!==F?r(Vn(w,F),b):b}function ni(b){const w=H(214);return w.expression=b,w.transformFlags=hr(w.expression),w.jsDoc=void 0,w}function Mi(b,w){return b.expression!==w?r(ni(w),b):b}function ja(b,w,F,se,Je,Xt,Gr){const ea=te(215);ea.modifiers=ko(b),ea.asteriskToken=w,ea.name=El(F),ea.typeParameters=ko(se),ea.parameters=V(Je),ea.type=Xt,ea.body=Gr;const $a=Gm(ea.modifiers)&512,yf=!!ea.asteriskToken,qg=$a&&yf;return ea.transformFlags=Oo(ea.modifiers)|hr(ea.asteriskToken)|Ey(ea.name)|Oo(ea.typeParameters)|Oo(ea.parameters)|hr(ea.type)|hr(ea.body)&-67108865|(qg?128:$a?256:yf?2048:0)|(ea.typeParameters||ea.type?1:0)|4194304,ea.typeArguments=void 0,ea.jsDoc=void 0,ea.locals=void 0,ea.nextContainer=void 0,ea.flowNode=void 0,ea.endFlowNode=void 0,ea.returnFlowNode=void 0,ea}function Ho(b,w,F,se,Je,Xt,Gr,ea){return b.name!==se||b.modifiers!==w||b.asteriskToken!==F||b.typeParameters!==Je||b.parameters!==Xt||b.type!==Gr||b.body!==ea?X(ja(w,F,se,Je,Xt,Gr,ea),b):b}function Ts(b,w,F,se,Je,Xt){const Gr=te(216);Gr.modifiers=ko(b),Gr.typeParameters=ko(w),Gr.parameters=V(F),Gr.type=se,Gr.equalsGreaterThanToken=Je??Fe(38),Gr.body=i().parenthesizeConciseBodyOfArrowFunction(Xt);const ea=Gm(Gr.modifiers)&512;return Gr.transformFlags=Oo(Gr.modifiers)|Oo(Gr.typeParameters)|Oo(Gr.parameters)|hr(Gr.type)|hr(Gr.equalsGreaterThanToken)|hr(Gr.body)&-67108865|(Gr.typeParameters||Gr.type?1:0)|(ea?16640:0)|1024,Gr.typeArguments=void 0,Gr.jsDoc=void 0,Gr.locals=void 0,Gr.nextContainer=void 0,Gr.flowNode=void 0,Gr.endFlowNode=void 0,Gr.returnFlowNode=void 0,Gr}function Xs(b,w,F,se,Je,Xt,Gr){return b.modifiers!==w||b.typeParameters!==F||b.parameters!==se||b.type!==Je||b.equalsGreaterThanToken!==Xt||b.body!==Gr?X(Ts(w,F,se,Je,Xt,Gr),b):b}function pd(b){const w=H(217);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function ff(b,w){return b.expression!==w?r(pd(w),b):b}function tc(b){const w=H(218);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function Jd(b,w){return b.expression!==w?r(tc(w),b):b}function Au(b){const w=H(219);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function _f(b,w){return b.expression!==w?r(Au(w),b):b}function x_(b){const w=H(220);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression)|256|128|2097152,w}function Yo(b,w){return b.expression!==w?r(x_(w),b):b}function A_(b,w){const F=H(221);return F.operator=b,F.operand=i().parenthesizeOperandOfPrefixUnary(w),F.transformFlags|=hr(F.operand),(b===45||b===46)&&He(F.operand)&&!xl(F.operand)&&!Vv(F.operand)&&(F.transformFlags|=268435456),F}function pf(b,w){return b.operand!==w?r(A_(b.operator,w),b):b}function Z_(b,w){const F=H(222);return F.operator=w,F.operand=i().parenthesizeOperandOfPostfixUnary(b),F.transformFlags|=hr(F.operand),He(F.operand)&&!xl(F.operand)&&!Vv(F.operand)&&(F.transformFlags|=268435456),F}function kp(b,w){return b.operand!==w?r(Z_(w,b.operator),b):b}function U(b,w,F){const se=te(223),Je=gD(w),Xt=Je.kind;return se.left=i().parenthesizeLeftSideOfBinary(Xt,b),se.operatorToken=Je,se.right=i().parenthesizeRightSideOfBinary(Xt,se.left,F),se.transformFlags|=hr(se.left)|hr(se.operatorToken)|hr(se.right),Xt===60?se.transformFlags|=32:Xt===63?Ls(se.left)?se.transformFlags|=5248|et(se.left):Gu(se.left)&&(se.transformFlags|=5120|et(se.left)):Xt===42||Xt===67?se.transformFlags|=512:hk(Xt)&&(se.transformFlags|=16),Xt===101&&Ni(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function et(b){return c8(b)?65536:0}function qt(b,w,F,se){return b.left!==w||b.operatorToken!==F||b.right!==se?r(U(w,F,se),b):b}function Xn(b,w,F,se,Je){const Xt=H(224);return Xt.condition=i().parenthesizeConditionOfConditionalExpression(b),Xt.questionToken=w??Fe(57),Xt.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),Xt.colonToken=se??Fe(58),Xt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Je),Xt.transformFlags|=hr(Xt.condition)|hr(Xt.questionToken)|hr(Xt.whenTrue)|hr(Xt.colonToken)|hr(Xt.whenFalse),Xt}function Da(b,w,F,se,Je,Xt){return b.condition!==w||b.questionToken!==F||b.whenTrue!==se||b.colonToken!==Je||b.whenFalse!==Xt?r(Xn(w,F,se,Je,Xt),b):b}function Ia(b,w){const F=H(225);return F.head=b,F.templateSpans=V(w),F.transformFlags|=hr(F.head)|Oo(F.templateSpans)|1024,F}function Ie(b,w,F){return b.head!==w||b.templateSpans!==F?r(Ia(w,F),b):b}function Ve(b,w,F,se=0){D.assert(!(se&-2049),"Unsupported template flags.");let Je;if(F!==void 0&&F!==w&&(Je=Y4e(b,F),typeof Je=="object"))return D.fail("Invalid raw text");if(w===void 0){if(Je===void 0)return D.fail("Arguments 'text' and 'rawText' may not both be undefined.");w=Je}else Je!==void 0&&D.assert(w===Je,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return w}function Lt(b){let w=1024;return b&&(w|=128),w}function Ot(b,w,F,se){const Je=ze(b);return Je.text=w,Je.rawText=F,Je.templateFlags=se&2048,Je.transformFlags=Lt(Je.templateFlags),Je}function hn(b,w,F,se){const Je=te(b);return Je.text=w,Je.rawText=F,Je.templateFlags=se&2048,Je.transformFlags=Lt(Je.templateFlags),Je}function bn(b,w,F,se){return b===14?hn(b,w,F,se):Ot(b,w,F,se)}function Tn(b,w,F){return b=Ve(15,b,w,F),bn(15,b,w,F)}function Hn(b,w,F){return b=Ve(15,b,w,F),bn(16,b,w,F)}function qr(b,w,F){return b=Ve(15,b,w,F),bn(17,b,w,F)}function Ji(b,w,F){return b=Ve(15,b,w,F),hn(14,b,w,F)}function tr(b,w){D.assert(!b||!!w,"A `YieldExpression` with an asteriskToken must have an expression.");const F=H(226);return F.expression=w&&i().parenthesizeExpressionForDisallowedComma(w),F.asteriskToken=b,F.transformFlags|=hr(F.expression)|hr(F.asteriskToken)|1024|128|1048576,F}function pn(b,w,F){return b.expression!==F||b.asteriskToken!==w?r(tr(w,F),b):b}function dr(b){const w=H(227);return w.expression=i().parenthesizeExpressionForDisallowedComma(b),w.transformFlags|=hr(w.expression)|1024|32768,w}function Aa(b,w){return b.expression!==w?r(dr(w),b):b}function Ys(b,w,F,se,Je){const Xt=te(228);return Xt.modifiers=ko(b),Xt.name=El(w),Xt.typeParameters=ko(F),Xt.heritageClauses=ko(se),Xt.members=V(Je),Xt.transformFlags|=Oo(Xt.modifiers)|Ey(Xt.name)|Oo(Xt.typeParameters)|Oo(Xt.heritageClauses)|Oo(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.jsDoc=void 0,Xt}function sc(b,w,F,se,Je,Xt){return b.modifiers!==w||b.name!==F||b.typeParameters!==se||b.heritageClauses!==Je||b.members!==Xt?r(Ys(w,F,se,Je,Xt),b):b}function Ym(){return H(229)}function Cg(b,w){const F=H(230);return F.expression=i().parenthesizeLeftSideOfAccess(b,!1),F.typeArguments=w&&i().parenthesizeTypeArguments(w),F.transformFlags|=hr(F.expression)|Oo(F.typeArguments)|1024,F}function ep(b,w,F){return b.expression!==w||b.typeArguments!==F?r(Cg(w,F),b):b}function hb(b,w){const F=H(231);return F.expression=b,F.type=w,F.transformFlags|=hr(F.expression)|hr(F.type)|1,F}function Zv(b,w,F){return b.expression!==w||b.type!==F?r(hb(w,F),b):b}function x2(b){const w=H(232);return w.expression=i().parenthesizeLeftSideOfAccess(b,!1),w.transformFlags|=hr(w.expression)|1,w}function sS(b,w){return e3(b)?e0(b,w):b.expression!==w?r(x2(w),b):b}function A2(b,w){const F=H(235);return F.expression=b,F.type=w,F.transformFlags|=hr(F.expression)|hr(F.type)|1,F}function Lg(b,w,F){return b.expression!==w||b.type!==F?r(A2(w,F),b):b}function tp(b){const w=H(232);return w.flags|=32,w.expression=i().parenthesizeLeftSideOfAccess(b,!0),w.transformFlags|=hr(w.expression)|1,w}function e0(b,w){return D.assert(!!(b.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),b.expression!==w?r(tp(w),b):b}function Ph(b,w){const F=H(233);switch(F.keywordToken=b,F.name=w,F.transformFlags|=hr(F.name),b){case 103:F.transformFlags|=1024;break;case 100:F.transformFlags|=4;break;default:return D.assertNever(b)}return F.flowNode=void 0,F}function wp(b,w){return b.name!==w?r(Ph(b.keywordToken,w),b):b}function t0(b,w){const F=H(236);return F.expression=b,F.literal=w,F.transformFlags|=hr(F.expression)|hr(F.literal)|1024,F}function Z1(b,w,F){return b.expression!==w||b.literal!==F?r(t0(w,F),b):b}function gb(){const b=H(237);return b.transformFlags|=1024,b}function Ig(b,w){const F=H(238);return F.statements=V(b),F.multiLine=w,F.transformFlags|=Oo(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function lS(b,w){return b.statements!==w?r(Ig(w,b.multiLine),b):b}function eE(b,w){const F=H(240);return F.modifiers=ko(b),F.declarationList=Va(w)?lm(w):w,F.transformFlags|=Oo(F.modifiers)|hr(F.declarationList),Gm(F.modifiers)&2&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function tE(b,w,F){return b.modifiers!==w||b.declarationList!==F?r(eE(w,F),b):b}function nE(){const b=H(239);return b.jsDoc=void 0,b}function n0(b){const w=H(241);return w.expression=i().parenthesizeExpressionOfExpressionStatement(b),w.transformFlags|=hr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function C2(b,w){return b.expression!==w?r(n0(w),b):b}function rE(b,w,F){const se=H(242);return se.expression=b,se.thenStatement=Pd(w),se.elseStatement=Pd(F),se.transformFlags|=hr(se.expression)|hr(se.thenStatement)|hr(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function iE(b,w,F,se){return b.expression!==w||b.thenStatement!==F||b.elseStatement!==se?r(rE(w,F,se),b):b}function r0(b,w){const F=H(243);return F.statement=Pd(b),F.expression=w,F.transformFlags|=hr(F.statement)|hr(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function yb(b,w,F){return b.statement!==w||b.expression!==F?r(r0(w,F),b):b}function i0(b,w){const F=H(244);return F.expression=b,F.statement=Pd(w),F.transformFlags|=hr(F.expression)|hr(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function cS(b,w,F){return b.expression!==w||b.statement!==F?r(i0(w,F),b):b}function kg(b,w,F,se){const Je=H(245);return Je.initializer=b,Je.condition=w,Je.incrementor=F,Je.statement=Pd(se),Je.transformFlags|=hr(Je.initializer)|hr(Je.condition)|hr(Je.incrementor)|hr(Je.statement),Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je}function $o(b,w,F,se,Je){return b.initializer!==w||b.condition!==F||b.incrementor!==se||b.statement!==Je?r(kg(w,F,se,Je),b):b}function aE(b,w,F){const se=H(246);return se.initializer=b,se.expression=w,se.statement=Pd(F),se.transformFlags|=hr(se.initializer)|hr(se.expression)|hr(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function vL(b,w,F,se){return b.initializer!==w||b.expression!==F||b.statement!==se?r(aE(w,F,se),b):b}function My(b,w,F,se){const Je=H(247);return Je.awaitModifier=b,Je.initializer=w,Je.expression=i().parenthesizeExpressionForDisallowedComma(F),Je.statement=Pd(se),Je.transformFlags|=hr(Je.awaitModifier)|hr(Je.initializer)|hr(Je.expression)|hr(Je.statement)|1024,b&&(Je.transformFlags|=128),Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je.flowNode=void 0,Je}function wg(b,w,F,se,Je){return b.awaitModifier!==w||b.initializer!==F||b.expression!==se||b.statement!==Je?r(My(w,F,se,Je),b):b}function $m(b){const w=H(248);return w.label=El(b),w.transformFlags|=hr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function np(b,w){return b.label!==w?r($m(w),b):b}function kd(b){const w=H(249);return w.label=El(b),w.transformFlags|=hr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function wd(b,w){return b.label!==w?r(kd(w),b):b}function Dd(b){const w=H(250);return w.expression=b,w.transformFlags|=hr(w.expression)|128|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function vb(b,w){return b.expression!==w?r(Dd(w),b):b}function bb(b,w){const F=H(251);return F.expression=b,F.statement=Pd(w),F.transformFlags|=hr(F.expression)|hr(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function L2(b,w,F){return b.expression!==w||b.statement!==F?r(bb(w,F),b):b}function Eb(b,w){const F=H(252);return F.expression=i().parenthesizeExpressionForDisallowedComma(b),F.caseBlock=w,F.transformFlags|=hr(F.expression)|hr(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function Dg(b,w,F){return b.expression!==w||b.caseBlock!==F?r(Eb(w,F),b):b}function Tb(b,w){const F=H(253);return F.label=El(b),F.statement=Pd(w),F.transformFlags|=hr(F.label)|hr(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function uS(b,w,F){return b.label!==w||b.statement!==F?r(Tb(w,F),b):b}function Sb(b){const w=H(254);return w.expression=b,w.transformFlags|=hr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function bL(b,w){return b.expression!==w?r(Sb(w),b):b}function I2(b,w,F){const se=H(255);return se.tryBlock=b,se.catchClause=w,se.finallyBlock=F,se.transformFlags|=hr(se.tryBlock)|hr(se.catchClause)|hr(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function a0(b,w,F,se){return b.tryBlock!==w||b.catchClause!==F||b.finallyBlock!==se?r(I2(w,F,se),b):b}function oE(){const b=H(256);return b.jsDoc=void 0,b.flowNode=void 0,b}function Ke(b,w,F,se){var Je;const Xt=te(257);return Xt.name=El(b),Xt.exclamationToken=w,Xt.type=F,Xt.initializer=ev(se),Xt.transformFlags|=Ey(Xt.name)|hr(Xt.initializer)|(((Je=Xt.exclamationToken)!=null?Je:Xt.type)?1:0),Xt.jsDoc=void 0,Xt}function Fy(b,w,F,se,Je){return b.name!==w||b.type!==se||b.exclamationToken!==F||b.initializer!==Je?r(Ke(w,F,se,Je),b):b}function lm(b,w=0){const F=H(258);return F.flags|=w&3,F.declarations=V(b),F.transformFlags|=Oo(F.declarations)|4194304,w&3&&(F.transformFlags|=263168),F}function o0(b,w){return b.declarations!==w?r(lm(w,b.flags),b):b}function xb(b,w,F,se,Je,Xt,Gr){const ea=te(259);if(ea.modifiers=ko(b),ea.asteriskToken=w,ea.name=El(F),ea.typeParameters=ko(se),ea.parameters=V(Je),ea.type=Xt,ea.body=Gr,!ea.body||Gm(ea.modifiers)&2)ea.transformFlags=1;else{const $a=Gm(ea.modifiers)&512,yf=!!ea.asteriskToken,qg=$a&&yf;ea.transformFlags=Oo(ea.modifiers)|hr(ea.asteriskToken)|Ey(ea.name)|Oo(ea.typeParameters)|Oo(ea.parameters)|hr(ea.type)|hr(ea.body)&-67108865|(qg?128:$a?256:yf?2048:0)|(ea.typeParameters||ea.type?1:0)|4194304}return ea.typeArguments=void 0,ea.jsDoc=void 0,ea.locals=void 0,ea.nextContainer=void 0,ea.endFlowNode=void 0,ea.returnFlowNode=void 0,ea}function s0(b,w,F,se,Je,Xt,Gr,ea){return b.modifiers!==w||b.asteriskToken!==F||b.name!==se||b.typeParameters!==Je||b.parameters!==Xt||b.type!==Gr||b.body!==ea?Rg(xb(w,F,se,Je,Xt,Gr,ea),b):b}function Rg(b,w){return b!==w&&b.modifiers===w.modifiers&&(b.modifiers=w.modifiers),X(b,w)}function dS(b,w,F,se,Je){const Xt=te(260);return Xt.modifiers=ko(b),Xt.name=El(w),Xt.typeParameters=ko(F),Xt.heritageClauses=ko(se),Xt.members=V(Je),Gm(Xt.modifiers)&2?Xt.transformFlags=1:(Xt.transformFlags|=Oo(Xt.modifiers)|Ey(Xt.name)|Oo(Xt.typeParameters)|Oo(Xt.heritageClauses)|Oo(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.transformFlags&8192&&(Xt.transformFlags|=1)),Xt.jsDoc=void 0,Xt}function ts(b,w,F,se,Je,Xt){return b.modifiers!==w||b.name!==F||b.typeParameters!==se||b.heritageClauses!==Je||b.members!==Xt?r(dS(w,F,se,Je,Xt),b):b}function rp(b,w,F,se,Je){const Xt=te(261);return Xt.modifiers=ko(b),Xt.name=El(w),Xt.typeParameters=ko(F),Xt.heritageClauses=ko(se),Xt.members=V(Je),Xt.transformFlags=1,Xt.jsDoc=void 0,Xt}function sE(b,w,F,se,Je,Xt){return b.modifiers!==w||b.name!==F||b.typeParameters!==se||b.heritageClauses!==Je||b.members!==Xt?r(rp(w,F,se,Je,Xt),b):b}function vc(b,w,F,se){const Je=te(262);return Je.modifiers=ko(b),Je.name=El(w),Je.typeParameters=ko(F),Je.type=se,Je.transformFlags=1,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je}function Mh(b,w,F,se,Je){return b.modifiers!==w||b.name!==F||b.typeParameters!==se||b.type!==Je?r(vc(w,F,se,Je),b):b}function Ab(b,w,F){const se=te(263);return se.modifiers=ko(b),se.name=El(w),se.members=V(F),se.transformFlags|=Oo(se.modifiers)|hr(se.name)|Oo(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function ip(b,w,F,se){return b.modifiers!==w||b.name!==F||b.members!==se?r(Ab(w,F,se),b):b}function Cb(b,w,F,se=0){const Je=te(264);return Je.modifiers=ko(b),Je.flags|=se&1044,Je.name=w,Je.body=F,Gm(Je.modifiers)&2?Je.transformFlags=1:Je.transformFlags|=Oo(Je.modifiers)|hr(Je.name)|hr(Je.body)|1,Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je.locals=void 0,Je.nextContainer=void 0,Je}function cu(b,w,F,se){return b.modifiers!==w||b.name!==F||b.body!==se?r(Cb(w,F,se,b.flags),b):b}function Ng(b){const w=H(265);return w.statements=V(b),w.transformFlags|=Oo(w.statements),w.jsDoc=void 0,w}function Pc(b,w){return b.statements!==w?r(Ng(w),b):b}function fS(b){const w=H(266);return w.clauses=V(b),w.transformFlags|=Oo(w.clauses),w.locals=void 0,w.nextContainer=void 0,w}function EL(b,w){return b.clauses!==w?r(fS(w),b):b}function Wi(b){const w=te(267);return w.name=El(b),w.transformFlags|=Gk(w.name)|1,w.modifiers=void 0,w.jsDoc=void 0,w}function Jr(b,w){return b.name!==w?Qm(Wi(w),b):b}function Qm(b,w){return b!==w&&(b.modifiers=w.modifiers),r(b,w)}function Kd(b,w,F,se){const Je=te(268);return Je.modifiers=ko(b),Je.name=El(F),Je.isTypeOnly=w,Je.moduleReference=se,Je.transformFlags|=Oo(Je.modifiers)|Gk(Je.name)|hr(Je.moduleReference),zm(Je.moduleReference)||(Je.transformFlags|=1),Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je}function lE(b,w,F,se,Je){return b.modifiers!==w||b.isTypeOnly!==F||b.name!==se||b.moduleReference!==Je?r(Kd(w,F,se,Je),b):b}function Og(b,w,F,se){const Je=H(269);return Je.modifiers=ko(b),Je.importClause=w,Je.moduleSpecifier=F,Je.assertClause=se,Je.transformFlags|=hr(Je.importClause)|hr(Je.moduleSpecifier),Je.transformFlags&=-67108865,Je.jsDoc=void 0,Je}function Fh(b,w,F,se,Je){return b.modifiers!==w||b.importClause!==F||b.moduleSpecifier!==se||b.assertClause!==Je?r(Og(w,F,se,Je),b):b}function Zm(b,w,F){const se=te(270);return se.isTypeOnly=b,se.name=w,se.namedBindings=F,se.transformFlags|=hr(se.name)|hr(se.namedBindings),b&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function _l(b,w,F,se){return b.isTypeOnly!==w||b.name!==F||b.namedBindings!==se?r(Zm(w,F,se),b):b}function Lb(b,w){const F=H(296);return F.elements=V(b),F.multiLine=w,F.transformFlags|=4,F}function _S(b,w,F){return b.elements!==w||b.multiLine!==F?r(Lb(w,F),b):b}function Ib(b,w){const F=H(297);return F.name=b,F.value=w,F.transformFlags|=4,F}function pS(b,w,F){return b.name!==w||b.value!==F?r(Ib(w,F),b):b}function r_(b,w){const F=H(298);return F.assertClause=b,F.multiLine=w,F}function k2(b,w,F){return b.assertClause!==w||b.multiLine!==F?r(r_(w,F),b):b}function w2(b){const w=te(271);return w.name=b,w.transformFlags|=hr(w.name),w.transformFlags&=-67108865,w}function l0(b,w){return b.name!==w?r(w2(w),b):b}function mS(b){const w=te(277);return w.name=b,w.transformFlags|=hr(w.name)|4,w.transformFlags&=-67108865,w}function hS(b,w){return b.name!==w?r(mS(w),b):b}function D2(b){const w=H(272);return w.elements=V(b),w.transformFlags|=Oo(w.elements),w.transformFlags&=-67108865,w}function kb(b,w){return b.elements!==w?r(D2(w),b):b}function gS(b,w,F){const se=te(273);return se.isTypeOnly=b,se.propertyName=w,se.name=F,se.transformFlags|=hr(se.propertyName)|hr(se.name),se.transformFlags&=-67108865,se}function Of(b,w,F,se){return b.isTypeOnly!==w||b.propertyName!==F||b.name!==se?r(gS(w,F,se),b):b}function Pg(b,w,F){const se=te(274);return se.modifiers=ko(b),se.isExportEquals=w,se.expression=w?i().parenthesizeRightSideOfBinary(63,void 0,F):i().parenthesizeExpressionOfExportDefault(F),se.transformFlags|=Oo(se.modifiers)|hr(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function Dp(b,w,F){return b.modifiers!==w||b.expression!==F?r(Pg(w,b.isExportEquals,F),b):b}function ap(b,w,F,se,Je){const Xt=te(275);return Xt.modifiers=ko(b),Xt.isTypeOnly=w,Xt.exportClause=F,Xt.moduleSpecifier=se,Xt.assertClause=Je,Xt.transformFlags|=Oo(Xt.modifiers)|hr(Xt.exportClause)|hr(Xt.moduleSpecifier),Xt.transformFlags&=-67108865,Xt.jsDoc=void 0,Xt}function R2(b,w,F,se,Je,Xt){return b.modifiers!==w||b.isTypeOnly!==F||b.exportClause!==se||b.moduleSpecifier!==Je||b.assertClause!==Xt?wb(ap(w,F,se,Je,Xt),b):b}function wb(b,w){return b!==w&&b.modifiers===w.modifiers&&(b.modifiers=w.modifiers),r(b,w)}function cm(b){const w=H(276);return w.elements=V(b),w.transformFlags|=Oo(w.elements),w.transformFlags&=-67108865,w}function yS(b,w){return b.elements!==w?r(cm(w),b):b}function md(b,w,F){const se=H(278);return se.isTypeOnly=b,se.propertyName=El(w),se.name=El(F),se.transformFlags|=hr(se.propertyName)|hr(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function Mg(b,w,F,se){return b.isTypeOnly!==w||b.propertyName!==F||b.name!==se?r(md(w,F,se),b):b}function um(){const b=te(279);return b.jsDoc=void 0,b}function dm(b){const w=H(280);return w.expression=b,w.transformFlags|=hr(w.expression),w.transformFlags&=-67108865,w}function Fg(b,w){return b.expression!==w?r(dm(w),b):b}function cE(b){return H(b)}function vS(b,w,F=!1){const se=By(b,F?w&&i().parenthesizeNonArrayTypeOfPostfixType(w):w);return se.postfix=F,se}function By(b,w){const F=H(b);return F.type=w,F}function uE(b,w,F){return w.type!==F?r(vS(b,F,w.postfix),w):w}function Rs(b,w,F){return w.type!==F?r(By(b,F),w):w}function Gy(b,w){const F=te(320);return F.parameters=ko(b),F.type=w,F.transformFlags=Oo(F.parameters)|(F.type?1:0),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F.typeArguments=void 0,F}function N2(b,w,F){return b.parameters!==w||b.type!==F?r(Gy(w,F),b):b}function Db(b,w=!1){const F=te(325);return F.jsDocPropertyTags=ko(b),F.isArrayType=w,F}function Rb(b,w,F){return b.jsDocPropertyTags!==w||b.isArrayType!==F?r(Db(w,F),b):b}function O2(b){const w=H(312);return w.type=b,w}function TL(b,w){return b.type!==w?r(O2(w),b):b}function P2(b,w,F){const se=te(326);return se.typeParameters=ko(b),se.parameters=V(w),se.type=F,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function pr(b,w,F,se){return b.typeParameters!==w||b.parameters!==F||b.type!==se?r(P2(w,F,se),b):b}function Rl(b){const w=L7(b.kind);return b.tagName.escapedText===sl(w)?b.tagName:ve(w)}function da(b,w,F){const se=H(b);return se.tagName=w,se.comment=F,se}function Pf(b,w,F){const se=te(b);return se.tagName=w,se.comment=F,se}function c0(b,w,F,se){const Je=da(348,b??ve("template"),se);return Je.constraint=w,Je.typeParameters=V(F),Je}function eh(b,w=Rl(b),F,se,Je){return b.tagName!==w||b.constraint!==F||b.typeParameters!==se||b.comment!==Je?r(c0(w,F,se,Je),b):b}function ir(b,w,F,se){const Je=Pf(349,b??ve("typedef"),se);return Je.typeExpression=w,Je.fullName=F,Je.name=CK(F),Je.locals=void 0,Je.nextContainer=void 0,Je}function M2(b,w=Rl(b),F,se,Je){return b.tagName!==w||b.typeExpression!==F||b.fullName!==se||b.comment!==Je?r(ir(w,F,se,Je),b):b}function Uy(b,w,F,se,Je,Xt){const Gr=Pf(344,b??ve("param"),Xt);return Gr.typeExpression=se,Gr.name=w,Gr.isNameFirst=!!Je,Gr.isBracketed=F,Gr}function Ic(b,w=Rl(b),F,se,Je,Xt,Gr){return b.tagName!==w||b.name!==F||b.isBracketed!==se||b.typeExpression!==Je||b.isNameFirst!==Xt||b.comment!==Gr?r(Uy(w,F,se,Je,Xt,Gr),b):b}function C_(b,w,F,se,Je,Xt){const Gr=Pf(351,b??ve("prop"),Xt);return Gr.typeExpression=se,Gr.name=w,Gr.isNameFirst=!!Je,Gr.isBracketed=F,Gr}function Rp(b,w=Rl(b),F,se,Je,Xt,Gr){return b.tagName!==w||b.name!==F||b.isBracketed!==se||b.typeExpression!==Je||b.isNameFirst!==Xt||b.comment!==Gr?r(C_(w,F,se,Je,Xt,Gr),b):b}function Vy(b,w,F,se){const Je=Pf(341,b??ve("callback"),se);return Je.typeExpression=w,Je.fullName=F,Je.name=CK(F),Je.locals=void 0,Je.nextContainer=void 0,Je}function dE(b,w=Rl(b),F,se,Je){return b.tagName!==w||b.typeExpression!==F||b.fullName!==se||b.comment!==Je?r(Vy(w,F,se,Je),b):b}function op(b,w,F){const se=da(342,b??ve("overload"),F);return se.typeExpression=w,se}function jy(b,w=Rl(b),F,se){return b.tagName!==w||b.typeExpression!==F||b.comment!==se?r(op(w,F,se),b):b}function Yl(b,w,F){const se=da(331,b??ve("augments"),F);return se.class=w,se}function nc(b,w=Rl(b),F,se){return b.tagName!==w||b.class!==F||b.comment!==se?r(Yl(w,F,se),b):b}function Bg(b,w,F){const se=da(332,b??ve("implements"),F);return se.class=w,se}function uu(b,w,F){const se=da(350,b??ve("see"),F);return se.name=w,se}function L_(b,w,F,se){return b.tagName!==w||b.name!==F||b.comment!==se?r(uu(w,F,se),b):b}function th(b){const w=H(313);return w.name=b,w}function Rd(b,w){return b.name!==w?r(th(w),b):b}function fE(b,w){const F=H(314);return F.left=b,F.right=w,F.transformFlags|=hr(F.left)|hr(F.right),F}function Nb(b,w,F){return b.left!==w||b.right!==F?r(fE(w,F),b):b}function Ob(b,w){const F=H(327);return F.name=b,F.text=w,F}function Np(b,w,F){return b.name!==w?r(Ob(w,F),b):b}function Bh(b,w){const F=H(328);return F.name=b,F.text=w,F}function _E(b,w,F){return b.name!==w?r(Bh(w,F),b):b}function Hy(b,w){const F=H(329);return F.name=b,F.text=w,F}function Nl(b,w,F){return b.name!==w?r(Hy(w,F),b):b}function Gg(b,w=Rl(b),F,se){return b.tagName!==w||b.class!==F||b.comment!==se?r(Bg(w,F,se),b):b}function Gh(b,w,F){return da(b,w??ve(L7(b)),F)}function u0(b,w,F=Rl(w),se){return w.tagName!==F||w.comment!==se?r(Gh(b,F,se),w):w}function d0(b,w,F,se){const Je=da(b,w??ve(L7(b)),se);return Je.typeExpression=F,Je}function du(b,w,F=Rl(w),se,Je){return w.tagName!==F||w.typeExpression!==se||w.comment!==Je?r(d0(b,F,se,Je),w):w}function Uh(b,w){return da(330,b,w)}function bc(b,w,F){return b.tagName!==w||b.comment!==F?r(Uh(w,F),b):b}function pE(b,w,F){const se=Pf(343,b??ve(L7(343)),F);return se.typeExpression=w,se.locals=void 0,se.nextContainer=void 0,se}function Vh(b,w=Rl(b),F,se){return b.tagName!==w||b.typeExpression!==F||b.comment!==se?r(pE(w,F,se),b):b}function Pb(b){const w=H(324);return w.text=b,w}function hd(b,w){return b.text!==w?r(Pb(w),b):b}function nh(b,w){const F=H(323);return F.comment=b,F.tags=ko(w),F}function Mb(b,w,F){return b.comment!==w||b.tags!==F?r(nh(w,F),b):b}function f0(b,w,F){const se=H(281);return se.openingElement=b,se.children=V(w),se.closingElement=F,se.transformFlags|=hr(se.openingElement)|Oo(se.children)|hr(se.closingElement)|2,se}function mE(b,w,F,se){return b.openingElement!==w||b.children!==F||b.closingElement!==se?r(f0(w,F,se),b):b}function Wy(b,w,F){const se=H(282);return se.tagName=b,se.typeArguments=ko(w),se.attributes=F,se.transformFlags|=hr(se.tagName)|Oo(se.typeArguments)|hr(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function bS(b,w,F,se){return b.tagName!==w||b.typeArguments!==F||b.attributes!==se?r(Wy(w,F,se),b):b}function _0(b,w,F){const se=H(283);return se.tagName=b,se.typeArguments=ko(w),se.attributes=F,se.transformFlags|=hr(se.tagName)|Oo(se.typeArguments)|hr(se.attributes)|2,w&&(se.transformFlags|=1),se}function Ug(b,w,F,se){return b.tagName!==w||b.typeArguments!==F||b.attributes!==se?r(_0(w,F,se),b):b}function Mf(b){const w=H(284);return w.tagName=b,w.transformFlags|=hr(w.tagName)|2,w}function hE(b,w){return b.tagName!==w?r(Mf(w),b):b}function mf(b,w,F){const se=H(285);return se.openingFragment=b,se.children=V(w),se.closingFragment=F,se.transformFlags|=hr(se.openingFragment)|Oo(se.children)|hr(se.closingFragment)|2,se}function jh(b,w,F,se){return b.openingFragment!==w||b.children!==F||b.closingFragment!==se?r(mf(w,F,se),b):b}function p0(b,w){const F=H(11);return F.text=b,F.containsOnlyTriviaWhiteSpaces=!!w,F.transformFlags|=2,F}function F2(b,w,F){return b.text!==w||b.containsOnlyTriviaWhiteSpaces!==F?r(p0(w,F),b):b}function as(){const b=H(286);return b.transformFlags|=2,b}function Ir(){const b=H(287);return b.transformFlags|=2,b}function Xd(b,w){const F=te(288);return F.name=b,F.initializer=w,F.transformFlags|=hr(F.name)|hr(F.initializer)|2,F}function gd(b,w,F){return b.name!==w||b.initializer!==F?r(Xd(w,F),b):b}function ES(b){const w=te(289);return w.properties=V(b),w.transformFlags|=Oo(w.properties)|2,w}function gE(b,w){return b.properties!==w?r(ES(w),b):b}function zy(b){const w=H(290);return w.expression=b,w.transformFlags|=hr(w.expression)|2,w}function B2(b,w){return b.expression!==w?r(zy(w),b):b}function qy(b,w){const F=H(291);return F.dotDotDotToken=b,F.expression=w,F.transformFlags|=hr(F.dotDotDotToken)|hr(F.expression)|2,F}function fm(b,w){return b.expression!==w?r(qy(b.dotDotDotToken,w),b):b}function Op(b,w){const F=H(292);return F.expression=i().parenthesizeExpressionForDisallowedComma(b),F.statements=V(w),F.transformFlags|=hr(F.expression)|Oo(F.statements),F.jsDoc=void 0,F}function Vg(b,w,F){return b.expression!==w||b.statements!==F?r(Op(w,F),b):b}function m0(b){const w=H(293);return w.statements=V(b),w.transformFlags=Oo(w.statements),w}function Hh(b,w){return b.statements!==w?r(m0(w),b):b}function _m(b,w){const F=H(294);switch(F.token=b,F.types=V(w),F.transformFlags|=Oo(F.types),b){case 94:F.transformFlags|=1024;break;case 117:F.transformFlags|=1;break;default:return D.assertNever(b)}return F}function TS(b,w){return b.types!==w?r(_m(b.token,w),b):b}function $l(b,w){const F=H(295);return F.variableDeclaration=yD(b),F.block=w,F.transformFlags|=hr(F.variableDeclaration)|hr(F.block)|(b?0:64),F.locals=void 0,F.nextContainer=void 0,F}function hf(b,w,F){return b.variableDeclaration!==w||b.block!==F?r($l(w,F),b):b}function rh(b,w){const F=te(299);return F.name=El(b),F.initializer=i().parenthesizeExpressionForDisallowedComma(w),F.transformFlags|=Ey(F.name)|hr(F.initializer),F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function Nd(b,w,F){return b.name!==w||b.initializer!==F?yE(rh(w,F),b):b}function yE(b,w){return b!==w&&(b.modifiers=w.modifiers,b.questionToken=w.questionToken,b.exclamationToken=w.exclamationToken),r(b,w)}function Jy(b,w){const F=te(300);return F.name=El(b),F.objectAssignmentInitializer=w&&i().parenthesizeExpressionForDisallowedComma(w),F.transformFlags|=Gk(F.name)|hr(F.objectAssignmentInitializer)|1024,F.equalsToken=void 0,F.modifiers=void 0,F.questionToken=void 0,F.exclamationToken=void 0,F.jsDoc=void 0,F}function jg(b,w,F){return b.name!==w||b.objectAssignmentInitializer!==F?G2(Jy(w,F),b):b}function G2(b,w){return b!==w&&(b.modifiers=w.modifiers,b.questionToken=w.questionToken,b.exclamationToken=w.exclamationToken,b.equalsToken=w.equalsToken),r(b,w)}function Ff(b){const w=te(301);return w.expression=i().parenthesizeExpressionForDisallowedComma(b),w.transformFlags|=hr(w.expression)|128|65536,w.jsDoc=void 0,w}function Ns(b,w){return b.expression!==w?r(Ff(w),b):b}function vE(b,w){const F=te(302);return F.name=El(b),F.initializer=w&&i().parenthesizeExpressionForDisallowedComma(w),F.transformFlags|=hr(F.name)|hr(F.initializer)|1,F.jsDoc=void 0,F}function bE(b,w,F){return b.name!==w||b.initializer!==F?r(vE(w,F),b):b}function Hg(b,w,F){const se=t.createBaseSourceFileNode(308);return se.statements=V(b),se.endOfFileToken=w,se.flags|=F,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=Oo(se.statements)|hr(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.resolvedModules=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function h0(b){const w=Object.create(b.redirectTarget);return Object.defineProperties(w,{id:{get(){return this.redirectInfo.redirectTarget.id},set(F){this.redirectInfo.redirectTarget.id=F}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(F){this.redirectInfo.redirectTarget.symbol=F}}}),w.redirectInfo=b,w}function SS(b){const w=h0(b.redirectInfo);return w.flags|=b.flags&-9,w.fileName=b.fileName,w.path=b.path,w.resolvedPath=b.resolvedPath,w.originalFileName=b.originalFileName,w.packageJsonLocations=b.packageJsonLocations,w.packageJsonScope=b.packageJsonScope,w.emitNode=void 0,w}function EE(b){const w=t.createBaseSourceFileNode(308);w.flags|=b.flags&-9;for(const F in b)if(!(Ps(w,F)||!Ps(b,F))){if(F==="emitNode"){w.emitNode=void 0;continue}w[F]=b[F]}return w}function TE(b){const w=b.redirectInfo?SS(b):EE(b);return Wr(w,b),w}function SE(b,w,F,se,Je,Xt,Gr){const ea=TE(b);return ea.statements=V(w),ea.isDeclarationFile=F,ea.referencedFiles=se,ea.typeReferenceDirectives=Je,ea.hasNoDefaultLib=Xt,ea.libReferenceDirectives=Gr,ea.transformFlags=Oo(ea.statements)|hr(ea.endOfFileToken),ea}function xE(b,w,F=b.isDeclarationFile,se=b.referencedFiles,Je=b.typeReferenceDirectives,Xt=b.hasNoDefaultLib,Gr=b.libReferenceDirectives){return b.statements!==w||b.isDeclarationFile!==F||b.referencedFiles!==se||b.typeReferenceDirectives!==Je||b.hasNoDefaultLib!==Xt||b.libReferenceDirectives!==Gr?r(SE(b,w,F,se,Je,Xt,Gr),b):b}function AE(b,w=rt){const F=H(309);return F.prepends=w,F.sourceFiles=b,F.syntheticFileReferences=void 0,F.syntheticTypeReferences=void 0,F.syntheticLibReferences=void 0,F.hasNoDefaultLib=void 0,F}function Ky(b,w,F=rt){return b.sourceFiles!==w||b.prepends!==F?r(AE(w,F),b):b}function Yd(b,w,F){const se=H(310);return se.prologues=b,se.syntheticReferences=w,se.texts=F,se.fileName="",se.text="",se.referencedFiles=rt,se.libReferenceDirectives=rt,se.getLineAndCharacterOfPosition=Je=>ol(se,Je),se}function Wh(b,w){const F=H(b);return F.data=w,F}function SL(b){return Wh(303,b)}function Wg(b,w){const F=Wh(304,b);return F.texts=w,F}function U2(b,w){return Wh(w?306:305,b)}function V2(b){const w=H(307);return w.data=b.data,w.section=b,w}function S(){const b=H(311);return b.javascriptText="",b.declarationText="",b}function le(b,w=!1,F){const se=H(234);return se.type=b,se.isSpread=w,se.tupleNameSource=F,se}function ke(b){const w=H(354);return w._children=b,w}function on(b){const w=H(355);return w.original=b,ht(w,b),w}function Cr(b,w){const F=H(356);return F.expression=b,F.original=w,F.transformFlags|=hr(F.expression)|1,ht(F,w),F}function Si(b,w){return b.expression!==w?r(Cr(w,b.original),b):b}function li(b){if(Zs(b)&&!BI(b)&&!b.original&&!b.emitNode&&!b.id){if(Yk(b))return b.elements;if(br(b)&&kpe(b.operatorToken))return[b.left,b.right]}return b}function Vi(b){const w=H(357);return w.elements=V(QE(b,li)),w.transformFlags|=Oo(w.elements),w}function fo(b,w){return b.elements!==w?r(Vi(w),b):b}function nu(b){const w=H(359);return w.emitNode={},w.original=b,w}function $d(b){const w=H(358);return w.emitNode={},w.original=b,w}function gf(b,w){const F=H(360);return F.expression=b,F.thisArg=w,F.transformFlags|=hr(F.expression)|hr(F.thisArg),F}function Xy(b,w,F){return b.expression!==w||b.thisArg!==F?r(gf(w,F),b):b}function Qd(b){const w=ce(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),UO(w,{...b.emitNode.autoGenerate}),w}function g0(b){const w=ce(b.escapedText);w.flags|=b.flags&-9,w.jsDoc=b.jsDoc,w.flowNode=b.flowNode,w.symbol=b.symbol,w.transformFlags=b.transformFlags,Wr(w,b);const F=IT(b);return F&&Sy(w,F),w}function y0(b){const w=Ge(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),UO(w,{...b.emitNode.autoGenerate}),w}function Yy(b){const w=Ge(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),w}function I_(b){if(b===void 0)return b;if(qi(b))return TE(b);if(xl(b))return Qd(b);if(He(b))return g0(b);if(lx(b))return y0(b);if(Ni(b))return Yy(b);const w=cN(b.kind)?t.createBaseNode(b.kind):t.createBaseTokenNode(b.kind);w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b);for(const F in b)Ps(w,F)||!Ps(b,F)||(w[F]=b[F]);return w}function CE(b,w,F){return Nn(ja(void 0,void 0,void 0,void 0,w?[w]:[],void 0,Ig(b,!0)),void 0,F?[F]:[])}function Bf(b,w,F){return Nn(Ts(void 0,void 0,w?[w]:[],void 0,void 0,Ig(b,!0)),void 0,F?[F]:[])}function ih(){return Au(Y("0"))}function $y(b){return Pg(void 0,!1,b)}function i_(b){return ap(void 0,!1,cm([md(!1,void 0,b)]))}function LE(b,w){return w==="undefined"?G.createStrictEquality(b,ih()):G.createStrictEquality(tc(b),re(w))}function v0(b,w,F){return aT(b)?Lo(Es(b,void 0,w),void 0,void 0,F):Nn(dc(b,w),void 0,F)}function fc(b,w,F){return v0(b,"bind",[w,...F])}function kP(b,w,F){return v0(b,"call",[w,...F])}function Ss(b,w,F){return v0(b,"apply",[w,F])}function ns(b,w,F){return v0(ve(b),w,F)}function j2(b,w){return v0(b,"slice",w===void 0?[]:[E0(w)])}function H2(b,w){return v0(b,"concat",w)}function z(b,w,F){return ns("Object","defineProperty",[b,E0(w),F])}function Ee(b,w){return ns("Object","getOwnPropertyDescriptor",[b,E0(w)])}function $e(b,w,F){return ns("Reflect","get",F?[b,w,F]:[b,w])}function Tt(b,w,F,se){return ns("Reflect","set",se?[b,w,F,se]:[b,w,F])}function Gt(b,w,F){return F?(b.push(rh(w,F)),!0):!1}function Cn(b,w){const F=[];Gt(F,"enumerable",E0(b.enumerable)),Gt(F,"configurable",E0(b.configurable));let se=Gt(F,"writable",E0(b.writable));se=Gt(F,"value",b.value)||se;let Je=Gt(F,"get",b.get);return Je=Gt(F,"set",b.set)||Je,D.assert(!(se&&Je),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),jo(F,!w)}function Br(b,w){switch(b.kind){case 214:return Mi(b,w);case 213:return Rr(b,b.type,w);case 231:return Zv(b,w,b.type);case 235:return Lg(b,w,b.type);case 232:return sS(b,w);case 356:return Si(b,w)}}function yi(b){return Ud(b)&&Zs(b)&&Zs(ib(b))&&Zs(jm(b))&&!kt(EC(b))&&!kt(GO(b))}function xi(b,w,F=15){return b&&v5(b,F)&&!yi(b)?Br(b,xi(b.expression,w)):w}function ki(b,w,F){if(!w)return b;const se=uS(w,w.label,M1(w.statement)?ki(b,w.statement):b);return F&&F(w),se}function Fa(b,w){const F=js(b);switch(F.kind){case 79:return w;case 108:case 8:case 9:case 10:return!1;case 206:return F.elements.length!==0;case 207:return F.properties.length>0;default:return!0}}function Is(b,w,F,se=!1){const Je=bu(b,15);let Xt,Gr;return ud(Je)?(Xt=Ct(),Gr=Je):Hk(Je)?(Xt=Ct(),Gr=F!==void 0&&F<2?ht(ve("_super"),Je):Je):vo(Je)&8192?(Xt=ih(),Gr=i().parenthesizeLeftSideOfAccess(Je,!1)):Fr(Je)?Fa(Je.expression,se)?(Xt=Se(w),Gr=dc(ht(G.createAssignment(Xt,Je.expression),Je.expression),Je.name),ht(Gr,Je)):(Xt=Je.expression,Gr=Je):cl(Je)?Fa(Je.expression,se)?(Xt=Se(w),Gr=qd(ht(G.createAssignment(Xt,Je.expression),Je.expression),Je.argumentExpression),ht(Gr,Je)):(Xt=Je.expression,Gr=Je):(Xt=ih(),Gr=i().parenthesizeLeftSideOfAccess(b,!1)),{target:Gr,thisArg:Xt}}function Io(b,w){return dc(ni(jo([ie(void 0,"value",[Ii(void 0,void 0,b,void 0,void 0,void 0)],Ig([n0(w)]))])),"value")}function rs(b){return b.length>10?Vi(b):Nu(b,G.createComma)}function Od(b,w,F,se=0){const Je=ka(b);if(Je&&He(Je)&&!xl(Je)){const Xt=Uo(ht(I_(Je),Je),Je.parent);return se|=vo(Je),F||(se|=96),w||(se|=3072),se&&or(Xt,se),Xt}return je(b)}function Pp(b,w,F){return Od(b,w,F,98304)}function pm(b,w,F){return Od(b,w,F,32768)}function zg(b,w,F){return Od(b,w,F,16384)}function k_(b,w,F){return Od(b,w,F)}function Qy(b,w,F,se){const Je=dc(b,Zs(w)?w:I_(w));ht(Je,w);let Xt=0;return se||(Xt|=96),F||(Xt|=3072),Xt&&or(Je,Xt),Je}function W2(b,w,F,se){return b&&Yr(w,1)?Qy(b,Od(w),F,se):zg(w,F,se)}function IE(b,w,F,se){const Je=b0(b,w,0,F);return AL(b,w,Je,se)}function xL(b){return Vo(b.expression)&&b.expression.text==="use strict"}function sp(){return ju(n0(re("use strict")))}function b0(b,w,F=0,se){D.assert(w.length===0,"Prologue directives should be at the first statement in the target statements array");let Je=!1;const Xt=b.length;for(;F<Xt;){const Gr=b[F];if(yp(Gr))xL(Gr)&&(Je=!0),w.push(Gr);else break;F++}return se&&!Je&&w.push(sp()),F}function AL(b,w,F,se,Je=o1){const Xt=b.length;for(;F!==void 0&&F<Xt;){const Gr=b[F];if(vo(Gr)&2097152&&Je(Gr))Fn(w,se?lt(Gr,se,wa):Gr);else break;F++}return F}function Gf(b){return SK(b)?b:ht(V([sp(),...b]),b)}function z2(b){return D.assert(Yn(b,xde),"Cannot lift nodes to a Block."),Am(b)||Ig(b)}function Zy(b,w,F){let se=F;for(;se<b.length&&w(b[se]);)se++;return se}function mD(b,w){if(!kt(w))return b;const F=Zy(b,yp,0),se=Zy(b,T3,F),Je=Zy(b,S3,se),Xt=Zy(w,yp,0),Gr=Zy(w,T3,Xt),ea=Zy(w,S3,Gr),$a=Zy(w,E3,ea);D.assert($a===w.length,"Expected declarations to be valid standard or custom prologues");const yf=h1(b)?b.slice():b;if($a>ea&&yf.splice(Je,0,...w.slice(ea,$a)),ea>Gr&&yf.splice(se,0,...w.slice(Gr,ea)),Gr>Xt&&yf.splice(F,0,...w.slice(Xt,Gr)),Xt>0)if(F===0)yf.splice(0,0,...w.slice(0,Xt));else{const qg=new Map;for(let Jg=0;Jg<F;Jg++){const Kg=b[Jg];qg.set(Kg.expression.text,!0)}for(let Jg=Xt-1;Jg>=0;Jg--){const Kg=w[Jg];qg.has(Kg.expression.text)||yf.unshift(Kg)}}return h1(b)?ht(V(yf,b.hasTrailingComma),b):b}function hD(b,w){var F;let se;return typeof w=="number"?se=sn(w):se=w,Bl(b)?_r(b,se,b.name,b.constraint,b.default):Ba(b)?$i(b,se,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):zk(b)?$n(b,se,b.typeParameters,b.parameters,b.type):If(b)?vn(b,se,b.name,b.questionToken,b.type):to(b)?rr(b,se,b.name,(F=b.questionToken)!=null?F:b.exclamationToken,b.type,b.initializer):Ch(b)?Pi(b,se,b.name,b.questionToken,b.typeParameters,b.parameters,b.type):ac(b)?Rn(b,se,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):ql(b)?yt(b,se,b.parameters,b.body):q_(b)?pt(b,se,b.name,b.parameters,b.type,b.body):e_(b)?he(b,se,b.name,b.parameters,b.body):Mx(b)?Sn(b,se,b.parameters,b.type):Bs(b)?Ho(b,se,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Js(b)?Xs(b,se,b.typeParameters,b.parameters,b.type,b.equalsGreaterThanToken,b.body):Uu(b)?sc(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):uc(b)?tE(b,se,b.declarationList):yc(b)?s0(b,se,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Nc(b)?ts(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):id(b)?sE(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):nm(b)?Mh(b,se,b.name,b.typeParameters,b.type):ob(b)?ip(b,se,b.name,b.members):Jl(b)?cu(b,se,b.name,b.body):su(b)?lE(b,se,b.isTypeOnly,b.name,b.moduleReference):zc(b)?Fh(b,se,b.importClause,b.moduleSpecifier,b.assertClause):Gl(b)?Dp(b,se,b.expression):eu(b)?R2(b,se,b.isTypeOnly,b.exportClause,b.moduleSpecifier,b.assertClause):D.assertNever(b)}function ko(b){return b?V(b):void 0}function El(b){return typeof b=="string"?ve(b):b}function E0(b){return typeof b=="string"?re(b):typeof b=="number"?Y(b):typeof b=="boolean"?b?jt():tt():b}function ev(b){return b&&i().parenthesizeExpressionForDisallowedComma(b)}function gD(b){return typeof b=="number"?Fe(b):b}function Pd(b){return b&&oK(b)?ht(Wr(nE(),b),b):b}function yD(b){return typeof b=="string"||b&&!Ki(b)?Ke(b,void 0,void 0,void 0):b}}function K4e(e,t){return e!==t&&ht(e,t),e}function X4e(e,t){return e!==t&&(Wr(e,t),ht(e,t)),e}function L7(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return D.fail(`Unsupported kind: ${D.formatSyntaxKind(e)}`)}}function Y4e(e,t){switch(yg||(yg=fy(99,!1,0)),e){case 14:yg.setText("`"+t+"`");break;case 15:yg.setText("`"+t+"${");break;case 16:yg.setText("}"+t+"${");break;case 17:yg.setText("}"+t+"`");break}let r=yg.scan();if(r===19&&(r=yg.reScanTemplateToken(!1)),yg.isUnterminated())return yg.setText(void 0),GJ;let i;switch(r){case 14:case 15:case 16:case 17:i=yg.getTokenValue();break}return i===void 0||yg.scan()!==1?(yg.setText(void 0),GJ):(yg.setText(void 0),i)}function Ey(e){return e&&He(e)?Gk(e):hr(e)}function Gk(e){return hr(e)&-67108865}function $4e(e,t){return t|e.transformFlags&134234112}function hr(e){if(!e)return 0;const t=e.transformFlags&~_pe(e.kind);return gu(e)&&yl(e.name)?$4e(e.name,t):t}function Oo(e){return e?e.transformFlags:0}function fpe(e){let t=0;for(const r of e)t|=hr(r);e.transformFlags=t}function _pe(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 356:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}function NO(e){return e.flags|=8,e}function OJ(e,t,r){let i,o,s,c,f,d,y,h,E,A;Ha(e)?(s="",c=e,f=e.length,d=t,y=r):(D.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",d=t==="js"?e.javascriptMapPath:e.declarationMapPath,h=()=>t==="js"?e.javascriptText:e.declarationText,E=()=>t==="js"?e.javascriptMapText:e.declarationMapText,f=()=>h().length,e.buildInfo&&e.buildInfo.bundle&&(D.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,A=e.oldFileOfCurrentEmit));const L=A?Z4e(D.checkDefined(o)):Q4e(o,i,f);return L.fileName=s,L.sourceMapPath=d,L.oldFileOfCurrentEmit=A,h&&E?(Object.defineProperty(L,"text",{get:h}),Object.defineProperty(L,"sourceMapText",{get:E})):(D.assert(!A),L.text=c??"",L.sourceMapText=y),L}function Q4e(e,t,r){let i,o,s,c,f,d,y,h;for(const A of e?e.sections:rt)switch(A.kind){case"prologue":i=Fn(i,ht(N.createUnparsedPrologue(A.data),A));break;case"emitHelpers":o=Fn(o,qJ().get(A.data));break;case"no-default-lib":h=!0;break;case"reference":s=Fn(s,{pos:-1,end:-1,fileName:A.data});break;case"type":c=Fn(c,{pos:-1,end:-1,fileName:A.data});break;case"type-import":c=Fn(c,{pos:-1,end:-1,fileName:A.data,resolutionMode:99});break;case"type-require":c=Fn(c,{pos:-1,end:-1,fileName:A.data,resolutionMode:1});break;case"lib":f=Fn(f,{pos:-1,end:-1,fileName:A.data});break;case"prepend":let L;for(const I of A.texts)(!t||I.kind!=="internal")&&(L=Fn(L,ht(N.createUnparsedTextLike(I.data,I.kind==="internal"),I)));d=Ti(d,L),y=Fn(y,N.createUnparsedPrepend(A.data,L??rt));break;case"internal":if(t){y||(y=[]);break}case"text":y=Fn(y,ht(N.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:D.assertNever(A)}if(!y){const A=N.createUnparsedTextLike(void 0,!1);Nk(A,0,typeof r=="function"?r():r),y=[A]}const E=Jm.createUnparsedSource(i??rt,void 0,y);return hC(i,E),hC(y,E),hC(d,E),E.hasNoDefaultLib=h,E.helpers=o,E.referencedFiles=s||rt,E.typeReferenceDirectives=c,E.libReferenceDirectives=f||rt,E}function Z4e(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Fn(t,ht(N.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Fn(r,ht(N.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:D.assertNever(o)}const i=N.createUnparsedSource(rt,r,t??rt);return hC(r,i),hC(t,i),i.helpers=Vt(e.sources&&e.sources.helpers,o=>qJ().get(o)),i}function eMe(e,t,r,i,o,s){return Ha(e)?MJ(void 0,e,r,i,void 0,t,o,s):PJ(e,t,r,i,o,s)}function PJ(e,t,r,i,o,s,c,f){const d=Jm.createInputFiles();d.javascriptPath=t,d.javascriptMapPath=r,d.declarationPath=i,d.declarationMapPath=o,d.buildInfoPath=s;const y=new Map,h=I=>{if(I===void 0)return;let O=y.get(I);return O===void 0&&(O=e(I),y.set(I,O!==void 0?O:!1)),O!==!1?O:void 0},E=I=>{const O=h(I);return O!==void 0?O:`/* Input file ${I} was missing */\r `};let A;return Object.defineProperties(d,{javascriptText:{get:()=>E(t)},javascriptMapText:{get:()=>h(r)},declarationText:{get:()=>E(D.checkDefined(i))},declarationMapText:{get:()=>h(o)},buildInfo:{get:()=>{var I,O;if(A===void 0&&s)if(c!=null&&c.getBuildInfo)A=(I=c.getBuildInfo(s,f.configFilePath))!=null?I:!1;else{const k=h(s);A=k!==void 0&&(O=SF(s,k))!=null?O:!1}return A||void 0}}}),d}function MJ(e,t,r,i,o,s,c,f,d,y,h){const E=Jm.createInputFiles();return E.javascriptPath=e,E.javascriptText=t,E.javascriptMapPath=r,E.javascriptMapText=i,E.declarationPath=o,E.declarationText=s,E.declarationMapPath=c,E.declarationMapText=f,E.buildInfoPath=d,E.buildInfo=y,E.oldFileOfCurrentEmit=h,E}function tMe(e,t,r){return new(mpe||(mpe=Hc.getSourceMapSourceConstructor()))(e,t,r)}function Wr(e,t){if(e.original=t,t){const r=t.emitNode;r&&(e.emitNode=nMe(r,e.emitNode))}return e}function nMe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:c,sourceMapRange:f,tokenSourceMapRanges:d,constantValue:y,helpers:h,startsOnNewLine:E,snippetElement:A}=e;if(t||(t={}),o&&(t.leadingComments=Ti(o.slice(),t.leadingComments)),s&&(t.trailingComments=Ti(s.slice(),t.trailingComments)),r&&(t.flags=r),i&&(t.internalFlags=i&-9),c&&(t.commentRange=c),f&&(t.sourceMapRange=f),d&&(t.tokenSourceMapRanges=rMe(d,t.tokenSourceMapRanges)),y!==void 0&&(t.constantValue=y),h)for(const L of h)t.helpers=sy(t.helpers,L);return E!==void 0&&(t.startsOnNewLine=E),A!==void 0&&(t.snippetElement=A),t}function rMe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var OO,FJ,BJ,yg,GJ,Uk,ppe,N,mpe,iMe=C({"src/compiler/factory/nodeFactory.ts"(){Oa(),OO=0,FJ=(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))(FJ||{}),BJ=[],GJ={},Uk=cpe(),ppe={createBaseSourceFileNode:e=>NO(Uk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>NO(Uk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>NO(Uk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>NO(Uk.createBaseTokenNode(e)),createBaseNode:e=>NO(Uk.createBaseNode(e))},N=RO(4,ppe)}});function rd(e){var t;if(e.emitNode)D.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(BI(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const r=(t=Zn(Ea(Zn(e))))!=null?t:D.fail("Could not determine parsed source file.");rd(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function UJ(e){var t,r;const i=(r=(t=Zn(Ea(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function PO(e){const t=rd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function or(e,t){return rd(e).flags=t,e}function tm(e,t){const r=rd(e);return r.flags=r.flags|t,e}function MO(e,t){return rd(e).internalFlags=t,e}function wx(e,t){const r=rd(e);return r.internalFlags=r.internalFlags|t,e}function ib(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function _s(e,t){return rd(e).sourceMapRange=t,e}function aMe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function hpe(e,t,r){var i;const o=rd(e),s=(i=o.tokenSourceMapRanges)!=null?i:o.tokenSourceMapRanges=[];return s[t]=r,e}function FO(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function VJ(e,t){return rd(e).startsOnNewLine=t,e}function jm(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Wc(e,t){return rd(e).commentRange=t,e}function EC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function O1(e,t){return rd(e).leadingComments=t,e}function BO(e,t,r,i){return O1(e,Fn(EC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function GO(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function TC(e,t){return rd(e).trailingComments=t,e}function I7(e,t,r,i){return TC(e,Fn(GO(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function gpe(e,t){O1(e,EC(t)),TC(e,GO(t));const r=rd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function ype(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function vpe(e,t){const r=rd(e);return r.constantValue=t,e}function Dx(e,t){const r=rd(e);return r.helpers=Fn(r.helpers,t),e}function Ty(e,t){if(kt(t)){const r=rd(e);for(const i of t)r.helpers=sy(r.helpers,i)}return e}function oMe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?dM(i,t):!1}function k7(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function bpe(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!kt(o))return;const s=rd(t);let c=0;for(let f=0;f<o.length;f++){const d=o[f];r(d)?(c++,s.helpers=sy(s.helpers,d)):c>0&&(o[f-c]=d)}c>0&&(o.length-=c)}function jJ(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function HJ(e,t){const r=rd(e);return r.snippetElement=t,e}function WJ(e){return rd(e).internalFlags|=4,e}function Epe(e,t){const r=rd(e);return r.typeNode=t,e}function Tpe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Sy(e,t){return rd(e).identifierTypeArguments=t,e}function IT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function UO(e,t){return rd(e).autoGenerate=t,e}function sMe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Spe(e,t){return rd(e).generatedImportReference=t,e}function xpe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var lMe=C({"src/compiler/factory/emitNode.ts"(){Oa()}});function Ape(e){const t=e.factory,r=Ed(()=>MO(t.createTrue(),8)),i=Ed(()=>MO(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:c,createParamHelper:f,createESDecorateHelper:O,createRunInitializersHelper:k,createAssignHelper:G,createAwaitHelper:V,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:te,createAsyncValuesHelper:X,createRestHelper:Y,createAwaiterHelper:P,createExtendsHelper:de,createTemplateObjectHelper:re,createSpreadArrayHelper:ye,createPropKeyHelper:ae,createSetFunctionNameHelper:W,createValuesHelper:ce,createReadHelper:me,createGeneratorHelper:ve,createCreateBindingHelper:Se,createImportStarHelper:ee,createImportStarCallbackHelper:Qe,createImportDefaultHelper:je,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:qe,createClassPrivateFieldSetHelper:Oe,createClassPrivateFieldInHelper:Me};function o(Ye){return or(t.createIdentifier(Ye),8196)}function s(Ye,ze,Fe,st){e.requestEmitHelper(w7);const Ct=[];return Ct.push(t.createArrayLiteralExpression(Ye,!0)),Ct.push(ze),Fe&&(Ct.push(Fe),st&&Ct.push(st)),t.createCallExpression(o("__decorate"),void 0,Ct)}function c(Ye,ze){return e.requestEmitHelper(D7),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Ye),ze])}function f(Ye,ze,Fe){return e.requestEmitHelper(R7),ht(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),Ye]),Fe)}function d(Ye){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Ye.name)])}function y(Ye){const ze=Ye.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Ye.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Ye.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function h(Ye){const ze=Ye.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Ye.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Ye.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(ze,t.createIdentifier("value")))])))}function E(Ye){const ze=Ye.computed?Ye.name:He(Ye.name)?t.createStringLiteralFromNode(Ye.name):Ye.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(ze,101,t.createIdentifier("obj"))))}function A(Ye,ze){const Fe=[];return Fe.push(E(Ye)),ze.get&&Fe.push(y(Ye)),ze.set&&Fe.push(h(Ye)),t.createObjectLiteralExpression(Fe)}function L(Ye){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Ye.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Ye.name.computed?Ye.name.name:t.createStringLiteralFromNode(Ye.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Ye.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Ye.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(Ye.name,Ye.access))])}function I(Ye){return Ye.kind==="class"?d(Ye):L(Ye)}function O(Ye,ze,Fe,st,Ct,Et){return e.requestEmitHelper(N7),t.createCallExpression(o("__esDecorate"),void 0,[Ye??t.createNull(),ze??t.createNull(),Fe,I(st),Ct,Et])}function k(Ye,ze,Fe){return e.requestEmitHelper(O7),t.createCallExpression(o("__runInitializers"),void 0,Fe?[Ye,ze,Fe]:[Ye,ze])}function G(Ye){return es(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Ye):(e.requestEmitHelper(P7),t.createCallExpression(o("__assign"),void 0,Ye))}function V(Ye){return e.requestEmitHelper(Rx),t.createCallExpression(o("__await"),void 0,[Ye])}function H(Ye,ze){return e.requestEmitHelper(Rx),e.requestEmitHelper(M7),(Ye.emitNode||(Ye.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Ye])}function te(Ye){return e.requestEmitHelper(Rx),e.requestEmitHelper(F7),t.createCallExpression(o("__asyncDelegator"),void 0,[Ye])}function X(Ye){return e.requestEmitHelper(B7),t.createCallExpression(o("__asyncValues"),void 0,[Ye])}function Y(Ye,ze,Fe,st){e.requestEmitHelper(G7);const Ct=[];let Et=0;for(let jt=0;jt<ze.length-1;jt++){const tt=AK(ze[jt]);if(tt)if(As(tt)){D.assertIsDefined(Fe,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const at=Fe[Et];Et++,Ct.push(t.createConditionalExpression(t.createTypeCheck(at,"symbol"),void 0,at,void 0,t.createAdd(at,t.createStringLiteral(""))))}else Ct.push(t.createStringLiteralFromNode(tt))}return t.createCallExpression(o("__rest"),void 0,[Ye,ht(t.createArrayLiteralExpression(Ct),st)])}function P(Ye,ze,Fe,st){e.requestEmitHelper(U7);const Ct=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,st);return(Ct.emitNode||(Ct.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[Ye?t.createThis():t.createVoidZero(),ze?t.createIdentifier("arguments"):t.createVoidZero(),Fe?r8(t,Fe):t.createVoidZero(),Ct])}function de(Ye){return e.requestEmitHelper(V7),t.createCallExpression(o("__extends"),void 0,[Ye,t.createUniqueName("_super",48)])}function re(Ye,ze){return e.requestEmitHelper(j7),t.createCallExpression(o("__makeTemplateObject"),void 0,[Ye,ze])}function ye(Ye,ze,Fe){return e.requestEmitHelper(W7),t.createCallExpression(o("__spreadArray"),void 0,[Ye,ze,Fe?r():i()])}function ae(Ye){return e.requestEmitHelper(z7),t.createCallExpression(o("__propKey"),void 0,[Ye])}function W(Ye,ze,Fe){return e.requestEmitHelper(q7),e.factory.createCallExpression(o("__setFunctionName"),void 0,Fe?[Ye,ze,e.factory.createStringLiteral(Fe)]:[Ye,ze])}function ce(Ye){return e.requestEmitHelper(J7),t.createCallExpression(o("__values"),void 0,[Ye])}function me(Ye,ze){return e.requestEmitHelper(H7),t.createCallExpression(o("__read"),void 0,ze!==void 0?[Ye,t.createNumericLiteral(ze+"")]:[Ye])}function ve(Ye){return e.requestEmitHelper(K7),t.createCallExpression(o("__generator"),void 0,[t.createThis(),Ye])}function Se(Ye,ze,Fe){return e.requestEmitHelper(SC),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),Ye,ze,...Fe?[Fe]:[]])}function ee(Ye){return e.requestEmitHelper(VO),t.createCallExpression(o("__importStar"),void 0,[Ye])}function Qe(){return e.requestEmitHelper(VO),o("__importStar")}function je(Ye){return e.requestEmitHelper(Y7),t.createCallExpression(o("__importDefault"),void 0,[Ye])}function Ge(Ye,ze=t.createIdentifier("exports")){return e.requestEmitHelper($7),e.requestEmitHelper(SC),t.createCallExpression(o("__exportStar"),void 0,[Ye,ze])}function qe(Ye,ze,Fe,st){e.requestEmitHelper(Q7);let Ct;return st?Ct=[Ye,ze,t.createStringLiteral(Fe),st]:Ct=[Ye,ze,t.createStringLiteral(Fe)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,Ct)}function Oe(Ye,ze,Fe,st,Ct){e.requestEmitHelper(Z7);let Et;return Ct?Et=[Ye,ze,Fe,t.createStringLiteral(st),Ct]:Et=[Ye,ze,Fe,t.createStringLiteral(st)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,Et)}function Me(Ye,ze){return e.requestEmitHelper(e5),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[Ye,ze])}}function Cpe(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:Ws(e.priority,t.priority)}function zJ(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function qJ(){return Lpe||(Lpe=i1([w7,D7,R7,N7,O7,P7,Rx,M7,F7,B7,G7,U7,V7,j7,W7,J7,H7,z7,q7,K7,VO,Y7,$7,Q7,Z7,e5,SC,X7],e=>e.name))}function Vk(e,t){return no(e)&&He(e.expression)&&(vo(e.expression)&8192)!==0&&e.expression.escapedText===t}var JJ,w7,D7,R7,N7,O7,P7,Rx,M7,F7,B7,G7,U7,V7,j7,H7,W7,z7,q7,J7,K7,SC,X7,VO,Y7,$7,Q7,Z7,e5,Lpe,jO,HO,cMe=C({"src/compiler/factory/emitHelpers.ts"(){Oa(),JJ=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(JJ||{}),w7={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; };`},D7={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); };`},R7={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); } };`},N7={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); var _, done = false; for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; for (var p in contextIn.access) context.access[p] = contextIn.access[p]; context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); if (_ = accept(result.get)) descriptor.get = _; if (_ = accept(result.set)) descriptor.set = _; if (_ = accept(result.init)) initializers.push(_); } else if (_ = accept(result)) { if (kind === "field") initializers.push(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},O7={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; };`},P7={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); };`},Rx={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); }`},M7={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Rx],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } };`},F7={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Rx],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; } };`},B7={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); } };`},G7={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; };`},U7={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()); }); };`},V7={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 __()); }; })();`},j7={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; };`},H7={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; };`},W7={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)); };`},z7={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},q7={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 }); };`},J7={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."); };`},K7={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } };`},SC={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]; }));`},X7={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; });`},VO={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[SC,X7],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; };`},Y7={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},$7={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[SC],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); };`},Q7={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); };`},Z7={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; };`},e5={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); return typeof state === "function" ? receiver === state : state.has(receiver); };`},jO={name:"typescript:async-super",scoped:!0,text:zJ` const ${"_superIndex"} = name => super[name];`},HO={name:"typescript:advanced-async-super",scoped:!0,text:zJ` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); })(name => super[name], (name, value) => super[name] = value);`}}});function b_(e){return e.kind===8}function t5(e){return e.kind===9}function Vo(e){return e.kind===10}function Nx(e){return e.kind===11}function KJ(e){return e.kind===13}function Ox(e){return e.kind===14}function xC(e){return e.kind===15}function Ipe(e){return e.kind===16}function XJ(e){return e.kind===17}function n5(e){return e.kind===25}function kpe(e){return e.kind===27}function YJ(e){return e.kind===39}function $J(e){return e.kind===40}function WO(e){return e.kind===41}function zO(e){return e.kind===53}function Bv(e){return e.kind===57}function wpe(e){return e.kind===58}function r5(e){return e.kind===28}function Dpe(e){return e.kind===38}function He(e){return e.kind===79}function Ni(e){return e.kind===80}function i5(e){return e.kind===93}function Rpe(e){return e.kind===88}function jk(e){return e.kind===132}function Npe(e){return e.kind===129}function QJ(e){return e.kind===133}function Ope(e){return e.kind===146}function Px(e){return e.kind===124}function Ppe(e){return e.kind===126}function Mpe(e){return e.kind===161}function Fpe(e){return e.kind===127}function Hk(e){return e.kind===106}function Wk(e){return e.kind===100}function Bpe(e){return e.kind===82}function Cd(e){return e.kind===163}function As(e){return e.kind===164}function Bl(e){return e.kind===165}function Ba(e){return e.kind===166}function Bu(e){return e.kind===167}function If(e){return e.kind===168}function to(e){return e.kind===169}function Ch(e){return e.kind===170}function ac(e){return e.kind===171}function kl(e){return e.kind===172}function ql(e){return e.kind===173}function q_(e){return e.kind===174}function e_(e){return e.kind===175}function AC(e){return e.kind===176}function qO(e){return e.kind===177}function Mx(e){return e.kind===178}function a5(e){return e.kind===179}function J_(e){return e.kind===180}function Lh(e){return e.kind===181}function zk(e){return e.kind===182}function qk(e){return e.kind===183}function cf(e){return e.kind===184}function ZJ(e){return e.kind===185}function CC(e){return e.kind===186}function Jk(e){return e.kind===199}function eK(e){return e.kind===187}function tK(e){return e.kind===188}function Fx(e){return e.kind===189}function JO(e){return e.kind===190}function LC(e){return e.kind===191}function IC(e){return e.kind===192}function Bx(e){return e.kind===193}function o5(e){return e.kind===194}function Gx(e){return e.kind===195}function Ux(e){return e.kind===196}function Kk(e){return e.kind===197}function ab(e){return e.kind===198}function vg(e){return e.kind===202}function Gpe(e){return e.kind===201}function uMe(e){return e.kind===200}function Hm(e){return e.kind===203}function kC(e){return e.kind===204}function ps(e){return e.kind===205}function Gu(e){return e.kind===206}function Ls(e){return e.kind===207}function Fr(e){return e.kind===208}function cl(e){return e.kind===209}function no(e){return e.kind===210}function P1(e){return e.kind===211}function kT(e){return e.kind===212}function Upe(e){return e.kind===213}function Ud(e){return e.kind===214}function Bs(e){return e.kind===215}function Js(e){return e.kind===216}function Vpe(e){return e.kind===217}function wC(e){return e.kind===218}function Vx(e){return e.kind===219}function DC(e){return e.kind===220}function Gv(e){return e.kind===221}function nK(e){return e.kind===222}function br(e){return e.kind===223}function RC(e){return e.kind===224}function s5(e){return e.kind===225}function l5(e){return e.kind===226}function Ih(e){return e.kind===227}function Uu(e){return e.kind===228}function Rc(e){return e.kind===229}function xy(e){return e.kind===230}function KO(e){return e.kind===231}function dMe(e){return e.kind===235}function jx(e){return e.kind===232}function Xk(e){return e.kind===233}function fMe(e){return e.kind===234}function c5(e){return e.kind===356}function Yk(e){return e.kind===357}function $k(e){return e.kind===236}function jpe(e){return e.kind===237}function lo(e){return e.kind===238}function uc(e){return e.kind===240}function rK(e){return e.kind===239}function ou(e){return e.kind===241}function wT(e){return e.kind===242}function _Me(e){return e.kind===243}function pMe(e){return e.kind===244}function DT(e){return e.kind===245}function iK(e){return e.kind===246}function XO(e){return e.kind===247}function mMe(e){return e.kind===248}function hMe(e){return e.kind===249}function Ep(e){return e.kind===250}function Hpe(e){return e.kind===251}function YO(e){return e.kind===252}function M1(e){return e.kind===253}function aK(e){return e.kind===254}function $O(e){return e.kind===255}function gMe(e){return e.kind===256}function Ki(e){return e.kind===257}function Vu(e){return e.kind===258}function yc(e){return e.kind===259}function Nc(e){return e.kind===260}function id(e){return e.kind===261}function nm(e){return e.kind===262}function ob(e){return e.kind===263}function Jl(e){return e.kind===264}function rm(e){return e.kind===265}function QO(e){return e.kind===266}function ZO(e){return e.kind===267}function su(e){return e.kind===268}function zc(e){return e.kind===269}function Wm(e){return e.kind===270}function Wpe(e){return e.kind===298}function u5(e){return e.kind===296}function zpe(e){return e.kind===297}function Uv(e){return e.kind===271}function kh(e){return e.kind===277}function Ay(e){return e.kind===272}function Ld(e){return e.kind===273}function Gl(e){return e.kind===274}function eu(e){return e.kind===275}function K_(e){return e.kind===276}function dd(e){return e.kind===278}function yMe(e){return e.kind===279}function oK(e){return e.kind===355}function Hx(e){return e.kind===360}function vMe(e){return e.kind===358}function bMe(e){return e.kind===359}function zm(e){return e.kind===280}function Cy(e){return e.kind===281}function Wx(e){return e.kind===282}function wh(e){return e.kind===283}function zx(e){return e.kind===284}function qx(e){return e.kind===285}function Jx(e){return e.kind===286}function qpe(e){return e.kind===287}function im(e){return e.kind===288}function F1(e){return e.kind===289}function RT(e){return e.kind===290}function Qk(e){return e.kind===291}function Zk(e){return e.kind===292}function e8(e){return e.kind===293}function Vd(e){return e.kind===294}function NC(e){return e.kind===295}function qc(e){return e.kind===299}function t_(e){return e.kind===300}function Kx(e){return e.kind===301}function B1(e){return e.kind===302}function Jpe(e){return e.kind===304}function qi(e){return e.kind===308}function sK(e){return e.kind===309}function NT(e){return e.kind===310}function OT(e){return e.kind===312}function ew(e){return e.kind===313}function sb(e){return e.kind===314}function Kpe(e){return e.kind===327}function Xpe(e){return e.kind===328}function EMe(e){return e.kind===329}function Ype(e){return e.kind===315}function $pe(e){return e.kind===316}function OC(e){return e.kind===317}function d5(e){return e.kind===318}function lK(e){return e.kind===319}function PC(e){return e.kind===320}function f5(e){return e.kind===321}function TMe(e){return e.kind===322}function qm(e){return e.kind===323}function tw(e){return e.kind===325}function G1(e){return e.kind===326}function MC(e){return e.kind===331}function SMe(e){return e.kind===333}function Qpe(e){return e.kind===335}function cK(e){return e.kind===341}function uK(e){return e.kind===336}function dK(e){return e.kind===337}function fK(e){return e.kind===338}function _K(e){return e.kind===339}function _5(e){return e.kind===340}function nw(e){return e.kind===342}function pK(e){return e.kind===334}function xMe(e){return e.kind===350}function t8(e){return e.kind===343}function am(e){return e.kind===344}function p5(e){return e.kind===345}function Zpe(e){return e.kind===346}function rw(e){return e.kind===347}function Tp(e){return e.kind===348}function mK(e){return e.kind===349}function AMe(e){return e.kind===330}function eme(e){return e.kind===351}function hK(e){return e.kind===332}function m5(e){return e.kind===353}function CMe(e){return e.kind===352}function FC(e){return e.kind===354}var LMe=C({"src/compiler/factory/nodeTests.ts"(){Oa()}});function n8(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function PT(e,t,r,i){if(As(r))return ht(e.createElementAccessExpression(t,r.expression),i);{const o=ht(lg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return tm(o,128),o}}function gK(e,t){const r=Jm.createIdentifier(e||"React");return Uo(r,Ea(t)),r}function yK(e,t,r){if(Cd(t)){const i=yK(e,t.left,r),o=e.createIdentifier(Mr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return gK(Mr(t),r)}function vK(e,t,r,i){return t?yK(e,t,i):e.createPropertyAccessExpression(gK(r,i),"createElement")}function IMe(e,t,r,i){return t?yK(e,t,i):e.createPropertyAccessExpression(gK(r,i),"Fragment")}function tme(e,t,r,i,o,s){const c=[r];if(i&&c.push(i),o&&o.length>0)if(i||c.push(e.createNull()),o.length>1)for(const f of o)ju(f),c.push(f);else c.push(o[0]);return ht(e.createCallExpression(t,void 0,c),s)}function nme(e,t,r,i,o,s,c){const d=[IMe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const y of o)ju(y),d.push(y);else d.push(o[0]);return ht(e.createCallExpression(vK(e,t,i,s),void 0,d),c)}function bK(e,t,r){if(Vu(t)){const i=us(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ht(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=ht(e.createAssignment(t,r),t);return ht(e.createExpressionStatement(i),t)}}function kMe(e,t,r){return lo(t)?e.updateBlock(t,ht(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function r8(e,t){if(Cd(t)){const r=r8(e,t.left),i=Uo(ht(e.cloneNode(t.right),t.right),t.right.parent);return ht(e.createPropertyAccessExpression(r,i),t)}else return Uo(ht(e.cloneNode(t),t),t.parent)}function EK(e,t){return He(t)?e.createStringLiteralFromNode(t):As(t)?Uo(ht(e.cloneNode(t.expression),t.expression),t.expression.parent):Uo(ht(e.cloneNode(t),t),t.parent)}function wMe(e,t,r,i,o){const{firstAccessor:s,getAccessor:c,setAccessor:f}=ST(t,r);if(r===s)return ht(e.createObjectDefinePropertyCall(i,EK(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&ht(Wr(e.createFunctionExpression(iT(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:f&&ht(Wr(e.createFunctionExpression(iT(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f)},!o)),s)}function DMe(e,t,r){return Wr(ht(e.createAssignment(PT(e,r,t.name,t.name),t.initializer),t),t)}function RMe(e,t,r){return Wr(ht(e.createAssignment(PT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function NMe(e,t,r){return Wr(ht(e.createAssignment(PT(e,r,t.name,t.name),Wr(ht(e.createFunctionExpression(iT(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function rme(e,t,r,i){switch(r.name&&Ni(r.name)&&D.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 174:case 175:return wMe(e,t.properties,r,i,!!t.multiLine);case 299:return DMe(e,r,i);case 300:return RMe(e,r,i);case 171:return NMe(e,r,i)}}function h5(e,t,r,i,o){const s=t.operator;D.assert(s===45||s===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);r=e.createAssignment(c,r),ht(r,t.operand);let f=Gv(t)?e.createPrefixUnaryExpression(s,c):e.createPostfixUnaryExpression(c,s);return ht(f,t),o&&(f=e.createAssignment(o,f),ht(f,t)),r=e.createComma(r,f),ht(r,t),nK(t)&&(r=e.createComma(r,c),ht(r,t)),r}function TK(e){return(vo(e)&65536)!==0}function Vv(e){return(vo(e)&32768)!==0}function g5(e){return(vo(e)&16384)!==0}function ime(e){return Vo(e.expression)&&e.expression.text==="use strict"}function SK(e){for(const t of e)if(yp(t)){if(ime(t))return t}else break}function ame(e){const t=Yc(e);return t!==void 0&&yp(t)&&ime(t)}function i8(e){return e.kind===223&&e.operatorToken.kind===27}function iw(e){return i8(e)||Yk(e)}function aw(e){return Ud(e)&&fr(e)&&!!p1(e)}function y5(e){const t=Av(e);return D.assertIsDefined(t),t}function v5(e,t=15){switch(e.kind){case 214:return t&16&&aw(e)?!1:(t&1)!==0;case 213:case 231:case 230:case 235:return(t&2)!==0;case 232:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function bu(e,t=15){for(;v5(e,t);)e=e.expression;return e}function ome(e,t=15){let r=e.parent;for(;v5(r,t);)r=r.parent,D.assert(r);return r}function OMe(e){return bu(e,6)}function ju(e){return VJ(e,!0)}function a8(e){const t=Sl(e,qi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function sme(e){const t=Sl(e,qi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function xK(e,t,r,i,o,s,c){if(i.importHelpers&&fx(r,i)){let f;const d=au(i);if(d>=5&&d<=99||r.impliedNodeFormat===99){const y=k7(r);if(y){const h=[];for(const E of y)if(!E.scoped){const A=E.importName;A&&f_(h,A)}if(kt(h)){h.sort(Ou),f=e.createNamedImports(Vt(h,L=>_3(r,L)?e.createImportSpecifier(!1,void 0,e.createIdentifier(L)):e.createImportSpecifier(!1,e.createIdentifier(L),t.getUnscopedHelperName(L))));const E=Sl(r,qi),A=rd(E);A.externalHelpers=!0}}}else{const y=lme(e,r,i,o,s||c);y&&(f=e.createNamespaceImport(y))}if(f){const y=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,f),e.createStringLiteral(rb),void 0);return wx(y,2),y}}}function lme(e,t,r,i,o){if(r.importHelpers&&fx(t,r)){const s=a8(t);if(s)return s;const c=au(r);let f=(i||W_(r)&&o)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!f){const d=k7(t);if(d){for(const y of d)if(!y.scoped){f=!0;break}}}if(f){const d=Sl(t,qi),y=rd(d);return y.externalHelpersModuleName||(y.externalHelpersModuleName=e.createUniqueName(rb))}}}function BC(e,t,r){const i=ZA(t);if(i&&!hx(t)&&!m3(t)){const o=i.name;return xl(o)?o:e.createIdentifier(v1(r,o)||Mr(o))}if(t.kind===269&&t.importClause||t.kind===275&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function Xx(e,t,r,i,o,s){const c=QA(t);if(c&&Vo(c))return MMe(t,i,e,o,s)||PMe(e,c,r)||e.cloneNode(c)}function PMe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function o8(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&qs(i))return e.createStringLiteral(yq(r,t.fileName))}}function MMe(e,t,r,i,o){return o8(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function s8(e){if(uN(e))return e.initializer;if(qc(e)){const t=e.initializer;return nd(t,!0)?t.right:void 0}if(t_(e))return e.objectAssignmentInitializer;if(nd(e,!0))return e.right;if(Ih(e))return s8(e.expression)}function jv(e){if(uN(e))return e.name;if(hy(e)){switch(e.kind){case 299:return jv(e.initializer);case 300:return e.name;case 301:return jv(e.expression)}return}return nd(e,!0)?jv(e.left):Ih(e)?jv(e.expression):e}function b5(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function AK(e){const t=E5(e);return D.assert(!!t||Kx(e),"Invalid property name for binding element."),t}function E5(e){switch(e.kind){case 205:if(e.propertyName){const r=e.propertyName;return Ni(r)?D.failBadSyntaxKind(r):As(r)&&cme(r.expression)?r.expression:r}break;case 299:if(e.name){const r=e.name;return Ni(r)?D.failBadSyntaxKind(r):As(r)&&cme(r.expression)?r.expression:r}break;case 301:return e.name&&Ni(e.name)?D.failBadSyntaxKind(e.name):e.name}const t=jv(e);if(t&&yl(t))return t}function cme(e){const t=e.kind;return t===10||t===8}function GC(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function CK(e){if(e){let t=e;for(;;){if(He(t)||!t.body)return He(t)?t:t.name;t=t.body}}}function FMe(e){const t=e.kind;return t===173||t===175}function ume(e){const t=e.kind;return t===173||t===174||t===175}function LK(e){const t=e.kind;return t===299||t===300||t===259||t===173||t===178||t===172||t===279||t===240||t===261||t===262||t===263||t===264||t===268||t===269||t===267||t===275||t===274}function dme(e){const t=e.kind;return t===172||t===299||t===300||t===279||t===267}function fme(e){return Bv(e)||zO(e)}function _me(e){return He(e)||o5(e)}function pme(e){return Ope(e)||YJ(e)||$J(e)}function mme(e){return Bv(e)||YJ(e)||$J(e)}function hme(e){return He(e)||Vo(e)}function BMe(e){const t=e.kind;return t===104||t===110||t===95||oT(e)||Gv(e)}function GMe(e){return e===42}function UMe(e){return e===41||e===43||e===44}function VMe(e){return GMe(e)||UMe(e)}function jMe(e){return e===39||e===40}function HMe(e){return jMe(e)||VMe(e)}function WMe(e){return e===47||e===48||e===49}function zMe(e){return WMe(e)||HMe(e)}function qMe(e){return e===29||e===32||e===31||e===33||e===102||e===101}function JMe(e){return qMe(e)||zMe(e)}function KMe(e){return e===34||e===36||e===35||e===37}function XMe(e){return KMe(e)||JMe(e)}function YMe(e){return e===50||e===51||e===52}function $Me(e){return YMe(e)||XMe(e)}function QMe(e){return e===55||e===56}function ZMe(e){return QMe(e)||$Me(e)}function e3e(e){return e===60||ZMe(e)||vy(e)}function t3e(e){return e3e(e)||e===27}function gme(e){return t3e(e.kind)}function T5(e,t,r,i,o,s){const c=new Sme(e,t,r,i,o,s);return f;function f(d,y){const h={value:void 0},E=[A5.enter],A=[d],L=[void 0];let I=0;for(;E[I]!==A5.done;)I=E[I](c,I,E,A,L,h,y);return D.assertEqual(I,0),h.value}}function yme(e){return e===93||e===88}function IK(e){const t=e.kind;return yme(t)}function n3e(e){const t=e.kind;return my(t)&&!yme(t)}function vme(e,t){if(t!==void 0)return t.length===0?t:ht(e.createNodeArray([],t.hasTrailingComma),t)}function S5(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const c=(t=o.emitNode)==null?void 0:t.autoGenerate;if(lg(o)&&(c===void 0||c.flags&4&&c.id!==i))break;s=o.original}return o}return e}function UC(e,t){return typeof e=="object"?MT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function r3e(e,t){return typeof e=="string"?e:i3e(e,D.checkDefined(t))}function i3e(e,t){return lx(e)?t(e).slice(1):xl(e)?t(e):Ni(e)?e.escapedText.slice(1):Mr(e)}function MT(e,t,r,i,o){return t=UC(t,o),i=UC(i,o),r=r3e(r,o),`${e?"#":""}${t}${r}${i}`}function kK(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function bme(e,t,r,i){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Eme(e,t,r,i){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function x5(e){let t=e.expression;for(;;){if(t=bu(t),Yk(t)){t=zo(t.elements);continue}if(i8(t)){t=t.right;continue}if(nd(t,!0)&&xl(t.left))return t;break}}function a3e(e){return Ud(e)&&Zs(e)&&!e.emitNode}function l8(e,t){if(a3e(e))l8(e.expression,t);else if(i8(e))l8(e.left,t),l8(e.right,t);else if(Yk(e))for(const r of e.elements)l8(r,t);else t.push(e)}function Tme(e){const t=[];return l8(e,t),t}function c8(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of GC(e)){const r=jv(t);if(r&&qI(r)&&(r.transformFlags&65536||r.transformFlags&128&&c8(r)))return!0}return!1}var A5,Sme,o3e=C({"src/compiler/factory/utilities.ts"(){Oa(),(e=>{function t(h,E,A,L,I,O,k){const G=E>0?I[E-1]:void 0;return D.assertEqual(A[E],t),I[E]=h.onEnter(L[E],G,k),A[E]=f(h,t),E}e.enter=t;function r(h,E,A,L,I,O,k){D.assertEqual(A[E],r),D.assertIsDefined(h.onLeft),A[E]=f(h,r);const G=h.onLeft(L[E].left,I[E],L[E]);return G?(y(E,L,G),d(E,A,L,I,G)):E}e.left=r;function i(h,E,A,L,I,O,k){return D.assertEqual(A[E],i),D.assertIsDefined(h.onOperator),A[E]=f(h,i),h.onOperator(L[E].operatorToken,I[E],L[E]),E}e.operator=i;function o(h,E,A,L,I,O,k){D.assertEqual(A[E],o),D.assertIsDefined(h.onRight),A[E]=f(h,o);const G=h.onRight(L[E].right,I[E],L[E]);return G?(y(E,L,G),d(E,A,L,I,G)):E}e.right=o;function s(h,E,A,L,I,O,k){D.assertEqual(A[E],s),A[E]=f(h,s);const G=h.onExit(L[E],I[E]);if(E>0){if(E--,h.foldState){const V=A[E]===s?"right":"left";I[E]=h.foldState(I[E],G,V)}}else O.value=G;return E}e.exit=s;function c(h,E,A,L,I,O,k){return D.assertEqual(A[E],c),E}e.done=c;function f(h,E){switch(E){case t:if(h.onLeft)return r;case r:if(h.onOperator)return i;case i:if(h.onRight)return o;case o:return s;case s:return c;case c:return c;default:D.fail("Invalid state")}}e.nextState=f;function d(h,E,A,L,I){return h++,E[h]=t,A[h]=I,L[h]=void 0,h}function y(h,E,A){if(D.shouldAssert(2))for(;h>=0;)D.assert(E[h]!==A,"Circular traversal detected."),h--}})(A5||(A5={})),Sme=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 ht(e,t){return t?Vm(e,t.pos,t.end):e}function X_(e){const t=e.kind;return t===165||t===166||t===168||t===169||t===170||t===171||t===173||t===174||t===175||t===178||t===182||t===215||t===216||t===228||t===240||t===259||t===260||t===261||t===262||t===263||t===264||t===268||t===269||t===274||t===275}function Yx(e){const t=e.kind;return t===166||t===169||t===171||t===174||t===175||t===228||t===260}var s3e=C({"src/compiler/factory/utilitiesPublic.ts"(){Oa()}});function Yt(e,t){return t&&e(t)}function wi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function wK(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function u8(e){return Ue(e.statements,l3e)||c3e(e)}function l3e(e){return X_(e)&&u3e(e,93)||su(e)&&zm(e.moduleReference)||zc(e)||Gl(e)||eu(e)?e:void 0}function c3e(e){return e.flags&4194304?xme(e):void 0}function xme(e){return d3e(e)?e:Ma(e,xme)}function u3e(e,t){return kt(e.modifiers,r=>r.kind===t)}function d3e(e){return Xk(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function Ame(e,t,r){return wi(t,r,e.typeParameters)||wi(t,r,e.parameters)||Yt(t,e.type)}function Cme(e,t,r){return wi(t,r,e.types)}function Lme(e,t,r){return Yt(t,e.type)}function Ime(e,t,r){return wi(t,r,e.elements)}function kme(e,t,r){return Yt(t,e.expression)||Yt(t,e.questionDotToken)||wi(t,r,e.typeArguments)||wi(t,r,e.arguments)}function wme(e,t,r){return wi(t,r,e.statements)}function Dme(e,t,r){return Yt(t,e.label)}function Rme(e,t,r){return wi(t,r,e.modifiers)||Yt(t,e.name)||wi(t,r,e.typeParameters)||wi(t,r,e.heritageClauses)||wi(t,r,e.members)}function Nme(e,t,r){return wi(t,r,e.elements)}function Ome(e,t,r){return Yt(t,e.propertyName)||Yt(t,e.name)}function Pme(e,t,r){return Yt(t,e.tagName)||wi(t,r,e.typeArguments)||Yt(t,e.attributes)}function VC(e,t,r){return Yt(t,e.type)}function Mme(e,t,r){return Yt(t,e.tagName)||(e.isNameFirst?Yt(t,e.name)||Yt(t,e.typeExpression):Yt(t,e.typeExpression)||Yt(t,e.name))||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function jC(e,t,r){return Yt(t,e.tagName)||Yt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function DK(e,t,r){return Yt(t,e.name)}function $x(e,t,r){return Yt(t,e.tagName)||(typeof e.comment=="string"?void 0:wi(t,r,e.comment))}function f3e(e,t,r){return Yt(t,e.expression)}function Ma(e,t,r){if(e===void 0||e.kind<=162)return;const i=qme[e.kind];return i===void 0?void 0:i(e,t,r)}function d8(e,t,r){const i=Fme(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),c=o.pop();if(Va(s)){if(r){const f=r(s,c);if(f){if(f==="skip")continue;return f}}for(let f=s.length-1;f>=0;--f)i.push(s[f]),o.push(c)}else{const f=t(s,c);if(f){if(f==="skip")continue;return f}if(s.kind>=163)for(const d of Fme(s))i.push(d),o.push(s)}}}function Fme(e){const t=[];return Ma(e,r,r),t;function r(i){t.unshift(i)}}function Bme(e){e.externalModuleIndicator=u8(e)}function f8(e,t,r,i=!1,o){var s,c;(s=bi)==null||s.push(bi.Phase.Parse,"createSourceFile",{path:e},!0),al("beforeParse");let f;Jp.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:y,impliedNodeFormat:h}=typeof r=="object"?r:{languageVersion:r};if(d===100)f=Hv.parseSourceFile(e,t,d,void 0,i,6,oo);else{const E=h===void 0?y:A=>(A.impliedNodeFormat=h,(y||Bme)(A));f=Hv.parseSourceFile(e,t,d,void 0,i,o,E)}return Jp.logStopParseSourceFile(),al("afterParse"),Jf("Parse","beforeParse","afterParse"),(c=bi)==null||c.pop(),f}function Qx(e,t){return Hv.parseIsolatedEntityName(e,t)}function _8(e,t){return Hv.parseJsonText(e,t)}function Zl(e){return e.externalModuleIndicator!==void 0}function RK(e,t,r,i=!1){const o=C5.updateSourceFile(e,t,r,i);return o.flags|=e.flags&6291456,o}function Gme(e,t,r){const i=Hv.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&Hv.fixupParentReferences(i.jsDoc),i}function _3e(e,t,r){return Hv.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function fd(e){return Sc(e,S7)||cc(e,".ts")&&pu(mu(e),".d.")}function p3e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,_.resolution_mode_should_be_either_require_or_import)}}function NK(e,t){const r=[];for(const i of mh(t,0)||rt){const o=t.substring(i.pos,i.end);h3e(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function OK(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,c=e.libReferenceDirectives;Ue(wR(r),f=>{const{types:d,lib:y,path:h,["resolution-mode"]:E}=f.arguments;if(f.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(d){const A=p3e(E,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...A?{resolutionMode:A}:{}})}else y?c.push({pos:y.pos,end:y.end,fileName:y.value}):h?o.push({pos:h.pos,end:h.end,fileName:h.value}):t(f.range.pos,f.range.end-f.range.pos,_.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vt(wR(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,_.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Ue(wR(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:D.fail("Unhandled pragma kind")}})}function m3e(e){if(L5.has(e))return L5.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return L5.set(e,t),t}function h3e(e,t,r){const i=t.kind===2&&Jme.exec(r);if(i){const s=i[1].toLowerCase(),c=UR[s];if(!c||!(c.kind&1))return;if(c.args){const f={};for(const d of c.args){const h=m3e(d.name).exec(r);if(!h&&!d.optional)return;if(h){const E=h[2]||h[3];if(d.captureSpan){const A=t.pos+h.index+h[1].length+1;f[d.name]={value:E,pos:A,end:A+E.length}}else f[d.name]=E}}e.push({name:s,args:{arguments:f,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&Kme.exec(r);if(o)return Ume(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let c;for(;c=s.exec(r);)Ume(e,t,4,c)}}function Ume(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=UR[o];if(!s||!(s.kind&r))return;const c=i[2],f=g3e(s,c);f!=="fail"&&e.push({name:o,args:{arguments:f,range:t}})}function g3e(e,t){if(!t)return{};if(!e.args)return{};const r=c1(t).split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return D.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function lb(e,t){return e.kind!==t.kind?!1:e.kind===79?e.escapedText===t.escapedText:e.kind===108?!0:e.name.escapedText===t.name.escapedText&&lb(e.expression,t.expression)}var Vme,jme,Hme,Wme,zme,PK,Jm,qme,Hv,C5,L5,Jme,Kme,y3e=C({"src/compiler/parser.ts"(){Oa(),Oa(),d1(),PK={createBaseSourceFileNode:e=>new(zme||(zme=Hc.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Hme||(Hme=Hc.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Wme||(Wme=Hc.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(jme||(jme=Hc.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Vme||(Vme=Hc.getNodeConstructor()))(e,-1,-1)},Jm=RO(1,PK),qme={163:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},165:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.constraint)||Yt(r,t.default)||Yt(r,t.expression)},300:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.equalsToken)||Yt(r,t.objectAssignmentInitializer)},301:function(t,r,i){return Yt(r,t.expression)},166:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},169:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},168:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},299:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.initializer)},257:function(t,r,i){return Yt(r,t.name)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},205:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.propertyName)||Yt(r,t.name)||Yt(r,t.initializer)},178:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},182:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},181:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},176:Ame,177:Ame,171:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},170:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)},173:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},174:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},175:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},259:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},215:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},216:function(t,r,i){return wi(r,i,t.modifiers)||wi(r,i,t.typeParameters)||wi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.equalsGreaterThanToken)||Yt(r,t.body)},172:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.body)},180:function(t,r,i){return Yt(r,t.typeName)||wi(r,i,t.typeArguments)},179:function(t,r,i){return Yt(r,t.assertsModifier)||Yt(r,t.parameterName)||Yt(r,t.type)},183:function(t,r,i){return Yt(r,t.exprName)||wi(r,i,t.typeArguments)},184:function(t,r,i){return wi(r,i,t.members)},185:function(t,r,i){return Yt(r,t.elementType)},186:function(t,r,i){return wi(r,i,t.elements)},189:Cme,190:Cme,191:function(t,r,i){return Yt(r,t.checkType)||Yt(r,t.extendsType)||Yt(r,t.trueType)||Yt(r,t.falseType)},192:function(t,r,i){return Yt(r,t.typeParameter)},202:function(t,r,i){return Yt(r,t.argument)||Yt(r,t.assertions)||Yt(r,t.qualifier)||wi(r,i,t.typeArguments)},298:function(t,r,i){return Yt(r,t.assertClause)},193:Lme,195:Lme,196:function(t,r,i){return Yt(r,t.objectType)||Yt(r,t.indexType)},197:function(t,r,i){return Yt(r,t.readonlyToken)||Yt(r,t.typeParameter)||Yt(r,t.nameType)||Yt(r,t.questionToken)||Yt(r,t.type)||wi(r,i,t.members)},198:function(t,r,i){return Yt(r,t.literal)},199:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)},203:Ime,204:Ime,206:function(t,r,i){return wi(r,i,t.elements)},207:function(t,r,i){return wi(r,i,t.properties)},208:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.name)},209:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.argumentExpression)},210:kme,211:kme,212:function(t,r,i){return Yt(r,t.tag)||Yt(r,t.questionDotToken)||wi(r,i,t.typeArguments)||Yt(r,t.template)},213:function(t,r,i){return Yt(r,t.type)||Yt(r,t.expression)},214:function(t,r,i){return Yt(r,t.expression)},217:function(t,r,i){return Yt(r,t.expression)},218:function(t,r,i){return Yt(r,t.expression)},219:function(t,r,i){return Yt(r,t.expression)},221:function(t,r,i){return Yt(r,t.operand)},226:function(t,r,i){return Yt(r,t.asteriskToken)||Yt(r,t.expression)},220:function(t,r,i){return Yt(r,t.expression)},222:function(t,r,i){return Yt(r,t.operand)},223:function(t,r,i){return Yt(r,t.left)||Yt(r,t.operatorToken)||Yt(r,t.right)},231:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},232:function(t,r,i){return Yt(r,t.expression)},235:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},233:function(t,r,i){return Yt(r,t.name)},224:function(t,r,i){return Yt(r,t.condition)||Yt(r,t.questionToken)||Yt(r,t.whenTrue)||Yt(r,t.colonToken)||Yt(r,t.whenFalse)},227:function(t,r,i){return Yt(r,t.expression)},238:wme,265:wme,308:function(t,r,i){return wi(r,i,t.statements)||Yt(r,t.endOfFileToken)},240:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.declarationList)},258:function(t,r,i){return wi(r,i,t.declarations)},241:function(t,r,i){return Yt(r,t.expression)},242:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.thenStatement)||Yt(r,t.elseStatement)},243:function(t,r,i){return Yt(r,t.statement)||Yt(r,t.expression)},244:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},245:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.condition)||Yt(r,t.incrementor)||Yt(r,t.statement)},246:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},247:function(t,r,i){return Yt(r,t.awaitModifier)||Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},248:Dme,249:Dme,250:function(t,r,i){return Yt(r,t.expression)},251:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},252:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.caseBlock)},266:function(t,r,i){return wi(r,i,t.clauses)},292:function(t,r,i){return Yt(r,t.expression)||wi(r,i,t.statements)},293:function(t,r,i){return wi(r,i,t.statements)},253:function(t,r,i){return Yt(r,t.label)||Yt(r,t.statement)},254:function(t,r,i){return Yt(r,t.expression)},255:function(t,r,i){return Yt(r,t.tryBlock)||Yt(r,t.catchClause)||Yt(r,t.finallyBlock)},295:function(t,r,i){return Yt(r,t.variableDeclaration)||Yt(r,t.block)},167:function(t,r,i){return Yt(r,t.expression)},260:Rme,228:Rme,261:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||wi(r,i,t.heritageClauses)||wi(r,i,t.members)},262:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.typeParameters)||Yt(r,t.type)},263:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||wi(r,i,t.members)},302:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},264:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.body)},268:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.moduleReference)},269:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.importClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},270:function(t,r,i){return Yt(r,t.name)||Yt(r,t.namedBindings)},296:function(t,r,i){return wi(r,i,t.elements)},297:function(t,r,i){return Yt(r,t.name)||Yt(r,t.value)},267:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.name)},271:function(t,r,i){return Yt(r,t.name)},277:function(t,r,i){return Yt(r,t.name)},272:Nme,276:Nme,275:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.exportClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},273:Ome,278:Ome,274:function(t,r,i){return wi(r,i,t.modifiers)||Yt(r,t.expression)},225:function(t,r,i){return Yt(r,t.head)||wi(r,i,t.templateSpans)},236:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.literal)},200:function(t,r,i){return Yt(r,t.head)||wi(r,i,t.templateSpans)},201:function(t,r,i){return Yt(r,t.type)||Yt(r,t.literal)},164:function(t,r,i){return Yt(r,t.expression)},294:function(t,r,i){return wi(r,i,t.types)},230:function(t,r,i){return Yt(r,t.expression)||wi(r,i,t.typeArguments)},280:function(t,r,i){return Yt(r,t.expression)},279:function(t,r,i){return wi(r,i,t.modifiers)},357:function(t,r,i){return wi(r,i,t.elements)},281:function(t,r,i){return Yt(r,t.openingElement)||wi(r,i,t.children)||Yt(r,t.closingElement)},285:function(t,r,i){return Yt(r,t.openingFragment)||wi(r,i,t.children)||Yt(r,t.closingFragment)},282:Pme,283:Pme,289:function(t,r,i){return wi(r,i,t.properties)},288:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},290:function(t,r,i){return Yt(r,t.expression)},291:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.expression)},284:function(t,r,i){return Yt(r,t.tagName)},187:VC,188:VC,312:VC,318:VC,317:VC,319:VC,321:VC,320:function(t,r,i){return wi(r,i,t.parameters)||Yt(r,t.type)},323:function(t,r,i){return(typeof t.comment=="string"?void 0:wi(r,i,t.comment))||wi(r,i,t.tags)},350:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.name)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},313:function(t,r,i){return Yt(r,t.name)},314:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},344:Mme,351:Mme,333:function(t,r,i){return Yt(r,t.tagName)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},332:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},331:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},348:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.constraint)||wi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},349:function(t,r,i){return Yt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===312?Yt(r,t.typeExpression)||Yt(r,t.fullName)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment)):Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment)))},341:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:wi(r,i,t.comment))},345:jC,347:jC,346:jC,343:jC,353:jC,352:jC,342:jC,326:function(t,r,i){return Ue(t.typeParameters,r)||Ue(t.parameters,r)||Yt(r,t.type)},327:DK,328:DK,329:DK,325:function(t,r,i){return Ue(t.jsDocPropertyTags,r)},330:$x,335:$x,336:$x,337:$x,338:$x,339:$x,334:$x,340:$x,356:f3e},(e=>{var t=fy(99,!0),r=20480,i,o,s,c,f;function d(z){return tt++,z}var y={createBaseSourceFileNode:z=>d(new f(z,0,0)),createBaseIdentifierNode:z=>d(new s(z,0,0)),createBasePrivateIdentifierNode:z=>d(new c(z,0,0)),createBaseTokenNode:z=>d(new o(z,0,0)),createBaseNode:z=>d(new i(z,0,0))},h=RO(11,y),{createNodeArray:E,createNumericLiteral:A,createStringLiteral:L,createLiteralLikeNode:I,createIdentifier:O,createPrivateIdentifier:k,createToken:G,createArrayLiteralExpression:V,createObjectLiteralExpression:H,createPropertyAccessExpression:te,createPropertyAccessChain:X,createElementAccessExpression:Y,createElementAccessChain:P,createCallExpression:de,createCallChain:re,createNewExpression:ye,createParenthesizedExpression:ae,createBlock:W,createVariableStatement:ce,createExpressionStatement:me,createIfStatement:ve,createWhileStatement:Se,createForStatement:ee,createForOfStatement:Qe,createVariableDeclaration:je,createVariableDeclarationList:Ge}=h,qe,Oe,Me,Ye,ze,Fe,st,Ct,Et,jt,tt,at,sn,Qt,On,jn,In=!0,Zt=!1;function _r(z,Ee,$e,Tt,Gt=!1,Cn,Br){var yi;if(Cn=f7(z,Cn),Cn===6){const ki=$i(z,Ee,$e,Tt,Gt);return g8(ki,(yi=ki.statements[0])==null?void 0:yi.expression,ki.parseDiagnostics,!1,void 0,void 0),ki.referencedFiles=rt,ki.typeReferenceDirectives=rt,ki.libReferenceDirectives=rt,ki.amdDependencies=rt,ki.hasNoDefaultLib=!1,ki.pragmas=hM,ki}Qi(z,Ee,$e,Tt,Cn);const xi=At($e,Gt,Cn,Br||Bme);return Or(),xi}e.parseSourceFile=_r;function Ii(z,Ee){Qi("",z,Ee,void 0,1),ft();const $e=Yo(!0),Tt=q()===1&&!st.length;return Or(),Tt?$e:void 0}e.parseIsolatedEntityName=Ii;function $i(z,Ee,$e=2,Tt,Gt=!1){Qi(z,Ee,$e,Tt,6),Oe=jn,ft();const Cn=Z();let Br,yi;if(q()===1)Br=Ks([],Cn,Cn),yi=oc();else{let Fa;for(;q()!==1;){let rs;switch(q()){case 22:rs=jy();break;case 110:case 95:case 104:rs=oc();break;case 40:Xr(()=>ft()===8&&ft()!==58)?rs=hS():rs=nc();break;case 8:case 10:if(Xr(()=>ft()!==58)){rs=Ia();break}default:rs=nc();break}Fa&&Va(Fa)?Fa.push(rs):Fa?Fa=[Fa,rs]:(Fa=rs,q()!==1&&mt(_.Unexpected_token))}const Is=Va(Fa)?rn(V(Fa),Cn):D.checkDefined(Fa),Io=me(Is);rn(Io,Cn),Br=Ks([Io],Cn),yi=tu(1,_.Unexpected_token)}const xi=Pi(z,2,6,!1,Br,yi,Oe,oo);Gt&&cr(xi),xi.nodeCount=tt,xi.identifierCount=sn,xi.identifiers=at,xi.parseDiagnostics=Cx(st,xi),Ct&&(xi.jsDocDiagnostics=Cx(Ct,xi));const ki=xi;return Or(),ki}e.parseJsonText=$i;function Qi(z,Ee,$e,Tt,Gt){switch(i=Hc.getNodeConstructor(),o=Hc.getTokenConstructor(),s=Hc.getIdentifierConstructor(),c=Hc.getPrivateIdentifierConstructor(),f=Hc.getSourceFileConstructor(),qe=qo(z),Me=Ee,Ye=$e,Et=Tt,ze=Gt,Fe=pO(Gt),st=[],Qt=0,at=new Map,sn=0,tt=0,Oe=0,In=!0,ze){case 1:case 2:jn=262144;break;case 6:jn=67371008;break;default:jn=0;break}Zt=!1,t.setText(Me),t.setOnError(Pe),t.setScriptTarget(Ye),t.setLanguageVariant(Fe)}function Or(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Me=void 0,Ye=void 0,Et=void 0,ze=void 0,Fe=void 0,Oe=0,st=void 0,Ct=void 0,Qt=0,at=void 0,On=void 0,In=!0}function At(z,Ee,$e,Tt){const Gt=fd(qe);Gt&&(jn|=16777216),Oe=jn,ft();const Cn=oe(0,Mf);D.assert(q()===1);const Br=dn(oc()),yi=Pi(qe,z,$e,Gt,Cn,Br,Oe,Tt);return NK(yi,Me),OK(yi,xi),yi.commentDirectives=t.getCommentDirectives(),yi.nodeCount=tt,yi.identifierCount=sn,yi.identifiers=at,yi.parseDiagnostics=Cx(st,yi),Ct&&(yi.jsDocDiagnostics=Cx(Ct,yi)),Ee&&cr(yi),yi;function xi(ki,Fa,Is){st.push(_C(qe,ki,Fa,Is))}}function vn(z,Ee){return Ee?dn(z):z}let Wt=!1;function dn(z){D.assert(!z.jsDoc);const Ee=ia(Hz(z,Me),$e=>H2.parseJSDocComment(z,$e.pos,$e.end-$e.pos));return Ee.length&&(z.jsDoc=Ee),Wt&&(Wt=!1,z.flags|=268435456),z}function rr(z){const Ee=Et,$e=C5.createSyntaxCursor(z);Et={currentNode:Fa};const Tt=[],Gt=st;st=[];let Cn=0,Br=xi(z.statements,0);for(;Br!==-1;){const Is=z.statements[Cn],Io=z.statements[Br];Ti(Tt,z.statements,Cn,Br),Cn=ki(z.statements,Br);const rs=mi(Gt,Pp=>Pp.start>=Is.pos),Od=rs>=0?mi(Gt,Pp=>Pp.start>=Io.pos,rs):-1;rs>=0&&Ti(st,Gt,rs,Od>=0?Od:void 0),Hi(()=>{const Pp=jn;for(jn|=32768,t.setTextPos(Io.pos),ft();q()!==1;){const pm=t.getStartPos(),zg=ut(0,Mf);if(Tt.push(zg),pm===t.getStartPos()&&ft(),Cn>=0){const k_=z.statements[Cn];if(zg.end===k_.pos)break;zg.end>k_.pos&&(Cn=ki(z.statements,Cn+1))}}jn=Pp},2),Br=Cn>=0?xi(z.statements,Cn):-1}if(Cn>=0){const Is=z.statements[Cn];Ti(Tt,z.statements,Cn);const Io=mi(Gt,rs=>rs.start>=Is.pos);Io>=0&&Ti(st,Gt,Io)}return Et=Ee,h.updateSourceFile(z,ht(E(Tt),z.statements));function yi(Is){return!(Is.flags&32768)&&!!(Is.transformFlags&67108864)}function xi(Is,Io){for(let rs=Io;rs<Is.length;rs++)if(yi(Is[rs]))return rs;return-1}function ki(Is,Io){for(let rs=Io;rs<Is.length;rs++)if(!yi(Is[rs]))return rs;return-1}function Fa(Is){const Io=$e.currentNode(Is);return In&&Io&&yi(Io)&&(Io.intersectsChange=!0),Io}}function cr(z){Fv(z,!0)}e.fixupParentReferences=cr;function Pi(z,Ee,$e,Tt,Gt,Cn,Br,yi){let xi=h.createSourceFile(Gt,Cn,Br);return Nk(xi,0,Me.length),ki(xi),!Tt&&Zl(xi)&&xi.transformFlags&67108864&&(xi=rr(xi),ki(xi)),xi;function ki(Fa){Fa.text=Me,Fa.bindDiagnostics=[],Fa.bindSuggestionDiagnostics=void 0,Fa.languageVersion=Ee,Fa.fileName=z,Fa.languageVariant=pO($e),Fa.isDeclarationFile=Tt,Fa.scriptKind=$e,yi(Fa),Fa.setExternalModuleIndicator=yi}}function gi(z,Ee){z?jn|=Ee:jn&=~Ee}function Rn(z){gi(z,4096)}function an(z){gi(z,8192)}function Pn(z){gi(z,16384)}function Ar(z){gi(z,32768)}function Hr(z,Ee){const $e=z&jn;if($e){gi(!1,$e);const Tt=Ee();return gi(!0,$e),Tt}return Ee()}function we(z,Ee){const $e=z&~jn;if($e){gi(!0,$e);const Tt=Ee();return gi(!1,$e),Tt}return Ee()}function yt(z){return Hr(4096,z)}function Nt(z){return we(4096,z)}function Ce(z){return Hr(65536,z)}function pt(z){return we(65536,z)}function pe(z){return we(8192,z)}function ie(z){return we(16384,z)}function he(z){return we(32768,z)}function j(z){return Hr(32768,z)}function We(z){return we(40960,z)}function Ze(z){return Hr(40960,z)}function Xe(z){return(jn&z)!==0}function Ut(){return Xe(8192)}function cn(){return Xe(4096)}function Sn(){return Xe(65536)}function Er(){return Xe(16384)}function ue(){return Xe(32768)}function mt(z,Ee){return it(t.getTokenPos(),t.getTextPos(),z,Ee)}function zt(z,Ee,$e,Tt){const Gt=tl(st);let Cn;return(!Gt||z!==Gt.start)&&(Cn=_C(qe,z,Ee,$e,Tt),st.push(Cn)),Zt=!0,Cn}function it(z,Ee,$e,Tt){return zt(z,Ee-z,$e,Tt)}function K(z,Ee,$e){it(z.pos,z.end,Ee,$e)}function Pe(z,Ee){zt(t.getTextPos(),Ee,z)}function Z(){return t.getStartPos()}function Re(){return t.hasPrecedingJSDocComment()}function q(){return jt}function Rt(){return jt=t.scan()}function gt(z){return ft(),z()}function ft(){return Ad(jt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&it(t.getTokenPos(),t.getTextPos(),_.Keywords_cannot_contain_escape_characters),Rt()}function _n(){return jt=t.scanJsDocToken()}function $n(){return jt=t.reScanGreaterToken()}function oi(){return jt=t.reScanSlashToken()}function Ai(z){return jt=t.reScanTemplateToken(z)}function Ci(){return jt=t.reScanTemplateHeadOrNoSubstitutionTemplate()}function ji(){return jt=t.reScanLessThanToken()}function mo(){return jt=t.reScanHashToken()}function To(){return jt=t.scanJsxIdentifier()}function io(){return jt=t.scanJsxToken()}function ca(){return jt=t.scanJsxAttributeValue()}function Hi(z,Ee){const $e=jt,Tt=st.length,Gt=Zt,Cn=jn,Br=Ee!==0?t.lookAhead(z):t.tryScan(z);return D.assert(Cn===jn),(!Br||Ee!==0)&&(jt=$e,Ee!==2&&(st.length=Tt),Zt=Gt),Br}function Xr(z){return Hi(z,1)}function ss(z){return Hi(z,0)}function _i(){return q()===79?!0:q()>116}function ua(){return q()===79?!0:q()===125&&Ut()||q()===133&&ue()?!1:q()>116}function wn(z,Ee,$e=!0){return q()===z?($e&&ft(),!0):(Ee?mt(Ee):mt(_._0_expected,yo(z)),!1)}const fa=Object.keys(rN).filter(z=>z.length>2);function ec(z){var Ee;if(kT(z)){it(Jo(Me,z.template.pos),z.template.end,_.Module_declaration_names_may_only_use_or_quoted_strings);return}const $e=He(z)?Mr(z):void 0;if(!$e||!M_($e,Ye)){mt(_._0_expected,yo(26));return}const Tt=Jo(Me,z.pos);switch($e){case"const":case"let":case"var":it(Tt,z.end,_.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":rl(_.Interface_name_cannot_be_0,_.Interface_must_be_given_a_name,18);return;case"is":it(Tt,t.getTextPos(),_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":rl(_.Namespace_name_cannot_be_0,_.Namespace_must_be_given_a_name,18);return;case"type":rl(_.Type_alias_name_cannot_be_0,_.Type_alias_must_be_given_a_name,63);return}const Gt=(Ee=xI($e,fa,Cn=>Cn))!=null?Ee:Ul($e);if(Gt){it(Tt,z.end,_.Unknown_keyword_or_identifier_Did_you_mean_0,Gt);return}q()!==0&&it(Tt,z.end,_.Unexpected_keyword_or_identifier)}function rl(z,Ee,$e){q()===$e?mt(Ee):mt(z,t.getTokenValue())}function Ul(z){for(const Ee of fa)if(z.length>Ee.length+2&&xa(z,Ee))return`${Ee} ${z.slice(Ee.length)}`}function Xl(z,Ee,$e){if(q()===59&&!t.hasPrecedingLineBreak()){mt(_.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===20){mt(_.Cannot_start_a_function_call_in_a_type_annotation),ft();return}if(Ee&&!Ds()){$e?mt(_._0_expected,yo(26)):mt(_.Expected_for_property_initializer);return}if(!hl()){if($e){mt(_._0_expected,yo(26));return}ec(z)}}function Vl(z){return q()===z?(_n(),!0):(mt(_._0_expected,yo(z)),!1)}function Co(z,Ee,$e,Tt){if(q()===Ee){ft();return}const Gt=mt(_._0_expected,yo(Ee));$e&&Gt&&Ko(Gt,_C(qe,Tt,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,yo(z),yo(Ee)))}function La(z){return q()===z?(ft(),!0):!1}function Xo(z){if(q()===z)return oc()}function jl(z){if(q()===z)return Kc()}function tu(z,Ee,$e){return Xo(z)||Hl(z,!1,Ee||_._0_expected,$e||yo(z))}function zd(z){return jl(z)||Hl(z,!1,_._0_expected,yo(z))}function oc(){const z=Z(),Ee=q();return ft(),rn(G(Ee),z)}function Kc(){const z=Z(),Ee=q();return _n(),rn(G(Ee),z)}function Ds(){return q()===26?!0:q()===19||q()===1||t.hasPrecedingLineBreak()}function hl(){return Ds()?(q()===26&&ft(),!0):!1}function el(){return hl()||wn(26)}function Ks(z,Ee,$e,Tt){const Gt=E(z,Tt);return Vm(Gt,Ee,$e??t.getStartPos()),Gt}function rn(z,Ee,$e){return Vm(z,Ee,$e??t.getStartPos()),jn&&(z.flags|=jn),Zt&&(Zt=!1,z.flags|=131072),z}function Hl(z,Ee,$e,Tt){Ee?zt(t.getStartPos(),0,$e,Tt):$e&&mt($e,Tt);const Gt=Z(),Cn=z===79?O("",void 0):Lv(z)?h.createTemplateLiteralLikeNode(z,"","",void 0):z===8?A("",void 0):z===10?L("",void 0):z===279?h.createMissingDeclaration():G(z);return rn(Cn,Gt)}function xu(z){let Ee=at.get(z);return Ee===void 0&&at.set(z,Ee=z),Ee}function zu(z,Ee,$e){if(z){sn++;const yi=Z(),xi=q(),ki=xu(t.getTokenValue()),Fa=t.hasExtendedUnicodeEscape();return Rt(),rn(O(ki,xi,Fa),yi)}if(q()===80)return mt($e||_.Private_identifiers_are_not_allowed_outside_class_bodies),zu(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===79))return zu(!0);sn++;const Tt=q()===1,Gt=t.isReservedWord(),Cn=t.getTokenText(),Br=Gt?_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_.Identifier_expected;return Hl(79,Tt,Ee||Br,Cn)}function fe(z){return zu(_i(),void 0,z)}function It(z,Ee){return zu(ua(),z,Ee)}function Ht(z){return zu(Qu(q()),z)}function Q(){return Qu(q())||q()===10||q()===8}function ot(){return Qu(q())||q()===10}function xt(z){if(q()===10||q()===8){const Ee=Ia();return Ee.text=xu(Ee.text),Ee}return z&&q()===22?Dr():q()===80?Pr():Ht()}function mn(){return xt(!0)}function Dr(){const z=Z();wn(22);const Ee=yt(cu);return wn(23),rn(h.createComputedPropertyName(Ee),z)}function Pr(){const z=Z(),Ee=k(xu(t.getTokenValue()));return ft(),rn(Ee,z)}function Ta(z){return q()===z&&ss(ho)}function ls(){return ft(),t.hasPrecedingLineBreak()?!1:dc()}function ho(){switch(q()){case 85:return ft()===92;case 93:return ft(),q()===88?Xr(_d):q()===154?Xr(Ya):jo();case 88:return _d();case 124:case 137:case 151:return ft(),dc();default:return ls()}}function jo(){return q()===59||q()!==41&&q()!==128&&q()!==18&&dc()}function Ya(){return ft(),jo()}function dl(){return my(q())&&ss(ho)}function dc(){return q()===22||q()===18||q()===41||q()===25||Q()}function _d(){return ft(),q()===84||q()===98||q()===118||q()===59||q()===126&&Xr(nh)||q()===132&&Xr(Mb)}function Es(z,Ee){if(Mt(z))return!0;switch(z){case 0:case 1:case 3:return!(q()===26&&Ee)&&bS();case 2:return q()===82||q()===88;case 4:return Xr(tE);case 5:return Xr(Nd)||q()===26&&!Ee;case 6:return q()===22||Q();case 12:switch(q()){case 22:case 41:case 25:case 24:return!0;default:return Q()}case 18:return Q();case 9:return q()===22||q()===25||Q();case 24:return ot();case 7:return q()===18?Xr(ds):Ee?ua()&&!Nf():Ab()&&!Nf();case 8:return gE();case 10:return q()===27||q()===25||gE();case 19:return q()===101||q()===85||ua();case 15:switch(q()){case 27:case 24:return!0}case 11:return q()===25||ip();case 16:return hb(!1);case 17:return hb(!0);case 20:case 21:return q()===27||Dg();case 22:return Wh();case 23:return Qu(q());case 13:return Qu(q())||q()===18;case 14:return!0}return D.fail("Non-exhaustive case in 'isListElement'.")}function ds(){if(D.assert(q()===18),ft()===19){const z=ft();return z===27||z===18||z===94||z===117}return!0}function fl(){return ft(),ua()}function qd(){return ft(),Qu(q())}function Wl(){return ft(),yue(q())}function Nf(){return q()===117||q()===94?Xr(xe):!1}function xe(){return ft(),ip()}function Dt(){return ft(),Dg()}function Nn(z){if(q()===1)return!0;switch(z){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return q()===19;case 3:return q()===19||q()===82||q()===88;case 7:return q()===18||q()===94||q()===117;case 8:return Xi();case 19:return q()===31||q()===20||q()===18||q()===94||q()===117;case 11:return q()===21||q()===26;case 15:case 21:case 10:return q()===23;case 17:case 16:case 18:return q()===21||q()===23;case 20:return q()!==27;case 22:return q()===18||q()===19;case 13:return q()===31||q()===43;case 14:return q()===29&&Xr(fo);default:return!1}}function Xi(){return!!(Ds()||pS(q())||q()===38)}function Lo(){for(let z=0;z<25;z++)if(Qt&1<<z&&(Es(z,!0)||Nn(z)))return!0;return!1}function oe(z,Ee){const $e=Qt;Qt|=1<<z;const Tt=[],Gt=Z();for(;!Nn(z);){if(Es(z,!1)){Tt.push(ut(z,Ee));continue}if(pd(z))break}return Qt=$e,Ks(Tt,Gt)}function ut(z,Ee){const $e=Mt(z);return $e?Pt($e):Ee()}function Mt(z,Ee){var $e;if(!Et||!un(z)||Zt)return;const Tt=Et.currentNode(Ee??t.getStartPos());if(!(Cl(Tt)||Tt.intersectsChange||bN(Tt)||(Tt.flags&50720768)!==jn)&&Vn(Tt,z))return zN(Tt)&&(($e=Tt.jsDoc)!=null&&$e.jsDocCache)&&(Tt.jsDoc.jsDocCache=void 0),Tt}function Pt(z){return t.setTextPos(z.end),ft(),z}function un(z){switch(z){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Vn(z,Ee){switch(Ee){case 5:return Rr(z);case 2:return ni(z);case 0:case 1:case 3:return Mi(z);case 6:return ja(z);case 4:return Ho(z);case 8:return Ts(z);case 17:case 16:return Xs(z)}return!1}function Rr(z){if(z)switch(z.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:const Ee=z;return!(Ee.name.kind===79&&Ee.name.escapedText==="constructor")}return!1}function ni(z){if(z)switch(z.kind){case 292:case 293:return!0}return!1}function Mi(z){if(z)switch(z.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function ja(z){return z.kind===302}function Ho(z){if(z)switch(z.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function Ts(z){return z.kind!==257?!1:z.initializer===void 0}function Xs(z){return z.kind!==166?!1:z.initializer===void 0}function pd(z){return ff(z),Lo()?!0:(ft(),!1)}function ff(z){switch(z){case 0:return q()===88?mt(_._0_expected,yo(93)):mt(_.Declaration_or_statement_expected);case 1:return mt(_.Declaration_or_statement_expected);case 2:return mt(_.case_or_default_expected);case 3:return mt(_.Statement_expected);case 18:case 4:return mt(_.Property_or_signature_expected);case 5:return mt(_.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return mt(_.Enum_member_expected);case 7:return mt(_.Expression_expected);case 8:return Ad(q())?mt(_._0_is_not_allowed_as_a_variable_declaration_name,yo(q())):mt(_.Variable_declaration_expected);case 9:return mt(_.Property_destructuring_pattern_expected);case 10:return mt(_.Array_element_destructuring_pattern_expected);case 11:return mt(_.Argument_expression_expected);case 12:return mt(_.Property_assignment_expected);case 15:return mt(_.Expression_or_comma_expected);case 17:return mt(_.Parameter_declaration_expected);case 16:return Ad(q())?mt(_._0_is_not_allowed_as_a_parameter_name,yo(q())):mt(_.Parameter_declaration_expected);case 19:return mt(_.Type_parameter_declaration_expected);case 20:return mt(_.Type_argument_expected);case 21:return mt(_.Type_expected);case 22:return mt(_.Unexpected_token_expected);case 23:return mt(_.Identifier_expected);case 13:return mt(_.Identifier_expected);case 14:return mt(_.Identifier_expected);case 24:return mt(_.Identifier_or_string_literal_expected);case 25:return D.fail("ParsingContext.Count used as a context");default:D.assertNever(z)}}function tc(z,Ee,$e){const Tt=Qt;Qt|=1<<z;const Gt=[],Cn=Z();let Br=-1;for(;;){if(Es(z,!1)){const yi=t.getStartPos(),xi=ut(z,Ee);if(!xi){Qt=Tt;return}if(Gt.push(xi),Br=t.getTokenPos(),La(27))continue;if(Br=-1,Nn(z))break;wn(27,Jd(z)),$e&&q()===26&&!t.hasPrecedingLineBreak()&&ft(),yi===t.getStartPos()&&ft();continue}if(Nn(z)||pd(z))break}return Qt=Tt,Ks(Gt,Cn,void 0,Br>=0)}function Jd(z){return z===6?_.An_enum_member_name_must_be_followed_by_a_or:void 0}function Au(){const z=Ks([],Z());return z.isMissingList=!0,z}function _f(z){return!!z.isMissingList}function x_(z,Ee,$e,Tt){if(wn($e)){const Gt=tc(z,Ee);return wn(Tt),Gt}return Au()}function Yo(z,Ee){const $e=Z();let Tt=z?Ht(Ee):It(Ee);for(;La(24)&&q()!==29;)Tt=rn(h.createQualifiedName(Tt,pf(z,!1)),$e);return Tt}function A_(z,Ee){return rn(h.createQualifiedName(z,Ee),z.pos)}function pf(z,Ee){if(t.hasPrecedingLineBreak()&&Qu(q())&&Xr(hd))return Hl(79,!0,_.Identifier_expected);if(q()===80){const $e=Pr();return Ee?$e:Hl(79,!0,_.Identifier_expected)}return z?Ht():It()}function Z_(z){const Ee=Z(),$e=[];let Tt;do Tt=Da(z),$e.push(Tt);while(Tt.literal.kind===16);return Ks($e,Ee)}function kp(z){const Ee=Z();return rn(h.createTemplateExpression(Ie(z),Z_(z)),Ee)}function U(){const z=Z();return rn(h.createTemplateLiteralType(Ie(!1),et()),z)}function et(){const z=Z(),Ee=[];let $e;do $e=qt(),Ee.push($e);while($e.literal.kind===16);return Ks(Ee,z)}function qt(){const z=Z();return rn(h.createTemplateLiteralTypeSpan(vc(),Xn(!1)),z)}function Xn(z){return q()===19?(Ai(z),Ve()):tu(17,_._0_expected,yo(19))}function Da(z){const Ee=Z();return rn(h.createTemplateSpan(yt(cu),Xn(z)),Ee)}function Ia(){return Ot(q())}function Ie(z){z&&Ci();const Ee=Ot(q());return D.assert(Ee.kind===15,"Template head has wrong token kind"),Ee}function Ve(){const z=Ot(q());return D.assert(z.kind===16||z.kind===17,"Template fragment has wrong token kind"),z}function Lt(z){const Ee=z===14||z===17,$e=t.getTokenText();return $e.substring(1,$e.length-(t.isUnterminated()?0:Ee?1:2))}function Ot(z){const Ee=Z(),$e=Lv(z)?h.createTemplateLiteralLikeNode(z,t.getTokenValue(),Lt(z),t.getTokenFlags()&2048):z===8?A(t.getTokenValue(),t.getNumericLiteralFlags()):z===10?L(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):WI(z)?I(z,t.getTokenValue()):D.fail();return t.hasExtendedUnicodeEscape()&&($e.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&($e.isUnterminated=!0),ft(),rn($e,Ee)}function hn(){return Yo(!0,_.Type_expected)}function bn(){if(!t.hasPrecedingLineBreak()&&ji()===29)return x_(20,vc,29,31)}function Tn(){const z=Z();return rn(h.createTypeReferenceNode(hn(),bn()),z)}function Hn(z){switch(z.kind){case 180:return Cl(z.typeName);case 181:case 182:{const{parameters:Ee,type:$e}=z;return _f(Ee)||Hn($e)}case 193:return Hn(z.type);default:return!1}}function qr(z){return ft(),rn(h.createTypePredicateNode(void 0,z,vc()),z.pos)}function Ji(){const z=Z();return ft(),rn(h.createThisTypeNode(),z)}function tr(){const z=Z();return ft(),rn(h.createJSDocAllType(),z)}function pn(){const z=Z();return ft(),rn(h.createJSDocNonNullableType(Eb(),!1),z)}function dr(){const z=Z();return ft(),q()===27||q()===19||q()===21||q()===31||q()===63||q()===51?rn(h.createJSDocUnknownType(),z):rn(h.createJSDocNullableType(vc(),!1),z)}function Aa(){const z=Z(),Ee=Re();if(Xr(li)){ft();const $e=wp(36),Tt=tp(58,!1);return vn(rn(h.createJSDocFunctionType($e,Tt),z),Ee)}return rn(h.createTypeReferenceNode(Ht(),void 0),z)}function Ys(){const z=Z();let Ee;return(q()===108||q()===103)&&(Ee=Ht(),wn(58)),rn(h.createParameterDeclaration(void 0,void 0,Ee,void 0,sc(),void 0),z)}function sc(){t.setInJSDocType(!0);const z=Z();if(La(142)){const Tt=h.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 19:case 1:case 27:case 5:break e;default:_n()}return t.setInJSDocType(!1),rn(Tt,z)}const Ee=La(25);let $e=ts();return t.setInJSDocType(!1),Ee&&($e=rn(h.createJSDocVariadicType($e),z)),q()===63?(ft(),rn(h.createJSDocOptionalType($e),z)):$e}function Ym(){const z=Z();wn(112);const Ee=Yo(!0),$e=t.hasPrecedingLineBreak()?void 0:Yd();return rn(h.createTypeQueryNode(Ee,$e),z)}function Cg(){const z=Z(),Ee=Ns(!1,!0),$e=It();let Tt,Gt;La(94)&&(Dg()||!ip()?Tt=vc():Gt=Dp());const Cn=La(63)?vc():void 0,Br=h.createTypeParameterDeclaration(Ee,$e,Tt,Cn);return Br.expression=Gt,rn(Br,z)}function ep(){if(q()===29)return x_(19,Cg,29,31)}function hb(z){return q()===25||gE()||my(q())||q()===59||Dg(!z)}function Zv(z){const Ee=zy(_.Private_identifiers_cannot_be_used_as_parameters);return vN(Ee)===0&&!kt(z)&&my(q())&&ft(),Ee}function x2(){return _i()||q()===22||q()===18}function sS(z){return Lg(z)}function A2(z){return Lg(z,!1)}function Lg(z,Ee=!0){const $e=Z(),Tt=Re(),Gt=z?he(()=>Ns(!0)):j(()=>Ns(!0));if(q()===108){const xi=h.createParameterDeclaration(Gt,void 0,zu(!0),void 0,Mh(),void 0),ki=Yc(Gt);return ki&&K(ki,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),vn(rn(xi,$e),Tt)}const Cn=In;In=!1;const Br=Xo(25);if(!Ee&&!x2())return;const yi=vn(rn(h.createParameterDeclaration(Gt,Br,Zv(Gt),Xo(57),Mh(),Ng()),$e),Tt);return In=Cn,yi}function tp(z,Ee){if(e0(z,Ee))return Ce(ts)}function e0(z,Ee){return z===38?(wn(z),!0):La(58)?!0:Ee&&q()===38?(mt(_._0_expected,yo(58)),ft(),!0):!1}function Ph(z,Ee){const $e=Ut(),Tt=ue();an(!!(z&1)),Ar(!!(z&2));const Gt=z&32?tc(17,Ys):tc(16,()=>Ee?sS(Tt):A2(Tt));return an($e),Ar(Tt),Gt}function wp(z){if(!wn(20))return Au();const Ee=Ph(z,!0);return wn(21),Ee}function t0(){La(27)||el()}function Z1(z){const Ee=Z(),$e=Re();z===177&&wn(103);const Tt=ep(),Gt=wp(4),Cn=tp(58,!0);t0();const Br=z===176?h.createCallSignature(Tt,Gt,Cn):h.createConstructSignature(Tt,Gt,Cn);return vn(rn(Br,Ee),$e)}function gb(){return q()===22&&Xr(Ig)}function Ig(){if(ft(),q()===25||q()===23)return!0;if(my(q())){if(ft(),ua())return!0}else if(ua())ft();else return!1;return q()===58||q()===27?!0:q()!==57?!1:(ft(),q()===58||q()===27||q()===23)}function lS(z,Ee,$e){const Tt=x_(16,()=>sS(!1),22,23),Gt=Mh();t0();const Cn=h.createIndexSignature($e,Tt,Gt);return vn(rn(Cn,z),Ee)}function eE(z,Ee,$e){const Tt=mn(),Gt=Xo(57);let Cn;if(q()===20||q()===29){const Br=ep(),yi=wp(4),xi=tp(58,!0);Cn=h.createMethodSignature($e,Tt,Gt,Br,yi,xi)}else{const Br=Mh();Cn=h.createPropertySignature($e,Tt,Gt,Br),q()===63&&(Cn.initializer=Ng())}return t0(),vn(rn(Cn,z),Ee)}function tE(){if(q()===20||q()===29||q()===137||q()===151)return!0;let z=!1;for(;my(q());)z=!0,ft();return q()===22?!0:(Q()&&(z=!0,ft()),z?q()===20||q()===29||q()===57||q()===58||q()===27||Ds():!1)}function nE(){if(q()===20||q()===29)return Z1(176);if(q()===103&&Xr(n0))return Z1(177);const z=Z(),Ee=Re(),$e=Ns(!1);return Ta(137)?rh(z,Ee,$e,174,4):Ta(151)?rh(z,Ee,$e,175,4):gb()?lS(z,Ee,$e):eE(z,Ee,$e)}function n0(){return ft(),q()===20||q()===29}function C2(){return ft()===24}function rE(){switch(ft()){case 20:case 29:case 24:return!0}return!1}function iE(){const z=Z();return rn(h.createTypeLiteralNode(r0()),z)}function r0(){let z;return wn(18)?(z=oe(4,nE),wn(19)):z=Au(),z}function yb(){return ft(),q()===39||q()===40?ft()===146:(q()===146&&ft(),q()===22&&fl()&&ft()===101)}function i0(){const z=Z(),Ee=Ht();wn(101);const $e=vc();return rn(h.createTypeParameterDeclaration(void 0,Ee,$e,void 0),z)}function cS(){const z=Z();wn(18);let Ee;(q()===146||q()===39||q()===40)&&(Ee=oc(),Ee.kind!==146&&wn(146)),wn(22);const $e=i0(),Tt=La(128)?vc():void 0;wn(23);let Gt;(q()===57||q()===39||q()===40)&&(Gt=oc(),Gt.kind!==57&&wn(57));const Cn=Mh();el();const Br=oe(4,nE);return wn(19),rn(h.createMappedTypeNode(Ee,$e,Tt,Gt,Cn,Br),z)}function kg(){const z=Z();if(La(25))return rn(h.createRestTypeNode(vc()),z);const Ee=vc();if(OC(Ee)&&Ee.pos===Ee.type.pos){const $e=h.createOptionalTypeNode(Ee.type);return ht($e,Ee),$e.flags=Ee.flags,$e}return Ee}function $o(){return ft()===58||q()===57&&ft()===58}function aE(){return q()===25?Qu(ft())&&$o():Qu(q())&&$o()}function vL(){if(Xr(aE)){const z=Z(),Ee=Re(),$e=Xo(25),Tt=Ht(),Gt=Xo(57);wn(58);const Cn=kg(),Br=h.createNamedTupleMember($e,Tt,Gt,Cn);return vn(rn(Br,z),Ee)}return kg()}function My(){const z=Z();return rn(h.createTupleTypeNode(x_(21,vL,22,23)),z)}function wg(){const z=Z();wn(20);const Ee=vc();return wn(21),rn(h.createParenthesizedType(Ee),z)}function $m(){let z;if(q()===126){const Ee=Z();ft();const $e=rn(G(126),Ee);z=Ks([$e],Ee)}return z}function np(){const z=Z(),Ee=Re(),$e=$m(),Tt=La(103);D.assert(!$e||Tt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Gt=ep(),Cn=wp(4),Br=tp(38,!1),yi=Tt?h.createConstructorTypeNode($e,Gt,Cn,Br):h.createFunctionTypeNode(Gt,Cn,Br);return vn(rn(yi,z),Ee)}function kd(){const z=oc();return q()===24?void 0:z}function wd(z){const Ee=Z();z&&ft();let $e=q()===110||q()===95||q()===104?oc():Ot(q());return z&&($e=rn(h.createPrefixUnaryExpression(40,$e),Ee)),rn(h.createLiteralTypeNode($e),Ee)}function Dd(){return ft(),q()===100}function vb(){const z=Z(),Ee=t.getTokenPos();wn(18);const $e=t.hasPrecedingLineBreak();wn(130),wn(58);const Tt=Xy(!0);if(!wn(19)){const Gt=tl(st);Gt&&Gt.code===_._0_expected.code&&Ko(Gt,_C(qe,Ee,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return rn(h.createImportTypeAssertionContainer(Tt,$e),z)}function bb(){Oe|=2097152;const z=Z(),Ee=La(112);wn(100),wn(20);const $e=vc();let Tt;La(27)&&(Tt=vb()),wn(21);const Gt=La(24)?hn():void 0,Cn=bn();return rn(h.createImportTypeNode($e,Tt,Gt,Cn,Ee),z)}function L2(){return ft(),q()===8||q()===9}function Eb(){switch(q()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return ss(kd)||Tn();case 66:t.reScanAsteriskEqualsToken();case 41:return tr();case 60:t.reScanQuestionToken();case 57:return dr();case 98:return Aa();case 53:return pn();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return wd();case 40:return Xr(L2)?wd(!0):Tn();case 114:return oc();case 108:{const z=Ji();return q()===140&&!t.hasPrecedingLineBreak()?qr(z):z}case 112:return Xr(Dd)?bb():Ym();case 18:return Xr(yb)?cS():iE();case 22:return My();case 20:return wg();case 100:return bb();case 129:return Xr(hd)?sE():Tn();case 15:return U();default:return Tn()}}function Dg(z){switch(q()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!z;case 40:return!z&&Xr(L2);case 20:return!z&&Xr(Tb);default:return ua()}}function Tb(){return ft(),q()===21||hb(!1)||Dg()}function uS(){const z=Z();let Ee=Eb();for(;!t.hasPrecedingLineBreak();)switch(q()){case 53:ft(),Ee=rn(h.createJSDocNonNullableType(Ee,!0),z);break;case 57:if(Xr(Dt))return Ee;ft(),Ee=rn(h.createJSDocNullableType(Ee,!0),z);break;case 22:if(wn(22),Dg()){const $e=vc();wn(23),Ee=rn(h.createIndexedAccessTypeNode(Ee,$e),z)}else wn(23),Ee=rn(h.createArrayTypeNode(Ee),z);break;default:return Ee}return Ee}function Sb(z){const Ee=Z();return wn(z),rn(h.createTypeOperatorNode(z,oE()),Ee)}function bL(){if(La(94)){const z=pt(vc);if(Sn()||q()!==57)return z}}function I2(){const z=Z(),Ee=It(),$e=ss(bL),Tt=h.createTypeParameterDeclaration(void 0,Ee,$e);return rn(Tt,z)}function a0(){const z=Z();return wn(138),rn(h.createInferTypeNode(I2()),z)}function oE(){const z=q();switch(z){case 141:case 156:case 146:return Sb(z);case 138:return a0()}return Ce(uS)}function Ke(z){if(s0()){const Ee=np();let $e;return Lh(Ee)?$e=z?_.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:$e=z?_.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,K(Ee,$e),Ee}}function Fy(z,Ee,$e){const Tt=Z(),Gt=z===51,Cn=La(z);let Br=Cn&&Ke(Gt)||Ee();if(q()===z||Cn){const yi=[Br];for(;La(z);)yi.push(Ke(Gt)||Ee());Br=rn($e(Ks(yi,Tt)),Tt)}return Br}function lm(){return Fy(50,oE,h.createIntersectionTypeNode)}function o0(){return Fy(51,lm,h.createUnionTypeNode)}function xb(){return ft(),q()===103}function s0(){return q()===29||q()===20&&Xr(dS)?!0:q()===103||q()===126&&Xr(xb)}function Rg(){if(my(q())&&Ns(!1),ua()||q()===108)return ft(),!0;if(q()===22||q()===18){const z=st.length;return zy(),z===st.length}return!1}function dS(){return ft(),!!(q()===21||q()===25||Rg()&&(q()===58||q()===27||q()===57||q()===63||q()===21&&(ft(),q()===38)))}function ts(){const z=Z(),Ee=ua()&&ss(rp),$e=vc();return Ee?rn(h.createTypePredicateNode(void 0,Ee,$e),z):$e}function rp(){const z=It();if(q()===140&&!t.hasPrecedingLineBreak())return ft(),z}function sE(){const z=Z(),Ee=tu(129),$e=q()===108?Ji():It(),Tt=La(140)?vc():void 0;return rn(h.createTypePredicateNode(Ee,$e,Tt),z)}function vc(){if(jn&40960)return Hr(40960,vc);if(s0())return np();const z=Z(),Ee=o0();if(!Sn()&&!t.hasPrecedingLineBreak()&&La(94)){const $e=pt(vc);wn(57);const Tt=Ce(vc);wn(58);const Gt=Ce(vc);return rn(h.createConditionalTypeNode(Ee,$e,Tt,Gt),z)}return Ee}function Mh(){return La(58)?vc():void 0}function Ab(){switch(q()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Xr(rE);default:return ua()}}function ip(){if(Ab())return!0;switch(q()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return k2()?!0:ua()}}function Cb(){return q()!==18&&q()!==98&&q()!==84&&q()!==59&&ip()}function cu(){const z=Er();z&&Pn(!1);const Ee=Z();let $e=Pc(!0),Tt;for(;Tt=Xo(27);)$e=l0($e,Tt,Pc(!0),Ee);return z&&Pn(!0),$e}function Ng(){return La(63)?Pc(!0):void 0}function Pc(z){if(fS())return Wi();const Ee=Qm(z)||Fh(z);if(Ee)return Ee;const $e=Z(),Tt=Ib(0);return Tt.kind===79&&q()===38?Jr($e,Tt,z,void 0):Td(Tt)&&vy($n())?l0(Tt,oc(),Pc(z),$e):_S(Tt,$e,z)}function fS(){return q()===125?Ut()?!0:Xr(f0):!1}function EL(){return ft(),!t.hasPrecedingLineBreak()&&ua()}function Wi(){const z=Z();return ft(),!t.hasPrecedingLineBreak()&&(q()===41||ip())?rn(h.createYieldExpression(Xo(41),Pc(!0)),z):rn(h.createYieldExpression(void 0,void 0),z)}function Jr(z,Ee,$e,Tt){D.assert(q()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Gt=h.createParameterDeclaration(void 0,void 0,Ee,void 0,void 0,void 0);rn(Gt,Ee.pos);const Cn=Ks([Gt],Gt.pos,Gt.end),Br=tu(38),yi=Lb(!!Tt,$e),xi=h.createArrowFunction(Tt,void 0,Cn,void 0,Br,yi);return dn(rn(xi,z))}function Qm(z){const Ee=Kd();if(Ee!==0)return Ee===1?_l(!0,!0):ss(()=>Og(z))}function Kd(){return q()===20||q()===29||q()===132?Xr(lE):q()===38?1:0}function lE(){if(q()===132&&(ft(),t.hasPrecedingLineBreak()||q()!==20&&q()!==29))return 0;const z=q(),Ee=ft();if(z===20){if(Ee===21)switch(ft()){case 38:case 58:case 18:return 1;default:return 0}if(Ee===22||Ee===18)return 2;if(Ee===25)return 1;if(my(Ee)&&Ee!==132&&Xr(fl))return ft()===128?0:1;if(!ua()&&Ee!==108)return 0;switch(ft()){case 58:return 1;case 57:return ft(),q()===58||q()===27||q()===63||q()===21?1:0;case 27:case 63:case 21:return 2}return 0}else return D.assert(z===29),!ua()&&q()!==85?0:Fe===1?Xr(()=>{La(85);const Tt=ft();if(Tt===94)switch(ft()){case 63:case 31:case 43:return!1;default:return!0}else if(Tt===27||Tt===63)return!0;return!1})?1:0:2}function Og(z){const Ee=t.getTokenPos();if(On!=null&&On.has(Ee))return;const $e=_l(!1,z);return $e||(On||(On=new Set)).add(Ee),$e}function Fh(z){if(q()===132&&Xr(Zm)===1){const Ee=Z(),$e=vE(),Tt=Ib(0);return Jr(Ee,Tt,z,$e)}}function Zm(){if(q()===132){if(ft(),t.hasPrecedingLineBreak()||q()===38)return 0;const z=Ib(0);if(!t.hasPrecedingLineBreak()&&z.kind===79&&q()===38)return 1}return 0}function _l(z,Ee){const $e=Z(),Tt=Re(),Gt=vE(),Cn=kt(Gt,jk)?2:0,Br=ep();let yi;if(wn(20)){if(z)yi=Ph(Cn,z);else{const pm=Ph(Cn,z);if(!pm)return;yi=pm}if(!wn(21)&&!z)return}else{if(!z)return;yi=Au()}const xi=q()===58,ki=tp(58,!1);if(ki&&!z&&Hn(ki))return;let Fa=ki;for(;(Fa==null?void 0:Fa.kind)===193;)Fa=Fa.type;const Is=Fa&&PC(Fa);if(!z&&q()!==38&&(Is||q()!==18))return;const Io=q(),rs=tu(38),Od=Io===38||Io===18?Lb(kt(Gt,jk),Ee):It();if(!Ee&&xi&&q()!==58)return;const Pp=h.createArrowFunction(Gt,Br,yi,ki,rs,Od);return vn(rn(Pp,$e),Tt)}function Lb(z,Ee){if(q()===18)return Rd(z?2:0);if(q()!==26&&q()!==98&&q()!==84&&bS()&&!Cb())return Rd(16|(z?2:0));const $e=In;In=!1;const Tt=z?he(()=>Pc(Ee)):j(()=>Pc(Ee));return In=$e,Tt}function _S(z,Ee,$e){const Tt=Xo(57);if(!Tt)return z;let Gt;return rn(h.createConditionalExpression(z,Tt,Hr(r,()=>Pc(!1)),Gt=tu(58),p_(Gt)?Pc($e):Hl(79,!1,_._0_expected,yo(58))),Ee)}function Ib(z){const Ee=Z(),$e=Dp();return r_(z,$e,Ee)}function pS(z){return z===101||z===162}function r_(z,Ee,$e){for(;;){$n();const Tt=tO(q());if(!(q()===42?Tt>=z:Tt>z)||q()===101&&cn())break;if(q()===128||q()===150){if(t.hasPrecedingLineBreak())break;{const Cn=q();ft(),Ee=Cn===150?w2(Ee,vc()):mS(Ee,vc())}}else Ee=l0(Ee,oc(),Ib(Tt),$e)}return Ee}function k2(){return cn()&&q()===101?!1:tO(q())>0}function w2(z,Ee){return rn(h.createSatisfiesExpression(z,Ee),z.pos)}function l0(z,Ee,$e,Tt){return rn(h.createBinaryExpression(z,Ee,$e),Tt)}function mS(z,Ee){return rn(h.createAsExpression(z,Ee),z.pos)}function hS(){const z=Z();return rn(h.createPrefixUnaryExpression(q(),gt(ap)),z)}function D2(){const z=Z();return rn(h.createDeleteExpression(gt(ap)),z)}function kb(){const z=Z();return rn(h.createTypeOfExpression(gt(ap)),z)}function gS(){const z=Z();return rn(h.createVoidExpression(gt(ap)),z)}function Of(){return q()===133?ue()?!0:Xr(f0):!1}function Pg(){const z=Z();return rn(h.createAwaitExpression(gt(ap)),z)}function Dp(){if(R2()){const $e=Z(),Tt=wb();return q()===42?r_(tO(q()),Tt,$e):Tt}const z=q(),Ee=ap();if(q()===42){const $e=Jo(Me,Ee.pos),{end:Tt}=Ee;Ee.kind===213?it($e,Tt,_.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):it($e,Tt,_.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,yo(z))}return Ee}function ap(){switch(q()){case 39:case 40:case 54:case 53:return hS();case 89:return D2();case 112:return kb();case 114:return gS();case 29:return Fe===1?Mg(!0):O2();case 133:if(Of())return Pg();default:return wb()}}function R2(){switch(q()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Fe!==1)return!1;default:return!0}}function wb(){if(q()===45||q()===46){const Ee=Z();return rn(h.createPrefixUnaryExpression(q(),gt(cm)),Ee)}else if(Fe===1&&q()===29&&Xr(Wl))return Mg(!0);const z=cm();if(D.assert(Td(z)),(q()===45||q()===46)&&!t.hasPrecedingLineBreak()){const Ee=q();return ft(),rn(h.createPostfixUnaryExpression(z,Ee),z.pos)}return z}function cm(){const z=Z();let Ee;return q()===100?Xr(n0)?(Oe|=2097152,Ee=oc()):Xr(C2)?(ft(),ft(),Ee=rn(h.createMetaProperty(100,Ht()),z),Oe|=4194304):Ee=yS():Ee=q()===106?md():yS(),ir(z,Ee)}function yS(){const z=Z(),Ee=C_();return Pf(z,Ee,!0)}function md(){const z=Z();let Ee=oc();if(q()===29){const $e=Z(),Tt=ss(Uy);Tt!==void 0&&(it($e,Z(),_.super_may_not_use_type_arguments),c0()||(Ee=h.createExpressionWithTypeArguments(Ee,Tt)))}return q()===20||q()===24||q()===22?Ee:(tu(24,_.super_must_be_followed_by_an_argument_list_or_member_access),rn(te(Ee,pf(!0,!0)),z))}function Mg(z,Ee,$e){const Tt=Z(),Gt=vS(z);let Cn;if(Gt.kind===283){let Br=Fg(Gt),yi;const xi=Br[Br.length-1];if((xi==null?void 0:xi.kind)===281&&!lb(xi.openingElement.tagName,xi.closingElement.tagName)&&lb(Gt.tagName,xi.closingElement.tagName)){const ki=xi.children.end,Fa=rn(h.createJsxElement(xi.openingElement,xi.children,rn(h.createJsxClosingElement(rn(O(""),ki,ki)),ki,ki)),xi.openingElement.pos,ki);Br=Ks([...Br.slice(0,Br.length-1),Fa],Br.pos,ki),yi=xi.closingElement}else yi=Db(Gt,z),lb(Gt.tagName,yi.tagName)||($e&&wh($e)&&lb(yi.tagName,$e.tagName)?K(Gt.tagName,_.JSX_element_0_has_no_corresponding_closing_tag,QI(Me,Gt.tagName)):K(yi.tagName,_.Expected_corresponding_JSX_closing_tag_for_0,QI(Me,Gt.tagName)));Cn=rn(h.createJsxElement(Gt,Br,yi),Tt)}else Gt.kind===286?Cn=rn(h.createJsxFragment(Gt,Fg(Gt),Rb(z)),Tt):(D.assert(Gt.kind===282),Cn=Gt);if(z&&q()===29){const Br=typeof Ee>"u"?Cn.pos:Ee,yi=ss(()=>Mg(!0,Br));if(yi){const xi=Hl(27,!1);return Nk(xi,yi.pos,0),it(Jo(Me,Br),yi.end,_.JSX_expressions_must_have_one_parent_element),rn(h.createBinaryExpression(Cn,xi,yi),Tt)}}return Cn}function um(){const z=Z(),Ee=h.createJsxText(t.getTokenValue(),jt===12);return jt=t.scanJsxToken(),rn(Ee,z)}function dm(z,Ee){switch(Ee){case 1:if(Jx(z))K(z,_.JSX_fragment_has_no_corresponding_closing_tag);else{const $e=z.tagName,Tt=Jo(Me,$e.pos);it(Tt,$e.end,_.JSX_element_0_has_no_corresponding_closing_tag,QI(Me,z.tagName))}return;case 30:case 7:return;case 11:case 12:return um();case 18:return uE(!1);case 29:return Mg(!1,void 0,z);default:return D.assertNever(Ee)}}function Fg(z){const Ee=[],$e=Z(),Tt=Qt;for(Qt|=16384;;){const Gt=dm(z,jt=t.reScanJsxToken());if(!Gt||(Ee.push(Gt),wh(z)&&(Gt==null?void 0:Gt.kind)===281&&!lb(Gt.openingElement.tagName,Gt.closingElement.tagName)&&lb(z.tagName,Gt.closingElement.tagName)))break}return Qt=Tt,Ks(Ee,$e)}function cE(){const z=Z();return rn(h.createJsxAttributes(oe(13,Rs)),z)}function vS(z){const Ee=Z();if(wn(29),q()===31)return io(),rn(h.createJsxOpeningFragment(),Ee);const $e=By(),Tt=jn&262144?void 0:Yd(),Gt=cE();let Cn;return q()===31?(io(),Cn=h.createJsxOpeningElement($e,Tt,Gt)):(wn(43),wn(31,void 0,!1)&&(z?ft():io()),Cn=h.createJsxSelfClosingElement($e,Tt,Gt)),rn(Cn,Ee)}function By(){const z=Z();To();let Ee=q()===108?oc():Ht();for(;La(24);)Ee=rn(te(Ee,pf(!0,!1)),z);return Ee}function uE(z){const Ee=Z();if(!wn(18))return;let $e,Tt;return q()!==19&&($e=Xo(25),Tt=cu()),z?wn(19):wn(19,void 0,!1)&&io(),rn(h.createJsxExpression($e,Tt),Ee)}function Rs(){if(q()===18)return N2();To();const z=Z();return rn(h.createJsxAttribute(Ht(),Gy()),z)}function Gy(){if(q()===63){if(ca()===10)return Ia();if(q()===18)return uE(!0);if(q()===29)return Mg(!0);mt(_.or_JSX_element_expected)}}function N2(){const z=Z();wn(18),wn(25);const Ee=cu();return wn(19),rn(h.createJsxSpreadAttribute(Ee),z)}function Db(z,Ee){const $e=Z();wn(30);const Tt=By();return wn(31,void 0,!1)&&(Ee||!lb(z.tagName,Tt)?ft():io()),rn(h.createJsxClosingElement(Tt),$e)}function Rb(z){const Ee=Z();return wn(30),wn(31,_.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(z?ft():io()),rn(h.createJsxJsxClosingFragment(),Ee)}function O2(){D.assert(Fe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const z=Z();wn(29);const Ee=vc();wn(31);const $e=ap();return rn(h.createTypeAssertion(Ee,$e),z)}function TL(){return ft(),Qu(q())||q()===22||c0()}function P2(){return q()===28&&Xr(TL)}function pr(z){if(z.flags&32)return!0;if(jx(z)){let Ee=z.expression;for(;jx(Ee)&&!(Ee.flags&32);)Ee=Ee.expression;if(Ee.flags&32){for(;jx(z);)z.flags|=32,z=z.expression;return!0}}return!1}function Rl(z,Ee,$e){const Tt=pf(!0,!0),Gt=$e||pr(Ee),Cn=Gt?X(Ee,$e,Tt):te(Ee,Tt);if(Gt&&Ni(Cn.name)&&K(Cn.name,_.An_optional_chain_cannot_contain_private_identifiers),xy(Ee)&&Ee.typeArguments){const Br=Ee.typeArguments.pos-1,yi=Jo(Me,Ee.typeArguments.end)+1;it(Br,yi,_.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return rn(Cn,z)}function da(z,Ee,$e){let Tt;if(q()===23)Tt=Hl(79,!0,_.An_element_access_expression_should_take_an_argument);else{const Cn=yt(cu);Xf(Cn)&&(Cn.text=xu(Cn.text)),Tt=Cn}wn(23);const Gt=$e||pr(Ee)?P(Ee,$e,Tt):Y(Ee,Tt);return rn(Gt,z)}function Pf(z,Ee,$e){for(;;){let Tt,Gt=!1;if($e&&P2()?(Tt=tu(28),Gt=Qu(q())):Gt=La(24),Gt){Ee=Rl(z,Ee,Tt);continue}if((Tt||!Er())&&La(22)){Ee=da(z,Ee,Tt);continue}if(c0()){Ee=!Tt&&Ee.kind===230?eh(z,Ee.expression,Tt,Ee.typeArguments):eh(z,Ee,Tt,void 0);continue}if(!Tt){if(q()===53&&!t.hasPrecedingLineBreak()){ft(),Ee=rn(h.createNonNullExpression(Ee),z);continue}const Cn=ss(Uy);if(Cn){Ee=rn(h.createExpressionWithTypeArguments(Ee,Cn),z);continue}}return Ee}}function c0(){return q()===14||q()===15}function eh(z,Ee,$e,Tt){const Gt=h.createTaggedTemplateExpression(Ee,Tt,q()===14?(Ci(),Ia()):kp(!0));return($e||Ee.flags&32)&&(Gt.flags|=32),Gt.questionDotToken=$e,rn(Gt,z)}function ir(z,Ee){for(;;){Ee=Pf(z,Ee,!0);let $e;const Tt=Xo(28);if(Tt&&($e=ss(Uy),c0())){Ee=eh(z,Ee,Tt,$e);continue}if($e||q()===20){!Tt&&Ee.kind===230&&($e=Ee.typeArguments,Ee=Ee.expression);const Gt=M2(),Cn=Tt||pr(Ee)?re(Ee,Tt,$e,Gt):de(Ee,$e,Gt);Ee=rn(Cn,z);continue}if(Tt){const Gt=Hl(79,!1,_.Identifier_expected);Ee=rn(X(Ee,Tt,Gt),z)}break}return Ee}function M2(){wn(20);const z=tc(11,op);return wn(21),z}function Uy(){if(jn&262144||ji()!==29)return;ft();const z=tc(20,vc);if($n()===31)return ft(),z&&Ic()?z:void 0}function Ic(){switch(q()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return t.hasPrecedingLineBreak()||k2()||!ip()}function C_(){switch(q()){case 8:case 9:case 10:case 14:return Ia();case 108:case 106:case 104:case 110:case 95:return oc();case 20:return Rp();case 22:return jy();case 18:return nc();case 132:if(!Xr(Mb))break;return Bg();case 59:return Hg();case 84:return h0();case 98:return Bg();case 103:return L_();case 43:case 68:if(oi()===13)return Ia();break;case 15:return kp(!1);case 80:return Pr()}return It(_.Expression_expected)}function Rp(){const z=Z(),Ee=Re();wn(20);const $e=yt(cu);return wn(21),vn(rn(ae($e),z),Ee)}function Vy(){const z=Z();wn(25);const Ee=Pc(!0);return rn(h.createSpreadElement(Ee),z)}function dE(){return q()===25?Vy():q()===27?rn(h.createOmittedExpression(),Z()):Pc(!0)}function op(){return Hr(r,dE)}function jy(){const z=Z(),Ee=t.getTokenPos(),$e=wn(22),Tt=t.hasPrecedingLineBreak(),Gt=tc(15,dE);return Co(22,23,$e,Ee),rn(V(Gt,Tt),z)}function Yl(){const z=Z(),Ee=Re();if(Xo(25)){const Fa=Pc(!0);return vn(rn(h.createSpreadAssignment(Fa),z),Ee)}const $e=Ns(!0);if(Ta(137))return rh(z,Ee,$e,174,0);if(Ta(151))return rh(z,Ee,$e,175,0);const Tt=Xo(41),Gt=ua(),Cn=mn(),Br=Xo(57),yi=Xo(53);if(Tt||q()===20||q()===29)return TS(z,Ee,$e,Tt,Cn,Br,yi);let xi;if(Gt&&q()!==58){const Fa=Xo(63),Is=Fa?yt(()=>Pc(!0)):void 0;xi=h.createShorthandPropertyAssignment(Cn,Is),xi.equalsToken=Fa}else{wn(58);const Fa=yt(()=>Pc(!0));xi=h.createPropertyAssignment(Cn,Fa)}return xi.modifiers=$e,xi.questionToken=Br,xi.exclamationToken=yi,vn(rn(xi,z),Ee)}function nc(){const z=Z(),Ee=t.getTokenPos(),$e=wn(18),Tt=t.hasPrecedingLineBreak(),Gt=tc(12,Yl,!0);return Co(18,19,$e,Ee),rn(H(Gt,Tt),z)}function Bg(){const z=Er();Pn(!1);const Ee=Z(),$e=Re(),Tt=Ns(!1);wn(98);const Gt=Xo(41),Cn=Gt?1:0,Br=kt(Tt,jk)?2:0,yi=Cn&&Br?We(uu):Cn?pe(uu):Br?he(uu):uu(),xi=ep(),ki=wp(Cn|Br),Fa=tp(58,!1),Is=Rd(Cn|Br);Pn(z);const Io=h.createFunctionExpression(Tt,Gt,yi,xi,ki,Fa,Is);return vn(rn(Io,Ee),$e)}function uu(){return _i()?fe():void 0}function L_(){const z=Z();if(wn(103),La(24)){const Cn=Ht();return rn(h.createMetaProperty(103,Cn),z)}const Ee=Z();let $e=Pf(Ee,C_(),!1),Tt;$e.kind===230&&(Tt=$e.typeArguments,$e=$e.expression),q()===28&&mt(_.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,QI(Me,$e));const Gt=q()===20?M2():void 0;return rn(ye($e,Tt,Gt),z)}function th(z,Ee){const $e=Z(),Tt=Re(),Gt=t.getTokenPos(),Cn=wn(18,Ee);if(Cn||z){const Br=t.hasPrecedingLineBreak(),yi=oe(1,Mf);Co(18,19,Cn,Gt);const xi=vn(rn(W(yi,Br),$e),Tt);return q()===63&&(mt(_.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),ft()),xi}else{const Br=Au();return vn(rn(W(Br,void 0),$e),Tt)}}function Rd(z,Ee){const $e=Ut();an(!!(z&1));const Tt=ue();Ar(!!(z&2));const Gt=In;In=!1;const Cn=Er();Cn&&Pn(!1);const Br=th(!!(z&16),Ee);return Cn&&Pn(!0),In=Gt,an($e),Ar(Tt),Br}function fE(){const z=Z(),Ee=Re();return wn(26),vn(rn(h.createEmptyStatement(),z),Ee)}function Nb(){const z=Z(),Ee=Re();wn(99);const $e=t.getTokenPos(),Tt=wn(20),Gt=yt(cu);Co(20,21,Tt,$e);const Cn=Mf(),Br=La(91)?Mf():void 0;return vn(rn(ve(Gt,Cn,Br),z),Ee)}function Ob(){const z=Z(),Ee=Re();wn(90);const $e=Mf();wn(115);const Tt=t.getTokenPos(),Gt=wn(20),Cn=yt(cu);return Co(20,21,Gt,Tt),La(26),vn(rn(h.createDoStatement($e,Cn),z),Ee)}function Np(){const z=Z(),Ee=Re();wn(115);const $e=t.getTokenPos(),Tt=wn(20),Gt=yt(cu);Co(20,21,Tt,$e);const Cn=Mf();return vn(rn(Se(Gt,Cn),z),Ee)}function Bh(){const z=Z(),Ee=Re();wn(97);const $e=Xo(133);wn(20);let Tt;q()!==26&&(q()===113||q()===119||q()===85?Tt=fm(!0):Tt=Nt(cu));let Gt;if($e?wn(162):La(162)){const Cn=yt(()=>Pc(!0));wn(21),Gt=Qe($e,Tt,Cn,Mf())}else if(La(101)){const Cn=yt(cu);wn(21),Gt=h.createForInStatement(Tt,Cn,Mf())}else{wn(26);const Cn=q()!==26&&q()!==21?yt(cu):void 0;wn(26);const Br=q()!==21?yt(cu):void 0;wn(21),Gt=ee(Tt,Cn,Br,Mf())}return vn(rn(Gt,z),Ee)}function _E(z){const Ee=Z(),$e=Re();wn(z===249?81:86);const Tt=Ds()?void 0:It();el();const Gt=z===249?h.createBreakStatement(Tt):h.createContinueStatement(Tt);return vn(rn(Gt,Ee),$e)}function Hy(){const z=Z(),Ee=Re();wn(105);const $e=Ds()?void 0:yt(cu);return el(),vn(rn(h.createReturnStatement($e),z),Ee)}function Nl(){const z=Z(),Ee=Re();wn(116);const $e=t.getTokenPos(),Tt=wn(20),Gt=yt(cu);Co(20,21,Tt,$e);const Cn=we(33554432,Mf);return vn(rn(h.createWithStatement(Gt,Cn),z),Ee)}function Gg(){const z=Z(),Ee=Re();wn(82);const $e=yt(cu);wn(58);const Tt=oe(3,Mf);return vn(rn(h.createCaseClause($e,Tt),z),Ee)}function Gh(){const z=Z();wn(88),wn(58);const Ee=oe(3,Mf);return rn(h.createDefaultClause(Ee),z)}function u0(){return q()===82?Gg():Gh()}function d0(){const z=Z();wn(18);const Ee=oe(2,u0);return wn(19),rn(h.createCaseBlock(Ee),z)}function du(){const z=Z(),Ee=Re();wn(107),wn(20);const $e=yt(cu);wn(21);const Tt=d0();return vn(rn(h.createSwitchStatement($e,Tt),z),Ee)}function Uh(){const z=Z(),Ee=Re();wn(109);let $e=t.hasPrecedingLineBreak()?void 0:yt(cu);return $e===void 0&&(sn++,$e=rn(O(""),Z())),hl()||ec($e),vn(rn(h.createThrowStatement($e),z),Ee)}function bc(){const z=Z(),Ee=Re();wn(111);const $e=th(!1),Tt=q()===83?pE():void 0;let Gt;return(!Tt||q()===96)&&(wn(96,_.catch_or_finally_expected),Gt=th(!1)),vn(rn(h.createTryStatement($e,Tt,Gt),z),Ee)}function pE(){const z=Z();wn(83);let Ee;La(20)?(Ee=qy(),wn(21)):Ee=void 0;const $e=th(!1);return rn(h.createCatchClause(Ee,$e),z)}function Vh(){const z=Z(),Ee=Re();return wn(87),el(),vn(rn(h.createDebuggerStatement(),z),Ee)}function Pb(){const z=Z();let Ee=Re(),$e;const Tt=q()===20,Gt=yt(cu);return He(Gt)&&La(58)?$e=h.createLabeledStatement(Gt,Mf()):(hl()||ec(Gt),$e=me(Gt),Tt&&(Ee=!1)),vn(rn($e,z),Ee)}function hd(){return ft(),Qu(q())&&!t.hasPrecedingLineBreak()}function nh(){return ft(),q()===84&&!t.hasPrecedingLineBreak()}function Mb(){return ft(),q()===98&&!t.hasPrecedingLineBreak()}function f0(){return ft(),(Qu(q())||q()===8||q()===9||q()===10)&&!t.hasPrecedingLineBreak()}function mE(){for(;;)switch(q()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return EL();case 142:case 143:return F2();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(ft(),t.hasPrecedingLineBreak())return!1;continue;case 159:return ft(),q()===18||q()===79||q()===93;case 100:return ft(),q()===10||q()===41||q()===18||Qu(q());case 93:let z=ft();if(z===154&&(z=Xr(ft)),z===63||z===41||z===18||z===88||z===128||z===59)return!0;continue;case 124:ft();continue;default:return!1}}function Wy(){return Xr(mE)}function bS(){switch(q()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Wy()||Xr(rE);case 85:case 93:return Wy();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return Wy()||!Xr(hd);default:return ip()}}function _0(){return ft(),_i()||q()===18||q()===22}function Ug(){return Xr(_0)}function Mf(){switch(q()){case 26:return fE();case 18:return th(!1);case 113:return Vg(Z(),Re(),void 0);case 119:if(Ug())return Vg(Z(),Re(),void 0);break;case 98:return m0(Z(),Re(),void 0);case 84:return SS(Z(),Re(),void 0);case 99:return Nb();case 90:return Ob();case 115:return Np();case 97:return Bh();case 86:return _E(248);case 81:return _E(249);case 105:return Hy();case 116:return Nl();case 107:return du();case 109:return Uh();case 111:case 83:case 96:return bc();case 87:return Vh();case 59:return mf();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Wy())return mf();break}return Pb()}function hE(z){return z.kind===136}function mf(){const z=Z(),Ee=Re(),$e=Ns(!0);if(kt($e,hE)){const Gt=jh(z);if(Gt)return Gt;for(const Cn of $e)Cn.flags|=16777216;return we(16777216,()=>p0(z,Ee,$e))}else return p0(z,Ee,$e)}function jh(z){return we(16777216,()=>{const Ee=Mt(Qt,z);if(Ee)return Pt(Ee)})}function p0(z,Ee,$e){switch(q()){case 113:case 119:case 85:return Vg(z,Ee,$e);case 98:return m0(z,Ee,$e);case 84:return SS(z,Ee,$e);case 118:return Wg(z,Ee,$e);case 154:return U2(z,Ee,$e);case 92:return S(z,Ee,$e);case 159:case 142:case 143:return Cr(z,Ee,$e);case 100:return $d(z,Ee,$e);case 93:switch(ft(),q()){case 88:case 63:return Ss(z,Ee,$e);case 128:return nu(z,Ee,$e);default:return kP(z,Ee,$e)}default:if($e){const Tt=Hl(279,!0,_.Declaration_expected);return Rk(Tt,z),Tt.modifiers=$e,Tt}return}}function F2(){return ft(),!t.hasPrecedingLineBreak()&&(ua()||q()===10)}function as(z,Ee){if(q()!==18){if(z&4){t0();return}if(Ds()){el();return}}return Rd(z,Ee)}function Ir(){const z=Z();if(q()===27)return rn(h.createOmittedExpression(),z);const Ee=Xo(25),$e=zy(),Tt=Ng();return rn(h.createBindingElement(Ee,void 0,$e,Tt),z)}function Xd(){const z=Z(),Ee=Xo(25),$e=_i();let Tt=mn(),Gt;$e&&q()!==58?(Gt=Tt,Tt=void 0):(wn(58),Gt=zy());const Cn=Ng();return rn(h.createBindingElement(Ee,Tt,Gt,Cn),z)}function gd(){const z=Z();wn(18);const Ee=tc(9,Xd);return wn(19),rn(h.createObjectBindingPattern(Ee),z)}function ES(){const z=Z();wn(22);const Ee=tc(10,Ir);return wn(23),rn(h.createArrayBindingPattern(Ee),z)}function gE(){return q()===18||q()===22||q()===80||_i()}function zy(z){return q()===22?ES():q()===18?gd():fe(z)}function B2(){return qy(!0)}function qy(z){const Ee=Z(),$e=Re(),Tt=zy(_.Private_identifiers_are_not_allowed_in_variable_declarations);let Gt;z&&Tt.kind===79&&q()===53&&!t.hasPrecedingLineBreak()&&(Gt=oc());const Cn=Mh(),Br=pS(q())?void 0:Ng(),yi=je(Tt,Gt,Cn,Br);return vn(rn(yi,Ee),$e)}function fm(z){const Ee=Z();let $e=0;switch(q()){case 113:break;case 119:$e|=1;break;case 85:$e|=2;break;default:D.fail()}ft();let Tt;if(q()===162&&Xr(Op))Tt=Au();else{const Gt=cn();Rn(z),Tt=tc(8,z?qy:B2),Rn(Gt)}return rn(Ge(Tt,$e),Ee)}function Op(){return fl()&&ft()===21}function Vg(z,Ee,$e){const Tt=fm(!1);el();const Gt=ce($e,Tt);return vn(rn(Gt,z),Ee)}function m0(z,Ee,$e){const Tt=ue(),Gt=Gm($e);wn(98);const Cn=Xo(41),Br=Gt&1024?uu():fe(),yi=Cn?1:0,xi=Gt&512?2:0,ki=ep();Gt&1&&Ar(!0);const Fa=wp(yi|xi),Is=tp(58,!1),Io=as(yi|xi,_.or_expected);Ar(Tt);const rs=h.createFunctionDeclaration($e,Cn,Br,ki,Fa,Is,Io);return vn(rn(rs,z),Ee)}function Hh(){if(q()===135)return wn(135);if(q()===10&&Xr(ft)===20)return ss(()=>{const z=Ia();return z.text==="constructor"?z:void 0})}function _m(z,Ee,$e){return ss(()=>{if(Hh()){const Tt=ep(),Gt=wp(0),Cn=tp(58,!1),Br=as(0,_.or_expected),yi=h.createConstructorDeclaration($e,Gt,Br);return yi.typeParameters=Tt,yi.type=Cn,vn(rn(yi,z),Ee)}})}function TS(z,Ee,$e,Tt,Gt,Cn,Br,yi){const xi=Tt?1:0,ki=kt($e,jk)?2:0,Fa=ep(),Is=wp(xi|ki),Io=tp(58,!1),rs=as(xi|ki,yi),Od=h.createMethodDeclaration($e,Tt,Gt,Cn,Fa,Is,Io,rs);return Od.exclamationToken=Br,vn(rn(Od,z),Ee)}function $l(z,Ee,$e,Tt,Gt){const Cn=!Gt&&!t.hasPrecedingLineBreak()?Xo(53):void 0,Br=Mh(),yi=Hr(45056,Ng);Xl(Tt,Br,yi);const xi=h.createPropertyDeclaration($e,Tt,Gt||Cn,Br,yi);return vn(rn(xi,z),Ee)}function hf(z,Ee,$e){const Tt=Xo(41),Gt=mn(),Cn=Xo(57);return Tt||q()===20||q()===29?TS(z,Ee,$e,Tt,Gt,Cn,void 0,_.or_expected):$l(z,Ee,$e,Gt,Cn)}function rh(z,Ee,$e,Tt,Gt){const Cn=mn(),Br=ep(),yi=wp(0),xi=tp(58,!1),ki=as(Gt),Fa=Tt===174?h.createGetAccessorDeclaration($e,Cn,yi,xi,ki):h.createSetAccessorDeclaration($e,Cn,yi,ki);return Fa.typeParameters=Br,e_(Fa)&&(Fa.type=xi),vn(rn(Fa,z),Ee)}function Nd(){let z;if(q()===59)return!0;for(;my(q());){if(z=q(),oz(z))return!0;ft()}if(q()===41||(Q()&&(z=q(),ft()),q()===22))return!0;if(z!==void 0){if(!Ad(z)||z===151||z===137)return!0;switch(q()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Ds()}}return!1}function yE(z,Ee,$e){tu(124);const Tt=Jy(),Gt=vn(rn(h.createClassStaticBlockDeclaration(Tt),z),Ee);return Gt.modifiers=$e,Gt}function Jy(){const z=Ut(),Ee=ue();an(!1),Ar(!0);const $e=th(!1);return an(z),Ar(Ee),$e}function jg(){if(ue()&&q()===133){const z=Z(),Ee=It(_.Expression_expected);ft();const $e=Pf(z,Ee,!0);return ir(z,$e)}return cm()}function G2(){const z=Z();if(!La(59))return;const Ee=ie(jg);return rn(h.createDecorator(Ee),z)}function Ff(z,Ee,$e){const Tt=Z(),Gt=q();if(q()===85&&Ee){if(!ss(ls))return}else{if($e&&q()===124&&Xr(Vi))return;if(z&&q()===124)return;if(!dl())return}return rn(G(Gt),Tt)}function Ns(z,Ee,$e){const Tt=Z();let Gt,Cn,Br,yi=!1,xi=!1,ki=!1;if(z&&q()===59)for(;Cn=G2();)Gt=Fn(Gt,Cn);for(;Br=Ff(yi,Ee,$e);)Br.kind===124&&(yi=!0),Gt=Fn(Gt,Br),xi=!0;if(xi&&z&&q()===59)for(;Cn=G2();)Gt=Fn(Gt,Cn),ki=!0;if(ki)for(;Br=Ff(yi,Ee,$e);)Br.kind===124&&(yi=!0),Gt=Fn(Gt,Br);return Gt&&Ks(Gt,Tt)}function vE(){let z;if(q()===132){const Ee=Z();ft();const $e=rn(G(132),Ee);z=Ks([$e],Ee)}return z}function bE(){const z=Z();if(q()===26)return ft(),rn(h.createSemicolonClassElement(),z);const Ee=Re(),$e=Ns(!0,!0,!0);if(q()===124&&Xr(Vi))return yE(z,Ee,$e);if(Ta(137))return rh(z,Ee,$e,174,0);if(Ta(151))return rh(z,Ee,$e,175,0);if(q()===135||q()===10){const Tt=_m(z,Ee,$e);if(Tt)return Tt}if(gb())return lS(z,Ee,$e);if(Qu(q())||q()===10||q()===8||q()===41||q()===22)if(kt($e,hE)){for(const Gt of $e)Gt.flags|=16777216;return we(16777216,()=>hf(z,Ee,$e))}else return hf(z,Ee,$e);if($e){const Tt=Hl(79,!0,_.Declaration_expected);return $l(z,Ee,$e,Tt,void 0)}return D.fail("Should not have attempted to parse class member declaration.")}function Hg(){const z=Z(),Ee=Re(),$e=Ns(!0);if(q()===84)return EE(z,Ee,$e,228);const Tt=Hl(279,!0,_.Expression_expected);return Rk(Tt,z),Tt.modifiers=$e,Tt}function h0(){return EE(Z(),Re(),void 0,228)}function SS(z,Ee,$e){return EE(z,Ee,$e,260)}function EE(z,Ee,$e,Tt){const Gt=ue();wn(84);const Cn=TE(),Br=ep();kt($e,i5)&&Ar(!0);const yi=xE();let xi;wn(18)?(xi=SL(),wn(19)):xi=Au(),Ar(Gt);const ki=Tt===260?h.createClassDeclaration($e,Cn,Br,yi,xi):h.createClassExpression($e,Cn,Br,yi,xi);return vn(rn(ki,z),Ee)}function TE(){return _i()&&!SE()?zu(_i()):void 0}function SE(){return q()===117&&Xr(qd)}function xE(){if(Wh())return oe(22,AE)}function AE(){const z=Z(),Ee=q();D.assert(Ee===94||Ee===117),ft();const $e=tc(7,Ky);return rn(h.createHeritageClause(Ee,$e),z)}function Ky(){const z=Z(),Ee=cm();if(Ee.kind===230)return Ee;const $e=Yd();return rn(h.createExpressionWithTypeArguments(Ee,$e),z)}function Yd(){return q()===29?x_(20,vc,29,31):void 0}function Wh(){return q()===94||q()===117}function SL(){return oe(5,bE)}function Wg(z,Ee,$e){wn(118);const Tt=It(),Gt=ep(),Cn=xE(),Br=r0(),yi=h.createInterfaceDeclaration($e,Tt,Gt,Cn,Br);return vn(rn(yi,z),Ee)}function U2(z,Ee,$e){wn(154);const Tt=It(),Gt=ep();wn(63);const Cn=q()===139&&ss(kd)||vc();el();const Br=h.createTypeAliasDeclaration($e,Tt,Gt,Cn);return vn(rn(Br,z),Ee)}function V2(){const z=Z(),Ee=Re(),$e=mn(),Tt=yt(Ng);return vn(rn(h.createEnumMember($e,Tt),z),Ee)}function S(z,Ee,$e){wn(92);const Tt=It();let Gt;wn(18)?(Gt=Ze(()=>tc(6,V2)),wn(19)):Gt=Au();const Cn=h.createEnumDeclaration($e,Tt,Gt);return vn(rn(Cn,z),Ee)}function le(){const z=Z();let Ee;return wn(18)?(Ee=oe(1,Mf),wn(19)):Ee=Au(),rn(h.createModuleBlock(Ee),z)}function ke(z,Ee,$e,Tt){const Gt=Tt&16,Cn=It(),Br=La(24)?ke(Z(),!1,void 0,4|Gt):le(),yi=h.createModuleDeclaration($e,Cn,Br,Tt);return vn(rn(yi,z),Ee)}function on(z,Ee,$e){let Tt=0,Gt;q()===159?(Gt=It(),Tt|=1024):(Gt=Ia(),Gt.text=xu(Gt.text));let Cn;q()===18?Cn=le():el();const Br=h.createModuleDeclaration($e,Gt,Cn,Tt);return vn(rn(Br,z),Ee)}function Cr(z,Ee,$e){let Tt=0;if(q()===159)return on(z,Ee,$e);if(La(143))Tt|=16;else if(wn(142),q()===10)return on(z,Ee,$e);return ke(z,Ee,$e,Tt)}function Si(){return q()===147&&Xr(li)}function li(){return ft()===20}function Vi(){return ft()===18}function fo(){return ft()===43}function nu(z,Ee,$e){wn(128),wn(143);const Tt=It();el();const Gt=h.createNamespaceExportDeclaration(Tt);return Gt.modifiers=$e,vn(rn(Gt,z),Ee)}function $d(z,Ee,$e){wn(100);const Tt=t.getStartPos();let Gt;ua()&&(Gt=It());let Cn=!1;if(q()!==158&&(Gt==null?void 0:Gt.escapedText)==="type"&&(ua()||Qd())&&(Cn=!0,Gt=ua()?It():void 0),Gt&&!g0())return y0(z,Ee,$e,Gt,Cn);let Br;(Gt||q()===41||q()===18)&&(Br=Yy(Gt,Tt,Cn),wn(158));const yi=Bf();let xi;q()===130&&!t.hasPrecedingLineBreak()&&(xi=Xy()),el();const ki=h.createImportDeclaration($e,Br,yi,xi);return vn(rn(ki,z),Ee)}function gf(){const z=Z(),Ee=Qu(q())?Ht():Ot(10);wn(58);const $e=Pc(!0);return rn(h.createAssertEntry(Ee,$e),z)}function Xy(z){const Ee=Z();z||wn(130);const $e=t.getTokenPos();if(wn(18)){const Tt=t.hasPrecedingLineBreak(),Gt=tc(24,gf,!0);if(!wn(19)){const Cn=tl(st);Cn&&Cn.code===_._0_expected.code&&Ko(Cn,_C(qe,$e,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return rn(h.createAssertClause(Gt,Tt),Ee)}else{const Tt=Ks([],Z(),void 0,!1);return rn(h.createAssertClause(Tt,!1),Ee)}}function Qd(){return q()===41||q()===18}function g0(){return q()===27||q()===158}function y0(z,Ee,$e,Tt,Gt){wn(63);const Cn=I_();el();const Br=h.createImportEqualsDeclaration($e,Gt,Tt,Cn);return vn(rn(Br,z),Ee)}function Yy(z,Ee,$e){let Tt;return(!z||La(27))&&(Tt=q()===41?ih():$y(272)),rn(h.createImportClause($e,z,Tt),Ee)}function I_(){return Si()?CE():Yo(!1)}function CE(){const z=Z();wn(147),wn(20);const Ee=Bf();return wn(21),rn(h.createExternalModuleReference(Ee),z)}function Bf(){if(q()===10){const z=Ia();return z.text=xu(z.text),z}else return cu()}function ih(){const z=Z();wn(41),wn(128);const Ee=It();return rn(h.createNamespaceImport(Ee),z)}function $y(z){const Ee=Z(),$e=z===272?h.createNamedImports(x_(23,LE,18,19)):h.createNamedExports(x_(23,i_,18,19));return rn($e,Ee)}function i_(){const z=Re();return vn(v0(278),z)}function LE(){return v0(273)}function v0(z){const Ee=Z();let $e=Ad(q())&&!ua(),Tt=t.getTokenPos(),Gt=t.getTextPos(),Cn=!1,Br,yi=!0,xi=Ht();if(xi.escapedText==="type")if(q()===128){const Is=Ht();if(q()===128){const Io=Ht();Qu(q())?(Cn=!0,Br=Is,xi=Fa(),yi=!1):(Br=xi,xi=Io,yi=!1)}else Qu(q())?(Br=xi,yi=!1,xi=Fa()):(Cn=!0,xi=Is)}else Qu(q())&&(Cn=!0,xi=Fa());yi&&q()===128&&(Br=xi,wn(128),xi=Fa()),z===273&&$e&&it(Tt,Gt,_.Identifier_expected);const ki=z===273?h.createImportSpecifier(Cn,Br,xi):h.createExportSpecifier(Cn,Br,xi);return rn(ki,Ee);function Fa(){return $e=Ad(q())&&!ua(),Tt=t.getTokenPos(),Gt=t.getTextPos(),Ht()}}function fc(z){return rn(h.createNamespaceExport(Ht()),z)}function kP(z,Ee,$e){const Tt=ue();Ar(!0);let Gt,Cn,Br;const yi=La(154),xi=Z();La(41)?(La(128)&&(Gt=fc(xi)),wn(158),Cn=Bf()):(Gt=$y(276),(q()===158||q()===10&&!t.hasPrecedingLineBreak())&&(wn(158),Cn=Bf())),Cn&&q()===130&&!t.hasPrecedingLineBreak()&&(Br=Xy()),el(),Ar(Tt);const ki=h.createExportDeclaration($e,yi,Gt,Cn,Br);return vn(rn(ki,z),Ee)}function Ss(z,Ee,$e){const Tt=ue();Ar(!0);let Gt;La(63)?Gt=!0:wn(88);const Cn=Pc(!0);el(),Ar(Tt);const Br=h.createExportAssignment($e,Gt,Cn);return vn(rn(Br,z),Ee)}let ns;(z=>{z[z.SourceElements=0]="SourceElements",z[z.BlockStatements=1]="BlockStatements",z[z.SwitchClauses=2]="SwitchClauses",z[z.SwitchClauseStatements=3]="SwitchClauseStatements",z[z.TypeMembers=4]="TypeMembers",z[z.ClassMembers=5]="ClassMembers",z[z.EnumMembers=6]="EnumMembers",z[z.HeritageClauseElement=7]="HeritageClauseElement",z[z.VariableDeclarations=8]="VariableDeclarations",z[z.ObjectBindingElements=9]="ObjectBindingElements",z[z.ArrayBindingElements=10]="ArrayBindingElements",z[z.ArgumentExpressions=11]="ArgumentExpressions",z[z.ObjectLiteralMembers=12]="ObjectLiteralMembers",z[z.JsxAttributes=13]="JsxAttributes",z[z.JsxChildren=14]="JsxChildren",z[z.ArrayLiteralMembers=15]="ArrayLiteralMembers",z[z.Parameters=16]="Parameters",z[z.JSDocParameters=17]="JSDocParameters",z[z.RestProperties=18]="RestProperties",z[z.TypeParameters=19]="TypeParameters",z[z.TypeArguments=20]="TypeArguments",z[z.TupleElementTypes=21]="TupleElementTypes",z[z.HeritageClauses=22]="HeritageClauses",z[z.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",z[z.AssertEntries=24]="AssertEntries",z[z.Count=25]="Count"})(ns||(ns={}));let j2;(z=>{z[z.False=0]="False",z[z.True=1]="True",z[z.Unknown=2]="Unknown"})(j2||(j2={}));let H2;(z=>{function Ee(ki,Fa,Is){Qi("file.js",ki,99,void 0,1),t.setText(ki,Fa,Is),jt=t.scan();const Io=$e(),rs=Pi("file.js",99,1,!1,[],G(1),0,oo),Od=Cx(st,rs);return Ct&&(rs.jsDocDiagnostics=Cx(Ct,rs)),Or(),Io?{jsDocTypeExpression:Io,diagnostics:Od}:void 0}z.parseJSDocTypeExpressionForTests=Ee;function $e(ki){const Fa=Z(),Is=(ki?La:wn)(18),Io=we(8388608,sc);(!ki||Is)&&Vl(19);const rs=h.createJSDocTypeExpression(Io);return cr(rs),rn(rs,Fa)}z.parseJSDocTypeExpression=$e;function Tt(){const ki=Z(),Fa=La(18),Is=Z();let Io=Yo(!1);for(;q()===80;)mo(),_n(),Io=rn(h.createJSDocMemberName(Io,It()),Is);Fa&&Vl(19);const rs=h.createJSDocNameReference(Io);return cr(rs),rn(rs,ki)}z.parseJSDocNameReference=Tt;function Gt(ki,Fa,Is){Qi("",ki,99,void 0,1);const Io=we(8388608,()=>xi(Fa,Is)),Od=Cx(st,{languageVariant:0,text:ki});return Or(),Io?{jsDoc:Io,diagnostics:Od}:void 0}z.parseIsolatedJSDocComment=Gt;function Cn(ki,Fa,Is){const Io=jt,rs=st.length,Od=Zt,Pp=we(8388608,()=>xi(Fa,Is));return Uo(Pp,ki),jn&262144&&(Ct||(Ct=[]),Ct.push(...st)),jt=Io,st.length=rs,Zt=Od,Pp}z.parseJSDocComment=Cn;let Br;(ki=>{ki[ki.BeginningOfLine=0]="BeginningOfLine",ki[ki.SawAsterisk=1]="SawAsterisk",ki[ki.SavingComments=2]="SavingComments",ki[ki.SavingBackticks=3]="SavingBackticks"})(Br||(Br={}));let yi;(ki=>{ki[ki.Property=1]="Property",ki[ki.Parameter=2]="Parameter",ki[ki.CallbackParameter=4]="CallbackParameter"})(yi||(yi={}));function xi(ki=0,Fa){const Is=Me,Io=Fa===void 0?Is.length:ki+Fa;if(Fa=Io-ki,D.assert(ki>=0),D.assert(ki<=Io),D.assert(Io<=Is.length),!wK(Is,ki))return;let rs,Od,Pp,pm,zg,k_=[];const Qy=[];return t.scanRange(ki+3,Fa-5,()=>{let Dn=1,Kr,Ur=ki-(Is.lastIndexOf(` `,ki)+1)+4;function ii(So){Kr||(Kr=Ur),k_.push(So),Ur+=So.length}for(_n();xS(5););xS(4)&&(Dn=0,Ur=0);e:for(;;){switch(q()){case 59:Dn===0||Dn===1?(IE(k_),zg||(zg=Z()),E0(AL(Ur)),Dn=0,Kr=void 0):ii(t.getTokenText());break;case 4:k_.push(t.getTokenText()),Dn=0,Ur=0;break;case 41:const So=t.getTokenText();Dn===1||Dn===2?(Dn=2,ii(So)):(Dn=1,Ur+=So.length);break;case 5:const Po=t.getTokenText();Dn===2?k_.push(Po):Kr!==void 0&&Ur+Po.length>Kr&&k_.push(Po.slice(Kr-Ur)),Ur+=Po.length;break;case 1:break e;case 18:Dn=2;const vf=t.getStartPos(),lp=t.getTextPos()-1,zh=mD(lp);if(zh){pm||W2(k_),Qy.push(rn(h.createJSDocText(k_.join("")),pm??ki,vf)),Qy.push(zh),k_=[],pm=t.getTextPos();break}default:Dn=2,ii(t.getTokenText());break}_n()}IE(k_),Qy.length&&k_.length&&Qy.push(rn(h.createJSDocText(k_.join("")),pm??ki,zg)),Qy.length&&rs&&D.assertIsDefined(zg,"having parsed tags implies that the end of the comment span should be set");const zi=rs&&Ks(rs,Od,Pp);return rn(h.createJSDocComment(Qy.length?Ks(Qy,ki,zg):k_.length?k_.join(""):void 0,zi),ki,Io)});function W2(Dn){for(;Dn.length&&(Dn[0]===` `||Dn[0]==="\r");)Dn.shift()}function IE(Dn){for(;Dn.length&&Dn[Dn.length-1].trim()==="";)Dn.pop()}function xL(){for(;;){if(_n(),q()===1)return!0;if(!(q()===5||q()===4))return!1}}function sp(){if(!((q()===5||q()===4)&&Xr(xL)))for(;q()===5||q()===4;)_n()}function b0(){if((q()===5||q()===4)&&Xr(xL))return"";let Dn=t.hasPrecedingLineBreak(),Kr=!1,Ur="";for(;Dn&&q()===41||q()===5||q()===4;)Ur+=t.getTokenText(),q()===4?(Dn=!0,Kr=!0,Ur=""):q()===41&&(Dn=!1),_n();return Kr?Ur:""}function AL(Dn){D.assert(q()===59);const Kr=t.getTokenPos();_n();const Ur=x0(void 0),ii=b0();let zi;switch(Ur.escapedText){case"author":zi=Xt(Kr,Ur,Dn,ii);break;case"implements":zi=ea(Kr,Ur,Dn,ii);break;case"augments":case"extends":zi=$a(Kr,Ur,Dn,ii);break;case"class":case"constructor":zi=Kg(Kr,h.createJSDocClassTag,Ur,Dn,ii);break;case"public":zi=Kg(Kr,h.createJSDocPublicTag,Ur,Dn,ii);break;case"private":zi=Kg(Kr,h.createJSDocPrivateTag,Ur,Dn,ii);break;case"protected":zi=Kg(Kr,h.createJSDocProtectedTag,Ur,Dn,ii);break;case"readonly":zi=Kg(Kr,h.createJSDocReadonlyTag,Ur,Dn,ii);break;case"override":zi=Kg(Kr,h.createJSDocOverrideTag,Ur,Dn,ii);break;case"deprecated":Wt=!0,zi=Kg(Kr,h.createJSDocDeprecatedTag,Ur,Dn,ii);break;case"this":zi=Zre(Kr,Ur,Dn,ii);break;case"enum":zi=eie(Kr,Ur,Dn,ii);break;case"arg":case"argument":case"param":return yD(Kr,Ur,2,Dn);case"return":case"returns":zi=w(Kr,Ur,Dn,ii);break;case"template":zi=tv(Kr,Ur,Dn,ii);break;case"type":zi=F(Kr,Ur,Dn,ii);break;case"typedef":zi=CL(Kr,Ur,Dn,ii);break;case"callback":zi=ar(Kr,Ur,Dn,ii);break;case"overload":zi=T0(Kr,Ur,Dn,ii);break;case"satisfies":zi=yf(Kr,Ur,Dn,ii);break;case"see":zi=se(Kr,Ur,Dn,ii);break;case"exception":case"throws":zi=Je(Kr,Ur,Dn,ii);break;default:zi=El(Kr,Ur,Dn,ii);break}return zi}function Gf(Dn,Kr,Ur,ii){return ii||(Ur+=Kr-Dn),z2(Ur,ii.slice(Ur))}function z2(Dn,Kr){const Ur=Z();let ii=[];const zi=[];let So,Po=0,vf=!0,lp;function zh(qh){lp||(lp=Dn),ii.push(qh),Dn+=qh.length}Kr!==void 0&&(Kr!==""&&zh(Kr),Po=1);let ah=q();e:for(;;){switch(ah){case 4:Po=0,ii.push(t.getTokenText()),Dn=0;break;case 59:if(Po===3||Po===2&&(!vf||Xr(Zy))){ii.push(t.getTokenText());break}t.setTextPos(t.getTextPos()-1);case 1:break e;case 5:if(Po===2||Po===3)zh(t.getTokenText());else{const Fb=t.getTokenText();lp!==void 0&&Dn+Fb.length>lp&&ii.push(Fb.slice(lp-Dn)),Dn+=Fb.length}break;case 18:Po=2;const qh=t.getStartPos(),kL=t.getTextPos()-1,qu=mD(kL);qu?(zi.push(rn(h.createJSDocText(ii.join("")),So??Ur,qh)),zi.push(qu),ii=[],So=t.getTextPos()):zh(t.getTokenText());break;case 61:Po===3?Po=2:Po=3,zh(t.getTokenText());break;case 41:if(Po===0){Po=1,Dn+=1;break}default:Po!==3&&(Po=2),zh(t.getTokenText());break}vf=q()===5,ah=_n()}if(W2(ii),IE(ii),zi.length)return ii.length&&zi.push(rn(h.createJSDocText(ii.join("")),So??Ur)),Ks(zi,Ur,t.getTextPos());if(ii.length)return ii.join("")}function Zy(){const Dn=_n();return Dn===5||Dn===4}function mD(Dn){const Kr=ss(hD);if(!Kr)return;_n(),sp();const Ur=Z();let ii=Qu(q())?Yo(!0):void 0;if(ii)for(;q()===80;)mo(),_n(),ii=rn(h.createJSDocMemberName(ii,It()),Ur);const zi=[];for(;q()!==19&&q()!==4&&q()!==1;)zi.push(t.getTokenText()),_n();const So=Kr==="link"?h.createJSDocLink:Kr==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return rn(So(ii,zi.join("")),Dn,t.getTextPos())}function hD(){if(b0(),q()===18&&_n()===59&&Qu(_n())){const Dn=t.getTokenValue();if(ko(Dn))return Dn}}function ko(Dn){return Dn==="link"||Dn==="linkcode"||Dn==="linkplain"}function El(Dn,Kr,Ur,ii){return rn(h.createJSDocUnknownTag(Kr,Gf(Dn,Z(),Ur,ii)),Dn)}function E0(Dn){Dn&&(rs?rs.push(Dn):(rs=[Dn],Od=Dn.pos),Pp=Dn.end)}function ev(){return b0(),q()===18?$e():void 0}function gD(){const Dn=xS(22);Dn&&sp();const Kr=xS(61),Ur=DP();return Kr&&zd(61),Dn&&(sp(),Xo(63)&&cu(),wn(23)),{name:Ur,isBracketed:Dn}}function Pd(Dn){switch(Dn.kind){case 149:return!0;case 185:return Pd(Dn.elementType);default:return J_(Dn)&&He(Dn.typeName)&&Dn.typeName.escapedText==="Object"&&!Dn.typeArguments}}function yD(Dn,Kr,Ur,ii){let zi=ev(),So=!zi;b0();const{name:Po,isBracketed:vf}=gD(),lp=b0();So&&!Xr(hD)&&(zi=ev());const zh=Gf(Dn,Z(),ii,lp),ah=Ur!==4&&b(zi,Po,Ur,ii);ah&&(zi=ah,So=!0);const qh=Ur===1?h.createJSDocPropertyTag(Kr,Po,vf,zi,So,zh):h.createJSDocParameterTag(Kr,Po,vf,zi,So,zh);return rn(qh,Dn)}function b(Dn,Kr,Ur,ii){if(Dn&&Pd(Dn.type)){const zi=Z();let So,Po;for(;So=ss(()=>kE(Ur,ii,Kr));)(So.kind===344||So.kind===351)&&(Po=Fn(Po,So));if(Po){const vf=rn(h.createJSDocTypeLiteral(Po,Dn.type.kind===185),zi);return rn(h.createJSDocTypeExpression(vf),zi)}}}function w(Dn,Kr,Ur,ii){kt(rs,p5)&&it(Kr.pos,t.getTokenPos(),_._0_tag_already_specified,Kr.escapedText);const zi=ev();return rn(h.createJSDocReturnTag(Kr,zi,Gf(Dn,Z(),Ur,ii)),Dn)}function F(Dn,Kr,Ur,ii){kt(rs,rw)&&it(Kr.pos,t.getTokenPos(),_._0_tag_already_specified,Kr.escapedText);const zi=$e(!0),So=Ur!==void 0&&ii!==void 0?Gf(Dn,Z(),Ur,ii):void 0;return rn(h.createJSDocTypeTag(Kr,zi,So),Dn)}function se(Dn,Kr,Ur,ii){const So=q()===22||Xr(()=>_n()===59&&Qu(_n())&&ko(t.getTokenValue()))?void 0:Tt(),Po=Ur!==void 0&&ii!==void 0?Gf(Dn,Z(),Ur,ii):void 0;return rn(h.createJSDocSeeTag(Kr,So,Po),Dn)}function Je(Dn,Kr,Ur,ii){const zi=ev(),So=Gf(Dn,Z(),Ur,ii);return rn(h.createJSDocThrowsTag(Kr,zi,So),Dn)}function Xt(Dn,Kr,Ur,ii){const zi=Z(),So=Gr();let Po=t.getStartPos();const vf=Gf(Dn,Po,Ur,ii);vf||(Po=t.getStartPos());const lp=typeof vf!="string"?Ks(ba([rn(So,zi,Po)],vf),zi):So.text+vf;return rn(h.createJSDocAuthorTag(Kr,lp),Dn)}function Gr(){const Dn=[];let Kr=!1,Ur=t.getToken();for(;Ur!==1&&Ur!==4;){if(Ur===29)Kr=!0;else{if(Ur===59&&!Kr)break;if(Ur===31&&Kr){Dn.push(t.getTokenText()),t.setTextPos(t.getTokenPos()+1);break}}Dn.push(t.getTokenText()),Ur=_n()}return h.createJSDocText(Dn.join(""))}function ea(Dn,Kr,Ur,ii){const zi=qg();return rn(h.createJSDocImplementsTag(Kr,zi,Gf(Dn,Z(),Ur,ii)),Dn)}function $a(Dn,Kr,Ur,ii){const zi=qg();return rn(h.createJSDocAugmentsTag(Kr,zi,Gf(Dn,Z(),Ur,ii)),Dn)}function yf(Dn,Kr,Ur,ii){const zi=$e(!1),So=Ur!==void 0&&ii!==void 0?Gf(Dn,Z(),Ur,ii):void 0;return rn(h.createJSDocSatisfiesTag(Kr,zi,So),Dn)}function qg(){const Dn=La(18),Kr=Z(),Ur=Jg(),ii=Yd(),zi=h.createExpressionWithTypeArguments(Ur,ii),So=rn(zi,Kr);return Dn&&wn(19),So}function Jg(){const Dn=Z();let Kr=x0();for(;La(24);){const Ur=x0();Kr=rn(te(Kr,Ur),Dn)}return Kr}function Kg(Dn,Kr,Ur,ii,zi){return rn(Kr(Ur,Gf(Dn,Z(),ii,zi)),Dn)}function Zre(Dn,Kr,Ur,ii){const zi=$e(!0);return sp(),rn(h.createJSDocThisTag(Kr,zi,Gf(Dn,Z(),Ur,ii)),Dn)}function eie(Dn,Kr,Ur,ii){const zi=$e(!0);return sp(),rn(h.createJSDocEnumTag(Kr,zi,Gf(Dn,Z(),Ur,ii)),Dn)}function CL(Dn,Kr,Ur,ii){var zi;let So=ev();b0();const Po=vD();sp();let vf=z2(Ur),lp;if(!So||Pd(So.type)){let ah,qh,kL,qu=!1;for(;ah=ss(()=>q2(Ur));)if(qu=!0,ah.kind===347)if(qh){const Fb=mt(_.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Fb&&Ko(Fb,_C(qe,0,0,_.The_tag_was_first_specified_here));break}else qh=ah;else kL=Fn(kL,ah);if(qu){const Fb=So&&So.type.kind===185,bD=h.createJSDocTypeLiteral(kL,Fb);So=qh&&qh.typeExpression&&!Pd(qh.typeExpression.type)?qh.typeExpression:rn(bD,Dn),lp=So.end}}lp=lp||vf!==void 0?Z():((zi=Po??So)!=null?zi:Kr).end,vf||(vf=Gf(Dn,lp,Ur,ii));const zh=h.createJSDocTypedefTag(Kr,So,Po,vf);return rn(zh,Dn,lp)}function vD(Dn){const Kr=t.getTokenPos();if(!Qu(q()))return;const Ur=x0();if(La(24)){const ii=vD(!0),zi=h.createModuleDeclaration(void 0,Ur,ii,Dn?4:void 0);return rn(zi,Kr)}return Dn&&(Ur.flags|=2048),Ur}function tie(Dn){const Kr=Z();let Ur,ii;for(;Ur=ss(()=>kE(4,Dn));)ii=Fn(ii,Ur);return Ks(ii||[],Kr)}function LL(Dn,Kr){const Ur=tie(Kr),ii=ss(()=>{if(xS(59)){const zi=AL(Kr);if(zi&&zi.kind===345)return zi}});return rn(h.createJSDocSignature(void 0,Ur,ii),Dn)}function ar(Dn,Kr,Ur,ii){const zi=vD();sp();let So=z2(Ur);const Po=LL(Dn,Ur);So||(So=Gf(Dn,Z(),Ur,ii));const vf=So!==void 0?Z():Po.end;return rn(h.createJSDocCallbackTag(Kr,Po,zi,So),Dn,vf)}function T0(Dn,Kr,Ur,ii){sp();let zi=z2(Ur);const So=LL(Dn,Ur);zi||(zi=Gf(Dn,Z(),Ur,ii));const Po=zi!==void 0?Z():So.end;return rn(h.createJSDocOverloadTag(Kr,So,zi),Dn,Po)}function S0(Dn,Kr){for(;!He(Dn)||!He(Kr);)if(!He(Dn)&&!He(Kr)&&Dn.right.escapedText===Kr.right.escapedText)Dn=Dn.left,Kr=Kr.left;else return!1;return Dn.escapedText===Kr.escapedText}function q2(Dn){return kE(1,Dn)}function kE(Dn,Kr,Ur){let ii=!0,zi=!1;for(;;)switch(_n()){case 59:if(ii){const So=wP(Dn,Kr);return So&&(So.kind===344||So.kind===351)&&Dn!==4&&Ur&&(He(So.name)||!S0(Ur,So.name.left))?!1:So}zi=!1;break;case 4:ii=!0,zi=!1;break;case 41:zi&&(ii=!1),zi=!0;break;case 79:ii=!1;break;case 1:return!1}}function wP(Dn,Kr){D.assert(q()===59);const Ur=t.getStartPos();_n();const ii=x0();sp();let zi;switch(ii.escapedText){case"type":return Dn===1&&F(Ur,ii);case"prop":case"property":zi=1;break;case"arg":case"argument":case"param":zi=6;break;default:return!1}return Dn&zi?yD(Ur,ii,Dn,Kr):!1}function IL(){const Dn=Z(),Kr=xS(22);Kr&&sp();const Ur=x0(_.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let ii;if(Kr&&(sp(),wn(63),ii=we(8388608,sc),wn(23)),!Cl(Ur))return rn(h.createTypeParameterDeclaration(void 0,Ur,void 0,ii),Dn)}function UU(){const Dn=Z(),Kr=[];do{sp();const Ur=IL();Ur!==void 0&&Kr.push(Ur),b0()}while(xS(27));return Ks(Kr,Dn)}function tv(Dn,Kr,Ur,ii){const zi=q()===18?$e():void 0,So=UU();return rn(h.createJSDocTemplateTag(Kr,zi,So,Gf(Dn,Z(),Ur,ii)),Dn)}function xS(Dn){return q()===Dn?(_n(),!0):!1}function DP(){let Dn=x0();for(La(22)&&wn(23);La(24);){const Kr=x0();La(22)&&wn(23),Dn=A_(Dn,Kr)}return Dn}function x0(Dn){if(!Qu(q()))return Hl(79,!Dn,Dn||_.Identifier_expected);sn++;const Kr=t.getTokenPos(),Ur=t.getTextPos(),ii=q(),zi=xu(t.getTokenValue()),So=rn(O(zi,ii),Kr,Ur);return _n(),So}}})(H2=e.JSDocParser||(e.JSDocParser={}))})(Hv||(Hv={})),(e=>{function t(L,I,O,k){if(k=k||D.shouldAssert(2),h(L,I,O,k),Gue(O))return L;if(L.statements.length===0)return Hv.parseSourceFile(L.fileName,I,L.languageVersion,void 0,!0,L.scriptKind,L.setExternalModuleIndicator);const G=L;D.assert(!G.hasBeenIncrementallyParsed),G.hasBeenIncrementallyParsed=!0,Hv.fixupParentReferences(G);const V=L.text,H=E(L),te=d(L,O);h(L,I,te,k),D.assert(te.span.start<=O.span.start),D.assert(iu(te.span)===iu(O.span)),D.assert(iu(FI(te))===iu(FI(O)));const X=FI(te).length-te.span.length;f(G,te.span.start,iu(te.span),iu(FI(te)),X,V,I,k);const Y=Hv.parseSourceFile(L.fileName,I,L.languageVersion,H,!0,L.scriptKind,L.setExternalModuleIndicator);return Y.commentDirectives=r(L.commentDirectives,Y.commentDirectives,te.span.start,iu(te.span),X,V,I,k),Y.impliedNodeFormat=L.impliedNodeFormat,Y}e.updateSourceFile=t;function r(L,I,O,k,G,V,H,te){if(!L)return I;let X,Y=!1;for(const de of L){const{range:re,type:ye}=de;if(re.end<O)X=Fn(X,de);else if(re.pos>k){P();const ae={range:{pos:re.pos+G,end:re.end+G},type:ye};X=Fn(X,ae),te&&D.assert(V.substring(re.pos,re.end)===H.substring(ae.range.pos,ae.range.end))}}return P(),X;function P(){Y||(Y=!0,X?I&&X.push(...I):X=I)}}function i(L,I,O,k,G,V){I?te(L):H(L);return;function H(X){let Y="";if(V&&o(X)&&(Y=k.substring(X.pos,X.end)),X._children&&(X._children=void 0),Vm(X,X.pos+O,X.end+O),V&&o(X)&&D.assert(Y===G.substring(X.pos,X.end)),Ma(X,H,te),xf(X))for(const P of X.jsDoc)H(P);c(X,V)}function te(X){X._children=void 0,Vm(X,X.pos+O,X.end+O);for(const Y of X)H(Y)}}function o(L){switch(L.kind){case 10:case 8:case 79:return!0}return!1}function s(L,I,O,k,G){D.assert(L.end>=I,"Adjusting an element that was entirely before the change range"),D.assert(L.pos<=O,"Adjusting an element that was entirely after the change range"),D.assert(L.pos<=L.end);const V=Math.min(L.pos,k),H=L.end>=O?L.end+G:Math.min(L.end,k);D.assert(V<=H),L.parent&&(D.assertGreaterThanOrEqual(V,L.parent.pos),D.assertLessThanOrEqual(H,L.parent.end)),Vm(L,V,H)}function c(L,I){if(I){let O=L.pos;const k=G=>{D.assert(G.pos>=O),O=G.end};if(xf(L))for(const G of L.jsDoc)k(G);Ma(L,k),D.assert(O<=L.end)}}function f(L,I,O,k,G,V,H,te){X(L);return;function X(P){if(D.assert(P.pos<=P.end),P.pos>O){i(P,!1,G,V,H,te);return}const de=P.end;if(de>=I){if(P.intersectsChange=!0,P._children=void 0,s(P,I,O,k,G),Ma(P,X,Y),xf(P))for(const re of P.jsDoc)X(re);c(P,te);return}D.assert(de<I)}function Y(P){if(D.assert(P.pos<=P.end),P.pos>O){i(P,!0,G,V,H,te);return}const de=P.end;if(de>=I){P.intersectsChange=!0,P._children=void 0,s(P,I,O,k,G);for(const re of P)X(re);return}D.assert(de<I)}}function d(L,I){let k=I.span.start;for(let H=0;k>0&&H<=1;H++){const te=y(L,k);D.assert(te.pos<=k);const X=te.pos;k=Math.max(0,X-1)}const G=hc(k,iu(I.span)),V=I.newLength+(I.span.start-k);return aN(G,V)}function y(L,I){let O=L,k;if(Ma(L,V),k){const H=G(k);H.pos>O.pos&&(O=H)}return O;function G(H){for(;;){const te=Uq(H);if(te)H=te;else return H}}function V(H){if(!Cl(H))if(H.pos<=I){if(H.pos>=O.pos&&(O=H),I<H.end)return Ma(H,V),!0;D.assert(H.end<=I),k=H}else return D.assert(H.pos>I),!0}}function h(L,I,O,k){const G=L.text;if(O&&(D.assert(G.length-O.span.length+O.newLength===I.length),k||D.shouldAssert(3))){const V=G.substr(0,O.span.start),H=I.substr(0,O.span.start);D.assert(V===H);const te=G.substring(iu(O.span),G.length),X=I.substring(iu(FI(O)),I.length);D.assert(te===X)}}function E(L){let I=L.statements,O=0;D.assert(O<I.length);let k=I[O],G=-1;return{currentNode(H){return H!==G&&(k&&k.end===H&&O<I.length-1&&(O++,k=I[O]),(!k||k.pos!==H)&&V(H)),G=H,D.assert(!k||k.pos===H),k}};function V(H){I=void 0,O=-1,k=void 0,Ma(L,te,X);return;function te(Y){return H>=Y.pos&&H<Y.end?(Ma(Y,te,X),!0):!1}function X(Y){if(H>=Y.pos&&H<Y.end)for(let P=0;P<Y.length;P++){const de=Y[P];if(de){if(de.pos===H)return I=Y,O=P,k=de,!0;if(de.pos<H&&H<de.end)return Ma(de,te,X),!0}}return!1}}}e.createSyntaxCursor=E;let A;(L=>{L[L.Value=-1]="Value"})(A||(A={}))})(C5||(C5={})),L5=new Map,Jme=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Kme=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function I5(e){const t=new Map,r=new Map;return Ue(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function HC(){return xhe||(xhe=I5(bg))}function MK(e){return Xme(e,Fs)}function Xme(e,t){const r=Ro(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(_.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function k5(e,t,r){return yhe(e,c1(t||""),r)}function Yme(e,t="",r){if(t=c1(t),xa(t,"-"))return;if(e.type==="listOrElement"&&!pu(t,","))return FT(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return ia(i,o=>FT(e.element,parseInt(o),r));case"string":return ia(i,o=>FT(e.element,o||"",r));case"boolean":case"object":return D.fail(`List of ${e.element.type} is not yet supported.`);default:return ia(i,o=>k5(e.element,o,r))}}function $me(e){return e.name}function FK(e,t,r,i){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);const s=xI(e,t.optionDeclarations,$me);return s?r(t.unknownDidYouMeanDiagnostic,i||e,s.name):r(t.unknownOptionDiagnostic,i||e)}function BK(e,t,r){const i={};let o;const s=[],c=[];return f(t),{options:i,watchOptions:o,fileNames:s,errors:c};function f(y){let h=0;for(;h<y.length;){const E=y[h];if(h++,E.charCodeAt(0)===64)d(E.slice(1));else if(E.charCodeAt(0)===45){const A=E.slice(E.charCodeAt(1)===45?2:1),L=UK(e.getOptionsNameMap,A,!0);if(L)h=Qme(y,h,e,L,i,c);else{const I=UK(k8.getOptionsNameMap,A,!0);I?h=Qme(y,h,k8,I,o||(o={}),c):c.push(FK(A,e,Fs,E))}}else s.push(E)}}function d(y){const h=h8(y,r||(L=>$c.readFile(L)));if(!Ha(h)){c.push(h);return}const E=[];let A=0;for(;;){for(;A<h.length&&h.charCodeAt(A)<=32;)A++;if(A>=h.length)break;const L=A;if(h.charCodeAt(L)===34){for(A++;A<h.length&&h.charCodeAt(A)!==34;)A++;A<h.length?(E.push(h.substring(L+1,A)),A++):c.push(Fs(_.Unterminated_quoted_string_in_response_file_0,y))}else{for(;h.charCodeAt(A)>32;)A++;E.push(h.substring(L,A))}}f(E)}}function Qme(e,t,r,i,o,s){if(i.isTSConfigOnly){const c=e[t];c==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(o[i.name]=FT(i,!1,s),t++):(c==="true"&&t++,s.push(Fs(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Fs(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!xa(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Fs(r.optionTypeMismatchDiagnostic,i.name,ow(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=FT(i,parseInt(e[t]),s),t++;break;case"boolean":const c=e[t];o[i.name]=FT(i,c!=="false",s),(c==="false"||c==="true")&&t++;break;case"string":o[i.name]=FT(i,e[t]||"",s),t++;break;case"list":const f=Yme(i,e[t],s);o[i.name]=f||[],f&&t++;break;case"listOrElement":D.fail("listOrElement not supported here");break;default:o[i.name]=k5(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function v3e(e,t){return BK(I8,e,t)}function GK(e,t){return UK(HC,e,t)}function UK(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function Zme(){return Che||(Che=I5(B5))}function b3e(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=BK(Ihe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Fs(_.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Fs(_.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Fs(_.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Fs(_.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function E3e(e,...t){return Fs.apply(void 0,arguments).messageText}function p8(e,t,r,i,o,s){const c=h8(e,y=>r.readFile(y));if(!Ha(c)){r.onUnRecoverableConfigFileDiagnostic(c);return}const f=_8(e,c),d=r.getCurrentDirectory();return f.path=zs(e,d,ru(r.useCaseSensitiveFileNames)),f.resolvedPath=f.path,f.originalFileName=f.fileName,y8(f,r,Pa(hi(e),d),t,Pa(e,d),void 0,s,i,o)}function m8(e,t){const r=h8(e,t);return Ha(r)?VK(e,r):{config:{},error:r}}function VK(e,t){const r=_8(e,t);return{config:ahe(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function ehe(e,t){const r=h8(e,t);return Ha(r)?_8(e,r):{fileName:e,parseDiagnostics:[r]}}function h8(e,t){let r;try{r=t(e)}catch(i){return Fs(_.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Fs(_.Cannot_read_file_0,e):r}function w5(e){return i1(e,$me)}function the(){return khe||(khe=I5(A8))}function nhe(){return whe||(whe=w5(bg))}function rhe(){return Dhe||(Dhe=w5(A8))}function ihe(){return Rhe||(Rhe=w5(G5))}function T3e(){return uX===void 0&&(uX={name:void 0,type:"object",elementOptions:w5([{name:"compilerOptions",type:"object",elementOptions:nhe(),extraKeyDiagnostics:I8},{name:"watchOptions",type:"object",elementOptions:rhe(),extraKeyDiagnostics:k8},{name:"typeAcquisition",type:"object",elementOptions:ihe(),extraKeyDiagnostics:cX},w8,{name:"references",type:"list",element:{name:"references",type:"object"},category:_.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_.File_Management,defaultValueDescription:_.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_.File_Management,defaultValueDescription:_.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},T8])}),uX}function ahe(e,t,r,i){var o;const s=(o=e.statements[0])==null?void 0:o.expression,c=r?T3e():void 0;if(s&&s.kind!==207){if(t.push(cd(e,s,_.The_root_value_of_a_0_file_must_be_an_object,mu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Gu(s)){const f=nn(s.elements,Ls);if(f)return g8(e,f,t,!0,c,i)}return{}}return g8(e,s,t,!0,c,i)}function ohe(e,t){var r;return g8(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0,void 0)}function g8(e,t,r,i,o,s){if(!t)return i?{}:void 0;return y(t,o);function c(E){return o&&o.elementOptions===E}function f(E,A,L,I){const O=i?{}:void 0;for(const k of E.properties){if(k.kind!==299){r.push(cd(e,k,_.Property_assignment_expected));continue}k.questionToken&&r.push(cd(e,k.questionToken,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),h(k.name)||r.push(cd(e,k.name,_.String_literal_with_double_quotes_expected));const G=SN(k.name)?void 0:HA(k.name),V=G&&ta(G),H=V&&A?A.get(V):void 0;V&&L&&!H&&(A?r.push(FK(V,L,(X,Y,P)=>cd(e,k.name,X,Y,P))):r.push(cd(e,k.name,L.unknownOptionDiagnostic,V)));const te=y(k.initializer,H);if(typeof V<"u"&&(i&&(O[V]=te),s&&(I||c(A)))){const X=D5(H,te);I?X&&s.onSetValidOptionKeyValueInParent(I,H,te):c(A)&&(X?s.onSetValidOptionKeyValueInRoot(V,k.name,te,k.initializer):H||s.onSetUnknownOptionKeyValueInRoot(V,k.name,te,k.initializer))}}return O}function d(E,A){if(!i){E.forEach(L=>y(L,A));return}return lr(E.map(L=>y(L,A)),L=>L!==void 0)}function y(E,A){let L;switch(E.kind){case 110:return O(A&&A.type!=="boolean"&&(A.type!=="listOrElement"||A.element.type!=="boolean")),I(!0);case 95:return O(A&&A.type!=="boolean"&&(A.type!=="listOrElement"||A.element.type!=="boolean")),I(!1);case 104:return O(A&&A.name==="extends"),I(null);case 10:h(E)||r.push(cd(e,E,_.String_literal_with_double_quotes_expected)),O(A&&Ha(A.type)&&A.type!=="string"&&(A.type!=="listOrElement"||Ha(A.element.type)&&A.element.type!=="string"));const k=E.text;if(A&&D.assert(A.type!=="listOrElement"||A.element.type==="string","Only string or array of string is handled for now"),A&&!Ha(A.type)){const V=A;V.type.has(k.toLowerCase())||(r.push(Xme(V,(H,te,X)=>cd(e,E,H,te,X))),L=!0)}return I(k);case 8:return O(A&&A.type!=="number"&&(A.type!=="listOrElement"||A.element.type!=="number")),I(Number(E.text));case 221:if(E.operator!==40||E.operand.kind!==8)break;return O(A&&A.type!=="number"&&(A.type!=="listOrElement"||A.element.type!=="number")),I(-Number(E.operand.text));case 207:O(A&&A.type!=="object"&&(A.type!=="listOrElement"||A.element.type!=="object"));const G=E;if(A){const{elementOptions:V,extraKeyDiagnostics:H,name:te}=A;return I(f(G,V,H,te))}else return I(f(G,void 0,void 0,void 0));case 206:return O(A&&A.type!=="list"&&A.type!=="listOrElement"),I(d(E.elements,A&&A.element))}A?O(!0):r.push(cd(e,E,_.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function I(k){var G;if(!L){const V=(G=A==null?void 0:A.extraValidation)==null?void 0:G.call(A,k);if(V){r.push(cd(e,E,...V));return}}return k}function O(k){k&&(r.push(cd(e,E,_.Compiler_option_0_requires_a_value_of_type_1,A.name,ow(A))),L=!0)}}function h(E){return Vo(E)&&F3(E,e)}}function ow(e){return e.type==="listOrElement"?`${ow(e.element)} or Array`:e.type==="list"?"Array":Ha(e.type)?e.type:"string"}function D5(e,t){if(e){if(WC(t))return!0;if(e.type==="list")return Va(t);if(e.type==="listOrElement")return Va(t)||D5(e.element,t);const r=Ha(e.type)?e.type:"string";return typeof t===r}return!1}function S3e(e,t,r){var i,o,s;const c=ru(r.useCaseSensitiveFileNames),f=Vt(lr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?A3e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):o1),E=>XR(Pa(t,r.getCurrentDirectory()),Pa(E,r.getCurrentDirectory()),c)),d=WK(e.options,{configFilePath:Pa(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),y=e.watchOptions&&C3e(e.watchOptions);return{compilerOptions:{...jK(d),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:y&&jK(y),references:Vt(e.projectReferences,E=>({...E,path:E.originalPath?E.originalPath:"",originalPath:void 0})),files:Ae(f)?f:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:x3e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function jK(e){return{...Ro(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function x3e(e){if(Ae(e)){if(Ae(e)!==1)return e;if(e[0]!==V5)return e}}function A3e(e,t,r,i){if(!t)return o1;const o=Ik(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Mv(o.excludePattern,i.useCaseSensitiveFileNames),c=o.includeFilePattern&&Mv(o.includeFilePattern,i.useCaseSensitiveFileNames);return c?s?f=>!(c.test(f)&&!s.test(f)):f=>!c.test(f):s?f=>s.test(f):o1}function she(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return she(e.element);default:return e.type}}function HK(e,t){return af(t,(r,i)=>{if(r===e)return i})}function WK(e,t){return lhe(e,HC(),t)}function C3e(e){return lhe(e,the())}function lhe(e,{optionsNameMap:t},r){const i=new Map,o=r&&ru(r.useCaseSensitiveFileNames);for(const s in e)if(Ps(e,s)){if(t.has(s)&&(t.get(s).category===_.Command_line_Options||t.get(s).category===_.Output_Formatting))continue;const c=e[s],f=t.get(s.toLowerCase());if(f){D.assert(f.type!=="listOrElement");const d=she(f);d?f.type==="list"?i.set(s,c.map(y=>HK(y,d))):i.set(s,HK(c,d)):r&&f.isFilePath?i.set(s,XR(r.configFilePath,Pa(c,hi(r.configFilePath)),o)):i.set(s,c)}}return i}function L3e(e,t){const r=che(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],c=i(2);return P5.forEach(f=>{if(!r.has(f.name))return;const d=r.get(f.name),y=ZK(f);d!==y?s.push(`${c}${f.name}: ${d}`):Ps(U5,f.name)&&s.push(`${c}${f.name}: ${y}`)}),s.join(t)+t}}function che(e){const t=sM(e,U5);return WK(t)}function I3e(e,t,r){const i=che(e);return c();function o(f){return Array(f+1).join(" ")}function s({category:f,name:d,isCommandLineOnly:y}){const h=[_.Command_line_Options,_.Editor_Support,_.Compiler_Diagnostics,_.Backwards_Compatibility,_.Watch_and_Build_Modes,_.Output_Formatting];return!y&&f!==void 0&&(!h.includes(f)||i.has(d))}function c(){const f=new Map;f.set(_.Projects,[]),f.set(_.Language_and_Environment,[]),f.set(_.Modules,[]),f.set(_.JavaScript_Support,[]),f.set(_.Emit,[]),f.set(_.Interop_Constraints,[]),f.set(_.Type_Checking,[]),f.set(_.Completeness,[]);for(const L of bg)if(s(L)){let I=f.get(L.category);I||f.set(L.category,I=[]),I.push(L)}let d=0,y=0;const h=[];f.forEach((L,I)=>{h.length!==0&&h.push({value:""}),h.push({value:`/* ${No(I)} */`});for(const O of L){let k;i.has(O.name)?k=`"${O.name}": ${JSON.stringify(i.get(O.name))}${(y+=1)===i.size?"":","}`:k=`// "${O.name}": ${JSON.stringify(ZK(O))},`,h.push({value:k,description:`/* ${O.description&&No(O.description)||O.name} */`}),d=Math.max(k.length,d)}});const E=o(2),A=[];A.push("{"),A.push(`${E}"compilerOptions": {`),A.push(`${E}${E}/* ${No(_.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),A.push("");for(const L of h){const{value:I,description:O=""}=L;A.push(I&&`${E}${E}${I}${O&&o(d-I.length+2)+O}`)}if(t.length){A.push(`${E}},`),A.push(`${E}"files": [`);for(let L=0;L<t.length;L++)A.push(`${E}${E}${JSON.stringify(t[L])}${L===t.length-1?"":","}`);A.push(`${E}]`)}else A.push(`${E}}`);return A.push("}"),A.join(r)+r}}function zK(e,t){const r={},i=HC().optionsNameMap;for(const o in e)Ps(e,o)&&(r[o]=k3e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function k3e(e,t,r){if(e&&!WC(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);D.assert(e.type!=="listOrElement")}return t}function w3e(e,t,r,i,o,s,c,f,d){return uhe(e,void 0,t,r,i,d,o,s,c,f)}function y8(e,t,r,i,o,s,c,f,d){var y,h;(y=bi)==null||y.push(bi.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const E=uhe(void 0,e,t,r,i,d,o,s,c,f);return(h=bi)==null||h.pop(),E}function qK(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function WC(e){return e==null}function JK(e,t){return hi(Pa(e,t))}function uhe(e,t,r,i,o={},s,c,f=[],d=[],y){D.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const h=[],E=_he(e,t,r,i,c,f,h,y),{raw:A}=E,L=sM(o,E.options||{}),I=s&&E.watchOptions?sM(s,E.watchOptions):E.watchOptions||s;L.configFilePath=c&&Qc(c);const O=G();t&&(t.configFileSpecs=O),qK(L,t);const k=qo(c?JK(c,i):i);return{options:L,watchOptions:I,fileNames:V(k),projectReferences:H(k),typeAcquisition:E.typeAcquisition||N5(),raw:A,errors:h,wildcardDirectories:U3e(O,k,r.useCaseSensitiveFileNames),compileOnSave:!!A.compileOnSave};function G(){const de=Y("references",Se=>typeof Se=="object","object"),re=te(X("files"));if(re){const Se=de==="no-prop"||Va(de)&&de.length===0,ee=Ps(A,"extends");if(re.length===0&&Se&&!ee)if(t){const Qe=c||"tsconfig.json",je=_.The_files_list_in_config_file_0_is_empty,Ge=Kt(AN(t,"files"),Oe=>Oe.initializer),qe=Ge?cd(t,Ge,je,Qe):Fs(je,Qe);h.push(qe)}else P(_.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let ye=te(X("include"));const ae=X("exclude");let W=!1,ce=te(ae);if(ae==="no-prop"&&A.compilerOptions){const Se=A.compilerOptions.outDir,ee=A.compilerOptions.declarationDir;(Se||ee)&&(ce=[Se,ee].filter(Qe=>!!Qe))}re===void 0&&ye===void 0&&(ye=[V5],W=!0);let me,ve;return ye&&(me=She(ye,h,!0,t,"include")),ce&&(ve=She(ce,h,!1,t,"exclude")),{filesSpecs:re,includeSpecs:ye,excludeSpecs:ce,validatedFilesSpec:lr(re,Ha),validatedIncludeSpecs:me,validatedExcludeSpecs:ve,pathPatterns:void 0,isDefaultIncludeSpec:W}}function V(de){const re=E8(O,de,L,r,d);return fhe(re,v8(A),f)&&h.push(dhe(O,c)),re}function H(de){let re;const ye=Y("references",ae=>typeof ae=="object","object");if(Va(ye))for(const ae of ye)typeof ae.path!="string"?P(_.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(re||(re=[])).push({path:Pa(ae.path,de),originalPath:ae.path,prepend:ae.prepend,circular:ae.circular});return re}function te(de){return Va(de)?de:void 0}function X(de){return Y(de,Ha,"string")}function Y(de,re,ye){if(Ps(A,de)&&!WC(A[de]))if(Va(A[de])){const ae=A[de];return!t&&!Yn(ae,re)&&h.push(Fs(_.Compiler_option_0_requires_a_value_of_type_1,de,ye)),ae}else return P(_.Compiler_option_0_requires_a_value_of_type_1,de,"Array"),"not-array";return"no-prop"}function P(de,re,ye){t||h.push(Fs(de,re,ye))}}function D3e(e){return e.code===_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function dhe({includeSpecs:e,excludeSpecs:t},r){return Fs(_.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 fhe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function v8(e){return!Ps(e,"files")&&!Ps(e,"references")}function KK(e,t,r,i,o){const s=i.length;return fhe(e,o)?i.push(dhe(r,t)):Ri(i,c=>!D3e(c)),s!==i.length}function R3e(e){return!!e.options}function _he(e,t,r,i,o,s,c,f){var d;i=Qc(i);const y=Pa(o||"",i);if(s.indexOf(y)>=0)return c.push(Fs(_.Circularity_detected_while_resolving_configuration_Colon_0,[...s,y].join(" -> "))),{raw:e||ohe(t,c)};const h=e?N3e(e,r,i,o,c):O3e(t,r,i,o,c);if((d=h.options)!=null&&d.paths&&(h.options.pathsBasePath=i),h.extendedConfigPath){s=s.concat([y]);const A={options:{}};Ha(h.extendedConfigPath)?E(A,h.extendedConfigPath):h.extendedConfigPath.forEach(L=>E(A,L)),!h.raw.include&&A.include&&(h.raw.include=A.include),!h.raw.exclude&&A.exclude&&(h.raw.exclude=A.exclude),!h.raw.files&&A.files&&(h.raw.files=A.files),h.raw.compileOnSave===void 0&&A.compileOnSave&&(h.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Ro(A.extendedSourceFiles.keys())),h.options=IR(A.options,h.options),h.watchOptions=h.watchOptions&&A.watchOptions?IR(A.watchOptions,h.watchOptions):h.watchOptions||A.watchOptions}return h;function E(A,L){const I=P3e(t,L,r,s,c,f,A);if(I&&R3e(I)){const O=I.raw;let k;const G=V=>{O[V]&&(A[V]=Vt(O[V],H=>km(H)?H:Bi(k||(k=wI(hi(L),i,ru(r.useCaseSensitiveFileNames))),H)))};G("include"),G("exclude"),G("files"),O.compileOnSave!==void 0&&(A.compileOnSave=O.compileOnSave),IR(A.options,I.options),A.watchOptions=A.watchOptions&&I.watchOptions?IR({},A.watchOptions,I.watchOptions):A.watchOptions||I.watchOptions}}}function N3e(e,t,r,i,o){Ps(e,"excludes")&&o.push(Fs(_.Unknown_option_excludes_Did_you_mean_exclude));const s=mhe(e.compilerOptions,r,o,i),c=hhe(e.typeAcquisition,r,o,i),f=G3e(e.watchOptions,r,o);e.compileOnSave=M3e(e,r,o);let d;if(e.extends||e.extends==="")if(!D5(w8,e.extends))o.push(Fs(_.Compiler_option_0_requires_a_value_of_type_1,"extends",ow(w8)));else{const y=i?JK(i,r):r;if(Ha(e.extends))d=R5(e.extends,t,y,o,Fs);else{d=[];for(const h of e.extends)Ha(h)?d=Fn(d,R5(h,t,y,o,Fs)):o.push(Fs(_.Compiler_option_0_requires_a_value_of_type_1,"extends",ow(w8.element)))}}return{raw:e,options:s,watchOptions:f,typeAcquisition:c,extendedConfigPath:d}}function O3e(e,t,r,i,o){const s=phe(i);let c,f,d,y;const E=ahe(e,o,!0,{onSetValidOptionKeyValueInParent(A,L,I){let O;switch(A){case"compilerOptions":O=s;break;case"watchOptions":O=f||(f={});break;case"typeAcquisition":O=c||(c=N5(i));break;default:D.fail("Unknown option")}O[L.name]=YK(L,r,I)},onSetValidOptionKeyValueInRoot(A,L,I,O){switch(A){case"extends":const k=i?JK(i,r):r;if(Ha(I))d=R5(I,t,k,o,(G,V)=>cd(e,O,G,V));else{d=[];for(let G=0;G<I.length;G++){const V=I[G];Ha(V)&&(d=Fn(d,R5(V,t,k,o,(H,te)=>cd(e,O.elements[G],H,te))))}}return}},onSetUnknownOptionKeyValueInRoot(A,L,I,O){A==="excludes"&&o.push(cd(e,L,_.Unknown_option_excludes_Did_you_mean_exclude)),nn(P5,k=>k.name===A)&&(y=Fn(y,L))}});return c||(c=N5(i)),y&&E&&E.compilerOptions===void 0&&o.push(cd(e,y[0],_._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,HA(y[0]))),{raw:E,options:s,watchOptions:f,typeAcquisition:c,extendedConfigPath:d}}function R5(e,t,r,i,o){if(e=Qc(e),km(e)||xa(e,"./")||xa(e,"../")){let c=Pa(e,r);if(!t.fileExists(c)&&!ic(c,".json")&&(c=`${c}.json`,!t.fileExists(c))){i.push(o(_.File_0_not_found,e));return}return c}const s=Xhe(e,Bi(r,"tsconfig.json"),t);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;e===""?i.push(o(_.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(o(_.File_0_not_found,e))}function P3e(e,t,r,i,o,s,c){var f;const d=r.useCaseSensitiveFileNames?t:O_(t);let y,h,E;if(s&&(y=s.get(d))?{extendedResult:h,extendedConfig:E}=y:(h=ehe(t,A=>r.readFile(A)),h.parseDiagnostics.length||(E=_he(void 0,h,r,hi(t),mu(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:E})),e&&(((f=c.extendedSourceFiles)!=null?f:c.extendedSourceFiles=new Set).add(h.fileName),h.extendedSourceFiles))for(const A of h.extendedSourceFiles)c.extendedSourceFiles.add(A);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return E}function M3e(e,t,r){if(!Ps(e,T8.name))return!1;const i=b8(T8,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function F3e(e,t,r){const i=[];return{options:mhe(e,t,i,r),errors:i}}function B3e(e,t,r){const i=[];return{options:hhe(e,t,i,r),errors:i}}function phe(e){return e&&mu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function mhe(e,t,r,i){const o=phe(i);return XK(nhe(),e,t,o,I8,r),i&&(o.configFilePath=Qc(i)),o}function N5(e){return{enable:!!e&&mu(e)==="jsconfig.json",include:[],exclude:[]}}function hhe(e,t,r,i){const o=N5(i);return XK(ihe(),e,t,o,cX,r),o}function G3e(e,t,r){return XK(rhe(),e,t,void 0,k8,r)}function XK(e,t,r,i,o,s){if(t){for(const c in t){const f=e.get(c);f?(i||(i={}))[f.name]=b8(f,t[c],r,s):s.push(FK(c,o,Fs))}return i}}function b8(e,t,r,i){if(D5(e,t)){const o=e.type;if(o==="list"&&Va(t))return vhe(e,t,r,i);if(o==="listOrElement")return Va(t)?vhe(e,t,r,i):b8(e.element,t,r,i);if(!Ha(e.type))return yhe(e,t,i);const s=FT(e,t,i);return WC(s)?s:ghe(e,r,s)}else i.push(Fs(_.Compiler_option_0_requires_a_value_of_type_1,e.name,ow(e)))}function YK(e,t,r){if(!WC(r)){if(e.type==="listOrElement"&&!Va(r))return YK(e.element,t,r);if(e.type==="list"||e.type==="listOrElement"){const i=e;return i.element.isFilePath||!Ha(i.element.type)?lr(Vt(r,o=>YK(i.element,t,o)),o=>i.listPreserveFalsyValues?!0:!!o):r}else if(!Ha(e.type))return e.type.get(Ha(r)?r.toLowerCase():r);return ghe(e,t,r)}}function ghe(e,t,r){return e.isFilePath&&(r=Pa(r,t),r===""&&(r=".")),r}function FT(e,t,r){var i;if(WC(t))return;const o=(i=e.extraValidation)==null?void 0:i.call(e,t);if(!o)return t;r.push(Fs(...o))}function yhe(e,t,r){if(WC(t))return;const i=t.toLowerCase(),o=e.type.get(i);if(o!==void 0)return FT(e,o,r);r.push(MK(e))}function vhe(e,t,r,i){return lr(Vt(t,o=>b8(e.element,o,r,i)),o=>e.listPreserveFalsyValues?!0:!!o)}function E8(e,t,r,i,o=rt){t=qo(t);const s=ru(i.useCaseSensitiveFileNames),c=new Map,f=new Map,d=new Map,{validatedFilesSpec:y,validatedIncludeSpecs:h,validatedExcludeSpecs:E}=e,A=kk(r,o),L=vO(r,A);if(y)for(const G of y){const V=Pa(G,t);c.set(s(V),V)}let I;if(h&&h.length>0)for(const G of i.readDirectory(t,is(L),E,h,void 0)){if(cc(G,".json")){if(!I){const te=h.filter(Y=>ic(Y,".json")),X=Vt(d7(te,t,"files"),Y=>`^${Y}$`);I=X?X.map(Y=>Mv(Y,i.useCaseSensitiveFileNames)):rt}if(mi(I,te=>te.test(G))!==-1){const te=s(G);!c.has(te)&&!d.has(te)&&d.set(te,G)}continue}if(j3e(G,c,f,A,s))continue;H3e(G,f,A,s);const V=s(G);!c.has(V)&&!f.has(V)&&f.set(V,G)}const O=Ro(c.values()),k=Ro(f.values());return O.concat(k,Ro(d.values()))}function bhe(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:c,validatedExcludeSpecs:f}=t;if(!Ae(c)||!Ae(f))return!1;r=qo(r);const d=ru(i);if(s){for(const y of s)if(d(Pa(y,r))===e)return!1}return The(e,f,i,o,r)}function Ehe(e){const t=xa(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(ic(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function O5(e,t,r,i){return The(e,lr(t,o=>!Ehe(o)),r,i)}function The(e,t,r,i,o){const s=Lk(t,Bi(qo(i),o),"exclude"),c=s&&Mv(s,r);return c?c.test(e)?!0:!kA(e)&&c.test(Pu(e)):!1}function She(e,t,r,i,o){return e.filter(c=>{if(!Ha(c))return!1;const f=$K(c,r);return f!==void 0&&t.push(s(...f)),f===void 0});function s(c,f){const d=L3(i,o,f);return d?cd(i,d,c,f):Fs(c,f)}}function $K(e,t){if(D.assert(typeof e=="string"),t&&Nhe.test(e))return[_.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(Ehe(e))return[_.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function U3e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=Lk(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),c={};if(e!==void 0){const f=[];for(const d of e){const y=qo(Bi(r,d));if(s&&s.test(y))continue;const h=V3e(y,i);if(h){const{key:E,flags:A}=h,L=c[E];(L===void 0||L<A)&&(c[E]=A,A===1&&f.push(E))}}for(const d in c)if(Ps(c,d))for(const y of f)d!==y&&Tv(y,d,r,!i)&&delete c[d]}return c}function V3e(e,t){const r=Ohe.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(Ms);return{key:t?r[0]:O_(r[0]),flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(Yq(e.substring(e.lastIndexOf(Ms)+1)))return{key:tT(t?e:O_(e)),flags:1}}function j3e(e,t,r,i,o){const s=Ue(i,c=>Sc(e,c)?c:void 0);if(!s)return!1;for(const c of s){if(cc(e,c))return!1;const f=o(D1(e,c));if(t.has(f)||r.has(f)){if(c===".d.ts"&&(cc(e,".js")||cc(e,".jsx")))continue;return!0}}return!1}function H3e(e,t,r,i){const o=Ue(r,s=>Sc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const c=o[s];if(cc(e,c))return;const f=i(D1(e,c));t.delete(f)}}function W3e(e){const t={};for(const r in e)if(Ps(e,r)){const i=GK(r);i!==void 0&&(t[r]=QK(e[r],i))}return t}function QK(e,t){switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Va(e))return QK(e,t.element);case"list":const r=t.element;return Va(e)?e.map(i=>QK(i,r)):"";default:return af(t.type,(i,o)=>{if(i===e)return o})}}function ZK(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return ZK(e.element);case"object":return{};default:const r=oM(e.type.keys());return r!==void 0?r:D.fail("Expected 'option.type' to have entries.")}}var T8,eX,sw,tX,S8,x8,A8,C8,L8,nX,P5,bg,rX,iX,aX,M5,F5,oX,sX,lX,B5,G5,xhe,Ahe,U5,I8,Che,Lhe,Ihe,cX,khe,k8,whe,Dhe,Rhe,w8,uX,V5,Nhe,Ohe,z3e=C({"src/compiler/commandLineParser.ts"(){Oa(),T8={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},eX=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),sw=new Map(_o(eX.entries(),([e,t])=>[""+t,e])),tX=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],S8=tX.map(e=>e[0]),x8=new Map(tX),A8=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_.Watch_and_Build_Modes,description:_.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:_.Watch_and_Build_Modes,description:_.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:_.Watch_and_Build_Modes,description:_.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_.Watch_and_Build_Modes,description:_.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:$K},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:$K},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_files_from_the_watch_mode_s_processing}],C8=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_.Output_Formatting,description:_.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_.Output_Formatting,description:_.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_.Compiler_Diagnostics,description:_.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_.FILE_OR_DIRECTORY,category:_.Compiler_Diagnostics,description:_.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:_.DIRECTORY,category:_.Compiler_Diagnostics,description:_.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_.Projects,description:_.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_.Emit,description:_.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Watch_and_Build_Modes,description:_.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:_.Command_line_Options,isCommandLineOnly:!0,description:_.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_.Platform_specific}],L8={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.VERSION,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},nX={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_what_module_code_is_generated,defaultValueDescription:void 0},P5=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_.Command_line_Options,paramType:_.FILE_OR_DIRECTORY,description:_.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},L8,nX,{name:"lib",type:"list",element:{name:"lib",type:x8,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:eX,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.FILE,showInSimplifiedHelpView:!0,category:_.Emit,description:_.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:_.DIRECTORY,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.LOCATION,category:_.Modules,description:_.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_.FILE,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_.Emit,description:_.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.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:_.Emit,description:_.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_.Interop_Constraints,description:_.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:_.Interop_Constraints,description:_.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Type_Checking,description:_.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Ensure_use_strict_is_always_emitted,defaultValueDescription:_.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.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:_.Type_Checking,description:_.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.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:_.Type_Checking,description:_.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:_.STRATEGY,category:_.Modules,description:_.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_.Modules,description:_.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:_.Modules,description:_.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Modules,description:_.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:_.Interop_Constraints,description:_.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Interop_Constraints,description:_.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_.Interop_Constraints,description:_.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:_.Modules,description:_.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_.Modules,description:_.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:_.Modules,description:_.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_.Modules,description:_.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_.Language_and_Environment,description:_.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:_.Language_and_Environment,description:_.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:_.Language_and_Environment,description:_.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:_.Modules,description:_.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_.Modules,description:_.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:_.Backwards_Compatibility,paramType:_.FILE,transpileOptionValue:void 0,description:_.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_.Backwards_Compatibility,description:_.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:_.Emit,description:_.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:_.NEWLINE,category:_.Emit,description:_.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Output_Formatting,description:_.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_.Language_and_Environment,affectsProgramStructure:!0,description:_.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.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:_.Emit,description:_.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_.Editor_Support,description:_.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:_.Projects,description:_.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,category:_.Emit,transpileOptionValue:void 0,description:_.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_.Interop_Constraints,description:_.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_.JavaScript_Support,description:_.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:_.Backwards_Compatibility,description:_.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_.Backwards_Compatibility,description:_.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:_.Specify_a_list_of_language_service_plugins_to_include,category:_.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:_.Control_what_method_is_used_to_detect_module_format_JS_files,category:_.Language_and_Environment,defaultValueDescription:_.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}],bg=[...C8,...P5],rX=bg.filter(e=>!!e.affectsSemanticDiagnostics),iX=bg.filter(e=>!!e.affectsEmit),aX=bg.filter(e=>!!e.affectsDeclarationPath),M5=bg.filter(e=>!!e.affectsModuleResolution),F5=bg.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),oX=bg.filter(e=>!!e.affectsProgramStructure),sX=bg.filter(e=>Ps(e,"transpileOptionValue")),lX=[{name:"verbose",shortName:"v",category:_.Command_line_Options,description:_.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_.Command_line_Options,description:_.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_.Command_line_Options,description:_.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_.Command_line_Options,description:_.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],B5=[...C8,...lX],G5=[{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}],Ahe={diagnostic:_.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Zme},U5={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},I8={alternateMode:Ahe,getOptionsNameMap:HC,optionDeclarations:bg,unknownOptionDiagnostic:_.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Compiler_option_0_expects_an_argument},Lhe={diagnostic:_.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:HC},Ihe={alternateMode:Lhe,getOptionsNameMap:Zme,optionDeclarations:B5,unknownOptionDiagnostic:_.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Build_option_0_requires_a_value_of_type_1},cX={optionDeclarations:G5,unknownOptionDiagnostic:_.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_.Unknown_type_acquisition_option_0_Did_you_mean_1},k8={getOptionsNameMap:the,optionDeclarations:A8,unknownOptionDiagnostic:_.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Watch_option_0_requires_a_value_of_type_1},w8={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_.File_Management},V5="**/*",Nhe=/(^|\/)\*\*\/?$/,Ohe=/^[^*?]*(?=\/[^/]*[*?])/}});function ha(e){e.trace(Wq.apply(void 0,arguments))}function Wv(e,t){return!!e.traceResolution&&t.trace!==void 0}function zC(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Ms.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function j5(e){return zC(void 0,e)}function Phe(e){if(e)return D.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Mhe(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function Fhe(e){if(e)return D.assert(p7(e.extension)),{fileName:e.path,packageId:e.packageId}}function Bhe(e,t,r,i,o,s,c,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Uc(e)){const{resolvedFileName:d,originalPath:y}=Vhe(t.path,c.host,c.traceEnabled);y&&(t={...t,path:d,originalPath:y})}return Ghe(t,r,i,o,s,c.resultFromCache,f)}function Ghe(e,t,r,i,o,s,c){return s?(s.failedLookupLocations=qC(s.failedLookupLocations,r),s.affectingLocations=qC(s.affectingLocations,i),s.resolutionDiagnostics=qC(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:lw(r),affectingLocations:lw(i),resolutionDiagnostics:lw(o),node10Result:c}}function lw(e){return e.length?e:void 0}function qC(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Uhe(e,t,r,i){if(!Ps(e,t)){i.traceEnabled&&ha(i.host,_.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&ha(i.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function H5(e,t,r,i){const o=Uhe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&ha(i.host,_.package_json_had_a_falsy_0_field,t);return}const s=qo(Bi(r,o));return i.traceEnabled&&ha(i.host,_.package_json_has_0_field_1_that_references_2,t,o,s),s}function q3e(e,t,r){return H5(e,"typings",t,r)||H5(e,"types",t,r)}function J3e(e,t,r){return H5(e,"tsconfig",t,r)}function K3e(e,t,r){return H5(e,"main",t,r)}function X3e(e,t){const r=Uhe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&ha(t.host,_.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y3e(e,t){const r=X3e(e,t);if(r===void 0)return;if(t.traceEnabled)for(const c in r)Ps(r,c)&&!LA.tryParse(c)&&ha(t.host,_.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=W5(r);if(!i){t.traceEnabled&&ha(t.host,_.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&ha(t.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function W5(e){AX||(AX=new P_(be));for(const t in e){if(!Ps(e,t))continue;const r=LA.tryParse(t);if(r!==void 0&&r.test(AX))return{version:t,paths:e[t]}}}function D8(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=hi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $3e(r,t)}function $3e(e,t){if(!t.directoryExists)return[Bi(e,CX)];let r;return ag(qo(e),i=>{const o=Bi(i,CX);t.directoryExists(o)&&(r||(r=[])).push(o)}),r}function Q3e(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return nT(e,t,!i)===0}function Vhe(e,t,r){const i=f7e(e,t,r),o=Q3e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function dX(e,t,r,i,o,s,c){D.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const f=Wv(r,i);o&&(r=o.commandLine.options);const d=t?hi(t):void 0;let y=d?s==null?void 0:s.getFromDirectoryCache(e,c,d,o):void 0;if(!y&&d&&!Uc(e)&&(y=s==null?void 0:s.getFromNonRelativeNameCache(e,c,d,o)),y)return f&&(ha(i,_.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&ha(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),ha(i,_.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),te(y)),y;const h=D8(r,i);f&&(t===void 0?h===void 0?ha(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ha(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,h):h===void 0?ha(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ha(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,h),o&&ha(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const E=[],A=[];let L=fX(r);c===99&&(vl(r)===3||vl(r)===99)&&(L|=32);const I=L&8?JC(r,!!(L&32)):[],O=[],k={compilerOptions:r,host:i,traceEnabled:f,failedLookupLocations:E,affectingLocations:A,packageJsonInfoCache:s,features:L,conditions:I,requestContainingDirectory:d,reportDiagnostic:P=>void O.push(P),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let G=X(),V=!0;G||(G=Y(),V=!1);let H;if(G){const{fileName:P,packageId:de}=G;let re=P,ye;r.preserveSymlinks||({resolvedFileName:re,originalPath:ye}=Vhe(P,i,f)),H={primary:V,resolvedFileName:re,originalPath:ye,packageId:de,isExternalLibraryImport:Zx(P)}}return y={resolvedTypeReferenceDirective:H,failedLookupLocations:lw(E),affectingLocations:lw(A),resolutionDiagnostics:lw(O)},d&&(s==null||s.getOrCreateCacheForDirectory(d,o).set(e,c,y),Uc(e)||s==null||s.getOrCreateCacheForNonRelativeName(e,c,o).set(d,y)),f&&te(y),y;function te(P){var de;(de=P.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?P.resolvedTypeReferenceDirective.packageId?ha(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,P.resolvedTypeReferenceDirective.resolvedFileName,uT(P.resolvedTypeReferenceDirective.packageId),P.resolvedTypeReferenceDirective.primary):ha(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,P.resolvedTypeReferenceDirective.resolvedFileName,P.resolvedTypeReferenceDirective.primary):ha(i,_.Type_reference_directive_0_was_not_resolved,e)}function X(){if(h&&h.length)return f&&ha(i,_.Resolving_with_primary_search_path_0,h.join(", ")),Kt(h,P=>{const de=Bi(P,e),re=hi(de),ye=Qp(re,i);return!ye&&f&&ha(i,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),Fhe(tge(4,de,!ye,k))});f&&ha(i,_.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Y(){const P=t&&hi(t);if(P!==void 0){f&&ha(i,_.Looking_up_in_node_modules_folder_initial_location_0,P);let de;if(Uc(e)){const{path:re}=Yhe(P,e);de=K5(4,re,!1,k,!0)}else{const re=ige(4,e,P,k,void 0,void 0);de=re&&re.value}return Fhe(de)}else f&&ha(i,_.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function fX(e){let t=0;switch(vl(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function JC(e,t){const r=t||vl(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),vl(e)!==100&&r.push("node"),ba(r,e.customConditions)}function Z3e(e,t,r,i,o){const s=X5(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return ag(t,c=>{if(mu(c)!=="node_modules"){const f=Bi(c,"node_modules"),d=Bi(f,e);return e2(d,!1,s)}})}function z5(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=D8(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const c=qo(s),f=Bi(o,c,"package.json");if(!(t.fileExists(f)&&vk(f,t).typings===null)){const y=mu(c);y.charCodeAt(0)!==46&&r.push(y)}}}}return r}function _X(e){var t;if(e===null||typeof e!="object")return""+e;if(Va(e))return`[${(t=e.map(i=>_X(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Ps(e,i)&&(r+=`${i}: ${_X(e[i])}`);return r+"}"}function pX(e,t){return t.map(r=>_X(l7(e,r))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function mX(e){const t=new Map,r=new Map,i=new Map;let o=new Map;return e&&t.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:c,update:f,clear:y};function s(E){return E?d(E.commandLine.options,!1):o}function c(E){return E?d(E.commandLine.options,!0):o}function f(E){e!==E&&(e?o=d(E,!0):t.set(E,o),e=E)}function d(E,A){let L=t.get(E);if(L)return L;const I=h(E);if(L=i.get(I),!L){if(e){const O=h(e);O===I?L=o:i.has(O)||i.set(O,o)}A&&(L??(L=new Map)),L&&i.set(I,L)}return L&&t.set(E,L),L}function y(){const E=e&&r.get(e);o.clear(),t.clear(),r.clear(),i.clear(),e&&(E&&r.set(e,E),t.set(e,o))}function h(E){let A=r.get(E);return A||r.set(E,A=pX(E,M5)),A}}function e7e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,entries:c,getInternalMap:f};function i(d){return r==null?void 0:r.get(zs(d,e,t))}function o(d,y){(r||(r=new Map)).set(zs(d,e,t),y)}function s(){r=void 0}function c(){const d=r==null?void 0:r.entries();return d?Ro(d):[]}function f(){return r}}function jhe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function t7e(e,t,r){const i=mX(r);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:c,clear:o,update:s};function o(){i.clear()}function s(d){i.update(d)}function c(d,y){const h=zs(d,e,t);return jhe(i,y,h,()=>BT())}function f(d,y,h,E){var A,L;const I=zs(h,e,t);return(L=(A=i.getMapOfCacheRedirects(E))==null?void 0:A.get(I))==null?void 0:L.get(d,y)}}function cw(e,t){return t===void 0?e:`${t}|${e}`}function BT(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,c){return e.set(i(o,s),c),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,c)=>{const[f,d]=t.get(c);return o(s,f,d)})},size(){return e.size}};return r;function i(o,s){const c=cw(o,s);return t.set(c,[o,s]),c}}function hX(e,t,r,i){D.assert(t.length===r.length);const o=BT();for(let s=0;s<t.length;++s){const c=t[s];o.set(i.getName(c),i.getMode(c,e),r[s])}return o}function n7e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function r7e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function i7e(e,t,r,i){const o=mX(r);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:d,clear:s,update:c};function s(){o.clear()}function c(h){o.update(h)}function f(h,E,A,L){var I,O;return D.assert(!Uc(h)),(O=(I=o.getMapOfCacheRedirects(L))==null?void 0:I.get(cw(h,E)))==null?void 0:O.get(A)}function d(h,E,A){return D.assert(!Uc(h)),jhe(o,A,cw(h,E),y)}function y(){const h=new Map;return{get:E,set:A};function E(I){return h.get(zs(I,e,t))}function A(I,O){const k=zs(I,e,t);if(h.has(k))return;h.set(k,O);const G=i(O),V=G&&L(k,G);let H=k;for(;H!==V;){const te=hi(H);if(te===H||h.has(te))break;h.set(te,O),H=te}}function L(I,O){const k=zs(hi(O),e,t);let G=0;const V=Math.min(I.length,k.length);for(;G<V&&I.charCodeAt(G)===k.charCodeAt(G);)G++;if(G===I.length&&(k.length===G||k[G]===Ms))return I;const H=Kp(I);if(G<H)return;const te=I.lastIndexOf(Ms,G-1);if(te!==-1)return I.substr(0,Math.max(te,H))}}}function Hhe(e,t,r,i,o){const s=t7e(e,t,r),c=i7e(e,t,r,o);return i??(i=e7e(e,t)),{...i,...s,...c,clear:f,update:y,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:d};function f(){d(),i.clear()}function d(){s.clear(),c.clear()}function y(h){s.update(h),c.update(h)}}function q5(e,t,r){const i=Hhe(e,t,r,void 0,n7e);return i.getOrCreateCacheForModuleName=(o,s,c)=>i.getOrCreateCacheForNonRelativeName(o,s,c),i}function J5(e,t,r,i){return Hhe(e,t,r,i,r7e)}function a7e(e,t,r,i){const o=hi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function uw(e,t,r,i,o,s,c){const f=Wv(r,i);s&&(r=s.commandLine.options),f&&(ha(i,_.Resolving_module_0_from_1,e,t),s&&ha(i,_.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=hi(t);let y=o==null?void 0:o.getFromDirectoryCache(e,c,d,s);if(y)f&&ha(i,_.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let h=r.moduleResolution;if(h===void 0){switch(au(r)){case 1:h=2;break;case 100:h=3;break;case 199:h=99;break;default:h=1;break}f&&ha(i,_.Module_resolution_kind_is_not_specified_using_0,GR[h])}else f&&ha(i,_.Explicitly_specified_module_resolution_kind_Colon_0,GR[h]);switch(Jp.logStartResolveModule(e),h){case 3:y=c7e(e,t,r,i,o,s,c);break;case 99:y=u7e(e,t,r,i,o,s,c);break;case 2:y=Khe(e,t,r,i,o,s);break;case 1:y=cge(e,t,r,i,o,s);break;case 100:y=Jhe(e,t,r,i,o,s);break;default:return D.fail(`Unexpected moduleResolution: ${h}`)}y&&y.resolvedModule&&Jp.logInfoEvent(`Module "${e}" resolved to "${y.resolvedModule.resolvedFileName}"`),Jp.logStopResolveModule(y&&y.resolvedModule?""+y.resolvedModule.resolvedFileName:"null"),o==null||o.getOrCreateCacheForDirectory(d,s).set(e,c,y),Uc(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,c,s).set(d,y)}return f&&(y.resolvedModule?y.resolvedModule.packageId?ha(i,_.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,y.resolvedModule.resolvedFileName,uT(y.resolvedModule.packageId)):ha(i,_.Module_name_0_was_successfully_resolved_to_1,e,y.resolvedModule.resolvedFileName):ha(i,_.Module_name_0_was_not_resolved,e)),y}function Whe(e,t,r,i,o){const s=o7e(e,t,i,o);return s?s.value:Uc(t)?s7e(e,t,r,i,o):l7e(e,t,i,o)}function o7e(e,t,r,i){var o;const{baseUrl:s,paths:c,configFile:f}=i.compilerOptions;if(c&&!Sf(t)){i.traceEnabled&&(s&&ha(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),ha(i.host,_.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const d=Eq(i.compilerOptions,i.host),y=f!=null&&f.configFileSpecs?(o=f.configFileSpecs).pathPatterns||(o.pathPatterns=_7(c)):void 0;return xX(e,t,d,c,y,r,!1,i)}}function s7e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&ha(o.host,_.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=qo(Bi(r,t));let c,f;for(const d of o.compilerOptions.rootDirs){let y=qo(d);ic(y,Ms)||(y+=Ms);const h=xa(s,y)&&(f===void 0||f.length<y.length);o.traceEnabled&&ha(o.host,_.Checking_if_0_is_the_longest_matching_prefix_for_1_2,y,s,h),h&&(f=y,c=d)}if(f){o.traceEnabled&&ha(o.host,_.Longest_matching_prefix_for_0_is_1,s,f);const d=s.substr(f.length);o.traceEnabled&&ha(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,f,s);const y=i(e,s,!Qp(r,o.host),o);if(y)return y;o.traceEnabled&&ha(o.host,_.Trying_other_entries_in_rootDirs);for(const h of o.compilerOptions.rootDirs){if(h===c)continue;const E=Bi(qo(h),d);o.traceEnabled&&ha(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,h,E);const A=hi(E),L=i(e,E,!Qp(A,o.host),o);if(L)return L}o.traceEnabled&&ha(o.host,_.Module_resolution_using_rootDirs_has_failed)}}function l7e(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&ha(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=qo(Bi(o,t));return i.traceEnabled&&ha(i.host,_.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!Qp(hi(s),i.host),i)}function zhe(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=d7e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o==null?void 0:o.join(", ")}`);return i.resolvedFileName}function c7e(e,t,r,i,o,s,c){return qhe(30,e,t,r,i,o,s,c)}function u7e(e,t,r,i,o,s,c){return qhe(30,e,t,r,i,o,s,c)}function qhe(e,t,r,i,o,s,c,f){const d=hi(r),y=f===99?32:0;let h=i.noDtsResolution?3:7;return CT(i)&&(h|=8),dw(e|y,t,d,i,o,s,h,!1,c)}function d7e(e,t,r){return dw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0)}function Jhe(e,t,r,i,o,s){const c=hi(t);let f=r.noDtsResolution?3:7;return CT(r)&&(f|=8),dw(fX(r),e,c,r,i,o,f,!1,s)}function Khe(e,t,r,i,o,s,c){let f;return c?f=8:r.noDtsResolution?(f=3,CT(r)&&(f|=8)):f=CT(r)?15:7,dw(0,e,hi(t),r,i,o,f,!!c,s)}function Xhe(e,t,r){return dw(8,e,hi(t),{moduleResolution:99},r,void 0,8,!0,void 0)}function dw(e,t,r,i,o,s,c,f,d){var y,h,E,A;const L=Wv(i,o),I=[],O=[],k=JC(i,!!(e&32)),G=[],V={compilerOptions:i,host:o,traceEnabled:L,failedLookupLocations:I,affectingLocations:O,packageJsonInfoCache:s,features:e,conditions:k,requestContainingDirectory:r,reportDiagnostic:Y=>void G.push(Y),isConfigLookup:f,candidateIsFromPackageJsonField:!1};L&&Lx(vl(i))&&ha(o,_.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",k.map(Y=>`'${Y}'`).join(", "));let H;if(vl(i)===2){const Y=c&5,P=c&-6;H=Y&&X(Y,V)||P&&X(P,V)||void 0}else H=X(c,V);let te;if((y=H==null?void 0:H.value)!=null&&y.isExternalLibraryImport&&!f&&c&5&&e&8&&!Uc(t)&&!bX(5,H.value.resolved.extension)&&k.indexOf("import")>-1){U1(V,_.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const Y={...V,features:V.features&-9,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:oo},P=X(c&5,Y);(h=P==null?void 0:P.value)!=null&&h.isExternalLibraryImport&&(te=P.value.resolved.path)}return Bhe(t,(E=H==null?void 0:H.value)==null?void 0:E.resolved,(A=H==null?void 0:H.value)==null?void 0:A.isExternalLibraryImport,I,O,G,V,te);function X(Y,P){const re=Whe(Y,t,r,(ye,ae,W,ce)=>K5(ye,ae,W,ce,!0),P);if(re)return n_({resolved:re,isExternalLibraryImport:Zx(re.path)});if(Uc(t)){const{path:ye,parts:ae}=Yhe(r,t),W=K5(Y,ye,!1,P,!0);return W&&n_({resolved:W,isExternalLibraryImport:jr(ae,"node_modules")})}else{let ye;return e&2&&xa(t,"#")&&(ye=y7e(Y,t,r,P,s,d)),!ye&&e&4&&(ye=g7e(Y,t,r,P,s,d)),ye||(L&&ha(o,_.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Mhe(Y)),ye=ige(Y,t,r,P,s,d)),ye&&{value:ye.value&&{resolved:ye.value,isExternalLibraryImport:!0}}}}}function Yhe(e,t){const r=Bi(e,t),i=ld(r),o=tl(i);return{path:o==="."||o===".."?Pu(qo(r)):qo(r),parts:i}}function f7e(e,t,r){if(!t.realpath)return e;const i=qo(t.realpath(e));return r&&ha(t,_.Resolving_real_path_for_0_result_1,e,i),D.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function K5(e,t,r,i,o){if(i.traceEnabled&&ha(i.host,_.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Mhe(e)),!bv(t)){if(!r){const c=hi(t);Qp(c,i.host)||(i.traceEnabled&&ha(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),r=!0)}const s=fw(e,t,r,i);if(s){const c=o?gX(s.path):void 0,f=c?e2(c,!1,i):void 0;return zC(f,s)}}if(r||Qp(t,i.host)||(i.traceEnabled&&ha(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return tge(e,t,r,i,o)}function Zx(e){return pu(e,Ly)}function gX(e){const t=qo(e),r=t.lastIndexOf(Ly);if(r===-1)return;const i=r+Ly.length;let o=$he(t,i);return t.charCodeAt(i)===64&&(o=$he(t,o)),t.slice(0,o)}function $he(e,t){const r=e.indexOf(Ms,t+1);return r===-1?t:r}function yX(e,t,r,i){return j5(fw(e,t,r,i))}function fw(e,t,r,i){const o=Qhe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=Zhe(t,e,"",r,i);if(s)return s}}function Qhe(e,t,r,i){if(mu(t).indexOf(".")===-1)return;let s=Gd(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const c=t.substring(s.length);return i.traceEnabled&&ha(i.host,_.File_name_0_has_a_1_extension_stripping_it,t,c),Zhe(s,e,c,r,i)}function vX(e,t,r,i){return e&1&&Sc(t,x7)||e&4&&Sc(t,S7)?R8(t,r,i)!==void 0?{path:t,ext:Z3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&cc(t,".json")?R8(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Qhe(e,t,r,i)}function Zhe(e,t,r,i,o){if(!i){const c=hi(e);c&&(i=!Qp(c,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&&!fd(e+r)&&s(`.d${r}.ts`)||void 0}function s(c,f){const d=R8(e+c,i,o);return d===void 0?void 0:{path:d,ext:c,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&f}}}function R8(e,t,r){var i,o;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return ege(e,t,r);const s=(o=xh(e))!=null?o:"",c=s?TO(e,s):e;return Ue(r.compilerOptions.moduleSuffixes,f=>ege(c+f+s,t,r))}function ege(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&ha(r.host,_.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&ha(r.host,_.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function tge(e,t,r,i,o=!0){const s=o?e2(t,r,i):void 0,c=s&&s.contents.packageJsonContent,f=s&&N8(s,i);return zC(s,$5(e,t,r,i,c,f))}function _7e(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const c=5|(o?2:0),f=fX(t),d=X5(i==null?void 0:i.getPackageJsonInfoCache(),r,t);d.conditions=JC(t),d.requestContainingDirectory=e.packageDirectory;const y=$5(c,e.packageDirectory,!1,d,e.contents.packageJsonContent,N8(e,d));if(s=Fn(s,y==null?void 0:y.path),f&8&&e.contents.packageJsonContent.exports){const h=xA([JC(t,!0),JC(t,!1)],zp);for(const E of h){const A={...d,failedLookupLocations:[],conditions:E},L=p7e(e,e.contents.packageJsonContent.exports,A,c);if(L)for(const I of L)s=sy(s,I.path)}}return e.contents.resolvedEntrypoints=s||!1}function p7e(e,t,r,i){let o;if(Va(t))for(const c of t)s(c);else if(typeof t=="object"&&t!==null&&Q5(t))for(const c in t)s(t[c]);else s(t);return o;function s(c){var f,d;if(typeof c=="string"&&xa(c,"./")&&c.indexOf("*")===-1){const y=ld(c).slice(2);if(y.indexOf("..")>=0||y.indexOf(".")>=0||y.indexOf("node_modules")>=0)return!1;const h=Bi(e.packageDirectory,c),E=Pa(h,(d=(f=r.host).getCurrentDirectory)==null?void 0:d.call(f)),A=vX(i,E,!1,r);if(A)return o=sy(o,A,(L,I)=>L.path===I.path),!0}else if(Array.isArray(c)){for(const y of c)if(s(y))return!0}else if(typeof c=="object"&&c!==null)return Ue(rg(c),y=>{if(y==="default"||jr(r.conditions,y)||O8(r.conditions,y))return s(c[y]),!0})}}function X5(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Wv(r,t),failedLookupLocations:gM,affectingLocations:gM,packageJsonInfoCache:e,features:0,conditions:rt,requestContainingDirectory:void 0,reportDiagnostic:oo,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function Y5(e,t){const r=ld(e);for(r.pop();r.length>0;){const i=e2(f1(r),!1,t);if(i)return i;r.pop()}}function N8(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y3e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function e2(e,t,r){var i,o,s;const{host:c,traceEnabled:f}=r,d=Bi(e,"package.json");if(t){r.failedLookupLocations.push(d);return}const y=(i=r.packageJsonInfoCache)==null?void 0:i.getPackageJsonInfo(d);if(y!==void 0){if(typeof y!="boolean")return f&&ha(c,_.File_0_exists_according_to_earlier_cached_lookups,d),r.affectingLocations.push(d),y.packageDirectory===e?y:{packageDirectory:e,contents:y.contents};y&&f&&ha(c,_.File_0_does_not_exist_according_to_earlier_cached_lookups,d),r.failedLookupLocations.push(d);return}const h=Qp(e,c);if(h&&c.fileExists(d)){const E=vk(d,c);f&&ha(c,_.Found_package_json_at_0,d);const A={packageDirectory:e,contents:{packageJsonContent:E,versionPaths:void 0,resolvedEntrypoints:void 0}};return(o=r.packageJsonInfoCache)==null||o.setPackageJsonInfo(d,A),r.affectingLocations.push(d),A}else h&&f&&ha(c,_.File_0_does_not_exist,d),(s=r.packageJsonInfoCache)==null||s.setPackageJsonInfo(d,h),r.failedLookupLocations.push(d)}function $5(e,t,r,i,o,s){let c;o&&(i.isConfigLookup?c=J3e(o,t,i):c=e&4&&q3e(o,t,i)||e&7&&K3e(o,t,i)||void 0);const f=(A,L,I,O)=>{const k=R8(L,I,O);if(k){const X=m7e(A,k);if(X)return j5(X);O.traceEnabled&&ha(O.host,_.File_0_has_an_unsupported_extension_so_skipping_it,k)}const G=A===4?5:A,V=O.features,H=O.candidateIsFromPackageJsonField;O.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(O.features&=-33);const te=K5(G,L,I,O,!1);return O.features=V,O.candidateIsFromPackageJsonField=H,te},d=c?!Qp(hi(c),i.host):void 0,y=r||!Qp(t,i.host),h=Bi(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!c||Tv(t,c))){const A=wm(t,c||h,!1);i.traceEnabled&&ha(i.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,be,A);const L=xX(e,A,t,s.paths,void 0,f,d||y,i);if(L)return Phe(L.value)}const E=c&&Phe(f(e,c,d,i));if(E)return E;if(!(i.features&32))return fw(e,h,y,i)}function m7e(e,t,r){const i=xh(t);return i!==void 0&&bX(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function bX(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 EX(e){let t=e.indexOf(Ms);return e[0]==="@"&&(t=e.indexOf(Ms,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function Q5(e){return Yn(rg(e),t=>xa(t,"."))}function h7e(e){return!kt(rg(e),t=>xa(t,"."))}function g7e(e,t,r,i,o,s){var c,f;const d=Pa(Bi(r,"dummy"),(f=(c=i.host).getCurrentDirectory)==null?void 0:f.call(c)),y=Y5(d,i);if(!y||!y.contents.packageJsonContent.exports||typeof y.contents.packageJsonContent.name!="string")return;const h=ld(t),E=ld(y.contents.packageJsonContent.name);if(!Yn(E,(k,G)=>h[G]===k))return;const A=h.slice(E.length),L=Ae(A)?`.${Ms}${A.join(Ms)}`:".",I=e&5,O=e&-6;return TX(y,I,L,i,o,s)||TX(y,O,L,i,o,s)}function TX(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&h7e(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Ps(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return rge(t,i,o,s,r,e,!1)(c,"",!1,".")}else if(Q5(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ha(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),n_(void 0);const c=nge(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&ha(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),n_(void 0)}}function y7e(e,t,r,i,o,s){var c,f;if(t==="#"||xa(t,"#/"))return i.traceEnabled&&ha(i.host,_.Invalid_import_specifier_0_has_no_possible_resolutions,t),n_(void 0);const d=Pa(Bi(r,"dummy"),(f=(c=i.host).getCurrentDirectory)==null?void 0:f.call(c)),y=Y5(d,i);if(!y)return i.traceEnabled&&ha(i.host,_.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),n_(void 0);if(!y.contents.packageJsonContent.imports)return i.traceEnabled&&ha(i.host,_.package_json_scope_0_has_no_imports_defined,y.packageDirectory),n_(void 0);const h=nge(e,i,o,s,t,y.contents.packageJsonContent.imports,y,!0);return h||(i.traceEnabled&&ha(i.host,_.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,y.packageDirectory),n_(void 0))}function SX(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function nge(e,t,r,i,o,s,c,f){const d=rge(e,t,r,i,o,c,f);if(!ic(o,Ms)&&o.indexOf("*")===-1&&Ps(s,o)){const E=s[o];return d(E,"",!1,o)}const y=TI(lr(rg(s),E=>E.indexOf("*")!==-1||ic(E,"/")),SX);for(const E of y)if(t.features&16&&h(E,o)){const A=s[E],L=E.indexOf("*"),I=o.substring(E.substring(0,L).length,o.length-(E.length-1-L));return d(A,I,!0,E)}else if(ic(E,"*")&&xa(o,E.substring(0,E.length-1))){const A=s[E],L=o.substring(E.length-1);return d(A,L,!0,E)}else if(xa(o,E)){const A=s[E],L=o.substring(E.length);return d(A,L,!1,E)}function h(E,A){if(ic(E,"*"))return!1;const L=E.indexOf("*");return L===-1?!1:xa(A,E.substring(0,L))&&ic(A,E.substring(L+1))}}function rge(e,t,r,i,o,s,c){return f;function f(d,y,h,E){if(typeof d=="string"){if(!h&&y.length>0&&!ic(d,"/"))return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0);if(!xa(d,"./")){if(c&&!xa(d,"../")&&!xa(d,"/")&&!km(d)){const Y=h?d.replace(/\*/g,y):d+y;U1(t,_.Using_0_subpath_1_with_target_2,"imports",E,Y),U1(t,_.Resolving_module_0_from_1,Y,s.packageDirectory+"/");const P=dw(t.features,Y,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return n_(P.resolvedModule?{path:P.resolvedModule.resolvedFileName,extension:P.resolvedModule.extension,packageId:P.resolvedModule.packageId,originalPath:P.resolvedModule.originalPath,resolvedUsingTsExtension:P.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0)}const G=(Sf(d)?ld(d).slice(1):ld(d)).slice(1);if(G.indexOf("..")>=0||G.indexOf(".")>=0||G.indexOf("node_modules")>=0)return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0);const V=Bi(s.packageDirectory,d),H=ld(y);if(H.indexOf("..")>=0||H.indexOf(".")>=0||H.indexOf("node_modules")>=0)return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0);t.traceEnabled&&ha(t.host,_.Using_0_subpath_1_with_target_2,c?"imports":"exports",E,h?d.replace(/\*/g,y):d+y);const te=A(h?V.replace(/\*/g,y):V+y),X=O(te,y,Bi(s.packageDirectory,"package.json"),c);return X||n_(zC(s,vX(e,te,!1,t)))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!Ae(d))return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0);for(const k of d){const G=f(k,y,h,E);if(G)return G}}else{U1(t,_.Entering_conditional_exports);for(const k of rg(d))if(k==="default"||t.conditions.indexOf(k)>=0||O8(t.conditions,k)){U1(t,_.Matched_0_condition_1,c?"imports":"exports",k);const G=d[k],V=f(G,y,h,E);if(V)return U1(t,_.Resolved_under_condition_0,k),U1(t,_.Exiting_conditional_exports),V;U1(t,_.Failed_to_resolve_under_condition_0,k)}else U1(t,_.Saw_non_matching_condition_0,k);U1(t,_.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&ha(t.host,_.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),n_(void 0);return t.traceEnabled&&ha(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),n_(void 0);function A(k){var G,V;return k===void 0?k:Pa(k,(V=(G=t.host).getCurrentDirectory)==null?void 0:V.call(G))}function L(k,G){return Pu(Bi(k,G))}function I(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function O(k,G,V,H){var te,X,Y,P;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&k.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||Tv(s.packageDirectory,A(t.compilerOptions.configFile.fileName),!I()))){const re=Z0({useCaseSensitiveFileNames:I}),ye=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ae=A(q8(t.compilerOptions,()=>[],((X=(te=t.host).getCurrentDirectory)==null?void 0:X.call(te))||"",re));ye.push(ae)}else if(t.requestContainingDirectory){const ae=A(Bi(t.requestContainingDirectory,"index.ts")),W=A(q8(t.compilerOptions,()=>[ae,A(V)],((P=(Y=t.host).getCurrentDirectory)==null?void 0:P.call(Y))||"",re));ye.push(W);let ce=Pu(W);for(;ce&&ce.length>1;){const me=ld(ce);me.pop();const ve=f1(me);ye.unshift(ve),ce=Pu(ve)}}ye.length>1&&t.reportDiagnostic(Fs(H?_.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,G===""?".":G,V));for(const ae of ye){const W=de(ae);for(const ce of W)if(Tv(ce,k,!I())){const me=k.slice(ce.length+1),ve=Bi(ae,me),Se=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const ee of Se)if(cc(ve,ee)){const Qe=Mfe(ve);for(const je of Qe){if(!bX(e,je))continue;const Ge=RW(ve,je,ee,!I());if(t.host.fileExists(Ge))return n_(zC(s,vX(e,Ge,!1,t)))}}}}}return;function de(re){var ye,ae;const W=t.compilerOptions.configFile?((ae=(ye=t.host).getCurrentDirectory)==null?void 0:ae.call(ye))||"":re,ce=[];return t.compilerOptions.declarationDir&&ce.push(A(L(W,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&ce.push(A(L(W,t.compilerOptions.outDir))),ce}}}}function O8(e,t){if(e.indexOf("types")===-1||!xa(t,"types@"))return!1;const r=LA.tryParse(t.substring(6));return r?r.test(be):!1}function ige(e,t,r,i,o,s){return age(e,t,r,i,!1,o,s)}function v7e(e,t,r){return age(4,e,t,r,!0,void 0,void 0)}function age(e,t,r,i,o,s,c){const f=i.features===0?void 0:i.features&32?99:1,d=e&5,y=e&-6;if(d){const E=h(d);if(E)return E}if(y&&!o)return h(y);function h(E){return ag(Qc(r),A=>{if(mu(A)!=="node_modules"){const L=lge(s,t,f,A,c,i);return L||n_(oge(E,t,A,i,o,s,c))}})}}function oge(e,t,r,i,o,s,c){const f=Bi(r,"node_modules"),d=Qp(f,i.host);if(!d&&i.traceEnabled&&ha(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),!o){const y=sge(e,t,f,d,i,s,c);if(y)return y}if(e&4){const y=Bi(f,"@types");let h=d;return d&&!Qp(y,i.host)&&(i.traceEnabled&&ha(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,y),h=!1),sge(4,b7e(t,i),y,h,i,s,c)}}function sge(e,t,r,i,o,s,c){var f,d,y;const h=qo(Bi(r,t)),{packageName:E,rest:A}=EX(t),L=Bi(r,E);let I,O=e2(h,!i,o);if(A!==""&&O&&(!(o.features&8)||!Ps((d=(f=I=e2(L,!i,o))==null?void 0:f.contents.packageJsonContent)!=null?d:rt,"exports"))){const V=fw(e,h,!i,o);if(V)return j5(V);const H=$5(e,h,!i,o,O.contents.packageJsonContent,N8(O,o));return zC(O,H)}const k=(V,H,te,X)=>{let Y=fw(V,H,te,X)||$5(V,H,te,X,O&&O.contents.packageJsonContent,O&&N8(O,X));return!Y&&O&&(O.contents.packageJsonContent.exports===void 0||O.contents.packageJsonContent.exports===null)&&X.features&32&&(Y=fw(V,Bi(H,"index.js"),te,X)),zC(O,Y)};if(A!==""&&(O=I??e2(L,!i,o)),O&&O.contents.packageJsonContent.exports&&o.features&8)return(y=TX(O,e,Bi(".",A),o,s,c))==null?void 0:y.value;const G=A!==""&&O?N8(O,o):void 0;if(G){o.traceEnabled&&ha(o.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,G.version,be,A);const V=i&&Qp(L,o.host),H=xX(e,A,L,G.paths,void 0,k,!V,o);if(H)return H.value}return k(e,h,!i,o)}function xX(e,t,r,i,o,s,c,f){o||(o=_7(i));const d=nJ(o,t);if(d){const y=Ha(d)?void 0:Nce(d,t),h=Ha(d)?d:Rce(d);return f.traceEnabled&&ha(f.host,_.Module_name_0_matched_pattern_1,t,h),{value:Ue(i[h],A=>{const L=y?A.replace("*",y):A,I=qo(Bi(r,L));f.traceEnabled&&ha(f.host,_.Trying_substitution_0_candidate_module_location_Colon_1,A,L);const O=xh(A);if(O!==void 0){const k=R8(I,c,f);if(k!==void 0)return j5({path:k,ext:O,resolvedUsingTsExtension:void 0})}return s(e,I,c||!Qp(hi(I),f.host),f)})}}}function b7e(e,t){const r=_w(e);return t.traceEnabled&&r!==e&&ha(t.host,_.Scoped_package_detected_looking_in_0,r),r}function Z5(e){return`@types/${_w(e)}`}function _w(e){if(xa(e,"@")){const t=e.replace(Ms,tF);if(t!==e)return t.slice(1)}return e}function P8(e){const t=AI(e,"@types/");return t!==e?eF(t):e}function eF(e){return pu(e,tF)?"@"+e.replace(tF,Ms):e}function lge(e,t,r,i,o,s){const c=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(c)return s.traceEnabled&&ha(s.host,_.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function cge(e,t,r,i,o,s){const c=Wv(r,i),f=[],d=[],y=hi(t),h=[],E={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:y,reportDiagnostic:I=>void h.push(I),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},A=L(5)||L(2|(r.resolveJsonModule?8:0));return Bhe(e,A&&A.value,(A==null?void 0:A.value)&&Zx(A.value.path),f,d,h,E);function L(I){const O=Whe(I,e,y,yX,E);if(O)return{value:O};if(Uc(e)){const k=qo(Bi(y,e));return n_(yX(I,k,!1,E))}else{const k=ag(y,G=>{const V=lge(o,e,void 0,G,s,E);if(V)return V;const H=qo(Bi(G,e));return n_(yX(I,H,!1,E))});if(k)return k;if(I&5)return v7e(e,y,E)}}}function pw(e,t){return!!e.allowImportingTsExtensions||t&&fd(t)}function uge(e,t,r,i,o,s){const c=Wv(r,i);c&&ha(i,_.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const f=[],d=[],y=[],h={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void y.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},E=oge(4,e,o,h,!1,void 0,void 0);return Ghe(E,!0,f,d,y,h.resultFromCache)}function n_(e){return e!==void 0?{value:e}:void 0}function U1(e,t,...r){e.traceEnabled&&ha(e.host,t,...r)}var AX,CX,LX,Ly,tF,E7e=C({"src/compiler/moduleNameResolver.ts"(){Oa(),CX=Bi("node_modules","@types"),LX=(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))(LX||{}),Ly="/node_modules/",tF="__"}});function Eg(e,t){return e.body&&!e.body.parent&&(Uo(e.body,e),Fv(e.body,!1)),e.body?IX(e.body,t):1}function IX(e,t=new Map){const r=ms(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=T7e(e,t);return t.set(r,i),i}function T7e(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(T1(e))return 2;break;case 269:case 268:if(!Yr(e,1))return 0;break;case 275:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===276){let i=0;for(const o of r.exportClause.elements){const s=S7e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 265:{let i=0;return Ma(e,o=>{const s=IX(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:D.assertNever(s)}}),i}case 264:return Eg(e,t);case 79:if(e.flags&2048)return 0}return 1}function S7e(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(lo(i)||rm(i)||qi(i)){const o=i.statements;let s;for(const c of o)if(oN(c,r)){c.parent||(Uo(c,i),Fv(c,!1));const f=IX(c,t);if((s===void 0||f>s)&&(s=f),s===1)return s}if(s!==void 0)return s}i=i.parent}return 1}function GT(e){return D.attachFlowNodeDebugInfo(e),e}function dge(e,t){al("beforeBind"),Jp.logStartBindFile(""+e.fileName),pge(e,t),Jp.logStopBindFile(),al("afterBind"),Jf("Bind","beforeBind","afterBind")}function x7e(){var e,t,r,i,o,s,c,f,d,y,h,E,A,L,I,O,k,G,V,H,te,X,Y=!1,P=0,de,re,ye={flags:1},ae={flags:1},W=zt();return me;function ce(U,et,qt,Xn,Da){return cd(Zn(U)||e,U,et,qt,Xn,Da)}function me(U,et){var qt,Xn;e=U,t=et,r=es(t),X=ve(e,et),re=new Set,P=0,de=Hc.getSymbolConstructor(),D.attachFlowNodeDebugInfo(ye),D.attachFlowNodeDebugInfo(ae),e.locals||((qt=bi)==null||qt.push(bi.Phase.Bind,"bindSourceFile",{path:e.path},!0),xt(e),(Xn=bi)==null||Xn.pop(),e.symbolCount=P,e.classifiableNames=re,Vl()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,c=void 0,f=void 0,d=void 0,y=!1,h=void 0,E=void 0,A=void 0,L=void 0,I=void 0,O=void 0,k=void 0,V=void 0,H=!1,Y=!1,te=0}function ve(U,et){return v_(et,"alwaysStrict")&&!U.isDeclarationFile?!0:!!U.externalModuleIndicator}function Se(U,et){return P++,new de(U,et)}function ee(U,et,qt){U.flags|=qt,et.symbol=U,U.declarations=sy(U.declarations,et),qt&1955&&!U.exports&&(U.exports=so()),qt&6240&&!U.members&&(U.members=so()),U.constEnumOnlyModule&&U.flags&304&&(U.constEnumOnlyModule=!1),qt&111551&&GN(U,et)}function Qe(U){if(U.kind===274)return U.isExportEquals?"export=":"default";const et=ka(U);if(et){if(Mu(U)){const qt=V_(et);return Yp(U)?"__global":`"${qt}"`}if(et.kind===164){const qt=et.expression;if(Xf(qt))return sl(qt.text);if(z3(qt))return yo(qt.operator)+qt.operand.text;D.fail("Only computed properties with literal names have declaration names")}if(Ni(et)){const qt=Ac(U);if(!qt)return;const Xn=qt.symbol;return QN(Xn,et.escapedText)}return U_(et)?ck(et):void 0}switch(U.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(Ll(U)===2)return"export=";D.fail("Unknown binary declaration kind");break;case 320:return eC(U)?"__new":"__call";case 166:return D.assert(U.parent.kind===320,"Impossible parameter parent kind",()=>`parent is: ${D.formatSyntaxKind(U.parent.kind)}, expected JSDocFunctionType`),"arg"+U.parent.parameters.indexOf(U)}}function je(U){return gu(U)?ws(U.name):ta(D.checkDefined(Qe(U)))}function Ge(U,et,qt,Xn,Da,Ia,Ie){D.assert(Ie||!Nv(qt));const Ve=Yr(qt,1024)||dd(qt)&&qt.name.escapedText==="default",Lt=Ie?"__computed":Ve&&et?"default":Qe(qt);let Ot;if(Lt===void 0)Ot=Se(0,"__missing");else if(Ot=U.get(Lt),Xn&2885600&&re.add(Lt),!Ot)U.set(Lt,Ot=Se(0,Lt)),Ia&&(Ot.isReplaceableByMethod=!0);else{if(Ia&&!Ot.isReplaceableByMethod)return Ot;if(Ot.flags&Da){if(Ot.isReplaceableByMethod)U.set(Lt,Ot=Se(0,Lt));else if(!(Xn&3&&Ot.flags&67108864)){gu(qt)&&Uo(qt.name,qt);let hn=Ot.flags&2?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,bn=!0;(Ot.flags&384||Xn&384)&&(hn=_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,bn=!1);let Tn=!1;Ae(Ot.declarations)&&(Ve||Ot.declarations&&Ot.declarations.length&&qt.kind===274&&!qt.isExportEquals)&&(hn=_.A_module_cannot_have_multiple_default_exports,bn=!1,Tn=!0);const Hn=[];nm(qt)&&Cl(qt.type)&&Yr(qt,1)&&Ot.flags&2887656&&Hn.push(ce(qt,_.Did_you_mean_0,`export type { ${ta(qt.name.escapedText)} }`));const qr=ka(qt)||qt;Ue(Ot.declarations,(tr,pn)=>{const dr=ka(tr)||tr,Aa=ce(dr,hn,bn?je(tr):void 0);e.bindDiagnostics.push(Tn?Ko(Aa,ce(qr,pn===0?_.Another_export_default_is_here:_.and_here)):Aa),Tn&&Hn.push(ce(dr,_.The_first_export_default_is_here))});const Ji=ce(qr,hn,bn?je(qt):void 0);e.bindDiagnostics.push(Ko(Ji,...Hn)),Ot=Se(0,Lt)}}}return ee(Ot,qt,Xn),Ot.parent?D.assert(Ot.parent===et,"Existing symbol parent should match new one"):Ot.parent=et,Ot}function qe(U,et,qt){const Xn=!!(py(U)&1)||Oe(U);if(et&2097152)return U.kind===278||U.kind===268&&Xn?Ge(o.symbol.exports,o.symbol,U,et,qt):(D.assertNode(o,Nm),Ge(o.locals,void 0,U,et,qt));if(h_(U)&&D.assert(fr(U)),!Mu(U)&&(Xn||o.flags&64)){if(!Nm(o)||!o.locals||Yr(U,1024)&&!Qe(U))return Ge(o.symbol.exports,o.symbol,U,et,qt);const Da=et&111551?1048576:0,Ia=Ge(o.locals,void 0,U,Da,qt);return Ia.exportSymbol=Ge(o.symbol.exports,o.symbol,U,et,qt),U.localSymbol=Ia,Ia}else return D.assertNode(o,Nm),Ge(o.locals,void 0,U,et,qt)}function Oe(U){if(U.parent&&Jl(U)&&(U=U.parent),!h_(U))return!1;if(!t8(U)&&U.fullName)return!0;const et=ka(U);return et?!!(uO(et.parent)&&ni(et.parent)||vu(et.parent)&&py(et.parent)&1):!1}function Me(U,et){const qt=o,Xn=s,Da=c;if(et&1?(U.kind!==216&&(s=o),o=c=U,et&32&&(o.locals=so(),To(o))):et&2&&(c=U,et&32&&(c.locals=void 0)),et&4){const Ia=h,Ie=E,Ve=A,Lt=L,Ot=k,hn=V,bn=H,Tn=et&16&&!Yr(U,512)&&!U.asteriskToken&&!!mT(U)||U.kind===172;Tn||(h=GT({flags:2}),et&144&&(h.node=U)),L=Tn||U.kind===173||fr(U)&&(U.kind===259||U.kind===215)?On():void 0,k=void 0,E=void 0,A=void 0,V=void 0,H=!1,st(U),U.flags&=-2817,!(h.flags&1)&&et&8&&p_(U.body)&&(U.flags|=256,H&&(U.flags|=512),U.endFlowNode=h),U.kind===308&&(U.flags|=te,U.endFlowNode=h),L&&(_r(L,h),h=At(L),(U.kind===173||U.kind===172||fr(U)&&(U.kind===259||U.kind===215))&&(U.returnFlowNode=h)),Tn||(h=Ia),E=Ie,A=Ve,L=Lt,k=Ot,V=hn,H=bn}else et&64?(y=!1,st(U),D.assertNotNode(U,He),U.flags=y?U.flags|128:U.flags&-129):st(U);o=qt,s=Xn,c=Da}function Ye(U){ze(U,et=>et.kind===259?xt(et):void 0),ze(U,et=>et.kind!==259?xt(et):void 0)}function ze(U,et=xt){U!==void 0&&Ue(U,et)}function Fe(U){Ma(U,xt,ze)}function st(U){const et=Y;if(Y=!1,kp(U)){Fe(U),mn(U),Y=et;return}switch(U.kind>=240&&U.kind<=256&&!t.allowUnreachableCode&&(U.flowNode=h),U.kind){case 244:an(U);break;case 243:Pn(U);break;case 245:Ar(U);break;case 246:case 247:Hr(U);break;case 242:we(U);break;case 250:case 254:yt(U);break;case 249:case 248:pt(U);break;case 255:pe(U);break;case 252:ie(U);break;case 266:he(U);break;case 292:j(U);break;case 241:We(U);break;case 253:Xe(U);break;case 221:Er(U);break;case 222:ue(U);break;case 223:if(by(U)){Y=et,mt(U);return}W(U);break;case 217:it(U);break;case 224:K(U);break;case 257:Z(U);break;case 208:case 209:ji(U);break;case 210:mo(U);break;case 232:Ci(U);break;case 349:case 341:case 343:gt(U);break;case 308:{Ye(U.statements),xt(U.endOfFileToken);break}case 238:case 265:Ye(U.statements);break;case 205:Re(U);break;case 166:q(U);break;case 207:case 206:case 299:case 227:Y=et;default:Fe(U);break}mn(U),Y=et}function Ct(U){switch(U.kind){case 79:case 80:case 108:case 208:case 209:return jt(U);case 210:return tt(U);case 214:case 232:return Ct(U.expression);case 223:return sn(U);case 221:return U.operator===53&&Ct(U.operand);case 218:return Ct(U.expression)}return!1}function Et(U){return gk(U)||(Fr(U)||jx(U)||Ud(U))&&Et(U.expression)||br(U)&&U.operatorToken.kind===27&&Et(U.right)||cl(U)&&(Xf(U.argumentExpression)||zl(U.argumentExpression))&&Et(U.expression)||nd(U)&&Et(U.left)}function jt(U){return Et(U)||yu(U)&&jt(U.expression)}function tt(U){if(U.arguments){for(const et of U.arguments)if(jt(et))return!0}return!!(U.expression.kind===208&&jt(U.expression.expression))}function at(U,et){return wC(U)&&Qt(U.expression)&&xs(et)}function sn(U){switch(U.operatorToken.kind){case 63:case 75:case 76:case 77:return jt(U.left);case 34:case 35:case 36:case 37:return Qt(U.left)||Qt(U.right)||at(U.right,U.left)||at(U.left,U.right);case 102:return Qt(U.left);case 101:return Ct(U.right);case 27:return Ct(U.right)}return!1}function Qt(U){switch(U.kind){case 214:return Qt(U.expression);case 223:switch(U.operatorToken.kind){case 63:return Qt(U.left);case 27:return Qt(U.right)}}return jt(U)}function On(){return GT({flags:4,antecedents:void 0})}function jn(){return GT({flags:8,antecedents:void 0})}function In(U,et,qt){return GT({flags:1024,target:U,antecedents:et,antecedent:qt})}function Zt(U){U.flags|=U.flags&2048?4096:2048}function _r(U,et){!(et.flags&1)&&!jr(U.antecedents,et)&&((U.antecedents||(U.antecedents=[])).push(et),Zt(et))}function Ii(U,et,qt){return et.flags&1?et:qt?(qt.kind===110&&U&64||qt.kind===95&&U&32)&&!ZM(qt)&&!ZW(qt.parent)?ye:Ct(qt)?(Zt(et),GT({flags:U,antecedent:et,node:qt})):et:U&32?et:ye}function $i(U,et,qt,Xn){return Zt(U),GT({flags:128,antecedent:U,switchStatement:et,clauseStart:qt,clauseEnd:Xn})}function Qi(U,et,qt){Zt(et);const Xn=GT({flags:U,antecedent:et,node:qt});return k&&_r(k,Xn),Xn}function Or(U,et){return Zt(U),GT({flags:512,antecedent:U,node:et})}function At(U){const et=U.antecedents;return et?et.length===1?et[0]:U:ye}function vn(U){const et=U.parent;switch(et.kind){case 242:case 244:case 243:return et.expression===U;case 245:case 224:return et.condition===U}return!1}function Wt(U){for(;;)if(U.kind===214)U=U.expression;else if(U.kind===221&&U.operator===53)U=U.operand;else return lO(U)}function dn(U){return wq(js(U))}function rr(U){for(;Ud(U.parent)||Gv(U.parent)&&U.parent.operator===53;)U=U.parent;return!vn(U)&&!Wt(U.parent)&&!(yu(U.parent)&&U.parent.expression===U)}function cr(U,et,qt,Xn){const Da=I,Ia=O;I=qt,O=Xn,U(et),I=Da,O=Ia}function Pi(U,et,qt){cr(xt,U,et,qt),(!U||!dn(U)&&!Wt(U)&&!(yu(U)&&jI(U)))&&(_r(et,Ii(32,h,U)),_r(qt,Ii(64,h,U)))}function gi(U,et,qt){const Xn=E,Da=A;E=et,A=qt,xt(U),E=Xn,A=Da}function Rn(U,et){let qt=V;for(;qt&&U.parent.kind===253;)qt.continueTarget=et,qt=qt.next,U=U.parent;return et}function an(U){const et=Rn(U,jn()),qt=On(),Xn=On();_r(et,h),h=et,Pi(U.expression,qt,Xn),h=At(qt),gi(U.statement,Xn,et),_r(et,h),h=At(Xn)}function Pn(U){const et=jn(),qt=Rn(U,On()),Xn=On();_r(et,h),h=et,gi(U.statement,Xn,qt),_r(qt,h),h=At(qt),Pi(U.expression,et,Xn),h=At(Xn)}function Ar(U){const et=Rn(U,jn()),qt=On(),Xn=On();xt(U.initializer),_r(et,h),h=et,Pi(U.condition,qt,Xn),h=At(qt),gi(U.statement,Xn,et),xt(U.incrementor),_r(et,h),h=At(Xn)}function Hr(U){const et=Rn(U,jn()),qt=On();xt(U.expression),_r(et,h),h=et,U.kind===247&&xt(U.awaitModifier),_r(qt,h),xt(U.initializer),U.initializer.kind!==258&&cn(U.initializer),gi(U.statement,qt,et),_r(et,h),h=At(qt)}function we(U){const et=On(),qt=On(),Xn=On();Pi(U.expression,et,qt),h=At(et),xt(U.thenStatement),_r(Xn,h),h=At(qt),xt(U.elseStatement),_r(Xn,h),h=At(Xn)}function yt(U){xt(U.expression),U.kind===250&&(H=!0,L&&_r(L,h)),h=ye}function Nt(U){for(let et=V;et;et=et.next)if(et.name===U)return et}function Ce(U,et,qt){const Xn=U.kind===249?et:qt;Xn&&(_r(Xn,h),h=ye)}function pt(U){if(xt(U.label),U.label){const et=Nt(U.label.escapedText);et&&(et.referenced=!0,Ce(U,et.breakTarget,et.continueTarget))}else Ce(U,E,A)}function pe(U){const et=L,qt=k,Xn=On(),Da=On();let Ia=On();if(U.finallyBlock&&(L=Da),_r(Ia,h),k=Ia,xt(U.tryBlock),_r(Xn,h),U.catchClause&&(h=At(Ia),Ia=On(),_r(Ia,h),k=Ia,xt(U.catchClause),_r(Xn,h)),L=et,k=qt,U.finallyBlock){const Ie=On();Ie.antecedents=ba(ba(Xn.antecedents,Ia.antecedents),Da.antecedents),h=Ie,xt(U.finallyBlock),h.flags&1?h=ye:(L&&Da.antecedents&&_r(L,In(Ie,Da.antecedents,h)),k&&Ia.antecedents&&_r(k,In(Ie,Ia.antecedents,h)),h=Xn.antecedents?In(Ie,Xn.antecedents,h):ye)}else h=At(Xn)}function ie(U){const et=On();xt(U.expression);const qt=E,Xn=G;E=et,G=h,xt(U.caseBlock),_r(et,h);const Da=Ue(U.caseBlock.clauses,Ia=>Ia.kind===293);U.possiblyExhaustive=!Da&&!et.antecedents,Da||_r(et,$i(G,U,0,0)),E=qt,G=Xn,h=At(et)}function he(U){const et=U.clauses,qt=Ct(U.parent.expression);let Xn=ye;for(let Da=0;Da<et.length;Da++){const Ia=Da;for(;!et[Da].statements.length&&Da+1<et.length;)xt(et[Da]),Da++;const Ie=On();_r(Ie,qt?$i(G,U.parent,Ia,Da+1):G),_r(Ie,Xn),h=At(Ie);const Ve=et[Da];xt(Ve),Xn=h,!(h.flags&1)&&Da!==et.length-1&&t.noFallthroughCasesInSwitch&&(Ve.fallthroughFlowNode=h)}}function j(U){const et=h;h=G,xt(U.expression),h=et,ze(U.statements)}function We(U){xt(U.expression),Ze(U.expression)}function Ze(U){if(U.kind===210){const et=U;et.expression.kind!==106&&gk(et.expression)&&(h=Or(h,et))}}function Xe(U){const et=On();V={next:V,name:U.label.escapedText,breakTarget:et,continueTarget:void 0,referenced:!1},xt(U.label),xt(U.statement),!V.referenced&&!t.allowUnusedLabels&&Ht(C_e(t),U.label,_.Unused_label),V=V.next,_r(et,h),h=At(et)}function Ut(U){U.kind===223&&U.operatorToken.kind===63?cn(U.left):cn(U)}function cn(U){if(Et(U))h=Qi(16,h,U);else if(U.kind===206)for(const et of U.elements)et.kind===227?cn(et.expression):Ut(et);else if(U.kind===207)for(const et of U.properties)et.kind===299?Ut(et.initializer):et.kind===300?cn(et.name):et.kind===301&&cn(et.expression)}function Sn(U,et,qt){const Xn=On();U.operatorToken.kind===55||U.operatorToken.kind===76?Pi(U.left,Xn,qt):Pi(U.left,et,Xn),h=At(Xn),xt(U.operatorToken),hk(U.operatorToken.kind)?(cr(xt,U.right,et,qt),cn(U.left),_r(et,Ii(32,h,U)),_r(qt,Ii(64,h,U))):Pi(U.right,et,qt)}function Er(U){if(U.operator===53){const et=I;I=O,O=et,Fe(U),O=I,I=et}else Fe(U),(U.operator===45||U.operator===46)&&cn(U.operand)}function ue(U){Fe(U),(U.operator===45||U.operator===46)&&cn(U.operand)}function mt(U){Y?(Y=!1,xt(U.operatorToken),xt(U.right),Y=!0,xt(U.left)):(Y=!0,xt(U.left),Y=!1,xt(U.operatorToken),xt(U.right)),cn(U.left)}function zt(){return T5(U,et,qt,Xn,Da,void 0);function U(Ie,Ve){if(Ve){Ve.stackIndex++,Uo(Ie,i);const Ot=X;Ta(Ie);const hn=i;i=Ie,Ve.skip=!1,Ve.inStrictModeStack[Ve.stackIndex]=Ot,Ve.parentStack[Ve.stackIndex]=hn}else Ve={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const Lt=Ie.operatorToken.kind;if(sO(Lt)||hk(Lt)){if(rr(Ie)){const Ot=On();Sn(Ie,Ot,Ot),h=At(Ot)}else Sn(Ie,I,O);Ve.skip=!0}return Ve}function et(Ie,Ve,Lt){if(!Ve.skip){const Ot=Ia(Ie);return Lt.operatorToken.kind===27&&Ze(Ie),Ot}}function qt(Ie,Ve,Lt){Ve.skip||xt(Ie)}function Xn(Ie,Ve,Lt){if(!Ve.skip){const Ot=Ia(Ie);return Lt.operatorToken.kind===27&&Ze(Ie),Ot}}function Da(Ie,Ve){if(!Ve.skip){const hn=Ie.operatorToken.kind;if(vy(hn)&&!Eh(Ie)&&(cn(Ie.left),hn===63&&Ie.left.kind===209)){const bn=Ie.left;Qt(bn.expression)&&(h=Qi(256,h,Ie))}}const Lt=Ve.inStrictModeStack[Ve.stackIndex],Ot=Ve.parentStack[Ve.stackIndex];Lt!==void 0&&(X=Lt),Ot!==void 0&&(i=Ot),Ve.skip=!1,Ve.stackIndex--}function Ia(Ie){if(Ie&&br(Ie)&&!by(Ie))return Ie;xt(Ie)}}function it(U){Fe(U),U.expression.kind===208&&cn(U.expression)}function K(U){const et=On(),qt=On(),Xn=On();Pi(U.condition,et,qt),h=At(et),xt(U.questionToken),xt(U.whenTrue),_r(Xn,h),h=At(qt),xt(U.colonToken),xt(U.whenFalse),_r(Xn,h),h=At(Xn)}function Pe(U){const et=Rc(U)?void 0:U.name;if(Xa(et))for(const qt of et.elements)Pe(qt);else h=Qi(16,h,U)}function Z(U){Fe(U),(U.initializer||BA(U.parent.parent))&&Pe(U)}function Re(U){xt(U.dotDotDotToken),xt(U.propertyName),Rt(U.initializer),xt(U.name)}function q(U){ze(U.modifiers),xt(U.dotDotDotToken),xt(U.questionToken),xt(U.type),Rt(U.initializer),xt(U.name)}function Rt(U){if(!U)return;const et=h;if(xt(U),et===ye||et===h)return;const qt=On();_r(qt,et),_r(qt,h),h=At(qt)}function gt(U){xt(U.tagName),U.kind!==343&&U.fullName&&(Uo(U.fullName,U),Fv(U.fullName,!1)),typeof U.comment!="string"&&ze(U.comment)}function ft(U){Fe(U);const et=$0(U);et&&et.kind!==171&&ee(et.symbol,et,32)}function _n(U,et,qt){cr(xt,U,et,qt),(!yu(U)||jI(U))&&(_r(et,Ii(32,h,U)),_r(qt,Ii(64,h,U)))}function $n(U){switch(U.kind){case 208:xt(U.questionDotToken),xt(U.name);break;case 209:xt(U.questionDotToken),xt(U.argumentExpression);break;case 210:xt(U.questionDotToken),ze(U.typeArguments),ze(U.arguments);break}}function oi(U,et,qt){const Xn=VI(U)?On():void 0;_n(U.expression,Xn||et,qt),Xn&&(h=At(Xn)),cr($n,U,et,qt),jI(U)&&(_r(et,Ii(32,h,U)),_r(qt,Ii(64,h,U)))}function Ai(U){if(rr(U)){const et=On();oi(U,et,et),h=At(et)}else oi(U,I,O)}function Ci(U){yu(U)?Ai(U):Fe(U)}function ji(U){yu(U)?Ai(U):Fe(U)}function mo(U){if(yu(U))Ai(U);else{const et=js(U.expression);et.kind===215||et.kind===216?(ze(U.typeArguments),ze(U.arguments),xt(U.expression)):(Fe(U),U.expression.kind===106&&(h=Or(h,U)))}if(U.expression.kind===208){const et=U.expression;He(et.name)&&Qt(et.expression)&&uq(et.name)&&(h=Qi(256,h,U))}}function To(U){f&&(f.nextContainer=U),f=U}function io(U,et,qt){switch(o.kind){case 264:return qe(U,et,qt);case 308:return Hi(U,et,qt);case 228:case 260:return ca(U,et,qt);case 263:return Ge(o.symbol.exports,o.symbol,U,et,qt);case 184:case 325:case 207:case 261:case 289:return Ge(o.symbol.members,o.symbol,U,et,qt);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return o.locals&&D.assertNode(o,Nm),Ge(o.locals,void 0,U,et,qt)}}function ca(U,et,qt){return Ja(U)?Ge(o.symbol.exports,o.symbol,U,et,qt):Ge(o.symbol.members,o.symbol,U,et,qt)}function Hi(U,et,qt){return Zl(e)?qe(U,et,qt):Ge(e.locals,void 0,U,et,qt)}function Xr(U){const et=qi(U)?U:ai(U.body,rm);return!!et&&et.statements.some(qt=>eu(qt)||Gl(qt))}function ss(U){U.flags&16777216&&!Xr(U)?U.flags|=64:U.flags&=-65}function _i(U){if(ss(U),Mu(U))if(Yr(U,1)&&It(U,_.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Rz(U))ua(U);else{let et;if(U.name.kind===10){const{text:Xn}=U.name;et=pC(Xn),et===void 0&&It(U.name,_.Pattern_0_can_have_at_most_one_Asterisk_character,Xn)}const qt=io(U,512,110735);e.patternAmbientModules=Fn(e.patternAmbientModules,et&&!Ha(et)?{pattern:et,symbol:qt}:void 0)}else{const et=ua(U);if(et!==0){const{symbol:qt}=U;qt.constEnumOnlyModule=!(qt.flags&304)&&et===2&&qt.constEnumOnlyModule!==!1}}}function ua(U){const et=Eg(U),qt=et!==0;return io(U,qt?512:1024,qt?110735:0),et}function wn(U){const et=Se(131072,Qe(U));ee(et,U,131072);const qt=Se(2048,"__type");ee(qt,U,2048),qt.members=so(),qt.members.set(et.escapedName,et)}function fa(U){return Ul(U,4096,"__object")}function ec(U){return Ul(U,4096,"__jsxAttributes")}function rl(U,et,qt){return io(U,et,qt)}function Ul(U,et,qt){const Xn=Se(et,qt);return et&106508&&(Xn.parent=o.symbol),ee(Xn,U,et),Xn}function Xl(U,et,qt){switch(c.kind){case 264:qe(U,et,qt);break;case 308:if(of(o)){qe(U,et,qt);break}default:D.assertNode(c,Nm),c.locals||(c.locals=so(),To(c)),Ge(c.locals,void 0,U,et,qt)}}function Vl(){if(!d)return;const U=o,et=f,qt=c,Xn=i,Da=h;for(const Ia of d){const Ie=Ia.parent.parent;o=nr(Ie.parent,Lt=>!!(_ge(Lt)&1))||e,c=Mm(Ie)||e,h=GT({flags:2}),i=Ia,xt(Ia.typeExpression);const Ve=ka(Ia);if((t8(Ia)||!Ia.fullName)&&Ve&&uO(Ve.parent)){const Lt=ni(Ve.parent);if(Lt){Vn(e.symbol,Ve.parent,Lt,!!nr(Ve,hn=>Fr(hn)&&hn.name.escapedText==="prototype"),!1);const Ot=o;switch(FN(Ve.parent)){case 1:case 2:of(e)?o=e:o=void 0;break;case 4:o=Ve.parent.expression;break;case 3:o=Ve.parent.expression.name;break;case 5:o=V1(e,Ve.parent.expression)?e:Fr(Ve.parent.expression)?Ve.parent.expression.name:Ve.parent.expression;break;case 0:return D.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&qe(Ia,524288,788968),o=Ot}}else t8(Ia)||!Ia.fullName||Ia.fullName.kind===79?(i=Ia.parent,Xl(Ia,524288,788968)):xt(Ia.fullName)}o=U,f=et,c=qt,i=Xn,h=Da}function Co(U){if(!e.parseDiagnostics.length&&!(U.flags&16777216)&&!(U.flags&8388608)&&!Cfe(U)){const et=q0(U);if(et===void 0)return;X&&et>=117&&et<=125?e.bindDiagnostics.push(ce(U,La(U),ws(U))):et===133?Zl(e)&&k3(U)?e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,ws(U))):U.flags&32768&&e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(U))):et===125&&U.flags&8192&&e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(U)))}}function La(U){return Ac(U)?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Xo(U){U.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ce(U,_.constructor_is_a_reserved_word,ws(U))))}function jl(U){X&&Td(U.left)&&vy(U.operatorToken.kind)&&Kc(U,U.left)}function tu(U){X&&U.variableDeclaration&&Kc(U,U.variableDeclaration.name)}function zd(U){if(X&&U.expression.kind===79){const et=E1(e,U.expression);e.bindDiagnostics.push(Dc(e,et.start,et.length,_.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function oc(U){return He(U)&&(U.escapedText==="eval"||U.escapedText==="arguments")}function Kc(U,et){if(et&&et.kind===79){const qt=et;if(oc(qt)){const Xn=E1(e,et);e.bindDiagnostics.push(Dc(e,Xn.start,Xn.length,Ds(U),Mr(qt)))}}}function Ds(U){return Ac(U)?_.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?_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_.Invalid_use_of_0_in_strict_mode}function hl(U){X&&Kc(U,U.name)}function el(U){return Ac(U)?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ks(U){if(r<2&&c.kind!==308&&c.kind!==264&&!PA(c)){const et=E1(e,U);e.bindDiagnostics.push(Dc(e,et.start,et.length,el(U)))}}function rn(U){r<1&&X&&U.numericLiteralFlags&32&&e.bindDiagnostics.push(ce(U,_.Octal_literals_are_not_allowed_in_strict_mode))}function Hl(U){X&&Kc(U,U.operand)}function xu(U){X&&(U.operator===45||U.operator===46)&&Kc(U,U.operand)}function zu(U){X&&It(U,_.with_statements_are_not_allowed_in_strict_mode)}function fe(U){X&&es(t)>=2&&(Sde(U.statement)||uc(U.statement))&&It(U.label,_.A_label_is_not_allowed_here)}function It(U,et,qt,Xn,Da){const Ia=yy(e,U.pos);e.bindDiagnostics.push(Dc(e,Ia.start,Ia.length,et,qt,Xn,Da))}function Ht(U,et,qt){Q(U,et,et,qt)}function Q(U,et,qt,Xn){ot(U,{pos:dT(et,e),end:qt.end},Xn)}function ot(U,et,qt){const Xn=Dc(e,et.pos,et.end-et.pos,qt);U?e.bindDiagnostics.push(Xn):e.bindSuggestionDiagnostics=Fn(e.bindSuggestionDiagnostics,{...Xn,category:2})}function xt(U){if(!U)return;Uo(U,i),bi&&(U.tracingPath=e.path);const et=X;if(Ta(U),U.kind>162){const qt=i;i=U;const Xn=_ge(U);Xn===0?st(U):Me(U,Xn),i=qt}else{const qt=i;U.kind===1&&(i=U),mn(U),i=qt}X=et}function mn(U){if(xf(U))if(fr(U))for(const et of U.jsDoc)xt(et);else for(const et of U.jsDoc)Uo(et,U),Fv(et,!1)}function Dr(U){if(!X)for(const et of U){if(!yp(et))return;if(Pr(et)){X=!0;return}}}function Pr(U){const et=v1(e,U.expression);return et==='"use strict"'||et==="'use strict'"}function Ta(U){switch(U.kind){case 79:if(U.flags&2048){let Ie=U.parent;for(;Ie&&!h_(Ie);)Ie=Ie.parent;Xl(Ie,524288,788968);break}case 108:return h&&(vt(U)||i.kind===300)&&(U.flowNode=h),Co(U);case 163:h&&O3(U)&&(U.flowNode=h);break;case 233:case 106:U.flowNode=h;break;case 80:return Xo(U);case 208:case 209:const et=U;h&&Et(et)&&(et.flowNode=h),mfe(et)&&Xi(et),fr(et)&&e.commonJsModuleIndicator&&bh(et)&&!M8(c,"module")&&Ge(e.locals,void 0,et.expression,134217729,111550);break;case 223:switch(Ll(U)){case 1:qd(U);break;case 2:Wl(U);break;case 3:ut(U.left,U);break;case 6:Lo(U);break;case 4:xe(U);break;case 5:const Ie=U.left.expression;if(fr(U)&&He(Ie)){const Ve=M8(c,Ie.escapedText);if(w3(Ve==null?void 0:Ve.valueDeclaration)){xe(U);break}}Pt(U);break;case 0:break;default:D.fail("Unknown binary expression special property assignment kind")}return jl(U);case 295:return tu(U);case 217:return zd(U);case 8:return rn(U);case 222:return Hl(U);case 221:return xu(U);case 251:return zu(U);case 253:return fe(U);case 194:y=!0;return;case 179:break;case 165:return pf(U);case 166:return Au(U);case 257:return Jd(U);case 205:return U.flowNode=h,Jd(U);case 169:case 168:return ls(U);case 299:case 300:return Yo(U,4,0);case 302:return Yo(U,8,900095);case 176:case 177:case 178:return io(U,131072,0);case 171:case 170:return Yo(U,8192|(U.questionToken?16777216:0),G_(U)?0:103359);case 259:return _f(U);case 173:return io(U,16384,0);case 174:return Yo(U,32768,46015);case 175:return Yo(U,65536,78783);case 181:case 320:case 326:case 182:return wn(U);case 184:case 325:case 197:return ho(U);case 335:return ft(U);case 207:return fa(U);case 215:case 216:return x_(U);case 210:switch(Ll(U)){case 7:return Mt(U);case 8:return fl(U);case 9:return oe(U);case 0:break;default:return D.fail("Unknown call expression assignment declaration kind")}fr(U)&&pd(U);break;case 228:case 260:return X=!0,ff(U);case 261:return Xl(U,64,788872);case 262:return Xl(U,524288,788968);case 263:return tc(U);case 264:return _i(U);case 289:return ec(U);case 288:return rl(U,4,0);case 268:case 271:case 273:case 278:return io(U,2097152,2097152);case 267:return dc(U);case 270:return Es(U);case 275:return _d(U);case 274:return dl(U);case 308:return Dr(U.statements),jo();case 238:if(!PA(U.parent))return;case 265:return Dr(U.statements);case 344:if(U.parent.kind===326)return Au(U);if(U.parent.kind!==325)break;case 351:const Da=U,Ia=Da.isBracketed||Da.typeExpression&&Da.typeExpression.type.kind===319?16777220:4;return io(Da,Ia,0);case 349:case 341:case 343:return(d||(d=[])).push(U);case 342:return xt(U.typeExpression)}}function ls(U){const et=rf(U),qt=et?98304:4,Xn=et?13247:0;return Yo(U,qt|(U.questionToken?16777216:0),Xn)}function ho(U){return Ul(U,2048,"__type")}function jo(){if(ss(e),Zl(e))Ya();else if(m_(e)){Ya();const U=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=U}}function Ya(){Ul(e,512,`"${Gd(e.fileName)}"`)}function dl(U){if(!o.symbol||!o.symbol.exports)Ul(U,111551,Qe(U));else{const et=rC(U)?2097152:4,qt=Ge(o.symbol.exports,o.symbol,U,et,67108863);U.isExportEquals&&GN(qt,U)}}function dc(U){kt(U.modifiers)&&e.bindDiagnostics.push(ce(U,_.Modifiers_cannot_appear_here));const et=qi(U.parent)?Zl(U.parent)?U.parent.isDeclarationFile?void 0:_.Global_module_exports_may_only_appear_in_declaration_files:_.Global_module_exports_may_only_appear_in_module_files:_.Global_module_exports_may_only_appear_at_top_level;et?e.bindDiagnostics.push(ce(U,et)):(e.symbol.globalExports=e.symbol.globalExports||so(),Ge(e.symbol.globalExports,e.symbol,U,2097152,2097152))}function _d(U){!o.symbol||!o.symbol.exports?Ul(U,8388608,Qe(U)):U.exportClause?kh(U.exportClause)&&(Uo(U.exportClause,U),Ge(o.symbol.exports,o.symbol,U.exportClause,2097152,2097152)):Ge(o.symbol.exports,o.symbol,U,8388608,0)}function Es(U){U.name&&io(U,2097152,2097152)}function ds(U){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=U,e.externalModuleIndicator||Ya()),!0)}function fl(U){if(!ds(U))return;const et=Xs(U.arguments[0],void 0,(qt,Xn)=>(Xn&&ee(Xn,qt,67110400),Xn));et&&Ge(et.exports,et,U,1048580,0)}function qd(U){if(!ds(U))return;const et=Xs(U.left.expression,void 0,(qt,Xn)=>(Xn&&ee(Xn,qt,67110400),Xn));if(et){const Xn=YN(U.right)&&(hT(U.left.expression)||bh(U.left.expression))?2097152:1048580;Uo(U.left,U),Ge(et.exports,et,U.left,Xn,0)}}function Wl(U){if(!ds(U))return;const et=ON(U.right);if(Nq(et)||o===e&&V1(e,et))return;if(Ls(et)&&Yn(et.properties,t_)){Ue(et.properties,Nf);return}const qt=rC(U)?2097152:1049092,Xn=Ge(e.symbol.exports,e.symbol,U,qt|67108864,0);GN(Xn,U)}function Nf(U){Ge(e.symbol.exports,e.symbol,U,69206016,0)}function xe(U){if(D.assert(fr(U)),br(U)&&Fr(U.left)&&Ni(U.left.name)||Fr(U)&&Ni(U.name))return;const qt=Sd(U,!1,!1);switch(qt.kind){case 259:case 215:let Xn=qt.symbol;if(br(qt.parent)&&qt.parent.operatorToken.kind===63){const Ie=qt.parent.left;gT(Ie)&&eb(Ie.expression)&&(Xn=Ts(Ie.expression.expression,s))}Xn&&Xn.valueDeclaration&&(Xn.members=Xn.members||so(),Nv(U)?Dt(U,Xn,Xn.members):Ge(Xn.members,Xn,U,67108868,0),ee(Xn,Xn.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const Da=qt.parent,Ia=Ja(qt)?Da.symbol.exports:Da.symbol.members;Nv(U)?Dt(U,Da.symbol,Ia):Ge(Ia,Da.symbol,U,67108868,0,!0);break;case 308:if(Nv(U))break;qt.commonJsModuleIndicator?Ge(qt.symbol.exports,qt.symbol,U,1048580,0):io(U,1,111550);break;default:D.failBadSyntaxKind(qt)}}function Dt(U,et,qt){Ge(qt,et,U,4,0,!0,!0),Nn(U,et)}function Nn(U,et){et&&(et.assignmentDeclarationMembers||(et.assignmentDeclarationMembers=new Map)).set(ms(U),U)}function Xi(U){U.expression.kind===108?xe(U):gT(U)&&U.parent.parent.kind===308&&(eb(U.expression)?ut(U,U.parent):un(U))}function Lo(U){Uo(U.left,U),Uo(U.right,U),Mi(U.left.expression,U.left,!1,!0)}function oe(U){const et=Ts(U.arguments[0].expression);et&&et.valueDeclaration&&ee(et,et.valueDeclaration,32),Rr(U,et,!0)}function ut(U,et){const qt=U.expression,Xn=qt.expression;Uo(Xn,qt),Uo(qt,U),Uo(U,et),Mi(Xn,U,!0,!0)}function Mt(U){let et=Ts(U.arguments[0]);const qt=U.parent.parent.kind===308;et=Vn(et,U.arguments[0],qt,!1,!1),Rr(U,et,!1)}function Pt(U){var et;const qt=Ts(U.left.expression,o)||Ts(U.left.expression,c);if(!fr(U)&&!hfe(qt))return;const Xn=xk(U.left);if(!(He(Xn)&&((et=M8(o,Xn.escapedText))==null?void 0:et.flags)&2097152))if(Uo(U.left,U),Uo(U.right,U),He(U.left.expression)&&o===e&&V1(e,U.left.expression))qd(U);else if(Nv(U)){Ul(U,67108868,"__computed");const Da=Vn(qt,U.left.expression,ni(U.left),!1,!1);Nn(U,Da)}else un(ao(U.left,mx))}function un(U){D.assert(!He(U)),Uo(U.expression,U),Mi(U.expression,U,!1,!1)}function Vn(U,et,qt,Xn,Da){return(U==null?void 0:U.flags)&2097152||(qt&&!Xn&&(U=Xs(et,U,(Ve,Lt,Ot)=>{if(Lt)return ee(Lt,Ve,67110400),Lt;{const hn=Ot?Ot.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=so());return Ge(hn,Ot,Ve,67110400,110735)}})),Da&&U&&U.valueDeclaration&&ee(U,U.valueDeclaration,32)),U}function Rr(U,et,qt){if(!et||!ja(et))return;const Xn=qt?et.members||(et.members=so()):et.exports||(et.exports=so());let Da=0,Ia=0;Qs(_x(U))?(Da=8192,Ia=103359):no(U)&&px(U)&&(kt(U.arguments[2].properties,Ie=>{const Ve=ka(Ie);return!!Ve&&He(Ve)&&Mr(Ve)==="set"})&&(Da|=65540,Ia|=78783),kt(U.arguments[2].properties,Ie=>{const Ve=ka(Ie);return!!Ve&&He(Ve)&&Mr(Ve)==="get"})&&(Da|=32772,Ia|=46015)),Da===0&&(Da=4,Ia=0),Ge(Xn,et,U,Da|67108864,Ia&-67108865)}function ni(U){return br(U.parent)?Ho(U.parent).parent.kind===308:U.parent.parent.kind===308}function Mi(U,et,qt,Xn){let Da=Ts(U,o)||Ts(U,c);const Ia=ni(et);Da=Vn(Da,et.expression,Ia,qt,Xn),Rr(et,Da,qt)}function ja(U){if(U.flags&1072)return!0;const et=U.valueDeclaration;if(et&&no(et))return!!_x(et);let qt=et?Ki(et)?et.initializer:br(et)?et.right:Fr(et)&&br(et.parent)?et.parent.right:void 0:void 0;if(qt=qt&&ON(qt),qt){const Xn=eb(Ki(et)?et.name:br(et)?et.left:et);return!!Y0(br(qt)&&(qt.operatorToken.kind===56||qt.operatorToken.kind===60)?qt.right:qt,Xn)}return!1}function Ho(U){for(;br(U.parent);)U=U.parent;return U.parent}function Ts(U,et=o){if(He(U))return M8(et,U.escapedText);{const qt=Ts(U.expression);return qt&&qt.exports&&qt.exports.get(pg(U))}}function Xs(U,et,qt){if(V1(e,U))return e.symbol;if(He(U))return qt(U,Ts(U),et);{const Xn=Xs(U.expression,et,qt),Da=MN(U);return Ni(Da)&&D.fail("unexpected PrivateIdentifier"),qt(Da,Xn&&Xn.exports&&Xn.exports.get(pg(U)),Xn)}}function pd(U){!e.commonJsModuleIndicator&&xd(U,!1)&&ds(U)}function ff(U){if(U.kind===260)Xl(U,32,899503);else{const Da=U.name?U.name.escapedText:"__class";Ul(U,32,Da),U.name&&re.add(U.name.escapedText)}const{symbol:et}=U,qt=Se(4194308,"prototype"),Xn=et.exports.get(qt.escapedName);Xn&&(U.name&&Uo(U.name,U),e.bindDiagnostics.push(ce(Xn.declarations[0],_.Duplicate_identifier_0,Fl(qt)))),et.exports.set(qt.escapedName,qt),qt.parent=et}function tc(U){return T1(U)?Xl(U,128,899967):Xl(U,256,899327)}function Jd(U){if(X&&Kc(U,U.name),!Xa(U.name)){const et=U.kind===257?U:U.parent.parent;fr(U)&&vl(t)!==100&&x1(et)&&!p1(U)&&!(py(U)&1)?io(U,2097152,2097152):kz(U)?Xl(U,2,111551):bT(U)?io(U,1,111551):io(U,1,111550)}}function Au(U){if(!(U.kind===344&&o.kind!==326)&&(X&&!(U.flags&16777216)&&Kc(U,U.name),Xa(U.name)?Ul(U,1,"__"+U.parent.parameters.indexOf(U)):io(U,1,111551),tf(U,U.parent))){const et=U.parent.parent;Ge(et.symbol.members,et.symbol,U,4|(U.questionToken?16777216:0),0)}}function _f(U){!e.isDeclarationFile&&!(U.flags&16777216)&&oC(U)&&(te|=2048),hl(U),X?(Ks(U),Xl(U,16,110991)):io(U,16,110991)}function x_(U){!e.isDeclarationFile&&!(U.flags&16777216)&&oC(U)&&(te|=2048),h&&(U.flowNode=h),hl(U);const et=U.name?U.name.escapedText:"__function";return Ul(U,16,et)}function Yo(U,et,qt){return!e.isDeclarationFile&&!(U.flags&16777216)&&oC(U)&&(te|=2048),h&&C3(U)&&(U.flowNode=h),Nv(U)?Ul(U,et,"__computed"):io(U,et,qt)}function A_(U){const et=nr(U,qt=>qt.parent&&LC(qt.parent)&&qt.parent.extendsType===qt);return et&&et.parent}function pf(U){var et,qt;if(Tp(U.parent)){const Xn=j3(U.parent);Xn?(D.assertNode(Xn,Nm),(et=Xn.locals)!=null||(Xn.locals=so()),Ge(Xn.locals,void 0,U,262144,526824)):io(U,262144,526824)}else if(U.parent.kind===192){const Xn=A_(U.parent);Xn?(D.assertNode(Xn,Nm),(qt=Xn.locals)!=null||(Xn.locals=so()),Ge(Xn.locals,void 0,U,262144,526824)):Ul(U,262144,Qe(U))}else io(U,262144,526824)}function Z_(U){const et=Eg(U);return et===1||et===2&&w1(t)}function kp(U){if(!(h.flags&1))return!1;if(h===ye&&(hN(U)&&U.kind!==239||U.kind===260||U.kind===264&&Z_(U))&&(h=ae,!t.allowUnreachableCode)){const qt=A_e(t)&&!(U.flags&16777216)&&(!uc(U)||!!(gp(U.declarationList)&3)||U.declarationList.declarations.some(Xn=>!!Xn.initializer));A7e(U,(Xn,Da)=>Q(qt,Xn,Da,_.Unreachable_code_detected))}return!0}}function A7e(e,t){if(wa(e)&&fge(e)&&lo(e.parent)){const{statements:r}=e.parent,i=rJ(r,e);rH(i,fge,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function fge(e){return!yc(e)&&!C7e(e)&&!ob(e)&&!(uc(e)&&!(gp(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function C7e(e){switch(e.kind){case 261:case 262:return!0;case 264:return Eg(e)!==1;case 263:return Yr(e,2048);default:return!1}}function V1(e,t){let r=0;const i=dH();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),hT(t)||bh(t))return!0;if(He(t)){const o=M8(e,t.escapedText);if(o&&o.valueDeclaration&&Ki(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),nd(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function _ge(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(C3(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Ka(e.parent)||kl(e.parent)?0:34}return 0}function M8(e,t){var r,i,o,s,c;const f=(i=(r=ai(e,Nm))==null?void 0:r.locals)==null?void 0:i.get(t);if(f)return(o=f.exportSymbol)!=null?o:f;if(qi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Rm(e))return(c=(s=e.symbol)==null?void 0:s.exports)==null?void 0:c.get(t)}var kX,pge,L7e=C({"src/compiler/binder.ts"(){Oa(),d1(),kX=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(kX||{}),pge=x7e()}});function mge(e,t,r,i,o,s,c,f,d,y){return h;function h(E=()=>!0){const A=[],L=[];return{walkType:re=>{try{return I(re),{visitedTypes:YS(A),visitedSymbols:YS(L)}}finally{Fi(A),Fi(L)}},walkSymbol:re=>{try{return de(re),{visitedTypes:YS(A),visitedSymbols:YS(L)}}finally{Fi(A),Fi(L)}}};function I(re){if(!(!re||A[re.id]||(A[re.id]=re,de(re.symbol)))){if(re.flags&524288){const ae=re,W=ae.objectFlags;W&4&&O(re),W&32&&te(re),W&3&&Y(re),W&24&&P(ae)}re.flags&262144&&k(re),re.flags&3145728&&G(re),re.flags&4194304&&V(re),re.flags&8388608&&H(re)}}function O(re){I(re.target),Ue(y(re),I)}function k(re){I(f(re))}function G(re){Ue(re.types,I)}function V(re){I(re.type)}function H(re){I(re.objectType),I(re.indexType),I(re.constraint)}function te(re){I(re.typeParameter),I(re.constraintType),I(re.templateType),I(re.modifiersType)}function X(re){const ye=t(re);ye&&I(ye.type),Ue(re.typeParameters,I);for(const ae of re.parameters)de(ae);I(e(re)),I(r(re))}function Y(re){P(re),Ue(re.typeParameters,I),Ue(i(re),I),I(re.thisType)}function P(re){const ye=o(re);for(const ae of ye.indexInfos)I(ae.keyType),I(ae.type);for(const ae of ye.callSignatures)X(ae);for(const ae of ye.constructSignatures)X(ae);for(const ae of ye.properties)de(ae)}function de(re){if(!re)return!1;const ye=bo(re);if(L[ye])return!1;if(L[ye]=re,!E(re))return!0;const ae=s(re);return I(ae),re.exports&&re.exports.forEach(de),Ue(re.declarations,W=>{if(W.type&&W.type.kind===183){const ce=W.type,me=c(d(ce.exprName));de(me)}}),!1}}}var I7e=C({"src/compiler/symbolWalker.ts"(){Oa()}});function nF({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=c();return{relativePreference:o!==void 0?Uc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:f=>{if((f??i.impliedNodeFormat)===99)return pw(r,i.fileName)?[3,2]:[2];if(vl(r)===1)return[1,2];switch(s){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:D.assertNever(s)}}};function c(){if(o!==void 0){if(Ix(o))return 2;if(ic(o,"/index"))return 1}return tJ(t,i.impliedNodeFormat,r,i)}}function k7e(e,t,r,i,o,s,c={}){const f=hge(e,t,r,i,o,nF({},e,t,s),{},c);if(f!==s)return f}function rF(e,t,r,i,o,s={}){return hge(e,t,r,i,o,nF({},e,t),{},s)}function w7e(e,t,r,i,o,s={}){const c=wX(t.path,i),f=xge(t.path,r,i,o,s);return Kt(f,d=>DX(d,c,t,i,e,o,!0,s.overrideImportMode))}function hge(e,t,r,i,o,s,c,f={}){const d=wX(r,o),y=xge(r,i,o,c,f);return Kt(y,h=>DX(h,d,t,o,e,c,void 0,f.overrideImportMode))||bge(i,d,e,o,f.overrideImportMode||t.impliedNodeFormat,s)}function D7e(e,t,r,i,o={}){return gge(e,t,r,i,o)[0]}function gge(e,t,r,i,o={}){var s;const c=d3(e);if(!c)return rt;const f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=f==null?void 0:f.get(t.path,c.path,i,o);return[d==null?void 0:d.moduleSpecifiers,c,d==null?void 0:d.modulePaths,f]}function yge(e,t,r,i,o,s,c={}){return vge(e,t,r,i,o,s,c).moduleSpecifiers}function vge(e,t,r,i,o,s,c={}){let f=!1;const d=N7e(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:f};let[y,h,E,A]=gge(e,i,o,s,c);if(y)return{moduleSpecifiers:y,computedWithoutCache:f};if(!h)return{moduleSpecifiers:rt,computedWithoutCache:f};f=!0,E||(E=Age(i.path,h.originalFileName,o));const L=R7e(E,r,i,o,s,c);return A==null||A.set(i.path,h.path,s,c,E,L),{moduleSpecifiers:L,computedWithoutCache:f}}function R7e(e,t,r,i,o,s={}){const c=wX(r.path,i),f=nF(o,t,r),d=Ue(e,I=>Ue(i.getFileIncludeReasons().get(zs(I.path,i.getCurrentDirectory(),c.getCanonicalFileName)),O=>{if(O.kind!==3||O.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==LY(r,O.index))return;const k=OF(r,O.index).text;return f.relativePreference!==1||!Sf(k)?k:void 0}));if(d)return[d];const y=kt(e,I=>I.isInNodeModules);let h,E,A,L;for(const I of e){const O=I.isInNodeModules?DX(I,c,r,i,t,o,void 0,s.overrideImportMode):void 0;if(h=Fn(h,O),O&&I.isRedirect)return h;if(!O){const k=bge(I.path,c,t,i,s.overrideImportMode||r.impliedNodeFormat,f,I.isRedirect);if(!k)continue;I.isRedirect?A=Fn(A,k):wW(k)?E=Fn(E,k):(!y||I.isInNodeModules)&&(L=Fn(L,k))}}return E!=null&&E.length?E:A!=null&&A.length?A:h!=null&&h.length?h:D.checkDefined(L)}function wX(e,t){const r=ru(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=hi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function bge(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:c},f){const{baseUrl:d,paths:y,rootDirs:h}=r;if(f&&!y)return;const{sourceDirectory:E,getCanonicalFileName:A}=t,L=s(o),I=h&&O7e(h,e,E,A,L,r)||mw(_1(wm(E,e,A)),L,r);if(!d&&!y||c===0)return f?void 0:I;const O=Pa(Eq(r,i)||d,i.getCurrentDirectory()),k=kge(e,O,A);if(!k)return f?void 0:I;const G=y&&Cge(k,y,L,i,r);if(f)return G;const V=G===void 0&&d!==void 0?mw(k,L,r):G;if(!V)return I;if(c===1&&!Sf(V))return V;if(c===3&&!Sf(V)){const H=r.configFilePath?zs(hi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),te=zs(e,H,A),X=xa(E,H),Y=xa(te,H);if(X&&!Y||!X&&Y)return V;const P=Tge(i,hi(te));return Tge(i,E)!==P?V:I}return wge(V)||F8(I)<F8(V)?I:V}function F8(e){let t=0;for(let r=xa(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function Ege(e,t){return s1(t.isRedirect,e.isRedirect)||EO(e.path,t.path)}function Tge(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!ag(t,r=>e.fileExists(Bi(r,"package.json"))?!0:void 0)}function Sge(e,t,r,i,o){var s;const c=Z0(r),f=r.getCurrentDirectory(),d=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,y=zs(t,f,c),h=r.redirectTargetsMap.get(y)||rt,A=[...d?[d]:rt,t,...h].map(G=>Pa(G,f));let L=!Yn(A,Ok);if(!i){const G=Ue(A,V=>!(L&&Ok(V))&&o(V,d===V));if(G)return G}const I=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),O=Pa(t,f);return I&&ag(hi(O),G=>{const V=I.get(Pu(zs(G,f,c)));if(V)return OW(e,G,c)?!1:Ue(A,H=>{if(!OW(H,G,c))return;const te=wm(G,H,c);for(const X of V){const Y=Ev(X,te),P=o(Y,H===d);if(L=!0,P)return P}})})||(i?Ue(A,G=>L&&Ok(G)?void 0:o(G,G===d)):void 0)}function xge(e,t,r,i,o={}){var s;const c=zs(t,r.getCurrentDirectory(),Z0(r)),f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(f){const y=f.get(e,c,i,o);if(y!=null&&y.modulePaths)return y.modulePaths}const d=Age(e,t,r);return f&&f.setModulePaths(e,c,i,o,d),d}function Age(e,t,r){const i=Z0(r),o=new Map;Sge(e,t,r,!0,(c,f)=>{const d=Zx(c);o.set(c,{path:i(c),isRedirect:f,isInNodeModules:d})});const s=[];for(let c=hi(e);o.size!==0;){const f=Pu(c);let d;o.forEach(({path:h,isRedirect:E,isInNodeModules:A},L)=>{xa(h,f)&&((d||(d=[])).push({path:L,isRedirect:E,isInNodeModules:A}),o.delete(L))}),d&&(d.length>1&&d.sort(Ege),s.push(...d));const y=hi(c);if(y===c)break;c=y}if(o.size){const c=Ro(o.values());c.length>1&&c.sort(Ege),s.push(...c)}return s}function N7e(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(c=>Dz(c)&&(!b1(c)||!Uc(V_(c.name))));if(i)return i.name.text;const s=ia(e.declarations,c=>{var f,d,y,h;if(!Jl(c))return;const E=O(c);if(!((f=E==null?void 0:E.parent)!=null&&f.parent&&rm(E.parent)&&Mu(E.parent.parent)&&qi(E.parent.parent.parent)))return;const A=(h=(y=(d=E.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:y.valueDeclaration)==null?void 0:h.expression;if(!A)return;const L=t.getSymbolAtLocation(A);if(!L)return;if(((L==null?void 0:L.flags)&2097152?t.getAliasedSymbol(L):L)===c.symbol)return E.parent.parent;function O(k){for(;k.flags&4;)k=k.parent;return k}})[0];if(s)return s.name.text}function Cge(e,t,r,i,o){for(const c in t)for(const f of t[c]){const d=qo(f),y=d.indexOf("*"),h=r.map(E=>({ending:E,value:mw(e,[E],o)}));if(xh(d)&&h.push({ending:void 0,value:e}),y!==-1){const E=d.substring(0,y),A=d.substring(y+1);for(const{ending:L,value:I}of h)if(I.length>=E.length+A.length&&xa(I,E)&&ic(I,A)&&s({ending:L,value:I})){const O=I.substring(E.length,I.length-A.length);return c.replace("*",O)}}else if(kt(h,E=>E.ending!==0&&d===E.value)||kt(h,E=>E.ending===0&&d===E.value&&s(E)))return c}function s({ending:c,value:f}){return c!==0||f===mw(e,[c],o,i)}}function iF(e,t,r,i,o,s,c=0){if(typeof o=="string"){const f=Pa(Bi(r,o),void 0),d=bO(t)?Gd(t)+aF(t,e):void 0;switch(c){case 0:if(nT(t,f)===0||d&&nT(d,f)===0)return{moduleFileToTry:i};break;case 1:if(Tv(f,t)){const A=wm(f,t,!1);return{moduleFileToTry:Pa(Bi(Bi(i,o),A),void 0)}}break;case 2:const y=f.indexOf("*"),h=f.slice(0,y),E=f.slice(y+1);if(xa(t,h)&&ic(t,E)){const A=t.slice(h.length,t.length-E.length);return{moduleFileToTry:i.replace("*",A)}}if(d&&xa(d,h)&&ic(d,E)){const A=d.slice(h.length,d.length-E.length);return{moduleFileToTry:i.replace("*",A)}}break}}else{if(Array.isArray(o))return Ue(o,f=>iF(e,t,r,i,f,s));if(typeof o=="object"&&o!==null){if(Q5(o))return Ue(rg(o),f=>{const d=Pa(Bi(i,f),void 0),y=ic(f,"/")?1:pu(f,"*")?2:0;return iF(e,t,r,d,o[f],s,y)});for(const f of rg(o))if(f==="default"||s.indexOf(f)>=0||O8(s,f)){const d=o[f],y=iF(e,t,r,i,d,s);if(y)return y}}}}function O7e(e,t,r,i,o,s){const c=Lge(t,e,i);if(c===void 0)return;const f=Lge(r,e,i),d=ma(f,h=>Vt(c,E=>_1(wm(h,E,i)))),y=fH(d,EO);if(y)return mw(y,o,s)}function DX({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},o,s,c,f,d,y){if(!s.fileExists||!s.readFile)return;const h=uJ(e);if(!h)return;const A=nF(f,c,o).getAllowedEndingsInPreferredOrder();let L=e,I=!1;if(!d){let te=h.packageRootIndex,X;for(;;){const{moduleFileToTry:Y,packageRootPath:P,blockedByExports:de,verbatimFromExports:re}=H(te);if(vl(c)!==1){if(de)return;if(re)return Y}if(P){L=P,I=!0;break}if(X||(X=Y),te=e.indexOf(Ms,te+1),te===-1){L=mw(X,A,c,s);break}}}if(t&&!I)return;const O=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),k=r(L.substring(0,h.topLevelNodeModulesIndex));if(!(xa(i,k)||O&&xa(r(O),k)))return;const G=L.substring(h.topLevelPackageNameIndex+1),V=P8(G);return vl(c)===1&&V===G?void 0:V;function H(te){var X,Y;const P=e.substring(0,te),de=Bi(P,"package.json");let re=e,ye=!1;const ae=(Y=(X=s.getPackageJsonInfoCache)==null?void 0:X.call(s))==null?void 0:Y.getPackageJsonInfo(de);if(typeof ae=="object"||ae===void 0&&s.fileExists(de)){const W=(ae==null?void 0:ae.contents.packageJsonContent)||JSON.parse(s.readFile(de)),ce=y||o.impliedNodeFormat;if(qq(c)){const Se=P.substring(h.topLevelPackageNameIndex+1),ee=P8(Se),Qe=JC(c,ce===99),je=W.exports?iF(c,e,P,ee,W.exports,Qe):void 0;if(je)return{...bO(je.moduleFileToTry)?{moduleFileToTry:Gd(je.moduleFileToTry)+aF(je.moduleFileToTry,c)}:je,verbatimFromExports:!0};if(W.exports)return{moduleFileToTry:e,blockedByExports:!0}}const me=W.typesVersions?W5(W.typesVersions):void 0;if(me){const Se=e.slice(P.length+1),ee=Cge(Se,me.paths,A,s,c);ee===void 0?ye=!0:re=Bi(P,ee)}const ve=W.typings||W.types||W.main||"index.js";if(Ha(ve)&&!(ye&&nJ(_7(me.paths),ve))){const Se=zs(ve,P,r);if(Gd(Se)===Gd(r(re)))return{packageRootPath:P,moduleFileToTry:re}}}else{const W=r(re.substring(h.packageRootIndex+1));if(W==="index.d.ts"||W==="index.js"||W==="index.ts"||W==="index.tsx")return{moduleFileToTry:re,packageRootPath:P}}return{moduleFileToTry:re}}}function P7e(e,t){if(!e.fileExists)return;const r=is(kk({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function Lge(e,t,r){return ia(t,i=>{const o=kge(e,i,r);return o!==void 0&&wge(o)?void 0:o})}function mw(e,t,r,i){if(Sc(e,[".json",".mjs",".cjs"]))return e;const o=Gd(e);if(e===o)return e;if(Sc(e,[".d.mts",".mts",".d.cts",".cts"]))return o+RX(e,r);if(!Sc(e,[".d.ts"])&&Sc(e,[".ts"])&&pu(e,".d."))return Ige(e);switch(t[0]){case 0:const s=CA(o,"/index");return i&&s!==o&&P7e(i,s)?o:s;case 1:return o;case 2:return o+RX(e,r);case 3:if(fd(e)){const c=t.findIndex(d=>d===0||d===1),f=t.indexOf(2);return c!==-1&&c<f?o:o+RX(e,r)}return e;default:return D.assertNever(t[0])}}function Ige(e){const t=mu(e);if(!ic(e,".ts")||!pu(t,".d.")||Sc(t,[".d.ts"]))return;const r=TO(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function RX(e,t){var r;return(r=aF(e,t))!=null?r:D.fail(`Extension ${xO(e)} is unsupported:: FileName:: ${e}`)}function aF(e,t){const r=xh(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 kge(e,t,r){const i=ax(t,e,t,r,!1);return km(i)?void 0:i}function wge(e){return xa(e,"..")}var Dge=C({"src/compiler/moduleSpecifiers.ts"(){Oa()}}),j1={};ne(j1,{countPathComponents:()=>F8,forEachFileNameOfModule:()=>Sge,getModuleSpecifier:()=>rF,getModuleSpecifiers:()=>yge,getModuleSpecifiersWithCacheInfo:()=>vge,getNodeModulesPackageName:()=>w7e,tryGetJSExtensionForFile:()=>aF,tryGetModuleSpecifiersFromCache:()=>D7e,tryGetRealFileNameForNonJsDeclarationFileName:()=>Ige,updateModuleSpecifier:()=>k7e});var NX=C({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Dge()}});function M7e(){this.flags=0}function ms(e){return e.id||(e.id=FX,FX++),e.id}function bo(e){return e.id||(e.id=MX,MX++),e.id}function OX(e,t){const r=Eg(e);return r===1||t&&r===2}function Rge(e){var t=Ed(()=>{var n=new Map;return e.getSourceFiles().forEach(a=>{a.resolvedModules&&a.resolvedModules.forEach(({resolvedModule:l})=>{l!=null&&l.packageId&&n.set(l.packageId.name,l.extension===".d.ts"||!!n.get(l.packageId.name))})}),n}),r=[],i=n=>{r.push(n)},o,s=new Set,c,f,d=Hc.getSymbolConstructor(),y=Hc.getTypeConstructor(),h=Hc.getSignatureConstructor(),E=0,A=0,L=0,I=0,O=0,k=0,G,V,H=!1,te=so(),X=[1],Y=e.getCompilerOptions(),P=es(Y),de=au(Y),re=!!Y.experimentalDecorators,ye=yO(Y),ae=AT(Y),W=v_(Y,"strictNullChecks"),ce=v_(Y,"strictFunctionTypes"),me=v_(Y,"strictBindCallApply"),ve=v_(Y,"strictPropertyInitialization"),Se=v_(Y,"noImplicitAny"),ee=v_(Y,"noImplicitThis"),Qe=v_(Y,"useUnknownInCatchVariables"),je=!!Y.keyofStringsOnly,Ge=Y.suppressExcessPropertyErrors?0:8192,qe=Y.exactOptionalPropertyTypes,Oe=sot(),Me=Bct(),Ye=fo(),ze=so(),Fe=ts(4,"undefined");Fe.declarations=[];var st=ts(1536,"globalThis",8);st.exports=ze,st.declarations=[],ze.set(st.escapedName,st);var Ct=ts(4,"arguments"),Et=ts(4,"require"),jt=Y.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",tt;const at={getNodeCount:()=>Nu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,A),getTypeCount:()=>E,getInstantiationCount:()=>L,getRelationCacheSizes:()=>({assignable:kd.size,identity:Dd.size,subtype:$m.size,strictSubtype:np.size}),isUndefinedSymbol:n=>n===Fe,isArgumentsSymbol:n=>n===Ct,isUnknownSymbol:n=>n===an,getMergedSymbol:as,getDiagnostics:qRe,getGlobalDiagnostics:nct,getRecursionIdentity:FL,getUnmatchedProperties:Dae,getTypeOfSymbolAtLocation:(n,a)=>{const l=Ea(a);return l?nrt(n,l):Ce},getTypeOfSymbol:ar,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const l=Ea(n,Ba);return l===void 0?D.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(D.assert(tf(l,l.parent)),lE(l,sl(a)))},getDeclaredTypeOfSymbol:Us,getPropertiesOfType:hs,getPropertyOfType:(n,a)=>co(n,sl(a)),getPrivateIdentifierPropertyOfType:(n,a,l)=>{const u=Ea(l);if(!u)return;const p=sl(a),g=jV(p,u);return g?_oe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>fc(n,sl(a)),getIndexInfoOfType:(n,a)=>sh(n,a===0?ue:mt),getIndexInfosOfType:Lu,getIndexInfosOfIndexSymbol:Iie,getSignaturesOfType:za,getIndexTypeOfType:(n,a)=>Xg(n,a===0?ue:mt),getIndexType:n=>vm(n),getBaseTypes:Po,getBaseTypeOfLiteralType:fv,getWidenedType:Zd,getTypeFromTypeNode:n=>{const a=Ea(n,Gi);return a?fi(a):Ce},getParameterType:_p,getParameterIdentifierNameAtPosition:Sat,getPromisedTypeOfPromise:iR,getAwaitedType:n=>JE(n),getReturnTypeOfSignature:ys,isNullableType:VV,getNullableType:yV,getNonNullableType:ty,getNonOptionalType:Tae,getTypeArguments:gs,typeToTypeNode:Ye.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ye.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ye.signatureToSignatureDeclaration,symbolToEntityName:Ye.symbolToEntityName,symbolToExpression:Ye.symbolToExpression,symbolToNode:Ye.symbolToNode,symbolToTypeParameterDeclarations:Ye.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ye.symbolToParameterDeclaration,typeParameterToDeclaration:Ye.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const l=Ea(n);return l?rct(l,a):[]},getSymbolAtLocation:n=>{const a=Ea(n);return a?R_(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Ea(n);return a?uct(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Ea(n);return a?dct(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Ea(n,dd);return a?fct(a):void 0},getExportSymbolOfSymbol(n){return as(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Ea(n);return a?RS(a):Ce},getTypeOfAssignmentPattern:n=>{const a=Ea(n,qI);return a&&hj(a)||Ce},getPropertySymbolOfDestructuringAssignment:n=>{const a=Ea(n,He);return a?_ct(a):void 0},signatureToString:(n,a,l,u)=>le(n,Ea(a),l,u),typeToString:(n,a,l)=>ke(n,Ea(a),l),symbolToString:(n,a,l,u)=>S(n,Ea(a),l,u),typePredicateToString:(n,a,l)=>nu(n,Ea(a),l),writeSignature:(n,a,l,u,p)=>le(n,Ea(a),l,u,p),writeType:(n,a,l,u)=>ke(n,Ea(a),l,u),writeSymbol:(n,a,l,u,p)=>S(n,Ea(a),l,u,p),writeTypePredicate:(n,a,l,u)=>nu(n,Ea(a),l,u),getAugmentedPropertiesOfType:fse,getRootSymbols:ZRe,getSymbolOfExpando:YV,getContextualType:(n,a)=>{const l=Ea(n,vt);if(l)return a&4?Qt(l,()=>sd(l,a)):sd(l,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Ea(n,hy);return a?eoe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const l=Ea(n,ux);return l&&Zae(l,a)},getContextualTypeForJsxAttribute:n=>{const a=Ea(n,s3);return a&&hwe(a,void 0)},isContextSensitive:w_,getTypeOfPropertyOfContextualType:WE,getFullyQualifiedName:Bh,getResolvedSignature:(n,a,l)=>On(n,a,l,0),getResolvedSignatureForStringLiteralCompletions:(n,a,l)=>Qt(a,()=>On(n,l,void 0,32)),getResolvedSignatureForSignatureHelp:(n,a,l)=>sn(n,()=>On(n,a,l,16)),getExpandedParameters:ALe,hasEffectiveRestParameter:Sm,containsArgumentsReference:xie,getConstantValue:n=>{const a=Ea(n,iNe);return a?_se(a):void 0},isValidPropertyAccess:(n,a)=>{const l=Ea(n,pde);return!!l&&Pit(l,sl(a))},isValidPropertyAccessForCompletions:(n,a,l)=>{const u=Ea(n,Fr);return!!u&&qwe(u,a,l)},getSignatureFromDeclaration:n=>{const a=Ea(n,Ka);return a?Fp(a):void 0},isImplementationOfOverload:n=>{const a=Ea(n,Ka);return a?nNe(a):void 0},getImmediateAliasedSymbol:ioe,getAliasedSymbol:nc,getEmitResolver:bL,getExportsOfModule:Wy,getExportsAndPropertiesOfModule:bS,forEachExportAndPropertyOfModule:_0,getSymbolWalker:mge(SZe,a_,ys,Po,up,ar,D_,Cu,Lf,gs),getAmbientModules:Iut,getJsxIntrinsicTagNamesAt:pit,isOptionalParameter:n=>{const a=Ea(n,Ba);return a?AD(a):!1},tryGetMemberInModuleExports:(n,a)=>Ug(sl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Mf(sl(n),a),tryFindAmbientModule:n=>Sie(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>Sie(n,!1),getApparentType:Ku,getUnionType:Qr,isTypeAssignableTo:xo,createAnonymousType:Ns,createSignature:oh,createSymbol:ts,createIndexInfo:ym,getAnyType:()=>we,getStringType:()=>ue,getNumberType:()=>mt,createPromiseType:x4,createArrayType:Iu,getElementTypeOfArrayType:gae,getBooleanType:()=>Re,getFalseType:n=>n?it:K,getTrueType:n=>n?Pe:Z,getVoidType:()=>Rt,getUndefinedType:()=>We,getNullType:()=>Sn,getESSymbolType:()=>q,getNeverType:()=>gt,getOptionalType:()=>cn,getPromiseType:()=>jP(!1),getPromiseLikeType:()=>lIe(!1),getAsyncIterableType:()=>{const n=XU(!1);if(n!==Co)return n},isSymbolAccessible:Ky,isArrayType:Hf,isTupleType:Mo,isArrayLikeType:D0,isEmptyAnonymousObjectType:$h,isTypeInvalidDueToUnionDiscriminant:aZe,getExactOptionalProperties:Rtt,getAllPossiblePropertiesOfTypes:oZe,getSuggestedSymbolForNonexistentProperty:hoe,getSuggestionForNonexistentProperty:goe,getSuggestedSymbolForNonexistentJSXAttribute:Wwe,getSuggestedSymbolForNonexistentSymbol:(n,a,l)=>yoe(n,sl(a),l),getSuggestionForNonexistentSymbol:(n,a,l)=>Dit(n,sl(a),l),getSuggestedSymbolForNonexistentModule:WV,getSuggestionForNonexistentExport:Rit,getSuggestedSymbolForNonexistentClassMember:Hwe,getBaseConstraintOfType:Ju,getDefaultFromTypeParameter:n=>n&&n.flags&262144?RE(n):void 0,resolveName(n,a,l,u){return _l(a,sl(n),l,void 0,void 0,!1,u)},getJsxNamespace:n=>ta(Tb(n)),getJsxFragmentFactory:n=>{const a=mse(n);return a&&ta(Lf(a).escapedText)},getAccessibleSymbolChain:h0,getTypePredicateOfSignature:a_,resolveExternalModuleName:n=>{const a=Ea(n,vt);return a&&du(a,a,!0)},resolveExternalModuleSymbol:hd,tryGetThisTypeAt:(n,a,l)=>{const u=Ea(n);return u&&Kae(u,a,l)},getTypeArgumentConstraint:n=>{const a=Ea(n,Gi);return a&&Uot(a)},getSuggestionDiagnostics:(n,a)=>{const l=Ea(n,qi)||D.fail("Could not determine parsed source file.");if(wk(l,Y,e))return rt;let u;try{return o=a,use(l),D.assert(!!(Jr(l).flags&1)),u=Ti(u,aE.getDiagnostics(l.fileName)),oRe(zRe(l),(p,g,x)=>{!bN(p)&&!WRe(g,!!(p.flags&16777216))&&(u||(u=[])).push({...x,category:2})}),u||rt}finally{o=void 0}},runWithCancellationToken:(n,a)=>{try{return o=n,a(at)}finally{o=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:tv,isDeclarationVisible:I_,isPropertyAccessible:boe,getTypeOnlyAliasDeclaration:Rd,getMemberOverrideModifierStatus:glt,isTypeParameterPossiblyReferenced:KP,typeHasCallOrConstructSignatures:gj};function sn(n,a){const l=nr(n,ux),u=l&&Jr(l).resolvedSignature;l&&(Jr(l).resolvedSignature=void 0);const p=a();return l&&(Jr(l).resolvedSignature=u),p}function Qt(n,a){const l=nr(n,ux);if(l){let p=n;do Jr(p).skipDirectInference=!0,p=p.parent;while(p&&p!==l)}H=!0;const u=sn(n,a);if(H=!1,l){let p=n;do Jr(p).skipDirectInference=void 0,p=p.parent;while(p&&p!==l)}return u}function On(n,a,l,u){const p=Ea(n,ux);tt=l;const g=p?KL(p,a,u):void 0;return tt=void 0,g}var jn=new Map,In=new Map,Zt=new Map,_r=new Map,Ii=new Map,$i=new Map,Qi=new Map,Or=new Map,At=new Map,vn=new Map,Wt=new Map,dn=new Map,rr=new Map,cr=new Map,Pi=[],gi=new Map,Rn=new Set,an=ts(4,"unknown"),Pn=ts(0,"__resolving__"),Ar=new Map,Hr=new Map,we=$l(1,"any"),yt=$l(1,"any",262144),Nt=$l(1,"any"),Ce=$l(1,"error"),pt=$l(1,"unresolved"),pe=$l(1,"any",65536),ie=$l(1,"intrinsic"),he=$l(2,"unknown"),j=$l(2,"unknown"),We=$l(32768,"undefined"),Ze=W?We:$l(32768,"undefined",65536),Xe=$l(32768,"undefined"),Ut=qe?Xe:We,cn=$l(32768,"undefined"),Sn=$l(65536,"null"),Er=W?Sn:$l(65536,"null",65536),ue=$l(4,"string"),mt=$l(8,"number"),zt=$l(64,"bigint"),it=$l(512,"false"),K=$l(512,"false"),Pe=$l(512,"true"),Z=$l(512,"true");Pe.regularType=Z,Pe.freshType=Pe,Z.regularType=Z,Z.freshType=Pe,it.regularType=K,it.freshType=it,K.regularType=K,K.freshType=it;var Re=Qr([K,Z]),q=$l(4096,"symbol"),Rt=$l(16384,"void"),gt=$l(131072,"never"),ft=$l(131072,"never",262144),_n=$l(131072,"never"),$n=$l(131072,"never"),oi=$l(67108864,"object"),Ai=Qr([ue,mt]),Ci=Qr([ue,mt,q]),ji=je?ue:Ci,mo=Qr([mt,zt]),To=Qr([ue,mt,Re,zt,Sn,We]),io=OE(["",""],[mt]),ca=JP(n=>n.flags&262144?att(n):n,()=>"(restrictive mapper)"),Hi=JP(n=>n.flags&262144?Nt:n,()=>"(permissive mapper)"),Xr=$l(131072,"never"),ss=JP(n=>n.flags&262144?Xr:n,()=>"(unique literal mapper)"),_i,ua=JP(n=>(_i&&(n===zd||n===oc||n===Kc)&&_i(!0),n),()=>"(unmeasurable reporter)"),wn=JP(n=>(_i&&(n===zd||n===oc||n===Kc)&&_i(!1),n),()=>"(unreliable reporter)"),fa=Ns(void 0,te,rt,rt,rt),ec=Ns(void 0,te,rt,rt,rt);ec.objectFlags|=2048;var rl=ts(2048,"__type");rl.members=so();var Ul=Ns(rl,te,rt,rt,rt),Xl=Ns(void 0,te,rt,rt,rt),Vl=W?Qr([We,Sn,Xl]):he,Co=Ns(void 0,te,rt,rt,rt);Co.instantiations=new Map;var La=Ns(void 0,te,rt,rt,rt);La.objectFlags|=262144;var Xo=Ns(void 0,te,rt,rt,rt),jl=Ns(void 0,te,rt,rt,rt),tu=Ns(void 0,te,rt,rt,rt),zd=Nd(),oc=Nd();oc.constraint=zd;var Kc=Nd(),Ds=Nd(),hl=Nd();hl.constraint=Ds;var el=UP(1,"<<unresolved>>",0,we),Ks=oh(void 0,void 0,void 0,rt,we,void 0,0,0),rn=oh(void 0,void 0,void 0,rt,Ce,void 0,0,0),Hl=oh(void 0,void 0,void 0,rt,we,void 0,0,0),xu=oh(void 0,void 0,void 0,rt,ft,void 0,0,0),zu=ym(mt,ue,!0),fe=new Map,It={get yieldType(){return D.fail("Not supported")},get returnType(){return D.fail("Not supported")},get nextType(){return D.fail("Not supported")}},Ht=iy(we,we,we),Q=iy(we,we,he),ot=iy(gt,we,We),xt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:BZe,getGlobalIterableType:XU,getGlobalIterableIteratorType:GZe,getGlobalGeneratorType:UZe,resolveIterationType:JE,mustHaveANextMethodDiagnostic:_.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:VZe,getGlobalIterableType:Mie,getGlobalIterableIteratorType:jZe,getGlobalGeneratorType:HZe,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:_.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Dr,Pr=new Map,Ta=!1,ls,ho,jo,Ya,dl,dc,_d,Es,ds,fl,qd,Wl,Nf,xe,Dt,Nn,Xi,Lo,oe,ut,Mt,Pt,un,Vn,Rr,ni,Mi,ja,Ho,Ts,Xs,pd,ff,tc,Jd,Au,_f,x_,Yo,A_,pf,Z_,kp,U,et,qt,Xn,Da,Ia,Ie,Ve,Lt,Ot,hn,bn=new Map,Tn=0,Hn=0,qr=0,Ji=!1,tr=0,pn,dr,Aa,Ys=[],sc=[],Ym=[],Cg=0,ep=[],hb=[],Zv=0,x2=jf(""),sS=Gp(0),A2=tV({negative:!1,base10Value:"0"}),Lg=[],tp=[],e0=[],Ph=0,wp=10,t0=[],Z1=[],gb=[],Ig=[],lS=[],eE=[],tE=[],nE=[],n0=[],C2=[],rE=[],iE=[],r0=[],yb=[],i0=[],cS=[],kg=[],$o=sC(),aE=sC(),vL=rh(),My,wg,$m=new Map,np=new Map,kd=new Map,wd=new Map,Dd=new Map,vb=new Map,bb=so();bb.set(Fe.escapedName,Fe);var L2=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Y.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Gct(),at;function Eb(n){return n?cr.get(n):void 0}function Dg(n,a){return n&&cr.set(n,a),a}function Tb(n){if(n){const a=Zn(n);if(a)if(Jx(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const p=Va(l)?l[0]:l;if(a.localJsxFragmentFactory=Qx(p.arguments.factory,P),lt(a.localJsxFragmentFactory,Sb,nf),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Lf(a.localJsxFragmentFactory).escapedText}const u=mse(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Lf(u).escapedText}else{const l=uS(a);if(l)return a.localJsxNamespace=l}}return My||(My="React",Y.jsxFactory?(wg=Qx(Y.jsxFactory,P),lt(wg,Sb),wg&&(My=Lf(wg).escapedText)):Y.reactNamespace&&(My=sl(Y.reactNamespace))),wg||(wg=N.createQualifiedName(N.createIdentifier(ta(My)),"createElement")),My}function uS(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const l=Va(a)?a[0]:a;if(n.localJsxFactory=Qx(l.arguments.factory,P),lt(n.localJsxFactory,Sb,nf),n.localJsxFactory)return n.localJsxNamespace=Lf(n.localJsxFactory).escapedText}}function Sb(n){return Vm(n,-1,-1),Bn(n,Sb,Tg)}function bL(n,a){return qRe(n,a),Me}function I2(n,a,l,u,p,g){const x=n?Nr(n,a,l,u,p,g):Fs(a,l,u,p,g),R=$o.lookup(x);return R||($o.add(x),x)}function a0(n,a,l,u,p,g,x){const R=Ke(a,l,u,p,g,x);return R.skippedOn=n,R}function oE(n,a,l,u,p,g){return n?Nr(n,a,l,u,p,g):Fs(a,l,u,p,g)}function Ke(n,a,l,u,p,g){const x=oE(n,a,l,u,p,g);return $o.add(x),x}function Fy(n,a){n?$o.add(a):aE.add({...a,category:2})}function lm(n,a,l,u,p,g,x){if(a.pos<0||a.end<0){if(!n)return;const R=Zn(a);Fy(n,"message"in l?Dc(R,0,0,l,u,p,g,x):Uz(R,l));return}Fy(n,"message"in l?Nr(a,l,u,p,g,x):dg(Zn(a),a,l))}function o0(n,a,l,u,p,g,x){const R=Ke(n,l,u,p,g,x);if(a){const M=Nr(n,_.Did_you_forget_to_use_await);Ko(R,M)}return R}function xb(n,a){const l=Array.isArray(n)?Ue(n,KW):KW(n);return l&&Ko(a,Nr(l,_.The_declaration_was_marked_as_deprecated_here)),aE.add(a),a}function s0(n){if(Ae(n.declarations)>1){const a=gd(n);if(a&&a.flags&64)return kt(n.declarations,l=>!!(gp(l)&268435456))}return!!(UV(n)&268435456)}function Rg(n,a,l){const u=Nr(n,_._0_is_deprecated,l);return xb(a,u)}function dS(n,a,l,u){const p=l?Nr(n,_.The_signature_0_of_1_is_deprecated,u,l):Nr(n,_._0_is_deprecated,u);return xb(a,p)}function ts(n,a,l){A++;const u=new d(n|33554432,a);return u.links=new UX,u.links.checkFlags=l||0,u}function rp(n,a){const l=ts(1,n);return l.links.type=a,l}function sE(n,a){const l=ts(4,n);return l.links.type=a,l}function vc(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function Mh(n,a){a.mergeId||(a.mergeId=BX,BX++),t0[a.mergeId]=n}function Ab(n){const a=ts(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)),Mh(a,n),a}function ip(n,a,l=!1){if(!(n.flags&vc(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const p=Yl(n);if(p===an)return a;n=Ab(p)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&GN(n,a.valueDeclaration),Ti(n.declarations,a.declarations),a.members&&(n.members||(n.members=so()),Pc(n.members,a.members,l)),a.exports&&(n.exports||(n.exports=so()),Pc(n.exports,a.exports,l)),l||Mh(n,a)}else if(n.flags&1024)n!==st&&Ke(a.declarations&&ka(a.declarations[0]),_.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,S(n));else{const p=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),x=p?_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,R=a.declarations&&Zn(a.declarations[0]),M=n.declarations&&Zn(n.declarations[0]),J=f3(R,Y.checkJs),$=f3(M,Y.checkJs),ge=S(a);if(R&&M&&Dr&&!p&&R!==M){const Ne=nT(R.path,M.path)===-1?R:M,De=Ne===R?M:R,_t=SA(Dr,`${Ne.path}|${De.path}`,()=>({firstFile:Ne,secondFile:De,conflictingSymbols:new Map})),Bt=SA(_t.conflictingSymbols,ge,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));J||u(Bt.firstFileLocations,a),$||u(Bt.secondFileLocations,n)}else J||Cb(a,x,ge,n),$||Cb(n,x,ge,a)}return n;function u(p,g){if(g.declarations)for(const x of g.declarations)f_(p,x)}}function Cb(n,a,l,u){Ue(n.declarations,p=>{cu(p,a,l,u.declarations)})}function cu(n,a,l,u){const p=(Y0(n,!1)?Zz(n):ka(n))||n,g=I2(p,a,l);for(const x of u||rt){const R=(Y0(x,!1)?Zz(x):ka(x))||x;if(R===p)continue;g.relatedInformation=g.relatedInformation||[];const M=Nr(R,_._0_was_also_declared_here,l),J=Nr(R,_.and_here);Ae(g.relatedInformation)>=5||kt(g.relatedInformation,$=>Ck($,J)===0||Ck($,M)===0)||Ko(g,Ae(g.relatedInformation)?J:M)}}function Ng(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const l=so();return Pc(l,n),Pc(l,a),l}function Pc(n,a,l=!1){a.forEach((u,p)=>{const g=n.get(p);n.set(p,g?ip(g,u,l):as(u))})}function fS(n){var a,l,u;const p=n.parent;if(((a=p.symbol.declarations)==null?void 0:a[0])!==p){D.assert(p.symbol.declarations.length>1);return}if(Yp(p))Pc(ze,p.symbol.exports);else{const g=n.parent.parent.flags&16777216?void 0:_.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=Uh(n,n,g,!0);if(!x)return;if(x=hd(x),x.flags&1920)if(kt(ho,R=>x===R.symbol)){const R=ip(p.symbol,x,!0);jo||(jo=new Map),jo.set(n.text,R)}else{if((l=x.exports)!=null&&l.get("__export")&&((u=p.symbol.exports)!=null&&u.size)){const R=iie(x,"resolvedExports");for(const[M,J]of Ro(p.symbol.exports.entries()))R.has(M)&&!x.exports.has(M)&&ip(R.get(M),J)}ip(x,p.symbol)}else Ke(n,_.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function EL(n,a,l){a.forEach((p,g)=>{const x=n.get(g);x?Ue(x.declarations,u(ta(g),l)):n.set(g,p)});function u(p,g){return x=>$o.add(Nr(x,g,p))}}function Wi(n){var a;if(n.flags&33554432)return n.links;const l=bo(n);return(a=Z1[l])!=null?a:Z1[l]=new UX}function Jr(n){const a=ms(n);return gb[a]||(gb[a]=new M7e)}function Qm(n){return n.kind===308&&!of(n)}function Kd(n,a,l){if(l){const u=as(n.get(a));if(u&&(D.assert((Il(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&l||u.flags&2097152&&uu(u)&l))return u}}function lE(n,a){const l=n.parent,u=n.parent.parent,p=Kd(l.locals,a,111551),g=Kd(nv(u.symbol),a,111551);return p&&g?[p,g]:D.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Og(n,a){const l=Zn(n),u=Zn(a),p=Mm(n);if(l!==u){if(de&&(l.externalModuleIndicator||u.externalModuleIndicator)||!qs(Y)||VL(a)||n.flags&16777216||x(a,n))return!0;const M=e.getSourceFiles();return M.indexOf(l)<=M.indexOf(u)}if(n.pos<=a.pos&&!(to(n)&&LN(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===205){const M=Q0(a,205);return M?nr(M,ps)!==nr(n,ps)||n.pos<M.pos:Og(Q0(n,257),a)}else{if(n.kind===257)return!g(n,a);if(Nc(n))return!nr(a,M=>As(M)&&M.parent.parent===n);if(to(n))return!R(n,a,!1);if(tf(n,n.parent))return!(es(Y)===99&&ye&&Ac(n)===Ac(a)&&x(a,n))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||VL(a)||Rke(a))return!0;if(x(a,n))return es(Y)===99&&ye&&Ac(n)&&(to(n)||tf(n,n.parent))?!R(n,a,!0):!0;return!1;function g(M,J){switch(M.parent.parent.kind){case 240:case 245:case 247:if(cm(J,M,p))return!0;break}const $=M.parent.parent;return BA($)&&cm(J,$.expression,p)}function x(M,J){return!!nr(M,$=>{if($===p)return"quit";if(Ka($))return!0;if(kl($))return J.pos<M.pos;const ge=ai($.parent,to);if(ge&&ge.initializer===$){if(Ja($.parent)){if(J.kind===171)return!0;if(to(J)&&Ac(M)===Ac(J)){const De=J.name;if(He(De)||Ni(De)){const _t=ar(Ir(J)),Bt=lr(J.parent.members,kl);if(Slt(De,_t,Bt,J.parent.pos,$.pos))return!0}}}else if(!(J.kind===169&&!Ja(J))||Ac(M)!==Ac(J))return!0}return!1})}function R(M,J,$){return J.end>M.end?!1:nr(J,Ne=>{if(Ne===M)return"quit";switch(Ne.kind){case 216:return!0;case 169:return $&&(to(M)&&Ne.parent===M.parent||tf(M,M.parent)&&Ne.parent===M.parent.parent)?"quit":!0;case 238:switch(Ne.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})===void 0}}function Fh(n,a,l){const u=es(Y),p=a;if(Ba(l)&&p.body&&n.valueDeclaration&&n.valueDeclaration.pos>=p.body.pos&&n.valueDeclaration.end<=p.body.end&&u>=2){const R=Jr(p);return R.declarationRequiresScopeChange===void 0&&(R.declarationRequiresScopeChange=Ue(p.parameters,g)||!1),!R.declarationRequiresScopeChange}return!1;function g(R){return x(R.name)||!!R.initializer&&x(R.initializer)}function x(R){switch(R.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return x(R.name);case 169:return gc(R)?u<99||!ye:x(R.name);default:return ZW(R)||yu(R)?u<7:ps(R)&&R.dotDotDotToken&&Hm(R.parent)?u<4:Gi(R)?!1:Ma(R,x)||!1}}}function Zm(n){return lT(n)&&cg(n.type)||rw(n)&&cg(n.typeExpression)}function _l(n,a,l,u,p,g,x=!1,R=!0){return Lb(n,a,l,u,p,g,x,R,Kd)}function Lb(n,a,l,u,p,g,x,R,M){var J,$,ge;const Ne=n;let De,_t,Bt,Mn,An,Kn=!1;const gn=n;let xn,yr=!1;e:for(;n;){if(a==="const"&&Zm(n))return;if(Nm(n)&&n.locals&&!Qm(n)&&(De=M(n.locals,a,l))){let Gn=!0;if(Ka(n)&&_t&&_t!==n.body?(l&De.flags&788968&&_t.kind!==323&&(Gn=De.flags&262144?_t===n.type||_t.kind===166||_t.kind===344||_t.kind===345||_t.kind===165:!1),l&De.flags&3&&(Fh(De,n,_t)?Gn=!1:De.flags&1&&(Gn=_t.kind===166||_t===n.type&&!!nr(De.valueDeclaration,Ba)))):n.kind===191&&(Gn=_t===n.trueType),Gn)break e;De=void 0}switch(Kn=Kn||Ib(n,_t),n.kind){case 308:if(!of(n))break;yr=!0;case 264:const Gn=((J=Ir(n))==null?void 0:J.exports)||te;if(n.kind===308||Jl(n)&&n.flags&16777216&&!Yp(n)){if(De=Gn.get("default")){const ri=uC(De);if(ri&&De.flags&l&&ri.escapedName===a)break e;De=void 0}const Zr=Gn.get(a);if(Zr&&Zr.flags===2097152&&(Al(Zr,278)||Al(Zr,277)))break}if(a!=="default"&&(De=M(Gn,a,l&2623475)))if(qi(n)&&n.commonJsModuleIndicator&&!(($=De.declarations)!=null&&$.some(h_)))De=void 0;else break e;break;case 263:if(De=M(((ge=Ir(n))==null?void 0:ge.exports)||te,a,l&8)){u&&H_(Y)&&!(n.flags&16777216)&&Zn(n)!==Zn(De.valueDeclaration)&&Ke(gn,_.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,ta(a),jt,`${ta(Xd(n).escapedName)}.${ta(a)}`);break e}break;case 169:if(!Ja(n)){const Zr=m0(n.parent);Zr&&Zr.locals&&M(Zr.locals,a,l&111551)&&(D.assertNode(n,to),Mn=n)}break;case 260:case 228:case 261:if(De=M(Ir(n).members||te,a,l&788968)){if(!k2(De,n)){De=void 0;break}if(_t&&Ja(_t)){u&&Ke(gn,_.Static_members_cannot_reference_class_type_parameters);return}break e}if(Uu(n)&&l&32){const Zr=n.name;if(Zr&&a===Zr.escapedText){De=n.symbol;break e}}break;case 230:if(_t===n.expression&&n.parent.token===94){const Zr=n.parent.parent;if(di(Zr)&&(De=M(Ir(Zr).members,a,l&788968))){u&&Ke(gn,_.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(xn=n.parent.parent,(di(xn)||xn.kind===261)&&(De=M(Ir(xn).members,a,l&788968))){u&&Ke(gn,_.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(es(Y)>=2)break;case 171:case 173:case 174:case 175:case 259:if(l&3&&a==="arguments"){De=Ct;break e}break;case 215:if(l&3&&a==="arguments"){De=Ct;break e}if(l&16){const Zr=n.name;if(Zr&&a===Zr.escapedText){De=n.symbol;break e}}break;case 167:n.parent&&n.parent.kind===166&&(n=n.parent),n.parent&&(Vc(n.parent)||n.parent.kind===260)&&(n=n.parent);break;case 349:case 341:case 343:const qn=ok(n);qn&&(n=qn.parent);break;case 166:_t&&(_t===n.initializer||_t===n.name&&Xa(_t))&&(An||(An=n));break;case 205:_t&&(_t===n.initializer||_t===n.name&&Xa(_t))&&bT(n)&&!An&&(An=n);break;case 192:if(l&262144){const Zr=n.typeParameter.name;if(Zr&&a===Zr.escapedText){De=n.typeParameter.symbol;break e}}break}pS(n)&&(Bt=n),_t=n,n=Tp(n)?j3(n)||n.parent:(am(n)||p5(n))&&$0(n)||n.parent}if(g&&De&&(!Bt||De!==Bt.symbol)&&(De.isReferenced|=l),!De){if(_t&&(D.assertNode(_t,qi),_t.commonJsModuleIndicator&&a==="exports"&&l&_t.symbol.flags))return _t.symbol;x||(De=M(ze,a,l))}if(!De&&Ne&&fr(Ne)&&Ne.parent&&xd(Ne.parent,!1))return Et;function ln(){return Mn&&!(ye&&es(Y)>=9)?(Ke(gn,gn&&Mn.type&&qM(Mn.type,gn.pos)?_.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,ws(Mn.name),r_(p)),!0):!1}if(De){if(u&&ln())return}else{u&&i(()=>{if(!gn||!w2(gn,a,p)&&!ln()&&!l0(gn)&&!hS(gn,a,l)&&!gS(gn,a)&&!R2(gn,a,l)&&!Of(gn,a,l)&&!D2(gn,a,l)){let Gn,qn;if(p&&(qn=kit(p),qn&&Ke(gn,u,r_(p),qn)),!qn&&R&&Ph<wp&&(Gn=yoe(Ne,a,l),(Gn==null?void 0:Gn.valueDeclaration)&&Mu(Gn.valueDeclaration)&&Yp(Gn.valueDeclaration)&&(Gn=void 0),Gn)){const ri=S(Gn),_a=moe(Ne,Gn,!1),Qa=l===1920||p&&typeof p!="string"&&Zs(p)?_.Cannot_find_namespace_0_Did_you_mean_1:_a?_.Could_not_find_name_0_Did_you_mean_1:_.Cannot_find_name_0_Did_you_mean_1,Ec=oE(gn,Qa,r_(p),ri);Fy(!_a,Ec),Gn.valueDeclaration&&Ko(Ec,Nr(Gn.valueDeclaration,_._0_is_declared_here,ri))}!Gn&&!qn&&p&&Ke(gn,u,r_(p)),Ph++}});return}return u&&i(()=>{if(gn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Gn=Op(De);(Gn.flags&2||Gn.flags&32||Gn.flags&384)&&wb(Gn,gn)}if(De&&yr&&(l&111551)===111551&&!(Ne.flags&8388608)){const Gn=as(De);Ae(Gn.declarations)&&Yn(Gn.declarations,qn=>ZO(qn)||qi(qn)&&!!qn.symbol.globalExports)&&lm(!Y.allowUmdGlobalAccess,gn,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,ta(a))}if(De&&An&&!Kn&&(l&111551)===111551){const Gn=as(VU(De)),qn=Fm(An);Gn===Ir(An)?Ke(gn,_.Parameter_0_cannot_reference_itself,ws(An.name)):Gn.valueDeclaration&&Gn.valueDeclaration.pos>An.pos&&qn.parent.locals&&M(qn.parent.locals,Gn.escapedName,l)===Gn&&Ke(gn,_.Parameter_0_cannot_reference_identifier_1_declared_after_it,ws(An.name),ws(gn))}if(De&&gn&&l&111551&&De.flags&2097152&&!(De.flags&111551)&&!kx(gn)){const Gn=Rd(De,111551);if(Gn){const qn=Gn.kind===278||Gn.kind===275||Gn.kind===277?_._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Zr=ta(a);_S(Ke(gn,qn,Zr),Gn,Zr)}}}),De}function _S(n,a,l){return a?Ko(n,Nr(a,a.kind===278||a.kind===275||a.kind===277?_._0_was_exported_here:_._0_was_imported_here,l)):n}function Ib(n,a){return n.kind!==216&&n.kind!==215?qk(n)||(Qs(n)||n.kind===169&&!Ja(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Yr(n,512)?!0:!mT(n)}function pS(n){switch(n.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function r_(n){return Ha(n)?ta(n):ws(n)}function k2(n,a){if(n.declarations){for(const l of n.declarations)if(l.kind===165&&(Tp(l.parent)?yx(l.parent):l.parent)===a)return!(Tp(l.parent)&&nn(l.parent.parent.tags,h_))}return!1}function w2(n,a,l){if(!He(n)||n.escapedText!==a||JRe(n)||VL(n))return!1;const u=Sd(n,!1,!1);let p=u;for(;p;){if(di(p.parent)){const g=Ir(p.parent);if(!g)break;const x=ar(g);if(co(x,a))return Ke(n,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,r_(l),S(g)),!0;if(p===u&&!Ja(p)){const R=Us(g).thisType;if(co(R,a))return Ke(n,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,r_(l)),!0}}p=p.parent}return!1}function l0(n){const a=mS(n);return a&&Nl(a,64,!0)?(Ke(n,_.Cannot_extend_an_interface_0_Did_you_mean_implements,xc(a)),!0):!1}function mS(n){switch(n.kind){case 79:case 208:return n.parent?mS(n.parent):void 0;case 230:if(zl(n.expression))return n.expression;default:return}}function hS(n,a,l){const u=1920|(fr(n)?111551:0);if(l===u){const p=Yl(_l(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(p){if(Cd(g)){D.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");const x=g.right.escapedText;if(co(Us(p),x))return Ke(g,_.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,ta(a),ta(x)),!0}return Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,ta(a)),!0}}return!1}function D2(n,a,l){if(l&788584){const u=Yl(_l(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Ke(n,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,ta(a)),!0}return!1}function kb(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function gS(n,a){return kb(a)&&n.parent.kind===278?(Ke(n,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Of(n,a,l){if(l&111551){if(kb(a))return Pg(n)?Ke(n,_.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,ta(a)):Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,ta(a)),!0;const u=Yl(_l(n,a,788544,void 0,void 0,!1)),p=u&&uu(u);if(u&&p!==void 0&&!(p&111551)){const g=ta(a);return ap(a)?Ke(n,_._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,g):Dp(n,u)?Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function Pg(n){const a=n.parent.parent,l=a.parent;if(a&&l){const u=Vd(a)&&a.token===94,p=id(l);return u&&p}return!1}function Dp(n,a){const l=nr(n.parent,u=>As(u)||If(u)?!1:cf(u)||"quit");if(l&&l.members.length===1){const u=Us(a);return!!(u.flags&1048576)&&L4(u,384,!0)}return!1}function ap(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function R2(n,a,l){if(l&111127){if(Yl(_l(n,a,1024,void 0,void 0,!1)))return Ke(n,_.Cannot_use_namespace_0_as_a_value,ta(a)),!0}else if(l&788544&&Yl(_l(n,a,1536,void 0,void 0,!1)))return Ke(n,_.Cannot_use_namespace_0_as_a_type,ta(a)),!0;return!1}function wb(n,a){var l;if(D.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const u=(l=n.declarations)==null?void 0:l.find(p=>kz(p)||di(p)||p.kind===263);if(u===void 0)return D.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!Og(u,a)){let p;const g=ws(ka(u));n.flags&2?p=Ke(a,_.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?p=Ke(a,_.Class_0_used_before_its_declaration,g):n.flags&256?p=Ke(a,_.Enum_0_used_before_its_declaration,g):(D.assert(!!(n.flags&128)),w1(Y)&&(p=Ke(a,_.Enum_0_used_before_its_declaration,g))),p&&Ko(p,Nr(u,_._0_is_declared_here,g))}}function cm(n,a,l){return!!a&&!!nr(n,u=>u===a||(u===l||Ka(u)&&(!mT(u)||oC(u))?"quit":!1))}function yS(n){switch(n.kind){case 268:return n;case 270:return n.parent;case 271:return n.parent.parent;case 273:return n.parent.parent.parent;default:return}}function md(n){return n.declarations&&Li(n.declarations,Mg)}function Mg(n){return n.kind===268||n.kind===267||n.kind===270&&!!n.name||n.kind===271||n.kind===277||n.kind===273||n.kind===278||n.kind===274&&rC(n)||br(n)&&Ll(n)===2&&rC(n)||ll(n)&&br(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&um(n.parent.right)||n.kind===300||n.kind===299&&um(n.initializer)||n.kind===257&&x1(n)||n.kind===205&&x1(n.parent.parent)}function um(n){return YN(n)||Bs(n)&&Vp(n)}function dm(n,a){const l=Uy(n);if(l){const p=xk(l.expression).arguments[0];return He(l.name)?Yl(co(ULe(p),l.name.escapedText)):void 0}if(Ki(n)||n.moduleReference.kind===280){const p=du(n,Xz(n)||ik(n)),g=hd(p);return L_(n,p,g,!1),g}const u=Np(n.moduleReference,a);return Fg(n,u),u}function Fg(n,a){if(L_(n,void 0,a,!1)&&!n.isTypeOnly){const l=Rd(Ir(n)),u=l.kind===278||l.kind===275,p=u?_.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,g=u?_._0_was_exported_here:_._0_was_imported_here,x=l.kind===275?"*":ta(l.name.escapedText);Ko(Ke(n.moduleReference,p),Nr(l,g,x))}}function cE(n,a,l,u){const p=n.exports.get("export="),g=p?co(ar(p),a,!0):n.exports.get(a),x=Yl(g,u);return L_(l,g,x,!1),x}function vS(n){return Gl(n)&&!n.isExportEquals||Yr(n,1024)||dd(n)}function By(n){return xs(n)?Sp(Zn(n),n):void 0}function uE(n,a){return n===99&&a===1}function Rs(n){return By(n)===99&&ic(n.text,".json")}function Gy(n,a,l,u){const p=n&&By(u);if(n&&p!==void 0){const g=uE(p,n.impliedNodeFormat);if(p===99||g)return g}if(!ae)return!1;if(!n||n.isDeclarationFile){const g=cE(a,"default",void 0,!0);return!(g&&kt(g.declarations,vS)||cE(a,sl("__esModule"),void 0,l))}return td(n)?typeof n.externalModuleIndicator!="object"&&!cE(a,sl("__esModule"),void 0,l):mE(a)}function N2(n,a){const l=du(n,n.parent.moduleSpecifier);if(l)return Db(l,n,a)}function Db(n,a,l){var u;let p;ZI(n)?p=n:p=cE(n,"default",a,l);const g=(u=n.declarations)==null?void 0:u.find(qi),x=Rb(a);if(!x)return p;const R=Rs(x),M=Gy(g,n,l,x);if(!p&&!M&&!R)if(mE(n)&&!(AT(Y)||W_(Y))){const J=de>=5?"allowSyntheticDefaultImports":"esModuleInterop",ge=n.exports.get("export=").valueDeclaration,Ne=Ke(a.name,_.Module_0_can_only_be_default_imported_using_the_1_flag,S(n),J);ge&&Ko(Ne,Nr(ge,_.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,J))}else Wm(a)?O2(n,a):c0(n,n,a,sx(a)&&a.propertyName||a.name);else if(M||R){const J=hd(n,l)||Yl(n,l);return L_(a,n,J,!1),J}return L_(a,p,void 0,!1),p}function Rb(n){switch(n.kind){case 270:return n.parent.moduleSpecifier;case 268:return zm(n.moduleReference)?n.moduleReference.expression:void 0;case 271:return n.parent.parent.moduleSpecifier;case 273:return n.parent.parent.parent.moduleSpecifier;case 278:return n.parent.parent.moduleSpecifier;default:return D.assertNever(n)}}function O2(n,a){var l,u,p;if((l=n.exports)!=null&&l.has(a.symbol.escapedName))Ke(a.name,_.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,S(n),S(a.symbol));else{const g=Ke(a.name,_.Module_0_has_no_default_export,S(n)),x=(u=n.exports)==null?void 0:u.get("__export");if(x){const R=(p=x.declarations)==null?void 0:p.find(M=>{var J,$;return!!(eu(M)&&M.moduleSpecifier&&(($=(J=du(M,M.moduleSpecifier))==null?void 0:J.exports)!=null&&$.has("default")))});R&&Ko(g,Nr(R,_.export_Asterisk_does_not_re_export_a_default))}}}function TL(n,a){const l=n.parent.parent.moduleSpecifier,u=du(n,l),p=Mb(u,l,a,!1);return L_(n,u,p,!1),p}function P2(n,a){const l=n.parent.moduleSpecifier,u=l&&du(n,l),p=l&&Mb(u,l,a,!1);return L_(n,u,p,!1),p}function pr(n,a){if(n===an&&a===an)return an;if(n.flags&790504)return n;const l=ts(n.flags|a.flags,n.escapedName);return D.assert(n.declarations||a.declarations),l.declarations=xA(ba(n.declarations,a.declarations),H0),l.parent=n.parent||a.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),a.members&&(l.members=new Map(a.members)),n.exports&&(l.exports=new Map(n.exports)),l}function Rl(n,a,l,u){var p;if(n.flags&1536){const g=mf(n).get(a.escapedText),x=Yl(g,u),R=(p=Wi(n).typeOnlyExportStarMap)==null?void 0:p.get(a.escapedText);return L_(l,g,x,!1,R,a.escapedText),x}}function da(n,a){if(n.flags&3){const l=n.valueDeclaration.type;if(l)return Yl(co(fi(l),a))}}function Pf(n,a,l=!1){var u;const p=Xz(n)||n.moduleSpecifier,g=du(n,p),x=!Fr(a)&&a.propertyName||a.name;if(!He(x))return;const R=x.escapedText==="default"&&!!(Y.allowSyntheticDefaultImports||W_(Y)),M=Mb(g,p,!1,R);if(M&&x.escapedText){if(ZI(g))return g;let J;g&&g.exports&&g.exports.get("export=")?J=co(ar(M),x.escapedText,!0):J=da(M,x.escapedText),J=Yl(J,l);let $=Rl(M,x,a,l);if($===void 0&&x.escapedText==="default"){const Ne=(u=g.declarations)==null?void 0:u.find(qi);(Rs(p)||Gy(Ne,g,l,p))&&($=hd(g,l)||Yl(g,l))}const ge=$&&J&&$!==J?pr(J,$):$||J;return ge||c0(g,M,n,x),ge}}function c0(n,a,l,u){var p;const g=Bh(n,l),x=ws(u),R=WV(u,a);if(R!==void 0){const M=S(R),J=Ke(u,_._0_has_no_exported_member_named_1_Did_you_mean_2,g,x,M);R.valueDeclaration&&Ko(J,Nr(R.valueDeclaration,_._0_is_declared_here,M))}else(p=n.exports)!=null&&p.has("default")?Ke(u,_.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,x):eh(l,u,x,n,g)}function eh(n,a,l,u,p){var g,x;const R=(x=(g=ai(u.valueDeclaration,Nm))==null?void 0:g.locals)==null?void 0:x.get(a.escapedText),M=u.exports;if(R){const J=M==null?void 0:M.get("export=");if(J)fm(J,R)?ir(n,a,l,p):Ke(a,_.Module_0_has_no_exported_member_1,p,l);else{const $=M?nn(Tie(M),Ne=>!!fm(Ne,R)):void 0,ge=$?Ke(a,_.Module_0_declares_1_locally_but_it_is_exported_as_2,p,l,S($)):Ke(a,_.Module_0_declares_1_locally_but_it_is_not_exported,p,l);R.declarations&&Ko(ge,...Vt(R.declarations,(Ne,De)=>Nr(Ne,De===0?_._0_is_declared_here:_.and_here,l)))}}else Ke(a,_.Module_0_has_no_exported_member_1,p,l)}function ir(n,a,l,u){if(de>=5){const p=W_(Y)?_._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;Ke(a,p,l)}else if(fr(n)){const p=W_(Y)?_._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;Ke(a,p,l)}else{const p=W_(Y)?_._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;Ke(a,p,l,l,u)}}function M2(n,a){if(Ld(n)&&Mr(n.propertyName||n.name)==="default"){const x=Rb(n),R=x&&du(n,x);if(R)return Db(R,n,a)}const l=ps(n)?Fm(n):n.parent.parent.parent,u=Uy(l),p=Pf(l,u||n,a),g=n.propertyName||n.name;return u&&p&&He(g)?Yl(co(ar(p),g.escapedText),a):(L_(n,void 0,p,!1),p)}function Uy(n){if(Ki(n)&&n.initializer&&Fr(n.initializer))return n.initializer}function Ic(n,a){if(Rm(n.parent)){const l=hd(n.parent.symbol,a);return L_(n,void 0,l,!1),l}}function C_(n,a,l){if(Mr(n.propertyName||n.name)==="default"){const p=Rb(n),g=p&&du(n,p);if(g)return Db(g,n,!!l)}const u=n.parent.parent.moduleSpecifier?Pf(n.parent.parent,n,l):Nl(n.propertyName||n.name,a,!1,l);return L_(n,void 0,u,!1),u}function Rp(n,a){const l=Gl(n)?n.expression:n.right,u=Vy(l,a);return L_(n,void 0,u,!1),u}function Vy(n,a){if(Uu(n))return Ql(n).symbol;if(!nf(n)&&!zl(n))return;const l=Nl(n,901119,!0,a);return l||(Ql(n),Jr(n).resolvedSymbol)}function dE(n,a){if(br(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return Vy(n.parent.right,a)}function op(n,a=!1){switch(n.kind){case 268:case 257:return dm(n,a);case 270:return N2(n,a);case 271:return TL(n,a);case 277:return P2(n,a);case 273:case 205:return M2(n,a);case 278:return C_(n,901119,a);case 274:case 223:return Rp(n,a);case 267:return Ic(n,a);case 300:return Nl(n.name,901119,!0,a);case 299:return Vy(n.initializer,a);case 209:case 208:return dE(n,a);default:return D.fail()}}function jy(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Yl(n,a){return!a&&jy(n)?nc(n):n}function nc(n){D.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Wi(n);if(a.aliasTarget)a.aliasTarget===Pn&&(a.aliasTarget=an);else{a.aliasTarget=Pn;const l=md(n);if(!l)return D.fail();const u=op(l);a.aliasTarget===Pn?a.aliasTarget=u||an:Ke(l,_.Circular_definition_of_import_alias_0,S(n))}return a.aliasTarget}function Bg(n){if(Wi(n).aliasTarget!==Pn)return nc(n)}function uu(n){let a=n.flags,l;for(;n.flags&2097152;){const u=nc(n);if(u===an)return 67108863;if(u===n||l!=null&&l.has(u))break;u.flags&2097152&&(l?l.add(u):l=new Set([n,u])),a|=u.flags,n=u}return a}function L_(n,a,l,u,p,g){if(!n||Fr(n))return!1;const x=Ir(n);if(g1(n)){const M=Wi(x);return M.typeOnlyDeclaration=n,!0}if(p){const M=Wi(x);return M.typeOnlyDeclaration=p,x.escapedName!==g&&(M.typeOnlyExportStarName=g),!0}const R=Wi(x);return th(R,a,u)||th(R,l,u)}function th(n,a,l){var u,p,g;if(a&&(n.typeOnlyDeclaration===void 0||l&&n.typeOnlyDeclaration===!1)){const x=(p=(u=a.exports)==null?void 0:u.get("export="))!=null?p:a,R=x.declarations&&nn(x.declarations,g1);n.typeOnlyDeclaration=(g=R??Wi(x).typeOnlyDeclaration)!=null?g:!1}return!!n.typeOnlyDeclaration}function Rd(n,a){if(!(n.flags&2097152))return;const l=Wi(n);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const u=l.typeOnlyDeclaration.kind===275?Yl(jh(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||n.escapedName)):nc(l.typeOnlyDeclaration.symbol);return uu(u)&a?l.typeOnlyDeclaration:void 0}}function fE(n){if(Y.verbatimModuleSyntax)return;const a=Ir(n),l=nc(a);l&&(l===an||uu(l)&111551&&!cR(l)&&!Rd(a,111551))&&Nb(a)}function Nb(n){D.assert(!Y.verbatimModuleSyntax);const a=Wi(n);if(!a.referenced){a.referenced=!0;const l=md(n);if(!l)return D.fail();YA(l)&&uu(Yl(n))&111551&&Ql(l.moduleReference)}}function Ob(n){const a=Wi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Np(n,a){return n.kind===79&&yk(n)&&(n=n.parent),n.kind===79||n.parent.kind===163?Nl(n,1920,!1,a):(D.assert(n.parent.kind===268),Nl(n,901119,!1,a))}function Bh(n,a){return n.parent?Bh(n.parent,a)+"."+S(n):S(n,a,void 0,36)}function _E(n){for(;Cd(n.parent);)n=n.parent;return n}function Hy(n){let a=Lf(n),l=_l(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Cd(a.parent);){const u=ar(l);if(l=co(u,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Nl(n,a,l,u,p){if(Cl(n))return;const g=1920|(fr(n)?a&111551:0);let x;if(n.kind===79){const R=a===g||Zs(n)?_.Cannot_find_namespace_0:Dke(Lf(n)),M=fr(n)&&!Zs(n)?Gg(n,a):void 0;if(x=as(_l(p||n,n.escapedText,a,l||M?void 0:R,n,!0,!1)),!x)return as(M)}else if(n.kind===163||n.kind===208){const R=n.kind===163?n.left:n.expression,M=n.kind===163?n.right:n.name;let J=Nl(R,g,l,!1,p);if(!J||Cl(M))return;if(J===an)return J;if(J.valueDeclaration&&fr(J.valueDeclaration)&&vl(Y)!==100&&Ki(J.valueDeclaration)&&J.valueDeclaration.initializer&&pDe(J.valueDeclaration.initializer)){const $=J.valueDeclaration.initializer.arguments[0],ge=du($,$);if(ge){const Ne=hd(ge);Ne&&(J=Ne)}}if(x=as(Kd(mf(J),M.escapedText,a)),!x){if(!l){const $=Bh(J),ge=ws(M),Ne=WV(M,J);if(Ne){Ke(M,_._0_has_no_exported_member_named_1_Did_you_mean_2,$,ge,S(Ne));return}const De=Cd(n)&&_E(n);if(Ya&&a&788968&&De&&!wC(De.parent)&&Hy(De)){Ke(De,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Af(De));return}if(a&1920&&Cd(n.parent)){const Bt=as(Kd(mf(J),M.escapedText,788968));if(Bt){Ke(n.parent.right,_.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(Bt),ta(n.parent.right.escapedText));return}}Ke(M,_.Namespace_0_has_no_exported_member_1,$,ge)}return}}else throw D.assertNever(n,"Unknown entity name kind.");return D.assert((Il(x)&1)===0,"Should never get an instantiated symbol here."),!Zs(n)&&nf(n)&&(x.flags&2097152||n.parent.kind===274)&&L_(sq(n),x,void 0,!0),x.flags&a||u?x:nc(x)}function Gg(n,a){if(JU(n.parent)){const l=Gh(n.parent);if(l)return _l(l,n.escapedText,a,void 0,n,!0)}}function Gh(n){if(nr(n,p=>GA(p)||p.flags&8388608?h_(p):"quit"))return;const l=yx(n);if(l&&ou(l)&&BN(l.expression)){const p=Ir(l.expression.left);if(p)return u0(p)}if(l&&Bs(l)&&BN(l.parent)&&ou(l.parent.parent)){const p=Ir(l.parent.left);if(p)return u0(p)}if(l&&(G_(l)||qc(l))&&br(l.parent.parent)&&Ll(l.parent.parent)===6){const p=Ir(l.parent.parent.left);if(p)return u0(p)}const u=nC(n);if(u&&Ka(u)){const p=Ir(u);return p&&p.valueDeclaration}}function u0(n){const a=n.parent.valueDeclaration;return a?(ak(a)?_x(a):cT(a)?NN(a):void 0)||a:void 0}function d0(n){const a=n.valueDeclaration;if(!a||!fr(a)||n.flags&524288||Y0(a,!1))return;const l=Ki(a)?NN(a):_x(a);if(l){const u=Xd(l);if(u)return Ioe(u,n)}}function du(n,a,l){const p=vl(Y)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations;return Uh(n,a,l?void 0:p)}function Uh(n,a,l,u=!1){return xs(a)?bc(n,a.text,l,a,u):void 0}function bc(n,a,l,u,p=!1){var g,x,R,M,J,$,ge,Ne,De;if(xa(a,"@types/")){const Gn=_.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,qn=AI(a,"@types/");Ke(u,Gn,qn,a)}const _t=Sie(a,!0);if(_t)return _t;const Bt=Zn(n),Mn=xs(n)?n:((g=nr(n,sf))==null?void 0:g.arguments[0])||((x=nr(n,zc))==null?void 0:x.moduleSpecifier)||((R=nr(n,X0))==null?void 0:R.moduleReference.expression)||((M=nr(n,eu))==null?void 0:M.moduleSpecifier)||((J=Jl(n)?n:n.parent&&Jl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:J.name)||(($=K0(n)?n:void 0)==null?void 0:$.argument.literal),An=Mn&&xs(Mn)?Sp(Bt,Mn):Bt.impliedNodeFormat,Kn=vl(Y),gn=VA(Bt,a,An),xn=gn&&PY(Y,gn,Bt),yr=gn&&(!xn||xn===_.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(gn.resolvedFileName);if(yr){if(xn&&Ke(u,xn,a,gn.resolvedFileName),gn.resolvedUsingTsExtension&&fd(a)){const Gn=((ge=nr(n,zc))==null?void 0:ge.importClause)||nr(n,Im(su,eu));(Gn&&!Gn.isTypeOnly||nr(n,sf))&&Ke(u,_.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ln(D.checkDefined(Z3(a))))}else if(gn.resolvedUsingTsExtension&&!pw(Y,Bt.fileName)){const Gn=D.checkDefined(Z3(a));Ke(u,_.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Gn)}if(yr.symbol){if(gn.isExternalLibraryImport&&!SO(gn.extension)&&pE(!1,u,Bt,An,gn,a),Kn===3||Kn===99){const Gn=Bt.impliedNodeFormat===1&&!nr(n,sf)||!!nr(n,su),qn=nr(n,ri=>vg(ri)||eu(ri)||zc(ri)),Zr=qn&&vg(qn)?(Ne=qn.assertions)==null?void 0:Ne.assertClause:qn==null?void 0:qn.assertClause;if(Gn&&yr.impliedNodeFormat===99&&!t2(Zr))if(nr(n,su))Ke(u,_.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 ri;const _a=xh(Bt.fileName);if(_a===".ts"||_a===".js"||_a===".tsx"||_a===".jsx"){const Qa=Bt.packageJsonScope,Ec=_a===".ts"?".mts":_a===".js"?".mjs":void 0;Qa&&!Qa.contents.packageJsonContent.type?Ec?ri=Na(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Ec,Bi(Qa.packageDirectory,"package.json")):ri=Na(void 0,_.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Bi(Qa.packageDirectory,"package.json")):Ec?ri=Na(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Ec):ri=Na(void 0,_.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}$o.add(dg(Zn(u),u,Na(ri,_.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return as(yr.symbol)}l&&Ke(u,_.File_0_is_not_a_module,yr.fileName);return}if(ho){const Gn=pH(ho,qn=>qn.pattern,a);if(Gn){const qn=jo&&jo.get(a);return as(qn||Gn.symbol)}}if(gn&&!SO(gn.extension)&&xn===void 0||xn===_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(p){const Gn=_.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ke(u,Gn,a,gn.resolvedFileName)}else pE(Se&&!!l,u,Bt,An,gn,a);return}if(l){if(gn){const Gn=e.getProjectReferenceRedirect(gn.resolvedFileName);if(Gn){Ke(u,_.Output_file_0_has_not_been_built_from_source_file_1,Gn,gn.resolvedFileName);return}}if(xn)Ke(u,xn,a,gn.resolvedFileName);else{const Gn=Sf(a)&&!kA(a),qn=Kn===3||Kn===99;if(!CT(Y)&&cc(a,".json")&&Kn!==1&&a7(Y))Ke(u,_.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(An===99&&qn&&Gn){const Zr=Pa(a,hi(Bt.path)),ri=(De=L2.find(([_a,Qa])=>e.fileExists(Zr+_a)))==null?void 0:De[1];ri?Ke(u,_.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+ri):Ke(u,_.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 Ke(u,l,a)}}return;function ln(Gn){const qn=TO(a,Gn);if(zq(de)||An===99){const Zr=fd(a)&&pw(Y);return qn+(Gn===".mts"||Gn===".d.mts"?Zr?".mts":".mjs":Gn===".cts"||Gn===".d.mts"?Zr?".cts":".cjs":Zr?".ts":".js")}return qn}}function pE(n,a,l,u,{packageId:p,resolvedFileName:g},x){var R,M;let J;if(!Uc(x)&&p){const $=(M=(R=l.resolvedModules)==null?void 0:R.get(x,u))==null?void 0:M.node10Result;J=$?Na(void 0,_.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,$,$.indexOf(Ly+"@types/")>-1?`@types/${_w(p.name)}`:p.name):Vh(p.name)?Na(void 0,_.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,p.name,_w(p.name)):Pb(p.name)?Na(void 0,_.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,p.name,x):Na(void 0,_.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,x,_w(p.name))}lm(n,a,Na(J,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,g))}function Vh(n){return t().has(Z5(n))}function Pb(n){return!!t().get(n)}function hd(n,a){if(n!=null&&n.exports){const l=Yl(n.exports.get("export="),a),u=nh(as(l),as(n));return as(u)||n}}function nh(n,a){if(!n||n===an||n===a||a.exports.size===1||n.flags&2097152)return n;const l=Wi(n);if(l.cjsExportMerged)return l.cjsExportMerged;const u=n.flags&33554432?n:Ab(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=so()),a.exports.forEach((p,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?ip(u.exports.get(g),p):p)}),Wi(u).cjsExportMerged=u,l.cjsExportMerged=u}function Mb(n,a,l,u){var p;const g=hd(n,l);if(!l&&g){if(!u&&!(g.flags&1539)&&!Al(g,308)){const R=de>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ke(a,_.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,R),g}const x=a.parent;if(zc(x)&&ZA(x)||sf(x)){const R=sf(x)?x.arguments[0]:x.moduleSpecifier,M=ar(g),J=fDe(M,g,n,R);if(J)return f0(g,J,x);const $=(p=n==null?void 0:n.declarations)==null?void 0:p.find(qi),ge=$&&uE(By(R),$.impliedNodeFormat);if(W_(Y)||ge){let Ne=BP(M,0);if((!Ne||!Ne.length)&&(Ne=BP(M,1)),Ne&&Ne.length||co(M,"default",!0)||ge){const De=_De(M,g,n,R);return f0(g,De,x)}}}}return g}function f0(n,a,l){const u=ts(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=l,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));const p=up(a);return u.links.type=Ns(u,p.members,rt,rt,p.indexInfos),u}function mE(n){return n.exports.get("export=")!==void 0}function Wy(n){return Tie(jh(n))}function bS(n){const a=Wy(n),l=hd(n);if(l!==n){const u=ar(l);hE(u)&&Ti(a,hs(u))}return a}function _0(n,a){jh(n).forEach((p,g)=>{yE(g)||a(p,g)});const u=hd(n);if(u!==n){const p=ar(u);hE(p)&&iZe(p,(g,x)=>{a(g,x)})}}function Ug(n,a){const l=jh(a);if(l)return l.get(n)}function Mf(n,a){const l=Ug(n,a);if(l)return l;const u=hd(a);if(u===a)return;const p=ar(u);return hE(p)?co(p,n):void 0}function hE(n){return!(n.flags&134348796||ti(n)&1||Hf(n)||Mo(n))}function mf(n){return n.flags&6256?iie(n,"resolvedExports"):n.flags&1536?jh(n):n.exports||te}function jh(n){const a=Wi(n);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:u}=F2(n);a.resolvedExports=l,a.typeOnlyExportStarMap=u}return a.resolvedExports}function p0(n,a,l,u){a&&a.forEach((p,g)=>{if(g==="default")return;const x=n.get(g);if(!x)n.set(g,p),l&&u&&l.set(g,{specifierText:xc(u.moduleSpecifier)});else if(l&&u&&x&&Yl(x)!==Yl(p)){const R=l.get(g);R.exportsWithDuplicate?R.exportsWithDuplicate.push(u):R.exportsWithDuplicate=[u]}})}function F2(n){const a=[];let l;const u=new Set;n=hd(n);const p=g(n)||te;return l&&u.forEach(x=>l.delete(x)),{exports:p,typeOnlyExportStarMap:l};function g(x,R,M){if(!M&&(x!=null&&x.exports)&&x.exports.forEach((ge,Ne)=>u.add(Ne)),!(x&&x.exports&&f_(a,x)))return;const J=new Map(x.exports),$=x.exports.get("__export");if($){const ge=so(),Ne=new Map;if($.declarations)for(const De of $.declarations){const _t=du(De,De.moduleSpecifier),Bt=g(_t,De,M||De.isTypeOnly);p0(ge,Bt,Ne,De)}Ne.forEach(({exportsWithDuplicate:De},_t)=>{if(!(_t==="export="||!(De&&De.length)||J.has(_t)))for(const Bt of De)$o.add(Nr(Bt,_.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ne.get(_t).specifierText,ta(_t)))}),p0(J,ge)}return R!=null&&R.isTypeOnly&&(l??(l=new Map),J.forEach((ge,Ne)=>l.set(Ne,R))),J}}function as(n){let a;return n&&n.mergeId&&(a=t0[n.mergeId])?a:n}function Ir(n){return as(n.symbol&&VU(n.symbol))}function Xd(n){return Rm(n)?Ir(n):void 0}function gd(n){return as(n.parent&&VU(n.parent))}function ES(n,a){const l=Zn(a),u=ms(l),p=Wi(n);let g;if(p.extendedContainersByFile&&(g=p.extendedContainersByFile.get(u)))return g;if(l&&l.imports){for(const R of l.imports){if(Zs(R))continue;const M=du(a,R,!0);!M||!qy(M,n)||(g=Fn(g,M))}if(Ae(g))return(p.extendedContainersByFile||(p.extendedContainersByFile=new Map)).set(u,g),g}if(p.extendedContainers)return p.extendedContainers;const x=e.getSourceFiles();for(const R of x){if(!Zl(R))continue;const M=Ir(R);qy(M,n)&&(g=Fn(g,M))}return p.extendedContainers=g||rt}function gE(n,a,l){const u=gd(n);if(u&&!(n.flags&262144)){const x=ia(u.declarations,g),R=a&&ES(n,a),M=zy(u,l);if(a&&u.flags&Hg(l)&&h0(u,a,1920,!1))return Fn(ba(ba([u],x),R),M);const J=!(u.flags&Hg(l))&&u.flags&788968&&Us(u).flags&524288&&l===111551?bE(a,ge=>af(ge,Ne=>{if(Ne.flags&Hg(l)&&ar(Ne)===Us(u))return Ne})):void 0;let $=J?[J,...x,u]:[...x,u];return $=Fn($,M),$=Ti($,R),$}const p=ia(n.declarations,x=>{if(!Mu(x)&&x.parent){if(Wg(x.parent))return Ir(x.parent);if(rm(x.parent)&&x.parent.parent&&hd(Ir(x.parent.parent))===n)return Ir(x.parent.parent)}if(Uu(x)&&br(x.parent)&&x.parent.operatorToken.kind===63&&ll(x.parent.left)&&zl(x.parent.left.expression))return bh(x.parent.left)||hT(x.parent.left.expression)?Ir(Zn(x)):(Ql(x.parent.left.expression),Jr(x.parent.left.expression).resolvedSymbol)});if(!Ae(p))return;return ia(p,x=>qy(x,n)?x:void 0);function g(x){return u&&B2(x,u)}}function zy(n,a){const l=!!Ae(n.declarations)&&us(n.declarations);if(a&111551&&l&&l.parent&&Ki(l.parent)&&(Ls(l)&&l===l.parent.initializer||cf(l)&&l===l.parent.type))return Ir(l.parent)}function B2(n,a){const l=Wh(n),u=l&&l.exports&&l.exports.get("export=");return u&&fm(u,a)?l:void 0}function qy(n,a){if(n===gd(a))return a;const l=n.exports&&n.exports.get("export=");if(l&&fm(l,a))return n;const u=mf(n),p=u.get(a.escapedName);return p&&fm(p,a)?p:af(u,g=>{if(fm(g,a))return g})}function fm(n,a){if(as(Yl(as(n)))===as(Yl(as(a))))return n}function Op(n){return as(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Vg(n,a){return!!(n.flags&111551||n.flags&2097152&&uu(n)&111551&&(a||!Rd(n)))}function m0(n){const a=n.members;for(const l of a)if(l.kind===173&&p_(l.body))return l}function Hh(n){var a;const l=new y(at,n);return E++,l.id=E,(a=bi)==null||a.recordType(l),l}function _m(n,a){const l=Hh(n);return l.symbol=a,l}function TS(n){return new y(at,n)}function $l(n,a,l=0){const u=Hh(n);return u.intrinsicName=a,u.objectFlags=l,u}function hf(n,a){const l=_m(524288,a);return l.objectFlags=n,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function rh(){return Qr(Ro(lF.keys(),jf))}function Nd(n){return _m(262144,n)}function yE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Jy(n){let a;return n.forEach((l,u)=>{jg(l,u)&&(a||(a=[])).push(l)}),a||rt}function jg(n,a){return!yE(a)&&Vg(n)}function G2(n){const a=Jy(n),l=Lie(n);return l?ba(a,[l]):a}function Ff(n,a,l,u,p){const g=n;return g.members=a,g.properties=rt,g.callSignatures=l,g.constructSignatures=u,g.indexInfos=p,a!==te&&(g.properties=Jy(a)),g}function Ns(n,a,l,u,p){return Ff(hf(16,n),a,l,u,p)}function vE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=lr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;const l=Ns(n.symbol,n.members,n.callSignatures,kt(a)?a:rt,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function bE(n,a){let l;for(let u=n;u;u=u.parent){if(Nm(u)&&u.locals&&!Qm(u)&&(l=a(u.locals,void 0,!0,u)))return l;switch(u.kind){case 308:if(!of(u))break;case 264:const p=Ir(u);if(l=a((p==null?void 0:p.exports)||te,void 0,!0,u))return l;break;case 260:case 228:case 261:let g;if((Ir(u).members||te).forEach((x,R)=>{x.flags&788968&&(g||(g=so())).set(R,x)}),g&&(l=a(g,void 0,!1,u)))return l;break}}return a(ze,void 0,!0)}function Hg(n){return n===111551?111551:1920}function h0(n,a,l,u,p=new Map){if(!(n&&!EE(n)))return;const g=Wi(n),x=g.accessibleChainCache||(g.accessibleChainCache=new Map),R=bE(a,(An,Kn,gn,xn)=>xn),M=`${u?0:1}|${R&&ms(R)}|${l}`;if(x.has(M))return x.get(M);const J=bo(n);let $=p.get(J);$||p.set(J,$=[]);const ge=bE(a,Ne);return x.set(M,ge),ge;function Ne(An,Kn,gn){if(!f_($,An))return;const xn=Bt(An,Kn,gn);return $.pop(),xn}function De(An,Kn){return!SS(An,a,Kn)||!!h0(An.parent,a,Hg(Kn),u,p)}function _t(An,Kn,gn){return(n===(Kn||An)||as(n)===as(Kn||An))&&!kt(An.declarations,Wg)&&(gn||De(as(An),l))}function Bt(An,Kn,gn){return _t(An.get(n.escapedName),void 0,Kn)?[n]:af(An,yr=>{if(yr.flags&2097152&&yr.escapedName!=="export="&&yr.escapedName!=="default"&&!(n7(yr)&&a&&Zl(Zn(a)))&&(!u||kt(yr.declarations,X0))&&(!gn||!kt(yr.declarations,dfe))&&(Kn||!Al(yr,278))){const ln=nc(yr),Gn=Mn(yr,ln,Kn);if(Gn)return Gn}if(yr.escapedName===n.escapedName&&yr.exportSymbol&&_t(as(yr.exportSymbol),void 0,Kn))return[n]})||(An===ze?Mn(st,st,Kn):void 0)}function Mn(An,Kn,gn){if(_t(An,Kn,gn))return[An];const xn=mf(Kn),yr=xn&&Ne(xn,!0);if(yr&&De(An,Hg(l)))return[An].concat(yr)}}function SS(n,a,l){let u=!1;return bE(a,p=>{let g=as(p.get(n.escapedName));if(!g)return!1;if(g===n)return!0;const x=g.flags&2097152&&!Al(g,278);return g=x?nc(g):g,(x?uu(g):g.flags)&l?(u=!0,!0):!1}),u}function EE(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}function TE(n,a){return Yd(n,a,788968,!1,!0).accessibility===0}function SE(n,a){return Yd(n,a,111551,!1,!0).accessibility===0}function xE(n,a,l){return Yd(n,a,l,!1,!1).accessibility===0}function AE(n,a,l,u,p,g){if(!Ae(n))return;let x,R=!1;for(const M of n){const J=h0(M,a,u,!1);if(J){x=M;const Ne=U2(J[0],p);if(Ne)return Ne}if(g&&kt(M.declarations,Wg)){if(p){R=!0;continue}return{accessibility:0}}const $=gE(M,a,u),ge=AE($,a,l,l===M?Hg(u):u,p,g);if(ge)return ge}if(R)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:S(l,a,u),errorModuleName:x!==l?S(x,a,1920):void 0}}function Ky(n,a,l,u){return Yd(n,a,l,u,!0)}function Yd(n,a,l,u,p){if(n&&a){const g=AE([n],a,n,l,u,p);if(g)return g;const x=Ue(n.declarations,Wh);if(x){const R=Wh(a);if(x!==R)return{accessibility:2,errorSymbolName:S(n,a,l),errorModuleName:S(x),errorNode:fr(a)?a:void 0}}return{accessibility:1,errorSymbolName:S(n,a,l)}}return{accessibility:0}}function Wh(n){const a=nr(n,SL);return a&&Ir(a)}function SL(n){return Mu(n)||n.kind===308&&of(n)}function Wg(n){return h3(n)||n.kind===308&&of(n)}function U2(n,a){let l;if(!Yn(lr(n.declarations,g=>g.kind!==79),u))return;return{accessibility:0,aliasesToMakeVisible:l};function u(g){var x,R;if(!I_(g)){const M=yS(g);if(M&&!Yr(M,1)&&I_(M.parent))return p(g,M);if(Ki(g)&&uc(g.parent.parent)&&!Yr(g.parent.parent,1)&&I_(g.parent.parent.parent))return p(g,g.parent.parent);if(g3(g)&&!Yr(g,1)&&I_(g.parent))return p(g,g);if(ps(g)){if(n.flags&2097152&&fr(g)&&((x=g.parent)!=null&&x.parent)&&Ki(g.parent.parent)&&((R=g.parent.parent.parent)!=null&&R.parent)&&uc(g.parent.parent.parent.parent)&&!Yr(g.parent.parent.parent.parent,1)&&g.parent.parent.parent.parent.parent&&I_(g.parent.parent.parent.parent.parent))return p(g,g.parent.parent.parent.parent);if(n.flags&2){const J=nr(g,uc);return Yr(J,1)?!0:I_(J.parent)?p(g,J):!1}}return!1}return!0}function p(g,x){return a&&(Jr(g).isVisible=!0,l=sy(l,x)),!0}}function V2(n,a){let l;n.parent.kind===183||n.parent.kind===230&&!vh(n.parent)||n.parent.kind===164?l=1160127:n.kind===163||n.kind===208||n.parent.kind===268?l=1920:l=788968;const u=Lf(n),p=_l(a,u.escapedText,l,void 0,void 0,!1);return p&&p.flags&262144&&l&788968?{accessibility:0}:!p&&TT(u)&&Ky(Ir(Sd(u,!1,!1)),u,l,!1).accessibility===0?{accessibility:0}:p&&U2(p,!0)||{accessibility:1,errorSymbolName:xc(u),errorNode:u}}function S(n,a,l,u=4,p){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);const x=u&4?Ye.symbolToNode:Ye.symbolToEntityName;return p?R(p).getText():YI(R);function R(M){const J=x(n,l,a,g),$=(a==null?void 0:a.kind)===308?gY():J1(),ge=a&&Zn(a);return $.writeNode(4,J,ge,M),M}}function le(n,a,l=0,u,p){return p?g(p).getText():YI(g);function g(x){let R;l&262144?R=u===1?182:181:R=u===1?177:176;const M=Ye.signatureToSignatureDeclaration(n,R,a,li(l)|70221824|512),J=K8(),$=a&&Zn(a);return J.writeNode(4,M,$,gq(x)),x}}function ke(n,a,l=1064960,u=aO("")){const p=Y.noErrorTruncation||l&1,g=Ye.typeToTypeNode(n,a,li(l)|70221824|(p?1:0));if(g===void 0)return D.fail("should always get typenode");const x=n!==pt?J1():hY(),R=a&&Zn(a);x.writeNode(4,g,R,u);const M=u.getText(),J=p?b7*2:kO*2;return J&&M&&M.length>=J?M.substr(0,J-3)+"...":M}function on(n,a){let l=Si(n.symbol)?ke(n,n.symbol.valueDeclaration):ke(n),u=Si(a.symbol)?ke(a,a.symbol.valueDeclaration):ke(a);return l===u&&(l=Cr(n),u=Cr(a)),[l,u]}function Cr(n){return ke(n,void 0,64)}function Si(n){return n&&!!n.valueDeclaration&&vt(n.valueDeclaration)&&!w_(n.valueDeclaration)}function li(n=0){return n&848330091}function Vi(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===qu(n.symbol)||!!(n.flags&524288)&&!!(ti(n)&16777216))}function fo(){return{typeToTypeNode:(dt,Te,er,Qn)=>a(Te,er,Qn,Tr=>u(dt,Tr)),indexInfoToIndexSignatureDeclaration:(dt,Te,er,Qn)=>a(Te,er,Qn,Tr=>$(dt,Tr,void 0)),signatureToSignatureDeclaration:(dt,Te,er,Qn,Tr)=>a(er,Qn,Tr,wr=>ge(dt,Te,wr)),symbolToEntityName:(dt,Te,er,Qn,Tr)=>a(er,Qn,Tr,wr=>_a(dt,wr,Te,!1)),symbolToExpression:(dt,Te,er,Qn,Tr)=>a(er,Qn,Tr,wr=>Qa(dt,wr,Te)),symbolToTypeParameterDeclarations:(dt,Te,er,Qn)=>a(Te,er,Qn,Tr=>gn(dt,Tr)),symbolToParameterDeclaration:(dt,Te,er,Qn)=>a(Te,er,Qn,Tr=>Bt(dt,Tr)),typeParameterToDeclaration:(dt,Te,er,Qn)=>a(Te,er,Qn,Tr=>_t(dt,Tr)),symbolTableToDeclarationStatements:(dt,Te,er,Qn,Tr)=>a(Te,er,Qn,wr=>Xu(dt,wr,Tr)),symbolToNode:(dt,Te,er,Qn,Tr)=>a(er,Qn,Tr,wr=>n(dt,wr,Te))};function n(dt,Te,er){if(Te.flags&1073741824){if(dt.valueDeclaration){const Tr=ka(dt.valueDeclaration);if(Tr&&As(Tr))return Tr}const Qn=Wi(dt).nameType;if(Qn&&Qn.flags&9216)return Te.enclosingDeclaration=Qn.symbol.valueDeclaration,N.createComputedPropertyName(Qa(Qn.symbol,Te,er))}return Qa(dt,Te,er)}function a(dt,Te,er,Qn){D.assert(dt===void 0||(dt.flags&8)===0);const Tr=er!=null&&er.trackSymbol?er.moduleResolverHost:Te&134217728?B7e(e):void 0,wr={enclosingDeclaration:dt,flags:Te||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};wr.tracker=new U8(wr,er,Tr);const Ra=Qn(wr);return wr.truncating&&wr.flags&1&&wr.tracker.reportTruncationError(),wr.encounteredError?void 0:Ra}function l(dt){return dt.truncating?dt.truncating:dt.truncating=dt.approximateLength>(dt.flags&1?b7:kO)}function u(dt,Te){const er=Te.flags,Qn=p(dt,Te);return Te.flags=er,Qn}function p(dt,Te){var er,Qn;o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();const Tr=Te.flags&8388608;if(Te.flags&=-8388609,!dt){if(!(Te.flags&262144)){Te.encounteredError=!0;return}return Te.approximateLength+=3,N.createKeywordTypeNode(131)}if(Te.flags&536870912||(dt=dp(dt)),dt.flags&1)return dt.aliasSymbol?N.createTypeReferenceNode(Gn(dt.aliasSymbol),M(dt.aliasTypeArguments,Te)):dt===pt?BO(N.createKeywordTypeNode(131),3,"unresolved"):(Te.approximateLength+=3,N.createKeywordTypeNode(dt===ie?139:131));if(dt.flags&2)return N.createKeywordTypeNode(157);if(dt.flags&4)return Te.approximateLength+=6,N.createKeywordTypeNode(152);if(dt.flags&8)return Te.approximateLength+=6,N.createKeywordTypeNode(148);if(dt.flags&64)return Te.approximateLength+=6,N.createKeywordTypeNode(160);if(dt.flags&16&&!dt.aliasSymbol)return Te.approximateLength+=7,N.createKeywordTypeNode(134);if(dt.flags&1056){if(dt.symbol.flags&8){const yn=gd(dt.symbol),ur=qn(yn,Te,788968);if(Us(yn)===dt)return ur;const ei=Fl(dt.symbol);return M_(ei,0)?zn(ur,N.createTypeReferenceNode(ei,void 0)):vg(ur)?(ur.isTypeOf=!0,N.createIndexedAccessTypeNode(ur,N.createLiteralTypeNode(N.createStringLiteral(ei)))):J_(ur)?N.createIndexedAccessTypeNode(N.createTypeQueryNode(ur.typeName),N.createLiteralTypeNode(N.createStringLiteral(ei))):D.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return qn(dt.symbol,Te,788968)}if(dt.flags&128)return Te.approximateLength+=dt.value.length+2,N.createLiteralTypeNode(or(N.createStringLiteral(dt.value,!!(Te.flags&268435456)),33554432));if(dt.flags&256){const yn=dt.value;return Te.approximateLength+=(""+yn).length,N.createLiteralTypeNode(yn<0?N.createPrefixUnaryExpression(40,N.createNumericLiteral(-yn)):N.createNumericLiteral(yn))}if(dt.flags&2048)return Te.approximateLength+=R1(dt.value).length+1,N.createLiteralTypeNode(N.createBigIntLiteral(dt.value));if(dt.flags&512)return Te.approximateLength+=dt.intrinsicName.length,N.createLiteralTypeNode(dt.intrinsicName==="true"?N.createTrue():N.createFalse());if(dt.flags&8192){if(!(Te.flags&1048576)){if(SE(dt.symbol,Te.enclosingDeclaration))return Te.approximateLength+=6,qn(dt.symbol,Te,111551);Te.tracker.reportInaccessibleUniqueSymbolError&&Te.tracker.reportInaccessibleUniqueSymbolError()}return Te.approximateLength+=13,N.createTypeOperatorNode(156,N.createKeywordTypeNode(153))}if(dt.flags&16384)return Te.approximateLength+=4,N.createKeywordTypeNode(114);if(dt.flags&32768)return Te.approximateLength+=9,N.createKeywordTypeNode(155);if(dt.flags&65536)return Te.approximateLength+=4,N.createLiteralTypeNode(N.createNull());if(dt.flags&131072)return Te.approximateLength+=5,N.createKeywordTypeNode(144);if(dt.flags&4096)return Te.approximateLength+=6,N.createKeywordTypeNode(153);if(dt.flags&67108864)return Te.approximateLength+=6,N.createKeywordTypeNode(149);if(Mk(dt))return Te.flags&4194304&&(!Te.encounteredError&&!(Te.flags&32768)&&(Te.encounteredError=!0),(Qn=(er=Te.tracker).reportInaccessibleThisError)==null||Qn.call(er)),Te.approximateLength+=4,N.createThisTypeNode();if(!Tr&&dt.aliasSymbol&&(Te.flags&16384||TE(dt.aliasSymbol,Te.enclosingDeclaration))){const yn=M(dt.aliasTypeArguments,Te);return yE(dt.aliasSymbol.escapedName)&&!(dt.aliasSymbol.flags&32)?N.createTypeReferenceNode(N.createIdentifier(""),yn):Ae(yn)===1&&dt.aliasSymbol===Es.symbol?N.createArrayTypeNode(yn[0]):qn(dt.aliasSymbol,Te,788968,yn)}const wr=ti(dt);if(wr&4)return D.assert(!!(dt.flags&524288)),dt.node?en(dt,kn):kn(dt);if(dt.flags&262144||wr&3){if(dt.flags&262144&&jr(Te.inferTypeParameters,dt)){Te.approximateLength+=Fl(dt.symbol).length+6;let ur;const ei=Cu(dt);if(ei){const vr=zLe(dt,!0);vr&&Xh(ei,vr)||(Te.approximateLength+=9,ur=ei&&u(ei,Te))}return N.createInferTypeNode(De(dt,Te,ur))}if(Te.flags&4&&dt.flags&262144&&!TE(dt.symbol,Te.enclosingDeclaration)){const ur=ri(dt,Te);return Te.approximateLength+=Mr(ur).length,N.createTypeReferenceNode(N.createIdentifier(Mr(ur)),void 0)}if(dt.symbol)return qn(dt.symbol,Te,788968);const yn=(dt===Ds||dt===hl)&&V&&V.symbol?(dt===hl?"sub-":"super-")+Fl(V.symbol):"?";return N.createTypeReferenceNode(N.createIdentifier(yn),void 0)}if(dt.flags&1048576&&dt.origin&&(dt=dt.origin),dt.flags&3145728){const yn=dt.flags&1048576?$d(dt.types):dt.types;if(Ae(yn)===1)return u(yn[0],Te);const ur=M(yn,Te,!0);if(ur&&ur.length>0)return dt.flags&1048576?N.createUnionTypeNode(ur):N.createIntersectionTypeNode(ur);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(wr&48)return D.assert(!!(dt.flags&524288)),Ft(dt);if(dt.flags&4194304){const yn=dt.type;Te.approximateLength+=6;const ur=u(yn,Te);return N.createTypeOperatorNode(141,ur)}if(dt.flags&134217728){const yn=dt.texts,ur=dt.types,ei=N.createTemplateHead(yn[0]),vr=N.createNodeArray(Vt(ur,(Sa,cs)=>N.createTemplateLiteralTypeSpan(u(Sa,Te),(cs<ur.length-1?N.createTemplateMiddle:N.createTemplateTail)(yn[cs+1]))));return Te.approximateLength+=2,N.createTemplateLiteralType(ei,vr)}if(dt.flags&268435456){const yn=u(dt.type,Te);return qn(dt.symbol,Te,788968,[yn])}if(dt.flags&8388608){const yn=u(dt.objectType,Te),ur=u(dt.indexType,Te);return Te.approximateLength+=2,N.createIndexedAccessTypeNode(yn,ur)}if(dt.flags&16777216)return en(dt,yn=>Ra(yn));if(dt.flags&33554432)return u(dt.baseType,Te);return D.fail("Should be unreachable.");function Ra(yn){const ur=u(yn.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&yn.root.isDistributive&&!(yn.checkType.flags&262144)){const Gs=Nd(ts(262144,"T")),Vs=ri(Gs,Te),bd=N.createTypeReferenceNode(Vs);Te.approximateLength+=37;const nt=LS(yn.root.checkType,Gs,yn.mapper),St=Te.inferTypeParameters;Te.inferTypeParameters=yn.root.inferTypeParameters;const tn=u(Yi(yn.root.extendsType,nt),Te);Te.inferTypeParameters=St;const Wn=Di(Yi(fi(yn.root.node.trueType),nt)),mr=Di(Yi(fi(yn.root.node.falseType),nt));return N.createConditionalTypeNode(ur,N.createInferTypeNode(N.createTypeParameterDeclaration(void 0,N.cloneNode(bd.typeName))),N.createConditionalTypeNode(N.createTypeReferenceNode(N.cloneNode(Vs)),u(yn.checkType,Te),N.createConditionalTypeNode(bd,tn,Wn,mr),N.createKeywordTypeNode(144)),N.createKeywordTypeNode(144))}const ei=Te.inferTypeParameters;Te.inferTypeParameters=yn.root.inferTypeParameters;const vr=u(yn.extendsType,Te);Te.inferTypeParameters=ei;const Sa=Di(L0(yn)),cs=Di(I0(yn));return N.createConditionalTypeNode(ur,vr,Sa,cs)}function Di(yn){var ur,ei,vr;return yn.flags&1048576?(ur=Te.visitedTypes)!=null&&ur.has(ku(yn))?(Te.flags&131072||(Te.encounteredError=!0,(vr=(ei=Te.tracker)==null?void 0:ei.reportCyclicStructureError)==null||vr.call(ei)),g(Te)):en(yn,Sa=>u(Sa,Te)):u(yn,Te)}function Lr(yn){return SD(yn)&&!(wL(yn).flags&262144)}function bt(yn){D.assert(!!(yn.flags&524288));const ur=yn.declaration.readonlyToken?N.createToken(yn.declaration.readonlyToken.kind):void 0,ei=yn.declaration.questionToken?N.createToken(yn.declaration.questionToken.kind):void 0;let vr,Sa;if(SD(yn)){if(Lr(yn)&&Te.flags&4){const St=Nd(ts(262144,"T")),tn=ri(St,Te);Sa=N.createTypeReferenceNode(tn)}vr=N.createTypeOperatorNode(141,Sa||u(wL(yn),Te))}else vr=u(Mp(yn),Te);const cs=De(cp(yn),Te,vr),Gs=yn.declaration.nameType?u(rv(yn),Te):void 0,Vs=u(FE(Kh(yn),!!(hm(yn)&4)),Te),bd=N.createMappedTypeNode(ur,cs,Gs,ei,Vs,void 0);Te.approximateLength+=10;const nt=or(bd,1);if(Lr(yn)&&Te.flags&4){const St=Yi(Cu(fi(yn.declaration.typeParameter.constraint.type))||he,yn.mapper);return N.createConditionalTypeNode(u(wL(yn),Te),N.createInferTypeNode(N.createTypeParameterDeclaration(void 0,N.cloneNode(Sa.typeName),St.flags&2?void 0:u(St,Te))),nt,N.createKeywordTypeNode(144))}return nt}function Ft(yn){var ur,ei;const vr=yn.id,Sa=yn.symbol;if(Sa){const Gs=Vi(yn)?788968:111551;if(Vp(Sa.valueDeclaration))return qn(Sa,Te,Gs);if(Sa.flags&32&&!$a(Sa)&&!(Sa.valueDeclaration&&di(Sa.valueDeclaration)&&Te.flags&2048&&(!Nc(Sa.valueDeclaration)||Ky(Sa,Te.enclosingDeclaration,Gs,!1).accessibility!==0))||Sa.flags&896||cs())return qn(Sa,Te,Gs);if((ur=Te.visitedTypes)!=null&&ur.has(vr)){const Vs=Xy(yn);return Vs?qn(Vs,Te,788968):g(Te)}else return en(yn,$t)}else{if(!!(ti(yn)&8388608)){const Vs=yn;if(qk(Vs.node)){const bd=Ao(Te,Vs.node);if(bd)return bd}return(ei=Te.visitedTypes)!=null&&ei.has(vr)?g(Te):en(yn,$t)}return $t(yn)}function cs(){var Gs;const Vs=!!(Sa.flags&8192)&&kt(Sa.declarations,nt=>Ja(nt)),bd=!!(Sa.flags&16)&&(Sa.parent||Ue(Sa.declarations,nt=>nt.parent.kind===308||nt.parent.kind===265));if(Vs||bd)return(!!(Te.flags&4096)||((Gs=Te.visitedTypes)==null?void 0:Gs.has(vr)))&&(!(Te.flags&8)||SE(Sa,Te.enclosingDeclaration))}}function en(yn,ur){var ei,vr;const Sa=yn.id,cs=ti(yn)&16&&yn.symbol&&yn.symbol.flags&32,Gs=ti(yn)&4&&yn.node?"N"+ms(yn.node):yn.flags&16777216?"N"+ms(yn.root.node):yn.symbol?(cs?"+":"")+bo(yn.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),Gs&&!Te.symbolDepth&&(Te.symbolDepth=new Map);const Vs=Te.enclosingDeclaration&&Jr(Te.enclosingDeclaration),bd=`${ku(yn)}|${Te.flags}`;Vs&&(Vs.serializedTypes||(Vs.serializedTypes=new Map));const nt=(ei=Vs==null?void 0:Vs.serializedTypes)==null?void 0:ei.get(bd);if(nt)return nt.truncating&&(Te.truncating=!0),Te.approximateLength+=nt.addedLength,Ln(nt.node);let St;if(Gs){if(St=Te.symbolDepth.get(Gs)||0,St>10)return g(Te);Te.symbolDepth.set(Gs,St+1)}Te.visitedTypes.add(Sa);const tn=Te.approximateLength,Wn=ur(yn),mr=Te.approximateLength-tn;return!Te.reportedDiagnostic&&!Te.encounteredError&&((vr=Vs==null?void 0:Vs.serializedTypes)==null||vr.set(bd,{node:Wn,truncating:Te.truncating,addedLength:mr})),Te.visitedTypes.delete(Sa),Gs&&Te.symbolDepth.set(Gs,St),Wn;function Ln(Vr){return!Zs(Vr)&&Ea(Vr)===Vr?Vr:ht(N.cloneNode(Bn(Vr,Ln,Tg,Sr)),Vr)}function Sr(Vr,Ui,Ca,qa,Za){return Vr&&Vr.length===0?ht(N.createNodeArray(void 0,Vr.hasTrailingComma),Vr):Jn(Vr,Ui,Ca,qa,Za)}}function $t(yn){if(Vf(yn)||yn.containsError)return bt(yn);const ur=up(yn);if(!ur.properties.length&&!ur.indexInfos.length){if(!ur.callSignatures.length&&!ur.constructSignatures.length)return Te.approximateLength+=2,or(N.createTypeLiteralNode(void 0),1);if(ur.callSignatures.length===1&&!ur.constructSignatures.length){const Gs=ur.callSignatures[0];return ge(Gs,181,Te)}if(ur.constructSignatures.length===1&&!ur.callSignatures.length){const Gs=ur.constructSignatures[0];return ge(Gs,182,Te)}}const ei=lr(ur.constructSignatures,Gs=>!!(Gs.flags&4));if(kt(ei)){const Gs=Vt(ei,NE);return ur.callSignatures.length+(ur.constructSignatures.length-ei.length)+ur.indexInfos.length+(Te.flags&2048?Gc(ur.properties,bd=>!(bd.flags&4194304)):Ae(ur.properties))&&Gs.push(vE(ur)),u(wo(Gs),Te)}const vr=Te.flags;Te.flags|=4194304;const Sa=vi(ur);Te.flags=vr;const cs=N.createTypeLiteralNode(Sa);return Te.approximateLength+=2,or(cs,Te.flags&1024?0:1),cs}function kn(yn){let ur=gs(yn);if(yn.target===Es||yn.target===ds){if(Te.flags&2){const Sa=u(ur[0],Te);return N.createTypeReferenceNode(yn.target===Es?"Array":"ReadonlyArray",[Sa])}const ei=u(ur[0],Te),vr=N.createArrayTypeNode(ei);return yn.target===Es?vr:N.createTypeOperatorNode(146,vr)}else if(yn.target.objectFlags&8){if(ur=pa(ur,(ei,vr)=>FE(ei,!!(yn.target.elementFlags[vr]&2))),ur.length>0){const ei=A0(yn),vr=M(ur.slice(0,ei),Te);if(vr){if(yn.target.labeledElementDeclarations)for(let cs=0;cs<vr.length;cs++){const Gs=yn.target.elementFlags[cs];vr[cs]=N.createNamedTupleMember(Gs&12?N.createToken(25):void 0,N.createIdentifier(ta(QV(yn.target.labeledElementDeclarations[cs]))),Gs&2?N.createToken(57):void 0,Gs&4?N.createArrayTypeNode(vr[cs]):vr[cs])}else for(let cs=0;cs<Math.min(ei,vr.length);cs++){const Gs=yn.target.elementFlags[cs];vr[cs]=Gs&12?N.createRestTypeNode(Gs&4?N.createArrayTypeNode(vr[cs]):vr[cs]):Gs&2?N.createOptionalTypeNode(vr[cs]):vr[cs]}const Sa=or(N.createTupleTypeNode(vr),1);return yn.target.readonly?N.createTypeOperatorNode(146,Sa):Sa}}if(Te.encounteredError||Te.flags&524288){const ei=or(N.createTupleTypeNode([]),1);return yn.target.readonly?N.createTypeOperatorNode(146,ei):ei}Te.encounteredError=!0;return}else{if(Te.flags&2048&&yn.symbol.valueDeclaration&&di(yn.symbol.valueDeclaration)&&!SE(yn.symbol,Te.enclosingDeclaration))return Ft(yn);{const ei=yn.target.outerTypeParameters;let vr=0,Sa;if(ei){const bd=ei.length;for(;vr<bd;){const nt=vr,St=qLe(ei[vr]);do vr++;while(vr<bd&&qLe(ei[vr])===St);if(!oH(ei,ur,nt,vr)){const tn=M(ur.slice(nt,vr),Te),Wn=Te.flags;Te.flags|=16;const mr=qn(St,Te,788968,tn);Te.flags=Wn,Sa=Sa?zn(Sa,mr):mr}}}let cs;if(ur.length>0){const bd=(yn.target.typeParameters||rt).length;cs=M(ur.slice(vr,bd),Te)}const Gs=Te.flags;Te.flags|=16;const Vs=qn(yn.symbol,Te,788968,cs);return Te.flags=Gs,Sa?zn(Sa,Vs):Vs}}}function zn(yn,ur){if(vg(yn)){let ei=yn.typeArguments,vr=yn.qualifier;vr&&(He(vr)?ei!==IT(vr)&&(vr=Sy(N.cloneNode(vr),ei)):ei!==IT(vr.right)&&(vr=N.updateQualifiedName(vr,vr.left,Sy(N.cloneNode(vr.right),ei)))),ei=ur.typeArguments;const Sa=sa(ur);for(const cs of Sa)vr=vr?N.createQualifiedName(vr,cs):cs;return N.updateImportTypeNode(yn,yn.argument,yn.assertions,vr,ei,yn.isTypeOf)}else{let ei=yn.typeArguments,vr=yn.typeName;He(vr)?ei!==IT(vr)&&(vr=Sy(N.cloneNode(vr),ei)):ei!==IT(vr.right)&&(vr=N.updateQualifiedName(vr,vr.left,Sy(N.cloneNode(vr.right),ei))),ei=ur.typeArguments;const Sa=sa(ur);for(const cs of Sa)vr=N.createQualifiedName(vr,cs);return N.updateTypeReferenceNode(yn,vr,ei)}}function sa(yn){let ur=yn.typeName;const ei=[];for(;!He(ur);)ei.unshift(ur.right),ur=ur.left;return ei.unshift(ur),ei}function vi(yn){if(l(Te))return[N.createPropertySignature(void 0,"...",void 0,void 0)];const ur=[];for(const Sa of yn.callSignatures)ur.push(ge(Sa,176,Te));for(const Sa of yn.constructSignatures)Sa.flags&4||ur.push(ge(Sa,177,Te));for(const Sa of yn.indexInfos)ur.push($(Sa,Te,yn.objectFlags&1024?g(Te):void 0));const ei=yn.properties;if(!ei)return ur;let vr=0;for(const Sa of ei){if(vr++,Te.flags&2048){if(Sa.flags&4194304)continue;Qf(Sa)&24&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(ta(Sa.escapedName))}if(l(Te)&&vr+2<ei.length-1){ur.push(N.createPropertySignature(void 0,`... ${ei.length-vr} more ...`,void 0,void 0)),R(ei[ei.length-1],Te,ur);break}R(Sa,Te,ur)}return ur.length?ur:void 0}}function g(dt){return dt.approximateLength+=3,dt.flags&1?N.createKeywordTypeNode(131):N.createTypeReferenceNode(N.createIdentifier("..."),void 0)}function x(dt,Te){var er;return!!(Il(dt)&8192)&&(jr(Te.reverseMappedStack,dt)||((er=Te.reverseMappedStack)==null?void 0:er[0])&&!(ti(zo(Te.reverseMappedStack).links.propertyType)&16))}function R(dt,Te,er){var Qn;const Tr=!!(Il(dt)&8192),wr=x(dt,Te)?we:T0(dt),Ra=Te.enclosingDeclaration;if(Te.enclosingDeclaration=void 0,Te.tracker.canTrackSymbol&&ED(dt.escapedName))if(dt.declarations){const Ft=us(dt.declarations);if(NP(Ft))if(br(Ft)){const en=ka(Ft);en&&cl(en)&&uO(en.argumentExpression)&&Mn(en.argumentExpression,Ra,Te)}else Mn(Ft.name.expression,Ra,Te)}else Te.tracker.reportNonSerializableProperty(S(dt));Te.enclosingDeclaration=dt.valueDeclaration||((Qn=dt.declarations)==null?void 0:Qn[0])||Ra;const Di=bf(dt,Te);Te.enclosingDeclaration=Ra,Te.approximateLength+=Fl(dt).length+1;const Lr=dt.flags&16777216?N.createToken(57):void 0;if(dt.flags&8208&&!iv(wr).length&&!pp(dt)){const Ft=za(_c(wr,en=>!(en.flags&32768)),0);for(const en of Ft){const $t=ge(en,170,Te,{name:Di,questionToken:Lr});er.push(bt($t))}}else{let Ft;x(dt,Te)?Ft=g(Te):(Tr&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(dt)),Ft=wr?na(Te,wr,dt,Ra):N.createKeywordTypeNode(131),Tr&&Te.reverseMappedStack.pop());const en=pp(dt)?[N.createToken(146)]:void 0;en&&(Te.approximateLength+=9);const $t=N.createPropertySignature(en,Di,Lr,Ft);er.push(bt($t))}function bt(Ft){var en;if(kt(dt.declarations,$t=>$t.kind===351)){const $t=(en=dt.declarations)==null?void 0:en.find(zn=>zn.kind===351),kn=lN($t.comment);kn&&O1(Ft,[{kind:3,text:`* * `+kn.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else dt.valueDeclaration&&Wc(Ft,dt.valueDeclaration);return Ft}}function M(dt,Te,er){if(kt(dt)){if(l(Te))if(er){if(dt.length>2)return[u(dt[0],Te),N.createTypeReferenceNode(`... ${dt.length-2} more ...`,void 0),u(dt[dt.length-1],Te)]}else return[N.createTypeReferenceNode("...",void 0)];const Tr=!(Te.flags&64)?Tce():void 0,wr=[];let Ra=0;for(const Di of dt){if(Ra++,l(Te)&&Ra+2<dt.length-1){wr.push(N.createTypeReferenceNode(`... ${dt.length-Ra} more ...`,void 0));const bt=u(dt[dt.length-1],Te);bt&&wr.push(bt);break}Te.approximateLength+=2;const Lr=u(Di,Te);Lr&&(wr.push(Lr),Tr&&G_e(Lr)&&Tr.add(Lr.typeName.escapedText,[Di,wr.length-1]))}if(Tr){const Di=Te.flags;Te.flags|=64,Tr.forEach(Lr=>{if(!U_e(Lr,([bt],[Ft])=>J(bt,Ft)))for(const[bt,Ft]of Lr)wr[Ft]=u(bt,Te)}),Te.flags=Di}return wr}}function J(dt,Te){return dt===Te||!!dt.symbol&&dt.symbol===Te.symbol||!!dt.aliasSymbol&&dt.aliasSymbol===Te.aliasSymbol}function $(dt,Te,er){const Qn=Yde(dt)||"x",Tr=u(dt.keyType,Te),wr=N.createParameterDeclaration(void 0,void 0,Qn,void 0,Tr,void 0);return er||(er=u(dt.type||we,Te)),!dt.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Qn.length+4,N.createIndexSignature(dt.isReadonly?[N.createToken(146)]:void 0,[wr],er)}function ge(dt,Te,er,Qn){var Tr,wr,Ra,Di,Lr;const bt=er.flags&256;bt&&(er.flags&=-257),er.approximateLength+=3;let Ft,en;er.flags&32&&dt.target&&dt.mapper&&dt.target.typeParameters?en=dt.target.typeParameters.map(vr=>u(Yi(vr,dt.mapper),er)):Ft=dt.typeParameters&&dt.typeParameters.map(vr=>_t(vr,er));const $t=ALe(dt,!0)[0];let kn;if(er.enclosingDeclaration&&dt.declaration&&dt.declaration!==er.enclosingDeclaration&&!fr(dt.declaration)&&kt($t)){const vr=Jr(er.enclosingDeclaration).fakeScopeForSignatureDeclaration?er.enclosingDeclaration:void 0;D.assertOptionalNode(vr,lo);const Sa=(Tr=vr==null?void 0:vr.locals)!=null?Tr:so();let cs;for(const Gs of $t)Sa.has(Gs.escapedName)||(cs=Fn(cs,Gs.escapedName),Sa.set(Gs.escapedName,Gs));if(cs){let Gs=function(){Ue(cs,Vs=>Sa.delete(Vs))};if(vr)kn=Gs;else{const Vs=Jm.createBlock(rt);Jr(Vs).fakeScopeForSignatureDeclaration=!0,Vs.locals=Sa;const bd=er.enclosingDeclaration;Uo(Vs,bd),er.enclosingDeclaration=Vs,kn=()=>{er.enclosingDeclaration=bd,Gs()}}}}const zn=(kt($t,vr=>vr!==$t[$t.length-1]&&!!(Il(vr)&32768))?dt.parameters:$t).map(vr=>Bt(vr,er,Te===173,Qn==null?void 0:Qn.privateSymbolVisitor,Qn==null?void 0:Qn.bundledImports)),sa=er.flags&33554432?void 0:Ne(dt,er);sa&&zn.unshift(sa);let vi;const yn=a_(dt);if(yn){const vr=yn.kind===2||yn.kind===3?N.createToken(129):void 0,Sa=yn.kind===1||yn.kind===3?or(N.createIdentifier(yn.parameterName),33554432):N.createThisTypeNode(),cs=yn.type&&u(yn.type,er);vi=N.createTypePredicateNode(vr,Sa,cs)}else{const vr=ys(dt);vr&&!(bt&&Ss(vr))?vi=Os(er,vr,dt,Qn==null?void 0:Qn.privateSymbolVisitor,Qn==null?void 0:Qn.bundledImports):bt||(vi=N.createKeywordTypeNode(131))}let ur=Qn==null?void 0:Qn.modifiers;if(Te===182&&dt.flags&4){const vr=Gm(ur);ur=N.createModifiersFromModifierFlags(vr|256)}const ei=Te===176?N.createCallSignature(Ft,zn,vi):Te===177?N.createConstructSignature(Ft,zn,vi):Te===170?N.createMethodSignature(ur,(wr=Qn==null?void 0:Qn.name)!=null?wr:N.createIdentifier(""),Qn==null?void 0:Qn.questionToken,Ft,zn,vi):Te===171?N.createMethodDeclaration(ur,void 0,(Ra=Qn==null?void 0:Qn.name)!=null?Ra:N.createIdentifier(""),void 0,Ft,zn,vi,void 0):Te===173?N.createConstructorDeclaration(ur,zn,void 0):Te===174?N.createGetAccessorDeclaration(ur,(Di=Qn==null?void 0:Qn.name)!=null?Di:N.createIdentifier(""),zn,vi,void 0):Te===175?N.createSetAccessorDeclaration(ur,(Lr=Qn==null?void 0:Qn.name)!=null?Lr:N.createIdentifier(""),zn,void 0):Te===178?N.createIndexSignature(ur,zn,vi):Te===320?N.createJSDocFunctionType(zn,vi):Te===181?N.createFunctionTypeNode(Ft,zn,vi??N.createTypeReferenceNode(N.createIdentifier(""))):Te===182?N.createConstructorTypeNode(ur,Ft,zn,vi??N.createTypeReferenceNode(N.createIdentifier(""))):Te===259?N.createFunctionDeclaration(ur,void 0,Qn!=null&&Qn.name?ao(Qn.name,He):N.createIdentifier(""),Ft,zn,vi,void 0):Te===215?N.createFunctionExpression(ur,void 0,Qn!=null&&Qn.name?ao(Qn.name,He):N.createIdentifier(""),Ft,zn,vi,N.createBlock([])):Te===216?N.createArrowFunction(ur,Ft,zn,vi,void 0,N.createBlock([])):D.assertNever(Te);return en&&(ei.typeArguments=N.createNodeArray(en)),kn==null||kn(),ei}function Ne(dt,Te){if(dt.thisParameter)return Bt(dt.thisParameter,Te);if(dt.declaration&&fr(dt.declaration)){const er=YM(dt.declaration);if(er&&er.typeExpression)return N.createParameterDeclaration(void 0,void 0,"this",void 0,u(fi(er.typeExpression),Te))}}function De(dt,Te,er){const Qn=Te.flags;Te.flags&=-513;const Tr=N.createModifiersFromModifierFlags(pae(dt)),wr=ri(dt,Te),Ra=RE(dt),Di=Ra&&u(Ra,Te);return Te.flags=Qn,N.createTypeParameterDeclaration(Tr,wr,er,Di)}function _t(dt,Te,er=Cu(dt)){const Qn=er&&u(er,Te);return De(dt,Te,Qn)}function Bt(dt,Te,er,Qn,Tr){let wr=Al(dt,166);!wr&&!Om(dt)&&(wr=Al(dt,344));let Ra=ar(dt);wr&&rNe(wr)&&(Ra=ey(Ra));const Di=na(Te,Ra,dt,Te.enclosingDeclaration,Qn,Tr),Lr=!(Te.flags&8192)&&er&&wr&&X_(wr)?Vt(iT(wr),N.cloneNode):void 0,Ft=wr&&yh(wr)||Il(dt)&32768?N.createToken(25):void 0,en=wr&&wr.name?wr.name.kind===79?or(N.cloneNode(wr.name),33554432):wr.name.kind===163?or(N.cloneNode(wr.name.right),33554432):sa(wr.name):Fl(dt),kn=wr&&AD(wr)||Il(dt)&16384?N.createToken(57):void 0,zn=N.createParameterDeclaration(Lr,Ft,en,kn,Di,void 0);return Te.approximateLength+=Fl(dt).length+3,zn;function sa(vi){return yn(vi);function yn(ur){Te.tracker.canTrackSymbol&&As(ur)&&rie(ur)&&Mn(ur.expression,Te.enclosingDeclaration,Te);let ei=Bn(ur,yn,Tg,void 0,yn);return ps(ei)&&(ei=N.updateBindingElement(ei,ei.dotDotDotToken,ei.propertyName,ei.name,void 0)),Zs(ei)||(ei=N.cloneNode(ei)),or(ei,33554433)}}}function Mn(dt,Te,er){if(!er.tracker.canTrackSymbol)return;const Qn=Lf(dt),Tr=_l(Qn,Qn.escapedText,1160127,void 0,void 0,!0);Tr&&er.tracker.trackSymbol(Tr,Te,111551)}function An(dt,Te,er,Qn){return Te.tracker.trackSymbol(dt,Te.enclosingDeclaration,er),Kn(dt,Te,er,Qn)}function Kn(dt,Te,er,Qn){let Tr;return!(dt.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.flags&134217728)?(Tr=D.checkDefined(Ra(dt,er,!0)),D.assert(Tr&&Tr.length>0)):Tr=[dt],Tr;function Ra(Di,Lr,bt){let Ft=h0(Di,Te.enclosingDeclaration,Lr,!!(Te.flags&128)),en;if(!Ft||SS(Ft[0],Te.enclosingDeclaration,Ft.length===1?Lr:Hg(Lr))){const kn=gE(Ft?Ft[0]:Di,Te.enclosingDeclaration,Lr);if(Ae(kn)){en=kn.map(vi=>kt(vi.declarations,Wg)?ln(vi,Te):void 0);const zn=kn.map((vi,yn)=>yn);zn.sort($t);const sa=zn.map(vi=>kn[vi]);for(const vi of sa){const yn=Ra(vi,Hg(Lr),!1);if(yn){if(vi.exports&&vi.exports.get("export=")&&fm(vi.exports.get("export="),Di)){Ft=yn;break}Ft=yn.concat(Ft||[qy(vi,Di)||Di]);break}}}}if(Ft)return Ft;if(bt||!(Di.flags&6144))return!bt&&!Qn&&Ue(Di.declarations,Wg)?void 0:[Di];function $t(kn,zn){const sa=en[kn],vi=en[zn];if(sa&&vi){const yn=Sf(vi);return Sf(sa)===yn?F8(sa)-F8(vi):yn?-1:1}return 0}}}function gn(dt,Te){let er;return _A(dt).flags&524384&&(er=N.createNodeArray(Vt(tv(dt),Tr=>_t(Tr,Te)))),er}function xn(dt,Te,er){var Qn;D.assert(dt&&0<=Te&&Te<dt.length);const Tr=dt[Te],wr=bo(Tr);if((Qn=er.typeParameterSymbolList)!=null&&Qn.has(wr))return;(er.typeParameterSymbolList||(er.typeParameterSymbolList=new Set)).add(wr);let Ra;if(er.flags&512&&Te<dt.length-1){const Di=Tr,Lr=dt[Te+1];if(Il(Lr)&1){const bt=xS(Di.flags&2097152?nc(Di):Di);Ra=M(Vt(bt,Ft=>k0(Ft,Lr.links.mapper)),er)}else Ra=gn(Tr,er)}return Ra}function yr(dt){return Ux(dt.objectType)?yr(dt.objectType):dt}function ln(dt,Te,er){var Qn;let Tr=Al(dt,308);if(!Tr){const Ft=Kt(dt.declarations,en=>B2(en,dt));Ft&&(Tr=Al(Ft,308))}if(Tr&&Tr.moduleName!==void 0)return Tr.moduleName;if(!Tr){if(Te.tracker.trackReferencedAmbientModule){const Ft=lr(dt.declarations,Mu);if(Ae(Ft))for(const en of Ft)Te.tracker.trackReferencedAmbientModule(en,dt)}if(oF.test(dt.escapedName))return dt.escapedName.substring(1,dt.escapedName.length-1)}if(!Te.enclosingDeclaration||!Te.tracker.moduleResolverHost)return oF.test(dt.escapedName)?dt.escapedName.substring(1,dt.escapedName.length-1):Zn(Nz(dt)).fileName;const wr=Zn(Sl(Te.enclosingDeclaration)),Ra=er||(wr==null?void 0:wr.impliedNodeFormat),Di=cw(wr.path,Ra),Lr=Wi(dt);let bt=Lr.specifierCache&&Lr.specifierCache.get(Di);if(!bt){const Ft=!!qs(Y),{moduleResolverHost:en}=Te.tracker,$t=Ft?{...Y,baseUrl:en.getCommonSourceDirectory()}:Y;bt=us(yge(dt,at,$t,wr,en,{importModuleSpecifierPreference:Ft?"non-relative":"project-relative",importModuleSpecifierEnding:Ft?"minimal":Ra===99?"js":void 0},{overrideImportMode:er})),(Qn=Lr.specifierCache)!=null||(Lr.specifierCache=new Map),Lr.specifierCache.set(Di,bt)}return bt}function Gn(dt){const Te=N.createIdentifier(ta(dt.escapedName));return dt.parent?N.createQualifiedName(Gn(dt.parent),Te):Te}function qn(dt,Te,er,Qn){var Tr,wr,Ra,Di;const Lr=An(dt,Te,er,!(Te.flags&16384)),bt=er===111551;if(kt(Lr[0].declarations,Wg)){const $t=Lr.length>1?en(Lr,Lr.length-1,1):void 0,kn=Qn||xn(Lr,0,Te),zn=Zn(Sl(Te.enclosingDeclaration)),sa=d3(Lr[0]);let vi,yn;if((vl(Y)===3||vl(Y)===99)&&(sa==null?void 0:sa.impliedNodeFormat)===99&&sa.impliedNodeFormat!==(zn==null?void 0:zn.impliedNodeFormat)&&(vi=ln(Lr[0],Te,99),yn=N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([N.createAssertEntry(N.createStringLiteral("resolution-mode"),N.createStringLiteral("import"))]))),(wr=(Tr=Te.tracker).reportImportTypeNodeResolutionModeOverride)==null||wr.call(Tr)),vi||(vi=ln(Lr[0],Te)),!(Te.flags&67108864)&&vl(Y)!==1&&vi.indexOf("/node_modules/")>=0){const ei=vi;if(vl(Y)===3||vl(Y)===99){const vr=(zn==null?void 0:zn.impliedNodeFormat)===99?1:99;vi=ln(Lr[0],Te,vr),vi.indexOf("/node_modules/")>=0?vi=ei:(yn=N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([N.createAssertEntry(N.createStringLiteral("resolution-mode"),N.createStringLiteral(vr===99?"import":"require"))]))),(Di=(Ra=Te.tracker).reportImportTypeNodeResolutionModeOverride)==null||Di.call(Ra))}yn||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(ei))}const ur=N.createLiteralTypeNode(N.createStringLiteral(vi));if(Te.tracker.trackExternalModuleSymbolOfImportTypeNode&&Te.tracker.trackExternalModuleSymbolOfImportTypeNode(Lr[0]),Te.approximateLength+=vi.length+10,!$t||nf($t)){if($t){const ei=He($t)?$t:$t.right;Sy(ei,void 0)}return N.createImportTypeNode(ur,yn,$t,kn,bt)}else{const ei=yr($t),vr=ei.objectType.typeName;return N.createIndexedAccessTypeNode(N.createImportTypeNode(ur,yn,vr,kn,bt),ei.indexType)}}const Ft=en(Lr,Lr.length-1,0);if(Ux(Ft))return Ft;if(bt)return N.createTypeQueryNode(Ft);{const $t=He(Ft)?Ft:Ft.right,kn=IT($t);return Sy($t,void 0),N.createTypeReferenceNode(Ft,kn)}function en($t,kn,zn){const sa=kn===$t.length-1?Qn:xn($t,kn,Te),vi=$t[kn],yn=$t[kn-1];let ur;if(kn===0)Te.flags|=16777216,ur=Yy(vi,Te),Te.approximateLength+=(ur?ur.length:0)+1,Te.flags^=16777216;else if(yn&&mf(yn)){const vr=mf(yn);af(vr,(Sa,cs)=>{if(fm(Sa,vi)&&!ED(cs)&&cs!=="export=")return ur=ta(cs),!0})}if(ur===void 0){const vr=Kt(vi.declarations,ka);if(vr&&As(vr)&&nf(vr.expression)){const Sa=en($t,kn-1,zn);return nf(Sa)?N.createIndexedAccessTypeNode(N.createParenthesizedType(N.createTypeQueryNode(Sa)),N.createTypeQueryNode(vr.expression)):Sa}ur=Yy(vi,Te)}if(Te.approximateLength+=ur.length+1,!(Te.flags&16)&&yn&&nv(yn)&&nv(yn).get(vi.escapedName)&&fm(nv(yn).get(vi.escapedName),vi)){const vr=en($t,kn-1,zn);return Ux(vr)?N.createIndexedAccessTypeNode(vr,N.createLiteralTypeNode(N.createStringLiteral(ur))):N.createIndexedAccessTypeNode(N.createTypeReferenceNode(vr,sa),N.createLiteralTypeNode(N.createStringLiteral(ur)))}const ei=or(N.createIdentifier(ur),33554432);if(sa&&Sy(ei,N.createNodeArray(sa)),ei.symbol=vi,kn>zn){const vr=en($t,kn-1,zn);return nf(vr)?N.createQualifiedName(vr,ei):D.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ei}}function Zr(dt,Te,er){const Qn=_l(Te.enclosingDeclaration,dt,788968,void 0,dt,!1);return Qn?!(Qn.flags&262144&&Qn===er.symbol):!1}function ri(dt,Te){var er,Qn;if(Te.flags&4&&Te.typeParameterNames){const wr=Te.typeParameterNames.get(ku(dt));if(wr)return wr}let Tr=_a(dt.symbol,Te,788968,!0);if(!(Tr.kind&79))return N.createIdentifier("(Missing type parameter)");if(Te.flags&4){const wr=Tr.escapedText;let Ra=((er=Te.typeParameterNamesByTextNextNameCount)==null?void 0:er.get(wr))||0,Di=wr;for(;(Qn=Te.typeParameterNamesByText)!=null&&Qn.has(Di)||Zr(Di,Te,dt);)Ra++,Di=`${wr}_${Ra}`;if(Di!==wr){const Lr=IT(Tr);Tr=N.createIdentifier(Di),Sy(Tr,Lr)}(Te.typeParameterNamesByTextNextNameCount||(Te.typeParameterNamesByTextNextNameCount=new Map)).set(wr,Ra),(Te.typeParameterNames||(Te.typeParameterNames=new Map)).set(ku(dt),Tr),(Te.typeParameterNamesByText||(Te.typeParameterNamesByText=new Set)).add(wr)}return Tr}function _a(dt,Te,er,Qn){const Tr=An(dt,Te,er);return Qn&&Tr.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),wr(Tr,Tr.length-1);function wr(Ra,Di){const Lr=xn(Ra,Di,Te),bt=Ra[Di];Di===0&&(Te.flags|=16777216);const Ft=Yy(bt,Te);Di===0&&(Te.flags^=16777216);const en=or(N.createIdentifier(Ft),33554432);return Lr&&Sy(en,N.createNodeArray(Lr)),en.symbol=bt,Di>0?N.createQualifiedName(wr(Ra,Di-1),en):en}}function Qa(dt,Te,er){const Qn=An(dt,Te,er);return Tr(Qn,Qn.length-1);function Tr(wr,Ra){const Di=xn(wr,Ra,Te),Lr=wr[Ra];Ra===0&&(Te.flags|=16777216);let bt=Yy(Lr,Te);Ra===0&&(Te.flags^=16777216);let Ft=bt.charCodeAt(0);if(DN(Ft)&&kt(Lr.declarations,Wg))return N.createStringLiteral(ln(Lr,Te));if(Ra===0||dJ(bt,P)){const en=or(N.createIdentifier(bt),33554432);return Di&&Sy(en,N.createNodeArray(Di)),en.symbol=Lr,Ra>0?N.createPropertyAccessExpression(Tr(wr,Ra-1),en):en}else{Ft===91&&(bt=bt.substring(1,bt.length-1),Ft=bt.charCodeAt(0));let en;if(DN(Ft)&&!(Lr.flags&8)?en=N.createStringLiteral(j_(bt).replace(/\\./g,$t=>$t.substring(1)),Ft===39):""+ +bt===bt&&(en=N.createNumericLiteral(+bt)),!en){const $t=or(N.createIdentifier(bt),33554432);Di&&Sy($t,N.createNodeArray(Di)),$t.symbol=Lr,en=$t}return N.createElementAccessExpression(Tr(wr,Ra-1),en)}}}function Ec(dt){const Te=ka(dt);return!!Te&&Vo(Te)}function Wf(dt){const Te=ka(dt);return!!(Te&&Vo(Te)&&(Te.singleQuote||!Zs(Te)&&xa(xc(Te,!1),"'")))}function bf(dt,Te){const er=!!Ae(dt.declarations)&&Yn(dt.declarations,Ec),Qn=!!Ae(dt.declarations)&&Yn(dt.declarations,Wf),Tr=oa(dt,Te,Qn,er);if(Tr)return Tr;const wr=ta(dt.escapedName);return g7(wr,es(Y),Qn,er)}function oa(dt,Te,er,Qn){const Tr=Wi(dt).nameType;if(Tr){if(Tr.flags&384){const wr=""+Tr.value;return!M_(wr,es(Y))&&(Qn||!Ah(wr))?N.createStringLiteral(wr,!!er):Ah(wr)&&xa(wr,"-")?N.createComputedPropertyName(N.createNumericLiteral(+wr)):g7(wr,es(Y))}if(Tr.flags&8192)return N.createComputedPropertyName(Qa(Tr.symbol,Te,111551))}}function Un(dt){const Te={...dt};return Te.typeParameterNames&&(Te.typeParameterNames=new Map(Te.typeParameterNames)),Te.typeParameterNamesByText&&(Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterSymbolList&&(Te.typeParameterSymbolList=new Set(Te.typeParameterSymbolList)),Te.tracker=new U8(Te,Te.tracker.inner,Te.tracker.moduleResolverHost),Te}function sr(dt,Te){return dt.declarations&&nn(dt.declarations,er=>!!Zc(er)&&(!Te||!!nr(er,Qn=>Qn===Te)))}function Zi(dt,Te){return!(ti(Te)&4)||!J_(dt)||Ae(dt.typeArguments)>=gm(Te.target.typeParameters)}function Ga(dt){return Jr(dt).fakeScopeForSignatureDeclaration?dt.parent:dt}function na(dt,Te,er,Qn,Tr,wr){if(!ns(Te)&&Qn){const Lr=sr(er,Ga(Qn));if(Lr&&!Qs(Lr)&&!q_(Lr)){const bt=Zc(Lr);if(Qo(bt,Lr,Te)&&Zi(bt,Te)){const Ft=Ao(dt,bt,Tr,wr);if(Ft)return Ft}}}const Ra=dt.flags;Te.flags&8192&&Te.symbol===er&&(!dt.enclosingDeclaration||kt(er.declarations,Lr=>Zn(Lr)===Zn(dt.enclosingDeclaration)))&&(dt.flags|=1048576);const Di=u(Te,dt);return dt.flags=Ra,Di}function Qo(dt,Te,er){const Qn=fi(dt);return Qn===er?!0:Ba(Te)&&Te.questionToken?l_(er,524288)===Qn:!1}function Os(dt,Te,er,Qn,Tr){if(!ns(Te)&&dt.enclosingDeclaration){const wr=er.declaration&&vp(er.declaration),Ra=Ga(dt.enclosingDeclaration);if(nr(wr,Di=>Di===Ra)&&wr){const Di=fi(wr);if((Di.flags&262144&&Di.isThisType?Yi(Di,er.mapper):Di)===Te&&Zi(wr,Te)){const bt=Ao(dt,wr,Qn,Tr);if(bt)return bt}}}return u(Te,dt)}function gl(dt,Te,er){let Qn=!1;const Tr=Lf(dt);if(fr(dt)&&(hT(Tr)||bh(Tr.parent)||Cd(Tr.parent)&&eq(Tr.parent.left)&&hT(Tr.parent.right)))return Qn=!0,{introducesError:Qn,node:dt};const wr=Nl(Tr,67108863,!0,!0);if(wr&&(Ky(wr,Te.enclosingDeclaration,67108863,!1).accessibility!==0?Qn=!0:(Te.tracker.trackSymbol(wr,Te.enclosingDeclaration,67108863),er==null||er(wr)),He(dt))){const Ra=Us(wr),Di=wr.flags&262144&&!TE(Ra.symbol,Te.enclosingDeclaration)?ri(Ra,Te):N.cloneNode(dt);return Di.symbol=wr,{introducesError:Qn,node:or(Wr(Di,dt),33554432)}}return{introducesError:Qn,node:dt}}function Ao(dt,Te,er,Qn){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();let Tr=!1;const wr=Zn(Te),Ra=lt(Te,Di,Gi);if(Tr)return;return Ra===Te?ht(N.cloneNode(Te),Te):Ra;function Di(Lr){if(Ype(Lr)||Lr.kind===322)return N.createKeywordTypeNode(131);if($pe(Lr))return N.createKeywordTypeNode(157);if(OC(Lr))return N.createUnionTypeNode([lt(Lr.type,Di,Gi),N.createLiteralTypeNode(N.createNull())]);if(lK(Lr))return N.createUnionTypeNode([lt(Lr.type,Di,Gi),N.createKeywordTypeNode(155)]);if(d5(Lr))return lt(Lr.type,Di);if(f5(Lr))return N.createArrayTypeNode(lt(Lr.type,Di,Gi));if(tw(Lr))return N.createTypeLiteralNode(Vt(Lr.jsDocPropertyTags,$t=>{const kn=He($t.name)?$t.name:$t.name.right,zn=fc(fi(Lr),kn.escapedText),sa=zn&&$t.typeExpression&&fi($t.typeExpression.type)!==zn?u(zn,dt):void 0;return N.createPropertySignature(void 0,kn,$t.isBracketed||$t.typeExpression&&lK($t.typeExpression.type)?N.createToken(57):void 0,sa||$t.typeExpression&<($t.typeExpression.type,Di,Gi)||N.createKeywordTypeNode(131))}));if(J_(Lr)&&He(Lr.typeName)&&Lr.typeName.escapedText==="")return Wr(N.createKeywordTypeNode(131),Lr);if((xy(Lr)||J_(Lr))&&M3(Lr))return N.createTypeLiteralNode([N.createIndexSignature(void 0,[N.createParameterDeclaration(void 0,void 0,"x",void 0,lt(Lr.typeArguments[0],Di,Gi))],lt(Lr.typeArguments[1],Di,Gi))]);if(PC(Lr))if(eC(Lr)){let $t;return N.createConstructorTypeNode(void 0,Jn(Lr.typeParameters,Di,Bl),ia(Lr.parameters,(kn,zn)=>kn.name&&He(kn.name)&&kn.name.escapedText==="new"?($t=kn.type,void 0):N.createParameterDeclaration(void 0,bt(kn),Ft(kn,zn),kn.questionToken,lt(kn.type,Di,Gi),void 0)),lt($t||Lr.type,Di,Gi)||N.createKeywordTypeNode(131))}else return N.createFunctionTypeNode(Jn(Lr.typeParameters,Di,Bl),Vt(Lr.parameters,($t,kn)=>N.createParameterDeclaration(void 0,bt($t),Ft($t,kn),$t.questionToken,lt($t.type,Di,Gi),void 0)),lt(Lr.type,Di,Gi)||N.createKeywordTypeNode(131));if(J_(Lr)&&wN(Lr)&&(!Zi(Lr,fi(Lr))||ZLe(Lr)||an===eA(Lr,788968,!0)))return Wr(u(fi(Lr),dt),Lr);if(K0(Lr)){const $t=Jr(Lr).resolvedSymbol;return wN(Lr)&&$t&&(!Lr.isTypeOf&&!($t.flags&788968)||!(Ae(Lr.typeArguments)>=gm(tv($t))))?Wr(u(fi(Lr),dt),Lr):N.updateImportTypeNode(Lr,N.updateLiteralTypeNode(Lr.argument,en(Lr,Lr.argument.literal)),Lr.assertions,Lr.qualifier,Jn(Lr.typeArguments,Di,Gi),Lr.isTypeOf)}if(nf(Lr)||zl(Lr)){const{introducesError:$t,node:kn}=gl(Lr,dt,er);if(Tr=Tr||$t,kn!==Lr)return kn}return wr&&CC(Lr)&&ol(wr,Lr.pos).line===ol(wr,Lr.end).line&&or(Lr,1),Bn(Lr,Di,Tg);function bt($t){return $t.dotDotDotToken||($t.type&&f5($t.type)?N.createToken(25):void 0)}function Ft($t,kn){return $t.name&&He($t.name)&&$t.name.escapedText==="this"?"this":bt($t)?"args":`arg${kn}`}function en($t,kn){if(Qn){if(dt.tracker&&dt.tracker.moduleResolverHost){const zn=hse($t);if(zn){const vi={getCanonicalFileName:ru(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>dt.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>dt.tracker.moduleResolverHost.getCommonSourceDirectory()},yn=X3(vi,zn);return N.createStringLiteral(yn)}}}else if(dt.tracker&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode){const zn=Uh(kn,kn,void 0);zn&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode(zn)}return kn}}}function Xu(dt,Te,er){const Qn=mp(N.createPropertyDeclaration,171,!0),Tr=mp((wt,xr,Ei,si)=>N.createPropertySignature(wt,xr,Ei,si),170,!1),wr=Te.enclosingDeclaration;let Ra=[];const Di=new Set,Lr=[],bt=Te;Te={...bt,usedSymbolNames:new Set(bt.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const Ft={...bt.tracker.inner,trackSymbol:(wt,xr,Ei)=>{var si;if(Ky(wt,xr,Ei,!1).accessibility===0){const os=Kn(wt,Te,Ei);wt.flags&4||Vs(os[0])}else if((si=bt.tracker.inner)!=null&&si.trackSymbol)return bt.tracker.inner.trackSymbol(wt,xr,Ei);return!1}};Te.tracker=new U8(Te,Ft,bt.tracker.moduleResolverHost),af(dt,(wt,xr)=>{const Ei=ta(xr);Fd(wt,Ei)});let en=!er;const $t=dt.get("export=");return $t&&dt.size>1&&$t.flags&2097152&&(dt=so(),dt.set("export=",$t)),Sa(dt),ur(Ra);function kn(wt){return!!wt&&wt.kind===79}function zn(wt){return uc(wt)?lr(Vt(wt.declarationList.declarations,ka),kn):lr([ka(wt)],kn)}function sa(wt){const xr=nn(wt,Gl),Ei=mi(wt,Jl);let si=Ei!==-1?wt[Ei]:void 0;if(si&&xr&&xr.isExportEquals&&He(xr.expression)&&He(si.name)&&Mr(si.name)===Mr(xr.expression)&&si.body&&rm(si.body)){const ci=lr(wt,ra=>!!(Fu(ra)&1)),os=si.name;let Ua=si.body;if(Ae(ci)&&(si=N.updateModuleDeclaration(si,si.modifiers,si.name,Ua=N.updateModuleBlock(Ua,N.createNodeArray([...si.body.statements,N.createExportDeclaration(void 0,!1,N.createNamedExports(Vt(ma(ci,ra=>zn(ra)),ra=>N.createExportSpecifier(!1,void 0,ra))),void 0)]))),wt=[...wt.slice(0,Ei),si,...wt.slice(Ei+1)]),!nn(wt,ra=>ra!==si&&oN(ra,os))){Ra=[];const ra=!kt(Ua.statements,Wo=>Yr(Wo,1)||Gl(Wo)||eu(Wo));Ue(Ua.statements,Wo=>{nt(Wo,ra?1:0)}),wt=[...lr(wt,Wo=>Wo!==si&&Wo!==xr),...Ra]}}return wt}function vi(wt){const xr=lr(wt,si=>eu(si)&&!si.moduleSpecifier&&!!si.exportClause&&K_(si.exportClause));Ae(xr)>1&&(wt=[...lr(wt,ci=>!eu(ci)||!!ci.moduleSpecifier||!ci.exportClause),N.createExportDeclaration(void 0,!1,N.createNamedExports(ma(xr,ci=>ao(ci.exportClause,K_).elements)),void 0)]);const Ei=lr(wt,si=>eu(si)&&!!si.moduleSpecifier&&!!si.exportClause&&K_(si.exportClause));if(Ae(Ei)>1){const si=SI(Ei,ci=>Vo(ci.moduleSpecifier)?">"+ci.moduleSpecifier.text:">");if(si.length!==Ei.length)for(const ci of si)ci.length>1&&(wt=[...lr(wt,os=>ci.indexOf(os)===-1),N.createExportDeclaration(void 0,!1,N.createNamedExports(ma(ci,os=>ao(os.exportClause,K_).elements)),ci[0].moduleSpecifier)])}return wt}function yn(wt){const xr=mi(wt,Ei=>eu(Ei)&&!Ei.moduleSpecifier&&!Ei.assertClause&&!!Ei.exportClause&&K_(Ei.exportClause));if(xr>=0){const Ei=wt[xr],si=ia(Ei.exportClause.elements,ci=>{if(!ci.propertyName){const os=xR(wt),Ua=lr(os,ra=>oN(wt[ra],ci.name));if(Ae(Ua)&&Yn(Ua,ra=>CO(wt[ra]))){for(const ra of Ua)wt[ra]=ei(wt[ra]);return}}return ci});Ae(si)?wt[xr]=N.updateExportDeclaration(Ei,Ei.modifiers,Ei.isTypeOnly,N.updateNamedExports(Ei.exportClause,si),Ei.moduleSpecifier,Ei.assertClause):l1(wt,xr)}return wt}function ur(wt){return wt=sa(wt),wt=vi(wt),wt=yn(wt),wr&&(qi(wr)&&of(wr)||Jl(wr))&&(!kt(wt,pN)||!Ede(wt)&&kt(wt,a3))&&wt.push(n8(N)),wt}function ei(wt){const xr=(Fu(wt)|1)&-3;return N.updateModifiers(wt,xr)}function vr(wt){const xr=Fu(wt)&-2;return N.updateModifiers(wt,xr)}function Sa(wt,xr,Ei){xr||Lr.push(new Map),wt.forEach(si=>{cs(si,!1,!!Ei)}),xr||(Lr[Lr.length-1].forEach(si=>{cs(si,!0,!!Ei)}),Lr.pop())}function cs(wt,xr,Ei){const si=as(wt);if(Di.has(bo(si)))return;if(Di.add(bo(si)),!xr||Ae(wt.declarations)&&kt(wt.declarations,os=>!!nr(os,Ua=>Ua===wr))){const os=Te;Te=Un(Te),Gs(wt,xr,Ei),Te.reportedDiagnostic&&(bt.reportedDiagnostic=Te.reportedDiagnostic),Te=os}}function Gs(wt,xr,Ei){var si,ci,os,Ua;const ra=ta(wt.escapedName),Wo=wt.escapedName==="default";if(xr&&!(Te.flags&131072)&&vx(ra)&&!Wo){Te.encounteredError=!0;return}let vs=Wo&&!!(wt.flags&-113||wt.flags&16&&Ae(hs(ar(wt))))&&!(wt.flags&2097152),rc=!vs&&!xr&&vx(ra)&&!Wo;(vs||rc)&&(xr=!0);const kc=(xr?0:1)|(Wo&&!vs?1024:0),Ef=wt.flags&1536&&wt.flags&7&&wt.escapedName!=="export=",_u=Ef&&fu(ar(wt),wt);if((wt.flags&8208||_u)&&Vr(ar(wt),wt,Fd(wt,ra),kc),wt.flags&524288&&St(wt,ra,kc),wt.flags&7&&wt.escapedName!=="export="&&!(wt.flags&4194304)&&!(wt.flags&32)&&!(wt.flags&8192)&&!_u)if(Ei)ks(wt)&&(rc=!1,vs=!1);else{const Hs=ar(wt),Ol=Fd(wt,ra);if(!(wt.flags&16)&&fu(Hs,wt))Vr(Hs,wt,Ol,kc);else{const ay=wt.flags&2?HL(wt)?2:1:(si=wt.parent)!=null&&si.valueDeclaration&&qi((ci=wt.parent)==null?void 0:ci.valueDeclaration)?2:void 0,fh=vs||!(wt.flags&4)?Ol:hA(Ol,wt);let _h=wt.declarations&&nn(wt.declarations,mv=>Ki(mv));_h&&Vu(_h.parent)&&_h.parent.declarations.length===1&&(_h=_h.parent.parent);const PS=(os=wt.declarations)==null?void 0:os.find(Fr);if(PS&&br(PS.parent)&&He(PS.parent.right)&&((Ua=Hs.symbol)!=null&&Ua.valueDeclaration)&&qi(Hs.symbol.valueDeclaration)){const mv=Ol===PS.parent.right.escapedText?void 0:PS.parent.right;nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,mv,Ol)])),0),Te.tracker.trackSymbol(Hs.symbol,Te.enclosingDeclaration,111551)}else{const mv=ht(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(fh,void 0,na(Te,Hs,wt,wr,Vs,er))],ay)),_h);nt(mv,fh!==Ol?kc&-2:kc),fh!==Ol&&!xr&&(nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,fh,Ol)])),0),rc=!1,vs=!1)}}}if(wt.flags&384&&Sr(wt,ra,kc),wt.flags&32&&(wt.flags&4&&wt.valueDeclaration&&br(wt.valueDeclaration.parent)&&Uu(wt.valueDeclaration.parent.right)?Fo(wt,Fd(wt,ra),kc):pi(wt,Fd(wt,ra),kc)),(wt.flags&1536&&(!Ef||mr(wt))||_u)&&Ln(wt,ra,kc),wt.flags&64&&!(wt.flags&32)&&tn(wt,ra,kc),wt.flags&2097152&&Fo(wt,Fd(wt,ra),kc),wt.flags&4&&wt.escapedName==="export="&&ks(wt),wt.flags&8388608&&wt.declarations)for(const Hs of wt.declarations){const Ol=du(Hs,Hs.moduleSpecifier);Ol&&nt(N.createExportDeclaration(void 0,Hs.isTypeOnly,void 0,N.createStringLiteral(ln(Ol,Te))),0)}vs?nt(N.createExportAssignment(void 0,!1,N.createIdentifier(Fd(wt,ra))),0):rc&&nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,Fd(wt,ra),ra)])),0)}function Vs(wt){if(kt(wt.declarations,bT))return;D.assertIsDefined(Lr[Lr.length-1]),hA(ta(wt.escapedName),wt);const xr=!!(wt.flags&2097152)&&!kt(wt.declarations,Ei=>!!nr(Ei,eu)||kh(Ei)||su(Ei)&&!zm(Ei.moduleReference));Lr[xr?0:Lr.length-1].set(bo(wt),wt)}function bd(wt){return qi(wt)&&(of(wt)||m_(wt))||Mu(wt)&&!Yp(wt)}function nt(wt,xr){if(X_(wt)){let Ei=0;const si=Te.enclosingDeclaration&&(h_(Te.enclosingDeclaration)?Zn(Te.enclosingDeclaration):Te.enclosingDeclaration);xr&1&&si&&(bd(si)||Jl(si))&&CO(wt)&&(Ei|=1),en&&!(Ei&1)&&(!si||!(si.flags&16777216))&&(ob(wt)||uc(wt)||yc(wt)||Nc(wt)||Jl(wt))&&(Ei|=2),xr&1024&&(Nc(wt)||id(wt)||yc(wt))&&(Ei|=1024),Ei&&(wt=N.updateModifiers(wt,Ei|Fu(wt)))}Ra.push(wt)}function St(wt,xr,Ei){var si;const ci=Fb(wt),os=Wi(wt).typeParameters,Ua=Vt(os,Ef=>_t(Ef,Te)),ra=(si=wt.declarations)==null?void 0:si.find(h_),Wo=lN(ra?ra.comment||ra.parent.comment:void 0),vs=Te.flags;Te.flags|=8388608;const rc=Te.enclosingDeclaration;Te.enclosingDeclaration=ra;const kc=ra&&ra.typeExpression&&OT(ra.typeExpression)&&Ao(Te,ra.typeExpression.type,Vs,er)||u(ci,Te);nt(O1(N.createTypeAliasDeclaration(void 0,Fd(wt,xr),Ua,kc),Wo?[{kind:3,text:`* * `+Wo.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ei),Te.flags=vs,Te.enclosingDeclaration=rc}function tn(wt,xr,Ei){const si=qu(wt),ci=tv(wt),os=Vt(ci,_u=>_t(_u,Te)),Ua=Po(si),ra=Ae(Ua)?wo(Ua):void 0,Wo=ma(hs(si),_u=>dh(_u,ra)),vs=P0(0,si,ra,176),rc=P0(1,si,ra,177),kc=OS(si,ra),Ef=Ae(Ua)?[N.createHeritageClause(94,ia(Ua,_u=>xm(_u,111551)))]:void 0;nt(N.createInterfaceDeclaration(void 0,Fd(wt,xr),os,Ef,[...kc,...rc,...vs,...Wo]),Ei)}function Wn(wt){return wt.exports?lr(Ro(wt.exports.values()),qa):[]}function mr(wt){return Yn(Wn(wt),xr=>!(uu(Yl(xr))&111551))}function Ln(wt,xr,Ei){const si=Wn(wt),ci=kR(si,ra=>ra.parent&&ra.parent===wt?"real":"merged"),os=ci.get("real")||rt,Ua=ci.get("merged")||rt;if(Ae(os)){const ra=Fd(wt,xr);Ca(os,ra,Ei,!!(wt.flags&67108880))}if(Ae(Ua)){const ra=Zn(Te.enclosingDeclaration),Wo=Fd(wt,xr),vs=N.createModuleBlock([N.createExportDeclaration(void 0,!1,N.createNamedExports(ia(lr(Ua,rc=>rc.escapedName!=="export="),rc=>{var kc,Ef;const _u=ta(rc.escapedName),Hs=Fd(rc,_u),Ol=rc.declarations&&md(rc);if(ra&&(Ol?ra!==Zn(Ol):!kt(rc.declarations,_h=>Zn(_h)===ra))){(Ef=(kc=Te.tracker)==null?void 0:kc.reportNonlocalAugmentation)==null||Ef.call(kc,ra,wt,rc);return}const ay=Ol&&op(Ol,!0);Vs(ay||rc);const fh=ay?Fd(ay,ta(ay.escapedName)):Hs;return N.createExportSpecifier(!1,_u===fh?void 0:fh,_u)})))]);nt(N.createModuleDeclaration(void 0,N.createIdentifier(Wo),vs,16),0)}}function Sr(wt,xr,Ei){nt(N.createEnumDeclaration(N.createModifiersFromModifierFlags(Goe(wt)?2048:0),Fd(wt,xr),Vt(lr(hs(ar(wt)),si=>!!(si.flags&8)),si=>{const ci=si.declarations&&si.declarations[0]&&B1(si.declarations[0])?_se(si.declarations[0]):void 0;return N.createEnumMember(ta(si.escapedName),ci===void 0?void 0:typeof ci=="string"?N.createStringLiteral(ci):N.createNumericLiteral(ci))})),Ei)}function Vr(wt,xr,Ei,si){const ci=za(wt,0);for(const os of ci){const Ua=ge(os,259,Te,{name:N.createIdentifier(Ei),privateSymbolVisitor:Vs,bundledImports:er});nt(ht(Ua,Ui(os)),si)}if(!(xr.flags&1536&&xr.exports&&xr.exports.size)){const os=lr(hs(wt),qa);Ca(os,Ei,si,!0)}}function Ui(wt){if(wt.declaration&&wt.declaration.parent){if(br(wt.declaration.parent)&&Ll(wt.declaration.parent)===5)return wt.declaration.parent;if(Ki(wt.declaration.parent)&&wt.declaration.parent.parent)return wt.declaration.parent.parent}return wt.declaration}function Ca(wt,xr,Ei,si){if(Ae(wt)){const os=kR(wt,Hs=>!Ae(Hs.declarations)||kt(Hs.declarations,Ol=>Zn(Ol)===Zn(Te.enclosingDeclaration))?"local":"remote").get("local")||rt;let Ua=Jm.createModuleDeclaration(void 0,N.createIdentifier(xr),N.createModuleBlock([]),16);Uo(Ua,wr),Ua.locals=so(wt),Ua.symbol=wt[0].parent;const ra=Ra;Ra=[];const Wo=en;en=!1;const vs={...Te,enclosingDeclaration:Ua},rc=Te;Te=vs,Sa(so(os),si,!0),Te=rc,en=Wo;const kc=Ra;Ra=ra;const Ef=Vt(kc,Hs=>Gl(Hs)&&!Hs.isExportEquals&&He(Hs.expression)?N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,Hs.expression,N.createIdentifier("default"))])):Hs),_u=Yn(Ef,Hs=>Yr(Hs,1))?Vt(Ef,vr):Ef;Ua=N.updateModuleDeclaration(Ua,Ua.modifiers,Ua.name,N.createModuleBlock(_u)),nt(Ua,Ei)}}function qa(wt){return!!(wt.flags&2887656)||!(wt.flags&4194304||wt.escapedName==="prototype"||wt.valueDeclaration&&Ja(wt.valueDeclaration)&&di(wt.valueDeclaration.parent))}function Za(wt){const xr=ia(wt,Ei=>{const si=Te.enclosingDeclaration;Te.enclosingDeclaration=Ei;let ci=Ei.expression;if(zl(ci)){if(He(ci)&&Mr(ci)==="")return os(void 0);let Ua;if({introducesError:Ua,node:ci}=gl(ci,Te,Vs),Ua)return os(void 0)}return os(N.createExpressionWithTypeArguments(ci,Vt(Ei.typeArguments,Ua=>Ao(Te,Ua,Vs,er)||u(fi(Ua),Te))));function os(Ua){return Te.enclosingDeclaration=si,Ua}});if(xr.length===wt.length)return xr}function pi(wt,xr,Ei){var si,ci;const os=(si=wt.declarations)==null?void 0:si.find(di),Ua=Te.enclosingDeclaration;Te.enclosingDeclaration=os||Ua;const ra=tv(wt),Wo=Vt(ra,jp=>_t(jp,Te)),vs=qu(wt),rc=Po(vs),kc=os&&iC(os),Ef=kc&&Za(kc)||ia(zi(vs),mA),_u=ar(wt),Hs=!!((ci=_u.symbol)!=null&&ci.valueDeclaration)&&di(_u.symbol.valueDeclaration),Ol=Hs?ii(_u):we,ay=[...Ae(rc)?[N.createHeritageClause(94,Vt(rc,jp=>aI(jp,Ol,xr)))]:[],...Ae(Ef)?[N.createHeritageClause(117,Ef)]:[]],fh=blt(vs,rc,hs(vs)),_h=lr(fh,jp=>{const oI=jp.valueDeclaration;return!!oI&&!(gu(oI)&&Ni(oI.name))}),mv=kt(fh,jp=>{const oI=jp.valueDeclaration;return!!oI&&gu(oI)&&Ni(oI.name)})?[N.createPropertyDeclaration(void 0,N.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:rt,Sse=ma(_h,jp=>Qn(jp,!1,rc[0])),xse=ma(lr(hs(_u),jp=>!(jp.flags&4194304)&&jp.escapedName!=="prototype"&&!qa(jp)),jp=>Qn(jp,!0,Ol)),Mut=!Hs&&!!wt.valueDeclaration&&fr(wt.valueDeclaration)&&!kt(za(_u,1))?[N.createConstructorDeclaration(N.createModifiersFromModifierFlags(8),[],void 0)]:P0(1,_u,Ol,173),Fut=OS(vs,rc[0]);Te.enclosingDeclaration=Ua,nt(ht(N.createClassDeclaration(void 0,xr,Wo,ay,[...Fut,...xse,...Mut,...Sse,...mv]),wt.declarations&&lr(wt.declarations,jp=>Nc(jp)||Uu(jp))[0]),Ei)}function eo(wt){return Kt(wt,xr=>{if(Ld(xr)||dd(xr))return Mr(xr.propertyName||xr.name);if(br(xr)||Gl(xr)){const Ei=Gl(xr)?xr.expression:xr.right;if(Fr(Ei))return Mr(Ei.name)}if(Mg(xr)){const Ei=ka(xr);if(Ei&&He(Ei))return Mr(Ei)}})}function Fo(wt,xr,Ei){var si,ci,os,Ua,ra;const Wo=md(wt);if(!Wo)return D.fail();const vs=as(op(Wo,!0));if(!vs)return;let rc=ZI(vs)&&eo(wt.declarations)||ta(vs.escapedName);rc==="export="&&(W_(Y)||Y.allowSyntheticDefaultImports)&&(rc="default");const kc=Fd(vs,rc);switch(Vs(vs),Wo.kind){case 205:if(((ci=(si=Wo.parent)==null?void 0:si.parent)==null?void 0:ci.kind)===257){const Hs=ln(vs.parent||vs,Te),{propertyName:Ol}=Wo;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamedImports([N.createImportSpecifier(!1,Ol&&He(Ol)?N.createIdentifier(Mr(Ol)):void 0,N.createIdentifier(xr))])),N.createStringLiteral(Hs),void 0),0);break}D.failBadSyntaxKind(((os=Wo.parent)==null?void 0:os.parent)||Wo,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((ra=(Ua=Wo.parent)==null?void 0:Ua.parent)==null?void 0:ra.kind)===223&&Do(ta(wt.escapedName),kc);break;case 257:if(Fr(Wo.initializer)){const Hs=Wo.initializer,Ol=N.createUniqueName(xr),ay=ln(vs.parent||vs,Te);nt(N.createImportEqualsDeclaration(void 0,!1,Ol,N.createExternalModuleReference(N.createStringLiteral(ay))),0),nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(xr),N.createQualifiedName(Ol,Hs.name)),Ei);break}case 268:if(vs.escapedName==="export="&&kt(vs.declarations,Hs=>qi(Hs)&&m_(Hs))){ks(wt);break}const Ef=!(vs.flags&512)&&!Ki(Wo);nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(xr),Ef?_a(vs,Te,67108863,!1):N.createExternalModuleReference(N.createStringLiteral(ln(vs,Te)))),Ef?Ei:0);break;case 267:nt(N.createNamespaceExportDeclaration(Mr(Wo.name)),0);break;case 270:{const Hs=ln(vs.parent||vs,Te),Ol=er?N.createStringLiteral(Hs):Wo.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,N.createIdentifier(xr),void 0),Ol,Wo.parent.assertClause),0);break}case 271:{const Hs=ln(vs.parent||vs,Te),Ol=er?N.createStringLiteral(Hs):Wo.parent.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamespaceImport(N.createIdentifier(xr))),Ol,Wo.parent.parent.assertClause),0);break}case 277:nt(N.createExportDeclaration(void 0,!1,N.createNamespaceExport(N.createIdentifier(xr)),N.createStringLiteral(ln(vs,Te))),0);break;case 273:{const Hs=ln(vs.parent||vs,Te),Ol=er?N.createStringLiteral(Hs):Wo.parent.parent.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamedImports([N.createImportSpecifier(!1,xr!==rc?N.createIdentifier(rc):void 0,N.createIdentifier(xr))])),Ol,Wo.parent.parent.parent.assertClause),0);break}case 278:const _u=Wo.parent.parent.moduleSpecifier;Do(ta(wt.escapedName),_u?rc:kc,_u&&xs(_u)?N.createStringLiteral(_u.text):void 0);break;case 274:ks(wt);break;case 223:case 208:case 209:wt.escapedName==="default"||wt.escapedName==="export="?ks(wt):Do(xr,kc);break;default:return D.failBadSyntaxKind(Wo,"Unhandled alias declaration kind in symbol serializer!")}}function Do(wt,xr,Ei){nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,wt!==xr?xr:void 0,wt)]),Ei),0)}function ks(wt){if(wt.flags&4194304)return!1;const xr=ta(wt.escapedName),Ei=xr==="export=",ci=Ei||xr==="default",os=wt.declarations&&md(wt),Ua=os&&op(os,!0);if(Ua&&Ae(Ua.declarations)&&kt(Ua.declarations,ra=>Zn(ra)===Zn(wr))){const ra=os&&(Gl(os)||br(os)?lq(os):Lfe(os)),Wo=ra&&zl(ra)?Plt(ra):void 0,vs=Wo&&Nl(Wo,67108863,!0,!0,wr);(vs||Ua)&&Vs(vs||Ua);const rc=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,ci)Ra.push(N.createExportAssignment(void 0,Ei,Qa(Ua,Te,67108863)));else if(Wo===ra&&Wo)Do(xr,Mr(Wo));else if(ra&&Uu(ra))Do(xr,Fd(Ua,Fl(Ua)));else{const kc=hA(xr,wt);nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(kc),_a(Ua,Te,67108863,!1)),0),Do(xr,kc)}return Te.tracker.disableTrackSymbol=rc,!0}else{const ra=hA(xr,wt),Wo=Zd(ar(as(wt)));if(fu(Wo,wt))Vr(Wo,wt,ra,ci?0:1);else{const vs=N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(ra,void 0,na(Te,Wo,wt,wr,Vs,er))],2));nt(vs,Ua&&Ua.flags&4&&Ua.escapedName==="export="?2:xr===ra?1:0)}return ci?(Ra.push(N.createExportAssignment(void 0,Ei,N.createIdentifier(ra))),!0):xr!==ra?(Do(xr,ra),!0):!1}}function fu(wt,xr){const Ei=Zn(Te.enclosingDeclaration);return ti(wt)&48&&!Ae(Lu(wt))&&!Vi(wt)&&!!(Ae(lr(hs(wt),qa))||Ae(za(wt,0)))&&!Ae(za(wt,1))&&!sr(xr,wr)&&!(wt.symbol&&kt(wt.symbol.declarations,si=>Zn(si)!==Ei))&&!kt(hs(wt),si=>ED(si.escapedName))&&!kt(hs(wt),si=>kt(si.declarations,ci=>Zn(ci)!==Ei))&&Yn(hs(wt),si=>M_(Fl(si),P))}function mp(wt,xr,Ei){return function(ci,os,Ua){var ra,Wo,vs,rc,kc;const Ef=Qf(ci),_u=!!(Ef&8);if(os&&ci.flags&2887656)return[];if(ci.flags&4194304||Ua&&co(Ua,ci.escapedName)&&pp(co(Ua,ci.escapedName))===pp(ci)&&(ci.flags&16777216)===(co(Ua,ci.escapedName).flags&16777216)&&Xh(ar(ci),fc(Ua,ci.escapedName)))return[];const Hs=Ef&-513|(os?32:0),Ol=bf(ci,Te),ay=(ra=ci.declarations)==null?void 0:ra.find(Im(to,J0,Ki,If,br,Fr));if(ci.flags&98304&&Ei){const fh=[];if(ci.flags&65536&&fh.push(ht(N.createSetAccessorDeclaration(N.createModifiersFromModifierFlags(Hs),Ol,[N.createParameterDeclaration(void 0,void 0,"arg",void 0,_u?void 0:na(Te,ar(ci),ci,wr,Vs,er))],void 0),((Wo=ci.declarations)==null?void 0:Wo.find(gy))||ay)),ci.flags&32768){const _h=Ef&8;fh.push(ht(N.createGetAccessorDeclaration(N.createModifiersFromModifierFlags(Hs),Ol,[],_h?void 0:na(Te,ar(ci),ci,wr,Vs,er),void 0),((vs=ci.declarations)==null?void 0:vs.find(kv))||ay))}return fh}else if(ci.flags&98311)return ht(wt(N.createModifiersFromModifierFlags((pp(ci)?64:0)|Hs),Ol,ci.flags&16777216?N.createToken(57):void 0,_u?void 0:na(Te,LL(ci),ci,wr,Vs,er),void 0),((rc=ci.declarations)==null?void 0:rc.find(Im(to,Ki)))||ay);if(ci.flags&8208){const fh=ar(ci),_h=za(fh,0);if(Hs&8)return ht(wt(N.createModifiersFromModifierFlags((pp(ci)?64:0)|Hs),Ol,ci.flags&16777216?N.createToken(57):void 0,void 0,void 0),((kc=ci.declarations)==null?void 0:kc.find(Qs))||_h[0]&&_h[0].declaration||ci.declarations&&ci.declarations[0]);const PS=[];for(const mv of _h){const Sse=ge(mv,xr,Te,{name:Ol,questionToken:ci.flags&16777216?N.createToken(57):void 0,modifiers:Hs?N.createModifiersFromModifierFlags(Hs):void 0}),xse=mv.declaration&&BN(mv.declaration.parent)?mv.declaration.parent:mv.declaration;PS.push(ht(Sse,xse))}return PS}return D.fail(`Unhandled class member kind! ${ci.__debugFlags||ci.flags}`)}}function dh(wt,xr){return Tr(wt,!1,xr)}function P0(wt,xr,Ei,si){const ci=za(xr,wt);if(wt===1){if(!Ei&&Yn(ci,ra=>Ae(ra.parameters)===0))return[];if(Ei){const ra=za(Ei,1);if(!Ae(ra)&&Yn(ci,Wo=>Ae(Wo.parameters)===0))return[];if(ra.length===ci.length){let Wo=!1;for(let vs=0;vs<ra.length;vs++)if(!t4(ci[vs],ra[vs],!1,!1,!0,OD)){Wo=!0;break}if(!Wo)return[]}}let Ua=0;for(const ra of ci)ra.declaration&&(Ua|=Sx(ra.declaration,24));if(Ua)return[ht(N.createConstructorDeclaration(N.createModifiersFromModifierFlags(Ua),[],void 0),ci[0].declaration)]}const os=[];for(const Ua of ci){const ra=ge(Ua,si,Te);os.push(ht(ra,Ua.declaration))}return os}function OS(wt,xr){const Ei=[];for(const si of Lu(wt)){if(xr){const ci=sh(xr,si.keyType);if(ci&&Xh(si.type,ci.type))continue}Ei.push($(si,Te,void 0))}return Ei}function aI(wt,xr,Ei){const si=xm(wt,111551);if(si)return si;const ci=hA(`${Ei}_base`),os=N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(ci,void 0,u(xr,Te))],2));return nt(os,0),N.createExpressionWithTypeArguments(N.createIdentifier(ci),void 0)}function xm(wt,xr){let Ei,si;if(wt.target&&xE(wt.target.symbol,wr,xr)?(Ei=Vt(gs(wt),ci=>u(ci,Te)),si=Qa(wt.target.symbol,Te,788968)):wt.symbol&&xE(wt.symbol,wr,xr)&&(si=Qa(wt.symbol,Te,788968)),si)return N.createExpressionWithTypeArguments(si,Ei)}function mA(wt){const xr=xm(wt,788968);if(xr)return xr;if(wt.symbol)return N.createExpressionWithTypeArguments(Qa(wt.symbol,Te,788968),void 0)}function hA(wt,xr){var Ei,si;const ci=xr?bo(xr):void 0;if(ci&&Te.remappedSymbolNames.has(ci))return Te.remappedSymbolNames.get(ci);xr&&(wt=KE(xr,wt));let os=0;const Ua=wt;for(;(Ei=Te.usedSymbolNames)!=null&&Ei.has(wt);)os++,wt=`${Ua}_${os}`;return(si=Te.usedSymbolNames)==null||si.add(wt),ci&&Te.remappedSymbolNames.set(ci,wt),wt}function KE(wt,xr){if(xr==="default"||xr==="__class"||xr==="__function"){const Ei=Te.flags;Te.flags|=16777216;const si=Yy(wt,Te);Te.flags=Ei,xr=si.length>0&&DN(si.charCodeAt(0))?j_(si):si}return xr==="default"?xr="_default":xr==="export="&&(xr="_exports"),xr=M_(xr,P)&&!vx(xr)?xr:"_"+xr.replace(/[^a-zA-Z0-9]/g,"_"),xr}function Fd(wt,xr){const Ei=bo(wt);return Te.remappedSymbolNames.has(Ei)?Te.remappedSymbolNames.get(Ei):(xr=KE(wt,xr),Te.remappedSymbolNames.set(Ei,xr),xr)}}}function nu(n,a,l=16384,u){return u?p(u).getText():YI(p);function p(g){const x=N.createTypePredicateNode(n.kind===2||n.kind===3?N.createToken(129):void 0,n.kind===1||n.kind===3?N.createIdentifier(n.parameterName):N.createThisTypeNode(),n.type&&Ye.typeToTypeNode(n.type,a,li(l)|70221824|512)),R=J1(),M=a&&Zn(a);return R.writeNode(4,x,M,g),g}}function $d(n){const a=[];let l=0;for(let u=0;u<n.length;u++){const p=n[u];if(l|=p.flags,!(p.flags&98304)){if(p.flags&1568){const g=p.flags&512?Re:bD(p);if(g.flags&1048576){const x=g.types.length;if(u+x<=n.length&&yd(n[u+x-1])===yd(g.types[x-1])){a.push(g),u+=x-1;continue}}}a.push(p)}}return l&65536&&a.push(Sn),l&32768&&a.push(We),a||n}function gf(n){return n===8?"private":n===16?"protected":"public"}function Xy(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=JN(n.symbol.declarations[0].parent);if(nm(a))return Ir(a)}}function Qd(n){return n&&n.parent&&n.parent.kind===265&&b1(n.parent.parent)}function g0(n){return n.kind===308||Mu(n)}function y0(n,a){const l=Wi(n).nameType;if(l){if(l.flags&384){const u=""+l.value;return!M_(u,es(Y))&&!Ah(u)?`"${bx(u,34)}"`:Ah(u)&&xa(u,"-")?`[${u}]`:u}if(l.flags&8192)return`[${Yy(l.symbol,a)}]`}}function Yy(n,a){if(a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&nr(n.declarations[0],g0)!==nr(a.enclosingDeclaration,g0)))return"default";if(n.declarations&&n.declarations.length){let u=Kt(n.declarations,g=>ka(g)?g:void 0);const p=u&&ka(u);if(u&&p){if(no(u)&&px(u))return Fl(n);if(As(p)&&!(Il(n)&4096)){const g=Wi(n).nameType;if(g&&g.flags&384){const x=y0(n,a);if(x!==void 0)return x}}return ws(p)}if(u||(u=n.declarations[0]),u.parent&&u.parent.kind===257)return ws(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}const l=y0(n,a);return l!==void 0?l:Fl(n)}function I_(n){if(n){const l=Jr(n);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(n.kind){case 341:case 349:case 343:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&qi(n.parent.parent.parent));case 205:return I_(n.parent.parent);case 257:if(Xa(n.name)&&!n.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(b1(n))return!0;const l=LE(n);return!(py(n)&1)&&!(n.kind!==268&&l.kind!==308&&l.flags&16777216)?Qm(l):I_(l);case 169:case 168:case 174:case 175:case 171:case 170:if(Bd(n,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return I_(n.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function CE(n,a){let l;n.parent&&n.parent.kind===274?l=_l(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===278&&(l=C_(n.parent,2998271));let u,p;return l&&(p=new Set,p.add(bo(l)),g(l.declarations)),u;function g(x){Ue(x,R=>{const M=yS(R)||R;if(a?Jr(R).isVisible=!0:(u=u||[],f_(u,M)),YA(R)){const J=R.moduleReference,$=Lf(J),ge=_l(R,$.escapedText,901119,void 0,void 0,!1);ge&&p&&gv(p,bo(ge))&&g(ge.declarations)}})}}function Bf(n,a){const l=ih(n,a);if(l>=0){const{length:u}=Lg;for(let p=l;p<u;p++)tp[p]=!1;return!1}return Lg.push(n),tp.push(!0),e0.push(a),!0}function ih(n,a){for(let l=Lg.length-1;l>=0;l--){if($y(Lg[l],e0[l]))return-1;if(Lg[l]===n&&e0[l]===a)return l}return-1}function $y(n,a){switch(a){case 0:return!!Wi(n).type;case 5:return!!Jr(n).resolvedEnumType;case 2:return!!Wi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Wi(n).writeType;case 9:return Jr(n).parameterInitializerContainsUndefined!==void 0}return D.assertNever(a)}function i_(){return Lg.pop(),e0.pop(),tp.pop()}function LE(n){return nr(Fm(n),a=>{switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function v0(n){const a=Us(gd(n));return a.typeParameters?Yg(a,Vt(a.typeParameters,l=>we)):a}function fc(n,a){const l=co(n,a);return l?ar(l):void 0}function kP(n,a){var l;return fc(n,a)||((l=X2(n,a))==null?void 0:l.type)||he}function Ss(n){return n&&(n.flags&1)!==0}function ns(n){return n===Ce||!!(n.flags&1&&n.aliasSymbol)}function j2(n,a){if(a!==0)return rs(n,!1,a);const l=Ir(n);return l&&Wi(l).type||rs(n,!1,a)}function H2(n,a,l){if(n=_c(n,M=>!(M.flags&98304)),n.flags&131072)return fa;if(n.flags&1048576)return $s(n,M=>H2(M,a,l));let u=Qr(Vt(a,$g));const p=[],g=[];for(const M of hs(n)){const J=OL(M,8576);!xo(J,u)&&!(Qf(M)&24)&&eV(M)?p.push(M):g.push(J)}if(Hb(n)||C0(u)){if(g.length&&(u=Qr([u,...g])),u.flags&131072)return n;const M=JZe();return M?Z2(M,[n,u]):Ce}const x=so();for(const M of p)x.set(M.escapedName,Qie(M,!1));const R=Ns(l,x,rt,rt,Lu(n));return R.objectFlags|=4194304,R}function z(n){return!!(n.flags&465829888)&&pl(Ju(n)||he,32768)}function Ee(n){const a=Zh(n,z)?$s(n,l=>l.flags&465829888?av(l):l):n;return l_(a,524288)}function $e(n,a){const l=Tt(n);return l?O0(l,a):a}function Tt(n){const a=Gt(n);if(a&&WN(a)&&a.flowNode){const l=Cn(n);if(l){const u=ht(Jm.createStringLiteral(l),n),p=Td(a)?a:Jm.createParenthesizedExpression(a),g=ht(Jm.createElementAccessExpression(p,u),n);return Uo(u,g),Uo(g,n),p!==a&&Uo(p,g),g.flowNode=a.flowNode,g}}}function Gt(n){const a=n.parent.parent;switch(a.kind){case 205:case 299:return Tt(a);case 206:return Tt(n.parent);case 257:return a.initializer;case 223:return a.right}}function Cn(n){const a=n.parent;return n.kind===205&&a.kind===203?Br(n.propertyName||n.name):n.kind===299||n.kind===300?Br(n.name):""+a.elements.indexOf(n)}function Br(n){const a=$g(n);return a.flags&384?""+a.value:void 0}function yi(n){const a=n.dotDotDotToken?64:0,l=j2(n.parent.parent,a);return l&&xi(n,l)}function xi(n,a){if(Ss(a))return a;const l=n.parent;W&&n.flags&16777216&&bT(n)?a=ty(a):W&&l.parent.initializer&&!(wu(Wke(l.parent.initializer))&65536)&&(a=l_(a,524288));let u;if(l.kind===203)if(n.dotDotDotToken){if(a=dp(a),a.flags&2||!p4(a))return Ke(n,_.Rest_types_may_only_be_created_from_object_types),Ce;const p=[];for(const g of l.elements)g.dotDotDotToken||p.push(g.propertyName||g.name);u=H2(a,p,n.symbol)}else{const p=n.propertyName||n.name,g=$g(p),x=Md(a,g,32,p);u=$e(n,x)}else{const p=pv(65|(n.dotDotDotToken?0:128),a,We,l),g=l.elements.indexOf(n);if(n.dotDotDotToken){const x=av(a);u=lh(x,Mo)?$s(x,R=>NL(R,g)):Iu(p)}else if(D0(a)){const x=Gp(g),R=32|(WL(n)?16:0),M=lv(a,x,R,n.name)||Ce;u=$e(n,M)}else u=p}return n.initializer?Zc(RA(n))?W&&!(wu(eR(n,0))&16777216)?Ee(u):u:Voe(n,Qr([Ee(u),eR(n,0)],2)):u}function ki(n){const a=Av(n);if(a)return fi(a)}function Fa(n){const a=js(n,!0);return a.kind===104||a.kind===79&&D_(a)===Fe}function Is(n){const a=js(n,!0);return a.kind===206&&a.elements.length===0}function Io(n,a=!1,l=!0){return W&&l?ey(n,a):n}function rs(n,a,l){if(Ki(n)&&n.parent.parent.kind===246){const x=vm(foe(ga(n.parent.parent.expression,l)));return x.flags&4456448?IIe(x):ue}if(Ki(n)&&n.parent.parent.kind===247){const x=n.parent.parent;return M4(x)||we}if(Xa(n.parent))return yi(n);const u=to(n)&&!Bm(n)||If(n)||eme(n),p=a&&fJ(n),g=Pd(n);if(wz(n))return g?Ss(g)||g===he?g:Ce:Qe?he:we;if(g)return Io(g,u,p);if((Se||fr(n))&&Ki(n)&&!Xa(n.name)&&!(py(n)&1)&&!(n.flags&16777216)){if(!(gp(n)&2)&&(!n.initializer||Fa(n.initializer)))return yt;if(n.initializer&&Is(n.initializer))return Nn}if(Ba(n)){const x=n.parent;if(x.kind===175&&J2(x)){const J=Al(Ir(n.parent),174);if(J){const $=Fp(J),ge=bse(x);return ge&&n===ge?(D.assert(!ge.type),ar($.thisParameter)):ys($)}}const R=bZe(x,n);if(R)return R;const M=n.symbol.escapedName==="this"?cwe(x):uwe(n);if(M)return Io(M,!1,p)}if(cT(n)&&n.initializer){if(fr(n)&&!Ba(n)){const R=xL(n,Ir(n),NN(n));if(R)return R}const x=Voe(n,eR(n,l));return Io(x,u,p)}if(to(n)&&(Se||fr(n)))if(gc(n)){const x=lr(n.parent.members,kl),R=x.length?k_(n.symbol,x):Fu(n)&2?pV(n.symbol):void 0;return R&&Io(R,!0,p)}else{const x=m0(n.parent),R=x?Qy(n.symbol,x):Fu(n)&2?pV(n.symbol):void 0;return R&&Io(R,!0,p)}if(im(n))return Pe;if(Xa(n.name))return ko(n.name,!1,!0)}function Od(n){if(n.valueDeclaration&&br(n.valueDeclaration)){const a=Wi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!pm(n)&&Yn(n.declarations,l=>br(l)&&OV(l)&&(l.left.kind!==209||Xf(l.left.argumentExpression))&&!sp(void 0,l,n,l))),a.isConstructorDeclaredProperty}return!1}function Pp(n){const a=n.valueDeclaration;return a&&to(a)&&!Zc(a)&&!a.initializer&&(Se||fr(a))}function pm(n){if(n.declarations)for(const a of n.declarations){const l=Sd(a,!1,!1);if(l&&(l.kind===173||Vp(l)))return l}}function zg(n){const a=Zn(n.declarations[0]),l=ta(n.escapedName),u=n.declarations.every(g=>fr(g)&&ll(g)&&bh(g.expression)),p=u?N.createPropertyAccessExpression(N.createPropertyAccessExpression(N.createIdentifier("module"),N.createIdentifier("exports")),l):N.createPropertyAccessExpression(N.createIdentifier("exports"),l);return u&&Uo(p.expression.expression,p.expression),Uo(p.expression,p),Uo(p,a),p.flowNode=a.endFlowNode,O0(p,yt,We)}function k_(n,a){const l=xa(n.escapedName,"__#")?N.createPrivateIdentifier(n.escapedName.split("@")[1]):ta(n.escapedName);for(const u of a){const p=N.createPropertyAccessExpression(N.createThis(),l);Uo(p.expression,p),Uo(p,u),p.flowNode=u.returnFlowNode;const g=W2(p,n);if(Se&&(g===yt||g===Nn)&&Ke(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,S(n),ke(g)),!lh(g,VV))return lR(g)}}function Qy(n,a){const l=xa(n.escapedName,"__#")?N.createPrivateIdentifier(n.escapedName.split("@")[1]):ta(n.escapedName),u=N.createPropertyAccessExpression(N.createThis(),l);Uo(u.expression,u),Uo(u,a),u.flowNode=a.returnFlowNode;const p=W2(u,n);return Se&&(p===yt||p===Nn)&&Ke(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,S(n),ke(p)),lh(p,VV)?void 0:lR(p)}function W2(n,a){const l=(a==null?void 0:a.valueDeclaration)&&(!Pp(a)||Fu(a.valueDeclaration)&2)&&pV(a)||We;return O0(n,yt,l)}function IE(n,a){const l=_x(n.valueDeclaration);if(l){const R=fr(l)?p1(l):void 0;return R&&R.typeExpression?fi(R.typeExpression):n.valueDeclaration&&xL(n.valueDeclaration,n,l)||Kb(Ql(l))}let u,p=!1,g=!1;if(Od(n)&&(u=Qy(n,pm(n))),!u){let R;if(n.declarations){let M;for(const J of n.declarations){const $=br(J)||no(J)?J:ll(J)?br(J.parent)?J.parent:J:void 0;if(!$)continue;const ge=ll($)?FN($):Ll($);(ge===4||br($)&&OV($,ge))&&(Gf($)?p=!0:g=!0),no($)||(M=sp(M,$,n,J)),M||(R||(R=[])).push(br($)||no($)?b0(n,a,$,ge):gt)}u=M}if(!u){if(!Ae(R))return Ce;let M=p&&n.declarations?z2(R,n.declarations):void 0;if(g){const $=pV(n);$&&((M||(M=[])).push($),p=!0)}const J=kt(M,$=>!!($.flags&-98305))?M:R;u=Qr(J)}}const x=Zd(Io(u,!1,g&&!p));return n.valueDeclaration&&_c(x,R=>!!(R.flags&-98305))===gt?(R0(n.valueDeclaration,we),we):x}function xL(n,a,l){var u,p;if(!fr(n)||!l||!Ls(l)||l.properties.length)return;const g=so();for(;br(n)||Fr(n);){const M=Xd(n);(u=M==null?void 0:M.exports)!=null&&u.size&&Pc(g,M.exports),n=br(n)?n.parent:n.parent.parent}const x=Xd(n);(p=x==null?void 0:x.exports)!=null&&p.size&&Pc(g,x.exports);const R=Ns(a,g,rt,rt,rt);return R.objectFlags|=4096,R}function sp(n,a,l,u){var p;const g=Zc(a.parent);if(g){const x=Zd(fi(g));if(n)!ns(n)&&!ns(x)&&!Xh(n,x)&&dRe(void 0,n,u,x);else return x}if((p=l.parent)!=null&&p.valueDeclaration){const x=Zc(l.parent.valueDeclaration);if(x){const R=co(fi(x),l.escapedName);if(R)return T0(R)}}return n}function b0(n,a,l,u){if(no(l)){if(a)return ar(a);const x=Ql(l.arguments[2]),R=fc(x,"value");if(R)return R;const M=fc(x,"get");if(M){const $=DS(M);if($)return ys($)}const J=fc(x,"set");if(J){const $=DS(J);if($)return Roe($)}return we}if(AL(l.left,l.right))return we;const p=u===1&&(Fr(l.left)||cl(l.left))&&(bh(l.left.expression)||He(l.left.expression)&&hT(l.left.expression)),g=a?ar(a):p?yd(Ql(l.right)):Kb(Ql(l.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){const x=up(g),R=so();yN(x.members,R);const M=R.size;a&&!a.exports&&(a.exports=so()),(a||n).exports.forEach(($,ge)=>{var Ne;const De=R.get(ge);if(De&&De!==$&&!($.flags&2097152))if($.flags&111551&&De.flags&111551){if($.valueDeclaration&&De.valueDeclaration&&Zn($.valueDeclaration)!==Zn(De.valueDeclaration)){const Bt=ta($.escapedName),Mn=((Ne=ai(De.valueDeclaration,gu))==null?void 0:Ne.name)||De.valueDeclaration;Ko(Ke($.valueDeclaration,_.Duplicate_identifier_0,Bt),Nr(Mn,_._0_was_also_declared_here,Bt)),Ko(Ke(Mn,_.Duplicate_identifier_0,Bt),Nr($.valueDeclaration,_._0_was_also_declared_here,Bt))}const _t=ts($.flags|De.flags,ge);_t.links.type=Qr([ar($),ar(De)]),_t.valueDeclaration=De.valueDeclaration,_t.declarations=ba(De.declarations,$.declarations),R.set(ge,_t)}else R.set(ge,ip($,De));else R.set(ge,$)});const J=Ns(M!==R.size?void 0:x.symbol,R,x.callSignatures,x.constructSignatures,x.indexInfos);if(M===R.size&&(g.aliasSymbol&&(J.aliasSymbol=g.aliasSymbol,J.aliasTypeArguments=g.aliasTypeArguments),ti(g)&4)){J.aliasSymbol=g.symbol;const $=gs(g);J.aliasTypeArguments=Ae($)?$:void 0}return J.objectFlags|=ti(g)&4096,J.symbol&&J.symbol.flags&32&&g===qu(J.symbol)&&(J.objectFlags|=16777216),J}return hV(g)?(R0(l,Dt),Dt):g}function AL(n,a){return Fr(n)&&n.expression.kind===108&&d8(a,l=>Xc(n,l))}function Gf(n){const a=Sd(n,!1,!1);return a.kind===173||a.kind===259||a.kind===215&&!BN(a.parent)}function z2(n,a){return D.assert(n.length===a.length),n.filter((l,u)=>{const p=a[u],g=br(p)?p:br(p.parent)?p.parent:void 0;return g&&Gf(g)})}function Zy(n,a,l){if(n.initializer){const u=Xa(n.name)?ko(n.name,!0,!1):he;return Io(Voe(n,eR(n,0,u)))}return Xa(n.name)?ko(n.name,a,l):(l&&!gD(n)&&R0(n,we),a?pe:we)}function mD(n,a,l){const u=so();let p,g=131200;Ue(n.elements,R=>{const M=R.propertyName||R.name;if(R.dotDotDotToken){p=ym(ue,we,!1);return}const J=$g(M);if(!Jh(J)){g|=512;return}const $=mm(J),ge=4|(R.initializer?16777216:0),Ne=ts(ge,$);Ne.links.type=Zy(R,a,l),Ne.links.bindingElement=R,u.set(Ne.escapedName,Ne)});const x=Ns(void 0,u,rt,rt,p?[p]:rt);return x.objectFlags|=g,a&&(x.pattern=n,x.objectFlags|=131072),x}function hD(n,a,l){const u=n.elements,p=tl(u),g=p&&p.kind===205&&p.dotDotDotToken?p:void 0;if(u.length===0||u.length===1&&g)return P>=2?dIe(we):Dt;const x=Vt(u,$=>Rc($)?we:Zy($,a,l)),R=va(u,$=>!($===g||Rc($)||WL($)),u.length-1)+1,M=Vt(u,($,ge)=>$===g?4:ge>=R?2:1);let J=Bp(x,M);return a&&(J=JLe(J),J.pattern=n,J.objectFlags|=131072),J}function ko(n,a=!1,l=!1){return n.kind===203?mD(n,a,l):hD(n,a,l)}function El(n,a){return ev(rs(n,!0,0),n,a)}function E0(n){const a=Xd(n),l=MZe(!1);return l&&a&&a===l}function ev(n,a,l){return n?(n.flags&4096&&E0(a.parent)&&(n=Zie(a)),l&&TV(a,n),n.flags&8192&&(ps(a)||!a.type)&&n.symbol!==Ir(a)&&(n=q),Zd(n)):(n=Ba(a)&&a.dotDotDotToken?Dt:we,l&&(gD(a)||R0(a,n)),n)}function gD(n){const a=Fm(n),l=a.kind===166?a.parent:a;return w4(l)}function Pd(n){const a=Zc(n);if(a)return fi(a)}function yD(n){let a=n.valueDeclaration;return a?(ps(a)&&(a=RA(a)),Ba(a)?lV(a.parent):!1):!1}function b(n){const a=Wi(n);if(!a.type){const l=w(n);return!a.type&&!yD(n)&&(a.type=l),l}return a.type}function w(n){if(n.flags&4194304)return v0(n);if(n===Et)return we;if(n.flags&134217728&&n.valueDeclaration){const u=Ir(Zn(n.valueDeclaration)),p=ts(u.flags,"exports");p.declarations=u.declarations?u.declarations.slice():[],p.parent=n,p.links.target=u,u.valueDeclaration&&(p.valueDeclaration=u.valueDeclaration),u.members&&(p.members=new Map(u.members)),u.exports&&(p.exports=new Map(u.exports));const g=so();return g.set("exports",p),Ns(n,g,rt,rt,rt)}D.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(qi(a)&&m_(a))return a.statements.length?Zd(Kb(ga(a.statements[0].expression))):fa;if(J0(a))return Gr(n);if(!Bf(n,0))return n.flags&512&&!(n.flags&67108864)?yf(n):CL(n);let l;if(a.kind===274)l=ev(Pd(a)||Ql(a.expression),a);else if(br(a)||fr(a)&&(no(a)||(Fr(a)||G3(a))&&br(a.parent)))l=IE(n);else if(Fr(a)||cl(a)||He(a)||xs(a)||b_(a)||Nc(a)||yc(a)||ac(a)&&!G_(a)||Ch(a)||qi(a)){if(n.flags&9136)return yf(n);l=br(a.parent)?IE(n):Pd(a)||we}else if(qc(a))l=Pd(a)||FDe(a);else if(im(a))l=Pd(a)||Swe(a);else if(t_(a))l=Pd(a)||$L(a.name,0);else if(G_(a))l=Pd(a)||BDe(a,0);else if(Ba(a)||to(a)||If(a)||Ki(a)||ps(a)||t3(a))l=El(a,!0);else if(ob(a))l=yf(n);else if(B1(a))l=Jg(n);else return D.fail("Unhandled declaration kind! "+D.formatSyntaxKind(a.kind)+" for "+D.formatSymbol(n));return i_()?l:n.flags&512&&!(n.flags&67108864)?yf(n):CL(n)}function F(n){if(n)switch(n.kind){case 174:return vp(n);case 175:return Ufe(n);case 169:return D.assert(Bm(n)),Zc(n)}}function se(n){const a=F(n);return a&&fi(a)}function Je(n){const a=bse(n);return a&&a.symbol}function Xt(n){return Ub(Fp(n))}function Gr(n){const a=Wi(n);if(!a.type){if(!Bf(n,0))return Ce;const l=Al(n,174),u=Al(n,175),p=ai(Al(n,169),rf);let g=l&&fr(l)&&ki(l)||se(l)||se(u)||se(p)||l&&l.body&&ZV(l)||p&&p.initializer&&El(p,!0);g||(u&&!w4(u)?lm(Se,u,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,S(n)):l&&!w4(l)?lm(Se,l,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,S(n)):p&&!w4(p)&&lm(Se,p,_.Member_0_implicitly_has_an_1_type,S(n),"any"),g=we),i_()||(F(l)?Ke(l,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,S(n)):F(u)||F(p)?Ke(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,S(n)):l&&Se&&Ke(l,_._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(n)),g=we),a.type=g}return a.type}function ea(n){var a;const l=Wi(n);if(!l.writeType){if(!Bf(n,8))return Ce;const u=(a=Al(n,175))!=null?a:ai(Al(n,169),rf);let p=se(u);i_()||(F(u)&&Ke(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,S(n)),p=we),l.writeType=p||Gr(n)}return l.writeType}function $a(n){const a=ii(qu(n));return a.flags&8650752?a:a.flags&2097152?nn(a.types,l=>!!(l.flags&8650752)):void 0}function yf(n){let a=Wi(n);const l=a;if(!a.type){const u=n.valueDeclaration&&YV(n.valueDeclaration,!1);if(u){const p=Ioe(n,u);p&&(n=p,a=p.links)}l.type=a.type=qg(n)}return a.type}function qg(n){const a=n.valueDeclaration;if(n.flags&1536&&ZI(n))return we;if(a&&(a.kind===223||ll(a)&&a.parent.kind===223))return IE(n);if(n.flags&512&&a&&qi(a)&&a.commonJsModuleIndicator){const u=hd(n);if(u!==n){if(!Bf(n,0))return Ce;const p=as(n.exports.get("export=")),g=IE(p,p===u?void 0:u);return i_()?g:CL(n)}}const l=hf(16,n);if(n.flags&32){const u=$a(n);return u?wo([l,u]):l}else return W&&n.flags&16777216?ey(l):l}function Jg(n){const a=Wi(n);return a.type||(a.type=hLe(n))}function Kg(n){const a=Wi(n);if(!a.type){const l=nc(n),u=n.declarations&&op(md(n),!0),p=Kt(u==null?void 0:u.declarations,g=>Gl(g)?Pd(g):void 0);a.type=u!=null&&u.declarations&&pj(u.declarations)&&n.declarations.length?zg(u):pj(n.declarations)?yt:p||(uu(l)&111551?ar(l):Ce)}return a.type}function Zre(n){const a=Wi(n);return a.type||(a.type=Yi(ar(a.target),a.mapper))}function eie(n){const a=Wi(n);return a.writeType||(a.writeType=Yi(LL(a.target),a.mapper))}function CL(n){const a=n.valueDeclaration;return Zc(a)?(Ke(n.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,S(n)),Ce):(Se&&(a.kind!==166||a.initializer)&&Ke(n.valueDeclaration,_._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,S(n)),we)}function vD(n){const a=Wi(n);return a.type||(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Qr(a.deferralConstituents):wo(a.deferralConstituents)),a.type}function tie(n){const a=Wi(n);return!a.writeType&&a.deferralWriteConstituents&&(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Qr(a.deferralWriteConstituents):wo(a.deferralWriteConstituents)),a.writeType}function LL(n){const a=Il(n);return n.flags&4?a&2?a&65536?tie(n)||vD(n):n.links.writeType||n.links.type:ar(n):n.flags&98304?a&1?eie(n):ea(n):ar(n)}function ar(n){const a=Il(n);return a&65536?vD(n):a&1?Zre(n):a&262144?nZe(n):a&8192?hnt(n):n.flags&7?b(n):n.flags&9136?yf(n):n.flags&8?Jg(n):n.flags&98304?Gr(n):n.flags&2097152?Kg(n):Ce}function T0(n){return FE(ar(n),!!(n.flags&16777216))}function S0(n,a){return n!==void 0&&a!==void 0&&(ti(n)&4)!==0&&n.target===a}function q2(n){return ti(n)&4?n.target:n}function kE(n,a){return l(n);function l(u){if(ti(u)&7){const p=q2(u);return p===a||kt(Po(p),l)}else if(u.flags&2097152)return kt(u.types,l);return!1}}function wP(n,a){for(const l of a)n=sy(n,wE(Ir(l)));return n}function IL(n,a){for(;;){if(n=n.parent,n&&br(n)){const l=Ll(n);if(l===6||l===3){const u=Ir(n.left);u&&u.parent&&!nr(u.parent.valueDeclaration,p=>n===p)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const u=IL(n,a);if(n.kind===197)return Fn(u,wE(Ir(n.typeParameter)));if(n.kind===191)return ba(u,BIe(n));const p=wP(u,Cv(n)),g=a&&(n.kind===260||n.kind===228||n.kind===261||Vp(n))&&qu(Ir(n)).thisType;return g?Fn(p,g):p}case 344:const l=qN(n);l&&(n=l.valueDeclaration);break;case 323:{const u=IL(n,a);return n.tags?wP(u,ma(n.tags,p=>Tp(p)?p.typeParameters:void 0)):u}}}}function UU(n){var a;const l=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===261)return!0;if(u.kind!==257)return!1;const p=u.initializer;return!!p&&(p.kind===215||p.kind===216)});return D.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),IL(l)}function tv(n){if(!n.declarations)return;let a;for(const l of n.declarations)(l.kind===261||l.kind===260||l.kind===228||Vp(l)||HN(l))&&(a=wP(a,Cv(l)));return a}function xS(n){return ba(UU(n),tv(n))}function DP(n){const a=za(n,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Eu(l)){const u=T4(l.parameters[0]);return Ss(u)||gae(u)===we}}return!1}function x0(n){if(za(n,1).length>0)return!0;if(n.flags&8650752){const a=Ju(n);return!!a&&DP(a)}return!1}function Dn(n){const a=gg(n.symbol);return a&&$p(a)}function Kr(n,a,l){const u=Ae(a),p=fr(l);return lr(za(n,1),g=>(p||u>=gm(g.typeParameters))&&u<=Ae(g.typeParameters))}function Ur(n,a,l){const u=Kr(n,a,l),p=Vt(a,fi);return pa(u,g=>kt(g.typeParameters)?LD(g,p,fr(l)):g)}function ii(n){if(!n.resolvedBaseConstructorType){const a=gg(n.symbol),l=a&&$p(a),u=Dn(n);if(!u)return n.resolvedBaseConstructorType=We;if(!Bf(n,1))return Ce;const p=ga(u.expression);if(l&&u!==l&&(D.assert(!l.typeArguments),ga(l.expression)),p.flags&2621440&&up(p),!i_())return Ke(n.symbol.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,S(n.symbol)),n.resolvedBaseConstructorType=Ce;if(!(p.flags&1)&&p!==Er&&!x0(p)){const g=Ke(u.expression,_.Type_0_is_not_a_constructor_function_type,ke(p));if(p.flags&262144){const x=RL(p);let R=he;if(x){const M=za(x,1);M[0]&&(R=ys(M[0]))}p.symbol.declarations&&Ko(g,Nr(p.symbol.declarations[0],_.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,S(p.symbol),ke(R)))}return n.resolvedBaseConstructorType=Ce}n.resolvedBaseConstructorType=p}return n.resolvedBaseConstructorType}function zi(n){let a=rt;if(n.symbol.declarations)for(const l of n.symbol.declarations){const u=iC(l);if(u)for(const p of u){const g=fi(p);ns(g)||(a===rt?a=[g]:a.push(g))}}return a}function So(n,a){Ke(n,_.Type_0_recursively_references_itself_as_a_base_type,ke(a,void 0,2))}function Po(n){if(!n.baseTypesResolved){if(Bf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[vf(n)]:n.symbol.flags&96?(n.symbol.flags&32&&lp(n),n.symbol.flags&64&&qh(n)):D.fail("type must be class or interface"),!i_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===260||a.kind===261)&&So(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function vf(n){const a=pa(n.typeParameters,(l,u)=>n.elementFlags[u]&8?Md(l,mt):l);return Iu(Qr(a||rt),n.readonly)}function lp(n){n.resolvedBaseTypes=v7;const a=Ku(ii(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=rt;const l=Dn(n);let u;const p=a.symbol?Us(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&zh(p))u=KLe(l,a.symbol);else if(a.flags&1)u=a;else{const x=Ur(a,l.typeArguments,l);if(!x.length)return Ke(l.expression,_.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=rt;u=ys(x[0])}if(ns(u))return n.resolvedBaseTypes=rt;const g=dp(u);if(!ah(g)){const x=gie(void 0,u),R=Na(x,_.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ke(g));return $o.add(dg(Zn(l.expression),l.expression,R)),n.resolvedBaseTypes=rt}return n===g||kE(g,n)?(Ke(n.symbol.valueDeclaration,_.Type_0_recursively_references_itself_as_a_base_type,ke(n,void 0,2)),n.resolvedBaseTypes=rt):(n.resolvedBaseTypes===v7&&(n.members=void 0),n.resolvedBaseTypes=[g])}function zh(n){const a=n.outerTypeParameters;if(a){const l=a.length-1,u=gs(n);return a[l].symbol!==u[l].symbol}return!0}function ah(n){if(n.flags&262144){const a=Ju(n);if(a)return ah(a)}return!!(n.flags&67633153&&!Vf(n)||n.flags&2097152&&Yn(n.types,ah))}function qh(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||rt,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===261&&lk(a))for(const l of lk(a)){const u=dp(fi(l));ns(u)||(ah(u)?n!==u&&!kE(u,n)?n.resolvedBaseTypes===rt?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):So(a,n):Ke(l,_.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function kL(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===261){if(a.flags&128)return!1;const l=lk(a);if(l){for(const u of l)if(zl(u.expression)){const p=Nl(u.expression,788968,!0);if(!p||!(p.flags&64)||qu(p).thisType)return!1}}}return!0}function qu(n){let a=Wi(n);const l=a;if(!a.declaredType){const u=n.flags&32?1:2,p=Ioe(n,n.valueDeclaration&&fat(n.valueDeclaration));p&&(n=p,a=p.links);const g=l.declaredType=a.declaredType=hf(u,n),x=UU(n),R=tv(n);(x||R||u===1||!kL(n))&&(g.objectFlags|=4,g.typeParameters=ba(x,R),g.outerTypeParameters=x,g.localTypeParameters=R,g.instantiations=new Map,g.instantiations.set(o_(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=Nd(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function Fb(n){var a;const l=Wi(n);if(!l.declaredType){if(!Bf(n,2))return Ce;const u=D.checkDefined((a=n.declarations)==null?void 0:a.find(HN),"Type alias symbol with no valid declaration found"),p=h_(u)?u.typeExpression:u.type;let g=p?fi(p):Ce;if(i_()){const x=tv(n);x&&(l.typeParameters=x,l.instantiations=new Map,l.instantiations.set(o_(x),g))}else g=Ce,u.kind===343?Ke(u.typeExpression.type,_.Type_alias_0_circularly_references_itself,S(n)):Ke(gu(u)&&u.name||u,_.Type_alias_0_circularly_references_itself,S(n));l.declaredType=g}return l.declaredType}function bD(n){return n.flags&1056&&n.symbol.flags&8?Us(gd(n.symbol)):n}function pLe(n){const a=Wi(n);if(!a.declaredType){const l=[];if(n.declarations){for(const p of n.declarations)if(p.kind===263){for(const g of p.members)if(J2(g)){const x=Ir(g),R=bj(g),M=rA(R!==void 0?$et(R,bo(n),x):mLe(x));Wi(x).declaredType=M,l.push(yd(M))}}}const u=l.length?Qr(l,1,n,void 0):mLe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function mLe(n){const a=_m(32,n),l=_m(32,n);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function hLe(n){const a=Wi(n);if(!a.declaredType){const l=pLe(gd(n));a.declaredType||(a.declaredType=l)}return a.declaredType}function wE(n){const a=Wi(n);return a.declaredType||(a.declaredType=Nd(n))}function OQe(n){const a=Wi(n);return a.declaredType||(a.declaredType=Us(nc(n)))}function Us(n){return gLe(n)||Ce}function gLe(n){if(n.flags&96)return qu(n);if(n.flags&524288)return Fb(n);if(n.flags&262144)return wE(n);if(n.flags&384)return pLe(n);if(n.flags&8)return hLe(n);if(n.flags&2097152)return OQe(n)}function RP(n){switch(n.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return RP(n.elementType);case 180:return!n.typeArguments||n.typeArguments.every(RP)}return!1}function PQe(n){const a=NA(n);return!a||RP(a)}function yLe(n){const a=Zc(n);return a?RP(a):!wv(n)}function MQe(n){const a=vp(n),l=Cv(n);return(n.kind===173||!!a&&RP(a))&&n.parameters.every(yLe)&&l.every(PQe)}function FQe(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 169:case 168:return yLe(a);case 171:case 170:case 173:case 174:case 175:return MQe(a)}}return!1}function vLe(n,a,l){const u=so();for(const p of n)u.set(p.escapedName,l&&FQe(p)?p:tae(p,a));return u}function bLe(n,a){for(const l of a)!n.has(l.escapedName)&&!ELe(l)&&n.set(l.escapedName,l)}function ELe(n){return!!n.valueDeclaration&&Zu(n.valueDeclaration)&&Ja(n.valueDeclaration)}function nie(n){if(!n.declaredProperties){const a=n.symbol,l=nv(a);n.declaredProperties=Jy(l),n.declaredCallSignatures=rt,n.declaredConstructSignatures=rt,n.declaredIndexInfos=rt,n.declaredCallSignatures=Gb(l.get("__call")),n.declaredConstructSignatures=Gb(l.get("__new")),n.declaredIndexInfos=WLe(a)}return n}function Jh(n){return!!(n.flags&8576)}function rie(n){if(!As(n)&&!cl(n))return!1;const a=As(n)?n.expression:n.argumentExpression;return zl(a)&&Jh(As(n)?ny(n):Ql(a))}function ED(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function NP(n){const a=ka(n);return!!a&&rie(a)}function J2(n){return!Nv(n)||NP(n)}function BQe(n){return q3(n)&&!rie(n)}function mm(n){return n.flags&8192?n.escapedName:n.flags&384?sl(""+n.value):D.fail()}function GQe(n,a,l){D.assert(!!(Il(n)&4096),"Expected a late-bound symbol."),n.flags|=l,Wi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],l&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function TLe(n,a,l,u){D.assert(!!u.symbol,"The member is expected to have a symbol.");const p=Jr(u);if(!p.resolvedSymbol){p.resolvedSymbol=u.symbol;const g=br(u)?u.left:u.name,x=cl(g)?Ql(g.argumentExpression):ny(g);if(Jh(x)){const R=mm(x),M=u.symbol.flags;let J=l.get(R);J||l.set(R,J=ts(0,R,4096));const $=a&&a.get(R);if(J.flags&vc(M)||$){const ge=$?ba($.declarations,J.declarations):J.declarations,Ne=!(x.flags&8192)&&ta(R)||ws(g);Ue(ge,De=>Ke(ka(De)||De,_.Property_0_was_also_declared_here,Ne)),Ke(g||u,_.Duplicate_property_0,Ne),J=ts(0,R,4096)}return J.links.nameType=x,GQe(J,u,M),J.parent?D.assert(J.parent===n,"Existing symbol parent should match new one"):J.parent=n,p.resolvedSymbol=J}}return p.resolvedSymbol}function iie(n,a){const l=Wi(n);if(!l[a]){const u=a==="resolvedExports",p=u?n.flags&1536?F2(n).exports:n.exports:n.members;l[a]=p||te;const g=so();for(const R of n.declarations||rt){const M=efe(R);if(M)for(const J of M)u===gc(J)&&NP(J)&&TLe(n,p,g,J)}const x=n.assignmentDeclarationMembers;if(x){const R=Ro(x.values());for(const M of R){const J=Ll(M),$=J===3||br(M)&&OV(M,J)||J===9||J===6;u===!$&&NP(M)&&TLe(n,p,g,M)}}l[a]=Ng(p,g)||te}return l[a]}function nv(n){return n.flags&6256?iie(n,"resolvedMembers"):n.members||te}function VU(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Wi(n);if(!a.lateSymbol&&kt(n.declarations,NP)){const l=as(n.parent);kt(n.declarations,gc)?mf(l):nv(l)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Uf(n,a,l){if(ti(n)&4){const u=n.target,p=gs(n);if(Ae(u.typeParameters)===Ae(p)){const g=Yg(u,ba(p,[a||u.thisType]));return l?Ku(g):g}}else if(n.flags&2097152){const u=pa(n.types,p=>Uf(p,a,l));return u!==n.types?wo(u):n}return l?Ku(n):n}function SLe(n,a,l,u){let p,g,x,R,M;oH(l,u,0,l.length)?(g=a.symbol?nv(a.symbol):so(a.declaredProperties),x=a.declaredCallSignatures,R=a.declaredConstructSignatures,M=a.declaredIndexInfos):(p=vd(l,u),g=vLe(a.declaredProperties,p,l.length===1),x=iV(a.declaredCallSignatures,p),R=iV(a.declaredConstructSignatures,p),M=WIe(a.declaredIndexInfos,p));const J=Po(a);if(J.length){a.symbol&&g===nv(a.symbol)&&(g=so(a.declaredProperties)),Ff(n,g,x,R,M);const $=tl(u);for(const ge of J){const Ne=$?Uf(Yi(ge,p),$):ge;bLe(g,hs(Ne)),x=ba(x,za(Ne,0)),R=ba(R,za(Ne,1));const De=Ne!==we?Lu(Ne):[ym(ue,we,!1)];M=ba(M,lr(De,_t=>!yie(M,_t.keyType)))}}Ff(n,g,x,R,M)}function UQe(n){SLe(n,nie(n),rt,rt)}function VQe(n){const a=nie(n.target),l=ba(a.typeParameters,[a.thisType]),u=gs(n),p=u.length===l.length?u:ba(u,[n]);SLe(n,a,l,p)}function oh(n,a,l,u,p,g,x,R){const M=new h(at,R);return M.declaration=n,M.typeParameters=a,M.parameters=u,M.thisParameter=l,M.resolvedReturnType=p,M.resolvedTypePredicate=g,M.minArgumentCount=x,M.resolvedMinArgumentCount=void 0,M.target=void 0,M.mapper=void 0,M.compositeSignatures=void 0,M.compositeKind=void 0,M}function TD(n){const a=oh(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function xLe(n,a){const l=TD(n);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function jQe(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return n.optionalCallSignatureCache[l]||(n.optionalCallSignatureCache[l]=HQe(n,a))}function HQe(n,a){D.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const l=TD(n);return l.flags|=a,l}function ALe(n,a){if(Eu(n)){const u=n.parameters.length-1,p=ar(n.parameters[u]);if(Mo(p))return[l(p,u)];if(!a&&p.flags&1048576&&Yn(p.types,Mo))return Vt(p.types,g=>l(g,u))}return[n.parameters];function l(u,p){const g=gs(u),x=u.target.labeledElementDeclarations,R=Vt(g,(M,J)=>{const ge=!!x&&QV(x[J])||XL(n,p+J,u),Ne=u.target.elementFlags[J],De=Ne&12?32768:Ne&2?16384:0,_t=ts(1,ge,De);return _t.links.type=Ne&4?Iu(M):M,_t});return ba(n.parameters.slice(0,p),R)}}function WQe(n){const a=ii(n),l=za(a,1),u=gg(n.symbol),p=!!u&&Yr(u,256);if(l.length===0)return[oh(void 0,n.localTypeParameters,void 0,rt,n,void 0,0,p?4:0)];const g=Dn(n),x=fr(g),R=VP(g),M=Ae(R),J=[];for(const $ of l){const ge=gm($.typeParameters),Ne=Ae($.typeParameters);if(x||M>=ge&&M<=Ne){const De=Ne?jU($,ov(R,$.typeParameters,ge,x)):TD($);De.typeParameters=n.localTypeParameters,De.resolvedReturnType=n,De.flags=p?De.flags|4:De.flags&-5,J.push(De)}}return J}function aie(n,a,l,u,p){for(const g of n)if(t4(g,a,l,u,p,l?gtt:OD))return g}function zQe(n,a,l){if(a.typeParameters){if(l>0)return;for(let p=1;p<n.length;p++)if(!aie(n[p],a,!1,!1,!1))return;return[a]}let u;for(let p=0;p<n.length;p++){const g=p===l?a:aie(n[p],a,!0,!1,!0);if(!g)return;u=sy(u,g)}return u}function oie(n){let a,l;for(let u=0;u<n.length;u++){if(n[u].length===0)return rt;n[u].length>1&&(l=l===void 0?u:-1);for(const p of n[u])if(!a||!aie(a,p,!1,!1,!0)){const g=zQe(n,p,u);if(g){let x=p;if(g.length>1){let R=p.thisParameter;const M=Ue(g,J=>J.thisParameter);if(M){const J=wo(ia(g,$=>$.thisParameter&&ar($.thisParameter)));R=BE(M,J)}x=xLe(p,g),x.thisParameter=R}(a||(a=[])).push(x)}}}if(!Ae(a)&&l!==-1){const u=n[l!==void 0?l:0];let p=u.slice();for(const g of n)if(g!==u){const x=g[0];if(D.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),p=x.typeParameters&&kt(p,R=>!!R.typeParameters&&!CLe(x.typeParameters,R.typeParameters))?void 0:Vt(p,R=>KQe(R,x)),!p)break}a=p}return a||rt}function CLe(n,a){if(Ae(n)!==Ae(a))return!1;if(!n||!a)return!0;const l=vd(a,n);for(let u=0;u<n.length;u++){const p=n[u],g=a[u];if(p!==g&&!Xh(RL(p)||he,Yi(RL(g)||he,l)))return!1}return!0}function qQe(n,a,l){if(!n||!a)return n||a;const u=wo([ar(n),Yi(ar(a),l)]);return BE(n,u)}function JQe(n,a,l){const u=ef(n),p=ef(a),g=u>=p?n:a,x=g===n?a:n,R=g===n?u:p,M=Sm(n)||Sm(a),J=M&&!Sm(g),$=new Array(R+(J?1:0));for(let ge=0;ge<R;ge++){let Ne=zE(g,ge);g===a&&(Ne=Yi(Ne,l));let De=zE(x,ge)||he;x===a&&(De=Yi(De,l));const _t=wo([Ne,De]),Bt=M&&!J&&ge===R-1,Mn=ge>=Tm(g)&&ge>=Tm(x),An=ge>=u?void 0:XL(n,ge),Kn=ge>=p?void 0:XL(a,ge),gn=An===Kn?An:An?Kn?void 0:An:Kn,xn=ts(1|(Mn&&!Bt?16777216:0),gn||`arg${ge}`);xn.links.type=Bt?Iu(_t):_t,$[ge]=xn}if(J){const ge=ts(1,"args");ge.links.type=Iu(_p(x,R)),x===a&&(ge.links.type=Yi(ge.links.type,l)),$[R]=ge}return $}function KQe(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=vd(a.typeParameters,n.typeParameters));const p=n.declaration,g=JQe(n,a,u),x=qQe(n.thisParameter,a.thisParameter,u),R=Math.max(n.minArgumentCount,a.minArgumentCount),M=oh(p,l,x,g,void 0,void 0,R,(n.flags|a.flags)&39);return M.compositeKind=1048576,M.compositeSignatures=ba(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u&&(M.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?w0(n.mapper,u):u),M}function LLe(n){const a=Lu(n[0]);if(a){const l=[];for(const u of a){const p=u.keyType;Yn(n,g=>!!sh(g,p))&&l.push(ym(p,Qr(Vt(n,g=>Xg(g,p))),kt(n,g=>sh(g,p).isReadonly)))}return l}return rt}function XQe(n){const a=oie(Vt(n.types,p=>p===dl?[rn]:za(p,0))),l=oie(Vt(n.types,p=>za(p,1))),u=LLe(n.types);Ff(n,te,a,l,u)}function OP(n,a){return n?a?wo([n,a]):n:a}function ILe(n){const a=Gc(n,u=>za(u,1).length>0),l=Vt(n,DP);if(a>0&&a===Gc(l,u=>u)){const u=l.indexOf(!0);l[u]=!1}return l}function YQe(n,a,l,u){const p=[];for(let g=0;g<a.length;g++)g===u?p.push(n):l[g]&&p.push(ys(za(a[g],1)[0]));return wo(p)}function $Qe(n){let a,l,u;const p=n.types,g=ILe(p),x=Gc(g,R=>R);for(let R=0;R<p.length;R++){const M=n.types[R];if(!g[R]){let J=za(M,1);J.length&&x>0&&(J=Vt(J,$=>{const ge=TD($);return ge.resolvedReturnType=YQe(ys($),p,g,R),ge})),l=kLe(l,J)}a=kLe(a,za(M,0)),u=Nu(Lu(M),(J,$)=>wLe(J,$,!1),u)}Ff(n,te,a||rt,l||rt,u||rt)}function kLe(n,a){for(const l of a)(!n||Yn(n,u=>!t4(u,l,!1,!1,!1,OD)))&&(n=Fn(n,l));return n}function wLe(n,a,l){if(n)for(let u=0;u<n.length;u++){const p=n[u];if(p.keyType===a.keyType)return n[u]=ym(p.keyType,l?Qr([p.type,a.type]):wo([p.type,a.type]),l?p.isReadonly||a.isReadonly:p.isReadonly&&a.isReadonly),n}return Fn(n,a)}function QQe(n){if(n.target){Ff(n,te,rt,rt,rt);const x=vLe(iv(n.target),n.mapper,!1),R=iV(za(n.target,0),n.mapper),M=iV(za(n.target,1),n.mapper),J=WIe(Lu(n.target),n.mapper);Ff(n,x,R,M,J);return}const a=as(n.symbol);if(a.flags&2048){Ff(n,te,rt,rt,rt);const x=nv(a),R=Gb(x.get("__call")),M=Gb(x.get("__new")),J=WLe(a);Ff(n,x,R,M,J);return}let l=te,u;if(a.exports&&(l=mf(a),a===st)){const x=new Map;l.forEach(R=>{var M;!(R.flags&418)&&!(R.flags&512&&((M=R.declarations)!=null&&M.length)&&Yn(R.declarations,Mu))&&x.set(R.escapedName,R)}),l=x}let p;if(Ff(n,l,rt,rt,rt),a.flags&32){const x=qu(a),R=ii(x);R.flags&11272192?(l=so(G2(l)),bLe(l,hs(R))):R===we&&(p=ym(ue,we,!1))}const g=Lie(l);if(g?u=Iie(g):(p&&(u=Fn(u,p)),a.flags&384&&(Us(a).flags&32||kt(n.properties,x=>!!(ar(x).flags&296)))&&(u=Fn(u,zu))),Ff(n,l,rt,rt,u||rt),a.flags&8208&&(n.callSignatures=Gb(a)),a.flags&32){const x=qu(a);let R=a.members?Gb(a.members.get("__constructor")):rt;a.flags&16&&(R=Ti(R.slice(),ia(n.callSignatures,M=>Vp(M.declaration)?oh(M.declaration,M.typeParameters,M.thisParameter,M.parameters,x,void 0,M.minArgumentCount,M.flags&39):void 0))),R.length||(R=WQe(x)),n.constructSignatures=R}}function ZQe(n,a,l){return Yi(n,vd([a.indexType,a.objectType],[Gp(0),Bp([l])]))}function eZe(n){const a=sh(n.source,ue),l=hm(n.mappedType),u=!(l&1),p=l&4?0:16777216,g=a?[ym(ue,xV(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:rt,x=so();for(const R of hs(n.source)){const M=8192|(u&&pp(R)?8:0),J=ts(4|R.flags&p,R.escapedName,M);if(J.declarations=R.declarations,J.links.nameType=Wi(R).nameType,J.links.propertyType=ar(R),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const $=n.constraintType.type.objectType,ge=ZQe(n.mappedType,n.constraintType.type,$);J.links.mappedType=ge,J.links.constraintType=vm($)}else J.links.mappedType=n.mappedType,J.links.constraintType=n.constraintType;x.set(R.escapedName,J)}Ff(n,x,rt,rt,g)}function PP(n){if(n.flags&4194304){const a=Ku(n.type);return aA(a)?hIe(a):vm(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,l=PP(a);if(l!==a)return aae(n,LS(n.root.checkType,l,n.mapper))}return n}if(n.flags&1048576)return $s(n,PP,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===Ul?n:wo(pa(n.types,PP))}return n}function sie(n){return Il(n)&4096}function lie(n,a,l,u){for(const p of hs(n))u(OL(p,a));if(n.flags&1)u(ue);else for(const p of Lu(n))(!l||p.keyType.flags&134217732)&&u(p.keyType)}function tZe(n){const a=so();let l;Ff(n,te,rt,rt,rt);const u=cp(n),p=Mp(n),g=rv(n.target||n),x=g&&xo(g,u),R=Kh(n.target||n),M=Ku(wL(n)),J=hm(n),$=je?128:8576;SD(n)?lie(M,$,je,ge):jE(PP(p),ge),Ff(n,a,rt,rt,l||rt);function ge(De){const _t=g?Yi(g,ND(n.mapper,u,De)):De;jE(_t,Bt=>Ne(De,Bt))}function Ne(De,_t){if(Jh(_t)){const Bt=mm(_t),Mn=a.get(Bt);if(Mn)Mn.links.nameType=Qr([Mn.links.nameType,_t]),Mn.links.keyType=Qr([Mn.links.keyType,De]);else{const An=Jh(De)?co(M,mm(De)):void 0,Kn=!!(J&4||!(J&8)&&An&&An.flags&16777216),gn=!!(J&1||!(J&2)&&An&&pp(An)),xn=W&&!Kn&&An&&An.flags&16777216,yr=An?sie(An):0,ln=ts(4|(Kn?16777216:0),Bt,yr|262144|(gn?8:0)|(xn?524288:0));ln.links.mappedType=n,ln.links.nameType=_t,ln.links.keyType=De,An&&(ln.links.syntheticOrigin=An,ln.declarations=!g||x?An.declarations:void 0),a.set(Bt,ln)}}else if(HU(_t)||_t.flags&33){const Bt=_t.flags&5?ue:_t.flags&40?mt:_t,Mn=Yi(R,ND(n.mapper,u,De)),An=ym(Bt,Mn,!!(J&1));l=wLe(l,An,!0)}}}function nZe(n){if(!n.links.type){const a=n.links.mappedType;if(!Bf(n,0))return a.containsError=!0,Ce;const l=Kh(a.target||a),u=ND(a.mapper,cp(a),n.links.keyType),p=Yi(l,u);let g=W&&n.flags&16777216&&!pl(p,49152)?ey(p,!0):n.links.checkFlags&524288?Sae(p):p;i_()||(Ke(G,_.Type_of_property_0_circularly_references_itself_in_mapped_type_1,S(n),ke(a)),g=Ce),n.links.type=g}return n.links.type}function cp(n){return n.typeParameter||(n.typeParameter=wE(Ir(n.declaration.typeParameter)))}function Mp(n){return n.constraintType||(n.constraintType=Cu(cp(n))||Ce)}function rv(n){return n.declaration.nameType?n.nameType||(n.nameType=Yi(fi(n.declaration.nameType),n.mapper)):void 0}function Kh(n){return n.templateType||(n.templateType=n.declaration.type?Yi(Io(fi(n.declaration.type),!0,!!(hm(n)&4)),n.mapper):Ce)}function DLe(n){return NA(n.declaration.typeParameter)}function SD(n){const a=DLe(n);return a.kind===195&&a.operator===141}function wL(n){if(!n.modifiersType)if(SD(n))n.modifiersType=Yi(fi(DLe(n).type),n.mapper);else{const a=Kie(n.declaration),l=Mp(a),u=l&&l.flags&262144?Cu(l):l;n.modifiersType=u&&u.flags&4194304?Yi(u.type,n.mapper):he}return n.modifiersType}function hm(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function RLe(n){const a=hm(n);return a&8?-1:a&4?1:0}function cie(n){const a=RLe(n),l=wL(n);return a||(Vf(l)?RLe(l):0)}function rZe(n){return!!(ti(n)&32&&hm(n)&4)}function Vf(n){if(ti(n)&32){const a=Mp(n);if(C0(a))return!0;const l=rv(n);if(l&&C0(Yi(l,qb(cp(n),a))))return!0}return!1}function up(n){return n.members||(n.flags&524288?n.objectFlags&4?VQe(n):n.objectFlags&3?UQe(n):n.objectFlags&1024?eZe(n):n.objectFlags&16?QQe(n):n.objectFlags&32?tZe(n):D.fail("Unhandled object type "+D.formatObjectFlags(n.objectFlags)):n.flags&1048576?XQe(n):n.flags&2097152?$Qe(n):D.fail("Unhandled type "+D.formatTypeFlags(n.flags))),n}function iv(n){return n.flags&524288?up(n).properties:rt}function Bb(n,a){if(n.flags&524288){const u=up(n).members.get(a);if(u&&Vg(u))return u}}function MP(n){if(!n.resolvedProperties){const a=so();for(const l of n.types){for(const u of hs(l))if(!a.has(u.escapedName)){const p=hie(n,u.escapedName);p&&a.set(u.escapedName,p)}if(n.flags&1048576&&Lu(l).length===0)break}n.resolvedProperties=Jy(a)}return n.resolvedProperties}function hs(n){return n=DL(n),n.flags&3145728?MP(n):iv(n)}function iZe(n,a){n=DL(n),n.flags&3670016&&up(n).members.forEach((l,u)=>{jg(l,u)&&a(l,u)})}function aZe(n,a){return a.properties.some(u=>{const p=u.name&&$g(u.name),g=p&&Jh(p)?mm(p):void 0,x=g===void 0?void 0:fc(n,g);return!!x&&FD(x)&&!xo(RS(u),x)})}function oZe(n){const a=Qr(n);if(!(a.flags&1048576))return fse(a);const l=so();for(const u of n)for(const{escapedName:p}of fse(u))if(!l.has(p)){const g=MLe(a,p);g&&l.set(p,g)}return Ro(l.values())}function DE(n){return n.flags&262144?Cu(n):n.flags&8388608?sZe(n):n.flags&16777216?cZe(n):Ju(n)}function Cu(n){return xD(n)?RL(n):void 0}function FP(n){var a;return!!(n.flags&262144&&kt((a=n.symbol)==null?void 0:a.declarations,l=>Yr(l,2048))||aA(n)&&mi(gs(n),(l,u)=>!!(n.target.elementFlags[u]&8)&&FP(l))>=0||n.flags&8388608&&FP(n.objectType))}function sZe(n){return xD(n)?lZe(n):void 0}function uie(n){const a=Qg(n,!1);return a!==n?a:DE(n)}function lZe(n){if(pie(n))return QU(n.objectType,n.indexType);const a=uie(n.indexType);if(a&&a!==n.indexType){const u=lv(n.objectType,a,n.accessFlags);if(u)return u}const l=uie(n.objectType);if(l&&l!==n.objectType)return lv(l,n.indexType,n.accessFlags)}function die(n){if(!n.resolvedDefaultConstraint){const a=zet(n),l=I0(n);n.resolvedDefaultConstraint=Ss(a)?l:Ss(l)?a:Qr([a,l])}return n.resolvedDefaultConstraint}function NLe(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=Qg(n.checkType,!1),l=a===n.checkType?DE(a):a;if(l&&l!==n.checkType){const u=aae(n,LS(n.root.checkType,l,n.mapper));if(!(u.flags&131072))return u}}}function OLe(n){return NLe(n)||die(n)}function cZe(n){return xD(n)?OLe(n):void 0}function uZe(n,a){let l,u=!1;for(const p of n)if(p.flags&465829888){let g=DE(p);for(;g&&g.flags&21233664;)g=DE(g);g&&(l=Fn(l,g),a&&(l=Fn(l,p)))}else(p.flags&469892092||$h(p))&&(u=!0);if(l&&(a||u)){if(u)for(const p of n)(p.flags&469892092||$h(p))&&(l=Fn(l,p));return $P(wo(l),!1)}}function Ju(n){if(n.flags&464781312){const a=fie(n);return a!==Xo&&a!==jl?a:void 0}return n.flags&4194304?ji:void 0}function av(n){return Ju(n)||n}function xD(n){return fie(n)!==jl}function fie(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=Uf(l(n),n);function l(g){if(!g.immediateBaseConstraint){if(!Bf(g,4))return jl;let x;const R=FL(g);if((a.length<10||a.length<50&&!jr(a,R))&&(a.push(R),x=p(Qg(g,!1)),a.pop()),!i_()){if(g.flags&262144){const M=kie(g);if(M){const J=Ke(M,_.Type_parameter_0_has_a_circular_constraint,ke(g));G&&!vT(M,G)&&!vT(G,M)&&Ko(J,Nr(G,_.Circularity_originates_in_type_at_this_location))}}x=jl}g.immediateBaseConstraint=x||Xo}return g.immediateBaseConstraint}function u(g){const x=l(g);return x!==Xo&&x!==jl?x:void 0}function p(g){if(g.flags&262144){const x=RL(g);return g.isThisType||!x?x:u(x)}if(g.flags&3145728){const x=g.types,R=[];let M=!1;for(const J of x){const $=u(J);$?($!==J&&(M=!0),R.push($)):M=!0}return M?g.flags&1048576&&R.length===x.length?Qr(R):g.flags&2097152&&R.length?wo(R):void 0:g}if(g.flags&4194304)return ji;if(g.flags&134217728){const x=g.types,R=ia(x,u);return R.length===x.length?OE(g.texts,R):ue}if(g.flags&268435456){const x=u(g.type);return x&&x!==g.type?AS(g.symbol,x):ue}if(g.flags&8388608){if(pie(g))return u(QU(g.objectType,g.indexType));const x=u(g.objectType),R=u(g.indexType),M=x&&R&&lv(x,R,g.accessFlags);return M&&u(M)}if(g.flags&16777216){const x=OLe(g);return x&&u(x)}return g.flags&33554432?u(Rie(g)):g}}function dZe(n){return n.resolvedApparentType||(n.resolvedApparentType=Uf(n,n,!0))}function _ie(n){if(n.default)n.default===tu&&(n.default=jl);else if(n.target){const a=_ie(n.target);n.default=a?Yi(a,n.mapper):Xo}else{n.default=tu;const a=n.symbol&&Ue(n.symbol.declarations,u=>Bl(u)&&u.default),l=a?fi(a):Xo;n.default===tu&&(n.default=l)}return n.default}function RE(n){const a=_ie(n);return a!==Xo&&a!==jl?a:void 0}function fZe(n){return _ie(n)!==jl}function PLe(n){return!!(n.symbol&&Ue(n.symbol.declarations,a=>Bl(a)&&a.default))}function _Ze(n){return n.resolvedApparentType||(n.resolvedApparentType=pZe(n))}function pZe(n){const a=nae(n);if(a&&!n.declaration.nameType){const l=Cu(a);if(l&&ME(l))return Yi(n,LS(a,l,n.mapper))}return n}function pie(n){let a;return!!(n.flags&8388608&&ti(a=n.objectType)&32&&!Vf(a)&&C0(n.indexType)&&!(hm(a)&8)&&!a.declaration.nameType)}function Ku(n){const a=n.flags&465829888?Ju(n)||he:n;return ti(a)&32?_Ze(a):a.flags&2097152?dZe(a):a.flags&402653316?fl:a.flags&296?qd:a.flags&2112?KZe():a.flags&528?Wl:a.flags&12288?sIe():a.flags&67108864?fa:a.flags&4194304?ji:a.flags&2&&!W?fa:a}function DL(n){return dp(Ku(dp(n)))}function MLe(n,a,l){var u,p,g;let x,R,M;const J=n.flags&1048576;let $,ge=4,Ne=J?0:8,De=!1;for(const Gn of n.types){const qn=Ku(Gn);if(!(ns(qn)||qn.flags&131072)){const Zr=co(qn,a,l),ri=Zr?Qf(Zr):0;if(Zr){if(Zr.flags&106500&&($??($=J?0:16777216),J?$|=Zr.flags&16777216:$&=Zr.flags),!x)x=Zr;else if(Zr!==x)if((_A(Zr)||Zr)===(_A(x)||x)&&hae(x,Zr,(Qa,Ec)=>Qa===Ec?-1:0)===-1)De=!!x.parent&&!!Ae(tv(x.parent));else{R||(R=new Map,R.set(bo(x),x));const Qa=bo(Zr);R.has(Qa)||R.set(Qa,Zr)}J&&pp(Zr)?Ne|=8:!J&&!pp(Zr)&&(Ne&=-9),Ne|=(ri&24?0:256)|(ri&16?512:0)|(ri&8?1024:0)|(ri&32?2048:0),uoe(Zr)||(ge=2)}else if(J){const _a=!ED(a)&&X2(qn,a);_a?(Ne|=32|(_a.isReadonly?8:0),M=Fn(M,Mo(qn)?n4(qn)||We:_a.type)):N0(qn)&&!(ti(qn)&2097152)?(Ne|=32,M=Fn(M,We)):Ne|=16}}}if(!x||J&&(R||Ne&48)&&Ne&1536&&!(R&&mZe(R.values())))return;if(!R&&!(Ne&16)&&!M)if(De){const Gn=(u=ai(x,Om))==null?void 0:u.links,qn=BE(x,Gn==null?void 0:Gn.type);return qn.parent=(g=(p=x.valueDeclaration)==null?void 0:p.symbol)==null?void 0:g.parent,qn.links.containingType=n,qn.links.mapper=Gn==null?void 0:Gn.mapper,qn}else return x;const _t=R?Ro(R.values()):[x];let Bt,Mn,An;const Kn=[];let gn,xn,yr=!1;for(const Gn of _t){xn?Gn.valueDeclaration&&Gn.valueDeclaration!==xn&&(yr=!0):xn=Gn.valueDeclaration,Bt=Ti(Bt,Gn.declarations);const qn=ar(Gn);Mn||(Mn=qn,An=Wi(Gn).nameType);const Zr=LL(Gn);gn||Zr!==qn?gn=Fn(gn||Kn.slice(),Zr):qn!==Mn&&(Ne|=64),(FD(qn)||tA(qn)||qn===Xr)&&(Ne|=128),qn.flags&131072&&qn!==Xr&&(Ne|=131072),Kn.push(qn)}Ti(Kn,M);const ln=ts(4|($??0),a,ge|Ne);return ln.links.containingType=n,!yr&&xn&&(ln.valueDeclaration=xn,xn.symbol.parent&&(ln.parent=xn.symbol.parent)),ln.declarations=Bt,ln.links.nameType=An,Kn.length>2?(ln.links.checkFlags|=65536,ln.links.deferralParent=n,ln.links.deferralConstituents=Kn,ln.links.deferralWriteConstituents=gn):(ln.links.type=J?Qr(Kn):wo(Kn),gn&&(ln.links.writeType=J?Qr(gn):wo(gn))),ln}function mie(n,a,l){var u,p;let g=(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!l?(p=n.propertyCache)==null?void 0:p.get(a):void 0;return g||(g=MLe(n,a,l),g&&(l?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=so()):n.propertyCache||(n.propertyCache=so())).set(a,g)),g}function mZe(n){let a;for(const l of n){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(u=>{jr(l.declarations,u)||a.delete(u)}),a.size===0)return}return a}function hie(n,a,l){const u=mie(n,a,l);return u&&!(Il(u)&16)?u:void 0}function dp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=hZe(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(kt(MP(n),gZe)?33554432:0)),n.objectFlags&33554432?gt:n):n}function hZe(n){const a=pa(n.types,dp);if(a===n.types)return n;const l=Qr(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function gZe(n){return FLe(n)||BLe(n)}function FLe(n){return!(n.flags&16777216)&&(Il(n)&131264)===192&&!!(ar(n).flags&131072)}function BLe(n){return!n.valueDeclaration&&!!(Il(n)&1024)}function gie(n,a){if(a.flags&2097152&&ti(a)&33554432){const l=nn(MP(a),FLe);if(l)return Na(n,_.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ke(a,void 0,536870912),S(l));const u=nn(MP(a),BLe);if(u)return Na(n,_.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ke(a,void 0,536870912),S(u))}return n}function co(n,a,l,u){if(n=DL(n),n.flags&524288){const p=up(n),g=p.members.get(a);if(g&&Vg(g,u))return g;if(l)return;const x=p===La?dl:p.callSignatures.length?dc:p.constructSignatures.length?_d:void 0;if(x){const R=Bb(x,a);if(R)return R}return Bb(Ya,a)}if(n.flags&3145728)return hie(n,a,l)}function BP(n,a){if(n.flags&3670016){const l=up(n);return a===0?l.callSignatures:l.constructSignatures}return rt}function za(n,a){return BP(DL(n),a)}function yie(n,a){return nn(n,l=>l.keyType===a)}function vie(n,a){let l,u,p;for(const g of n)g.keyType===ue?l=g:K2(a,g.keyType)&&(u?(p||(p=[u])).push(g):u=g);return p?ym(he,wo(Vt(p,g=>g.type)),Nu(p,(g,x)=>g&&x.isReadonly,!0)):u||(l&&K2(a,ue)?l:void 0)}function K2(n,a){return xo(n,a)||a===ue&&xo(n,mt)||a===mt&&(n===io||!!(n.flags&128)&&Ah(n.value))}function bie(n){return n.flags&3670016?up(n).indexInfos:rt}function Lu(n){return bie(DL(n))}function sh(n,a){return yie(Lu(n),a)}function Xg(n,a){var l;return(l=sh(n,a))==null?void 0:l.type}function Eie(n,a){return Lu(n).filter(l=>K2(a,l.keyType))}function GP(n,a){return vie(Lu(n),a)}function X2(n,a){return GP(n,ED(a)?q:jf(ta(a)))}function GLe(n){var a;let l;for(const u of Cv(n))l=sy(l,wE(u.symbol));return l!=null&&l.length?l:yc(n)?(a=CD(n))==null?void 0:a.typeParameters:void 0}function Tie(n){const a=[];return n.forEach((l,u)=>{yE(u)||a.push(l)}),a}function Sie(n,a){if(Uc(n))return;const l=Kd(ze,'"'+n+'"',512);return l&&a?as(l):l}function AD(n){if(gx(n)||LO(n)||IO(n))return!0;if(n.initializer){const l=Fp(n.parent),u=n.parent.parameters.indexOf(n);return D.assert(u>=0),u>=Tm(l,3)}const a=mT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function yZe(n){return to(n)&&!Bm(n)&&n.questionToken}function UP(n,a,l,u){return{kind:n,parameterName:a,parameterIndex:l,type:u}}function gm(n){let a=0;if(n)for(let l=0;l<n.length;l++)PLe(n[l])||(a=l+1);return a}function ov(n,a,l,u){const p=Ae(a);if(!p)return[];const g=Ae(n);if(u||g>=l&&g<=p){const x=n?n.slice():[];for(let M=g;M<p;M++)x[M]=Ce;const R=Bae(u);for(let M=g;M<p;M++){let J=RE(a[M]);u&&J&&(Xh(J,he)||Xh(J,fa))&&(J=we),x[M]=J?Yi(J,vd(a,x)):R}return x.length=a.length,x}return n&&n.slice()}function Fp(n){const a=Jr(n);if(!a.resolvedSignature){const l=[];let u=0,p=0,g,x=!1;const R=mT(n),M=eC(n);!R&&fr(n)&&Sfe(n)&&!Xue(n)&&!Av(n)&&(u|=32);for(let Ne=M?1:0;Ne<n.parameters.length;Ne++){const De=n.parameters[Ne];let _t=De.symbol;const Bt=am(De)?De.typeExpression&&De.typeExpression.type:De.type;_t&&_t.flags&4&&!Xa(De.name)&&(_t=_l(De,_t.escapedName,111551,void 0,void 0,!1)),Ne===0&&_t.escapedName==="this"?(x=!0,g=De.symbol):l.push(_t),Bt&&Bt.kind===198&&(u|=2),LO(De)||De.initializer||De.questionToken||yh(De)||R&&l.length>R.arguments.length&&!Bt||IO(De)||(p=l.length)}if((n.kind===174||n.kind===175)&&J2(n)&&(!x||!g)){const Ne=n.kind===174?175:174,De=Al(Ir(n),Ne);De&&(g=Je(De))}if(fr(n)){const Ne=YM(n);Ne&&Ne.typeExpression&&(g=BE(ts(1,"this"),fi(Ne.typeExpression)))}const $=n.kind===173?qu(as(n.parent.symbol)):void 0,ge=$?$.localTypeParameters:GLe(n);(yz(n)||fr(n)&&vZe(n,l))&&(u|=1),(zk(n)&&Yr(n,256)||ql(n)&&Yr(n.parent,256))&&(u|=4),a.resolvedSignature=oh(n,ge,g,l,void 0,void 0,p,u)}return a.resolvedSignature}function vZe(n,a){if(G1(n)||!xie(n))return!1;const l=tl(n.parameters),u=l?GI(l):m1(n).filter(am),p=Kt(u,x=>x.typeExpression&&f5(x.typeExpression.type)?x.typeExpression.type:void 0),g=ts(3,"args",32768);return p?g.links.type=Iu(fi(p.type)):(g.links.checkFlags|=65536,g.links.deferralParent=gt,g.links.deferralConstituents=[Dt],g.links.deferralWriteConstituents=[Dt]),p&&a.pop(),a.push(g),!0}function CD(n){if(!(fr(n)&&Qs(n)))return;const a=p1(n);return(a==null?void 0:a.typeExpression)&&DS(fi(a.typeExpression))}function bZe(n,a){const l=CD(n);if(!l)return;const u=n.parameters.indexOf(a);return a.dotDotDotToken?YD(l,u):_p(l,u)}function EZe(n){const a=CD(n);return a&&ys(a)}function xie(n){const a=Jr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(n.body)),a.containsArgumentsReference;function l(u){if(!u)return!1;switch(u.kind){case 79:return u.escapedText===Ct.escapedName&&U4(u)===Ct;case 169:case 171:case 174:case 175:return u.name.kind===164&&l(u.name);case 208:case 209:return l(u.expression);case 299:return l(u.initializer);default:return!dq(u)&&!vh(u)&&!!Ma(u,l)}}}function Gb(n){if(!n||!n.declarations)return rt;const a=[];for(let l=0;l<n.declarations.length;l++){const u=n.declarations[l];if(Ka(u)){if(l>0&&u.body){const p=n.declarations[l-1];if(u.parent===p.parent&&u.kind===p.kind&&u.pos===p.end)continue}if(fr(u)&&u.jsDoc){let p=!1;for(const g of u.jsDoc)if(g.tags){for(const x of g.tags)if(nw(x)){const R=x.typeExpression;R.type===void 0&&!ql(u)&&R0(R,we),a.push(Fp(R)),p=!0}}if(p)continue}a.push(!gC(u)&&!G_(u)&&CD(u)||Fp(u))}}return a}function ULe(n){const a=du(n,n);if(a){const l=hd(a);if(l)return ar(l)}return we}function Ub(n){if(n.thisParameter)return ar(n.thisParameter)}function a_(n){if(!n.resolvedTypePredicate){if(n.target){const a=a_(n.target);n.resolvedTypePredicate=a?ott(a,n.mapper):el}else if(n.compositeSignatures)n.resolvedTypePredicate=get(n.compositeSignatures,n.compositeKind)||el;else{const a=n.declaration&&vp(n.declaration);let l;if(!a){const u=CD(n.declaration);u&&n!==u&&(l=a_(u))}n.resolvedTypePredicate=a&&a5(a)?TZe(a,n):l||el}D.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===el?void 0:n.resolvedTypePredicate}function TZe(n,a){const l=n.parameterName,u=n.type&&fi(n.type);return l.kind===194?UP(n.assertsModifier?2:0,void 0,void 0,u):UP(n.assertsModifier?3:1,l.escapedText,mi(a.parameters,p=>p.escapedName===l.escapedText),u)}function VLe(n,a,l){return a!==2097152?Qr(n,l):wo(n)}function ys(n){if(!n.resolvedReturnType){if(!Bf(n,3))return Ce;let a=n.target?Yi(ys(n.target),n.mapper):n.compositeSignatures?Yi(VLe(Vt(n.compositeSignatures,ys),n.compositeKind,2),n.mapper):Y2(n.declaration)||(Cl(n.declaration.body)?we:ZV(n.declaration));if(n.flags&8?a=vke(a):n.flags&16&&(a=ey(a)),!i_()){if(n.declaration){const l=vp(n.declaration);if(l)Ke(l,_.Return_type_annotation_circularly_references_itself);else if(Se){const u=n.declaration,p=ka(u);p?Ke(p,_._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(p)):Ke(u,_.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=we}n.resolvedReturnType=a}return n.resolvedReturnType}function Y2(n){if(n.kind===173)return qu(as(n.parent.symbol));if(G1(n)){const l=ok(n);if(l&&ql(l.parent))return qu(as(l.parent.parent.symbol))}if(eC(n))return fi(n.parameters[0].type);const a=vp(n);if(a)return fi(a);if(n.kind===174&&J2(n)){const l=fr(n)&&ki(n);if(l)return l;const u=Al(Ir(n),175),p=se(u);if(p)return p}return EZe(n)}function Aie(n){return!n.resolvedReturnType&&ih(n,3)>=0}function SZe(n){return jLe(n)||we}function jLe(n){if(Eu(n)){const a=ar(n.parameters[n.parameters.length-1]),l=Mo(a)?n4(a):a;return l&&Xg(l,mt)}}function LD(n,a,l,u){const p=Cie(n,ov(a,n.typeParameters,gm(n.typeParameters),l));if(u){const g=Ywe(ys(p));if(g){const x=TD(g);x.typeParameters=u;const R=TD(p);return R.resolvedReturnType=NE(x),R}}return p}function Cie(n,a){const l=n.instantiations||(n.instantiations=new Map),u=o_(a);let p=l.get(u);return p||l.set(u,p=jU(n,a)),p}function jU(n,a){return iA(n,xZe(n,a),!0)}function xZe(n,a){return vd(n.typeParameters,a)}function ID(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=AZe(n)):n}function AZe(n){return iA(n,zIe(n.typeParameters),!0)}function CZe(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=LZe(n)):n}function LZe(n){return LD(n,Vt(n.typeParameters,a=>a.target&&!Cu(a.target)?a.target:a),fr(n.declaration))}function IZe(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const l=zIe(a),u=vd(a,Vt(a,g=>Cu(g)||he));let p=Vt(a,g=>Yi(g,u)||he);for(let g=0;g<a.length-1;g++)p=Zg(p,u);return p=Zg(p,l),n.baseSignatureCache=iA(n,vd(a,p),!0)}return n}function NE(n){var a;if(!n.isolatedSignatureType){const l=(a=n.declaration)==null?void 0:a.kind,u=l===void 0||l===173||l===177||l===182,p=hf(16);p.members=te,p.properties=rt,p.callSignatures=u?rt:[n],p.constructSignatures=u?[n]:rt,p.indexInfos=rt,n.isolatedSignatureType=p}return n.isolatedSignatureType}function HLe(n){return n.members?Lie(n.members):void 0}function Lie(n){return n.get("__index")}function ym(n,a,l,u){return{keyType:n,type:a,isReadonly:l,declaration:u}}function WLe(n){const a=HLe(n);return a?Iie(a):rt}function Iie(n){if(n.declarations){const a=[];for(const l of n.declarations)if(l.parameters.length===1){const u=l.parameters[0];u.type&&jE(fi(u.type),p=>{HU(p)&&!yie(a,p)&&a.push(ym(p,l.type?fi(l.type):we,Bd(l,64),l))})}return a}return rt}function HU(n){return!!(n.flags&4108)||tA(n)||!!(n.flags&2097152)&&!PL(n)&&kt(n.types,HU)}function kie(n){return ia(lr(n.symbol&&n.symbol.declarations,Bl),NA)[0]}function zLe(n,a){var l;let u;if((l=n.symbol)!=null&&l.declarations){for(const p of n.symbol.declarations)if(p.parent.kind===192){const[g=p.parent,x]=Afe(p.parent.parent);if(x.kind===180&&!a){const R=x,M=qoe(R);if(M){const J=R.typeArguments.indexOf(g);if(J<M.length){const $=Cu(M[J]);if($){const ge=eae(M,M.map((De,_t)=>()=>Bot(R,M,_t))),Ne=Yi($,ge);Ne!==n&&(u=Fn(u,Ne))}}}}else if(x.kind===166&&x.dotDotDotToken||x.kind===188||x.kind===199&&x.dotDotDotToken)u=Fn(u,Iu(he));else if(x.kind===201)u=Fn(u,ue);else if(x.kind===165&&x.parent.kind===197)u=Fn(u,ji);else if(x.kind===197&&x.type&&js(x.type)===p.parent&&x.parent.kind===191&&x.parent.extendsType===x&&x.parent.checkType.kind===197&&x.parent.checkType.type){const R=x.parent.checkType,M=fi(R.type);u=Fn(u,Yi(M,qb(wE(Ir(R.typeParameter)),R.typeParameter.constraint?fi(R.typeParameter.constraint):ji)))}}}return u&&wo(u)}function RL(n){if(!n.constraint)if(n.target){const a=Cu(n.target);n.constraint=a?Yi(a,n.mapper):Xo}else{const a=kie(n);if(!a)n.constraint=zLe(n)||Xo;else{let l=fi(a);l.flags&1&&!ns(l)&&(l=a.parent.parent.kind===197?ji:he),n.constraint=l}}return n.constraint===Xo?void 0:n.constraint}function qLe(n){const a=Al(n.symbol,165),l=Tp(a.parent)?j3(a.parent):a.parent;return l&&Xd(l)}function o_(n){let a="";if(n){const l=n.length;let u=0;for(;u<l;){const p=n[u].id;let g=1;for(;u+g<l&&n[u+g].id===p+g;)g++;a.length&&(a+=","),a+=p,g>1&&(a+=":"+g),u+=g}}return a}function $2(n,a){return n?`@${bo(n)}`+(a?`:${o_(a)}`:""):""}function WU(n,a){let l=0;for(const u of n)(a===void 0||!(u.flags&a))&&(l|=ti(u));return l&458752}function Q2(n,a){return kt(a)&&n===Co?he:Yg(n,a)}function Yg(n,a){const l=o_(a);let u=n.instantiations.get(l);return u||(u=hf(4,n.symbol),n.instantiations.set(l,u),u.objectFlags|=a?WU(a):0,u.target=n,u.resolvedTypeArguments=a),u}function JLe(n){const a=_m(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function wie(n,a,l,u,p){if(!u){u=CS(a);const x=nA(u);p=l?Zg(x,l):x}const g=hf(4,n.symbol);return g.target=n,g.node=a,g.mapper=l,g.aliasSymbol=u,g.aliasTypeArguments=p,g}function gs(n){var a,l;if(!n.resolvedTypeArguments){if(!Bf(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>Ce))||rt;const u=n.node,p=u?u.kind===180?ba(n.target.outerTypeParameters,nj(u,n.target.localTypeParameters)):u.kind===185?[fi(u.elementType)]:Vt(u.elements,fi):rt;i_()?n.resolvedTypeArguments=n.mapper?Zg(p,n.mapper):p:(n.resolvedTypeArguments=((l=n.target.localTypeParameters)==null?void 0:l.map(()=>Ce))||rt,Ke(n.node||G,n.target.symbol?_.Type_arguments_for_0_circularly_reference_themselves:_.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&S(n.target.symbol)))}return n.resolvedTypeArguments}function A0(n){return Ae(n.target.typeParameters)}function KLe(n,a){const l=Us(as(a)),u=l.localTypeParameters;if(u){const p=Ae(n.typeArguments),g=gm(u),x=fr(n);if(!(!Se&&x)&&(p<g||p>u.length)){const J=x&&xy(n)&&!MC(n.parent),$=g===u.length?J?_.Expected_0_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_1_type_argument_s:J?_.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_between_1_and_2_type_arguments,ge=ke(l,void 0,2);if(Ke(n,$,ge,g,u.length),!x)return Ce}if(n.kind===180&&_Ie(n,Ae(n.typeArguments)!==u.length))return wie(l,n,void 0);const M=ba(l.outerTypeParameters,ov(VP(n),u,g,x));return Yg(l,M)}return Vb(n,a)?l:Ce}function Z2(n,a,l,u){const p=Us(n);if(p===ie&&G8.has(n.escapedName)&&a&&a.length===1)return AS(n,a[0]);const g=Wi(n),x=g.typeParameters,R=o_(a)+$2(l,u);let M=g.instantiations.get(R);return M||g.instantiations.set(R,M=KIe(p,vd(x,ov(a,x,gm(x),fr(n.valueDeclaration))),l,u)),M}function kZe(n,a){if(Il(a)&1048576){const p=VP(n),g=$2(a,p);let x=Hr.get(g);return x||(x=$l(1,"error"),x.aliasSymbol=a,x.aliasTypeArguments=p,Hr.set(g,x)),x}const l=Us(a),u=Wi(a).typeParameters;if(u){const p=Ae(n.typeArguments),g=gm(u);if(p<g||p>u.length)return Ke(n,g===u.length?_.Generic_type_0_requires_1_type_argument_s:_.Generic_type_0_requires_between_1_and_2_type_arguments,S(a),g,u.length),Ce;const x=CS(n);let R=x&&(XLe(a)||!XLe(x))?x:void 0,M;if(R)M=nA(R);else if(c3(n)){const J=eA(n,2097152,!0);if(J&&J!==an){const $=nc(J);$&&$.flags&524288&&(R=$,M=VP(n)||(u?[]:void 0))}}return Z2(a,VP(n),R,M)}return Vb(n,a)?l:Ce}function XLe(n){var a;const l=(a=n.declarations)==null?void 0:a.find(HN);return!!(l&&Cf(l))}function wZe(n){switch(n.kind){case 180:return n.typeName;case 230:const a=n.expression;if(zl(a))return a}}function YLe(n){return n.parent?`${YLe(n.parent)}.${n.escapedName}`:n.escapedName}function zU(n){const l=(n.kind===163?n.right:n.kind===208?n.name:n).escapedText;if(l){const u=n.kind===163?zU(n.left):n.kind===208?zU(n.expression):void 0,p=u?`${YLe(u)}.${l}`:l;let g=Ar.get(p);return g||(Ar.set(p,g=ts(524288,l,1048576)),g.parent=u,g.links.declaredType=pt),g}return an}function eA(n,a,l){const u=wZe(n);if(!u)return an;const p=Nl(u,a,l);return p&&p!==an?p:l?an:zU(u)}function qU(n,a){if(a===an)return Ce;if(a=d0(a)||a,a.flags&96)return KLe(n,a);if(a.flags&524288)return kZe(n,a);const l=gLe(a);if(l)return Vb(n,a)?yd(l):Ce;if(a.flags&111551&&JU(n)){const u=DZe(n,a);return u||(eA(n,788968),ar(a))}return Ce}function DZe(n,a){const l=Jr(n);if(!l.resolvedJSDocType){const u=ar(a);let p=u;if(a.valueDeclaration){const g=n.kind===202&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(p=qU(n,u.symbol))}l.resolvedJSDocType=p}return l.resolvedJSDocType}function Die(n,a){if(a.flags&3||a===n||n.flags&1)return n;const l=`${ku(n)}>${ku(a)}`,u=Wt.get(l);if(u)return u;const p=Hh(33554432);return p.baseType=n,p.constraint=a,Wt.set(l,p),p}function Rie(n){return wo([n.constraint,n.baseType])}function $Le(n){return n.kind===186&&n.elements.length===1}function QLe(n,a,l){return $Le(a)&&$Le(l)?QLe(n,a.elements[0],l.elements[0]):cv(fi(a))===cv(n)?fi(l):void 0}function RZe(n,a){let l,u=!0;for(;a&&!wa(a)&&a.kind!==323;){const p=a.parent;if(p.kind===166&&(u=!u),(u||n.flags&8650752)&&p.kind===191&&a===p.trueType){const g=QLe(n,p.checkType,p.extendsType);g&&(l=Fn(l,g))}else if(n.flags&262144&&p.kind===197&&a===p.type){const g=fi(p);if(cp(g)===cv(n)){const x=nae(g);if(x){const R=Cu(x);R&&lh(R,ME)&&(l=Fn(l,Qr([mt,io])))}}}a=p}return l?Die(n,wo(l)):n}function JU(n){return!!(n.flags&8388608)&&(n.kind===180||n.kind===202)}function Vb(n,a){return n.typeArguments?(Ke(n,_.Type_0_is_not_generic,a?S(a):n.typeName?ws(n.typeName):B8),!1):!0}function ZLe(n){if(He(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return Vb(n),ue;case"Number":return Vb(n),mt;case"Boolean":return Vb(n),Re;case"Void":return Vb(n),Rt;case"Undefined":return Vb(n),We;case"Null":return Vb(n),Sn;case"Function":case"function":return Vb(n),dl;case"array":return(!a||!a.length)&&!Se?Dt:void 0;case"promise":return(!a||!a.length)&&!Se?x4(we):void 0;case"Object":if(a&&a.length===2){if(M3(n)){const l=fi(a[0]),u=fi(a[1]),p=l===ue||l===mt?[ym(l,u,!1)]:rt;return Ns(void 0,te,rt,rt,p)}return we}return Vb(n),Se?void 0:we}}}function NZe(n){const a=fi(n.type);return W?yV(a,65536):a}function Nie(n){const a=Jr(n);if(!a.resolvedType){if(cg(n)&&lT(n.parent))return a.resolvedSymbol=an,a.resolvedType=Ql(n.parent.expression);let l,u;const p=788968;JU(n)&&(u=ZLe(n),u||(l=eA(n,p,!0),l===an?l=eA(n,p|111551):eA(n,p),u=qU(n,l))),u||(l=eA(n,p),u=qU(n,l)),a.resolvedSymbol=l,a.resolvedType=u}return a.resolvedType}function VP(n){return Vt(n.typeArguments,fi)}function eIe(n){const a=Jr(n);if(!a.resolvedType){const l=hDe(n);a.resolvedType=yd(Zd(l))}return a.resolvedType}function tIe(n,a){function l(p){const g=p.declarations;if(g)for(const x of g)switch(x.kind){case 260:case 261:case 263:return x}}if(!n)return a?Co:fa;const u=Us(n);return u.flags&524288?Ae(u.typeParameters)!==a?(Ke(l(n),_.Global_type_0_must_have_1_type_parameter_s,Fl(n),a),a?Co:fa):u:(Ke(l(n),_.Global_type_0_must_be_a_class_or_interface_type,Fl(n)),a?Co:fa)}function Oie(n,a){return kD(n,111551,a?_.Cannot_find_global_value_0:void 0)}function nIe(n,a){return kD(n,788968,a?_.Cannot_find_global_type_0:void 0)}function KU(n,a,l){const u=kD(n,788968,l?_.Cannot_find_global_type_0:void 0);if(u&&(Us(u),Ae(Wi(u).typeParameters)!==a)){const p=u.declarations&&nn(u.declarations,nm);Ke(p,_.Global_type_0_must_have_1_type_parameter_s,Fl(u),a);return}return u}function kD(n,a,l){return _l(void 0,n,a,l,n,!1,!1,!1)}function lc(n,a,l){const u=nIe(n,l);return u||l?tIe(u,a):void 0}function OZe(){return Pt||(Pt=lc("TypedPropertyDescriptor",1,!0)||Co)}function PZe(){return _f||(_f=lc("TemplateStringsArray",0,!0)||fa)}function rIe(){return x_||(x_=lc("ImportMeta",0,!0)||fa)}function iIe(){if(!Yo){const n=ts(0,"ImportMetaExpression"),a=rIe(),l=ts(4,"meta",8);l.parent=n,l.links.type=a;const u=so([l]);n.members=u,Yo=Ns(n,u,rt,rt,rt)}return Yo}function aIe(n){return A_||(A_=lc("ImportCallOptions",0,n))||fa}function oIe(n){return oe||(oe=Oie("Symbol",n))}function MZe(n){return ut||(ut=nIe("SymbolConstructor",n))}function sIe(){return Mt||(Mt=lc("Symbol",0,!1))||fa}function jP(n){return un||(un=lc("Promise",1,n))||Co}function lIe(n){return Vn||(Vn=lc("PromiseLike",1,n))||Co}function Pie(n){return Rr||(Rr=Oie("Promise",n))}function FZe(n){return ni||(ni=lc("PromiseConstructorLike",0,n))||fa}function XU(n){return ff||(ff=lc("AsyncIterable",1,n))||Co}function BZe(n){return tc||(tc=lc("AsyncIterator",3,n))||Co}function GZe(n){return Jd||(Jd=lc("AsyncIterableIterator",1,n))||Co}function UZe(n){return Au||(Au=lc("AsyncGenerator",3,n))||Co}function Mie(n){return Mi||(Mi=lc("Iterable",1,n))||Co}function VZe(n){return ja||(ja=lc("Iterator",3,n))||Co}function jZe(n){return Ho||(Ho=lc("IterableIterator",1,n))||Co}function HZe(n){return Ts||(Ts=lc("Generator",3,n))||Co}function WZe(n){return Xs||(Xs=lc("IteratorYieldResult",1,n))||Co}function zZe(n){return pd||(pd=lc("IteratorReturnResult",1,n))||Co}function cIe(n,a=0){const l=kD(n,788968,void 0);return l&&tIe(l,a)}function qZe(){return pf||(pf=KU("Extract",2,!0)||an),pf===an?void 0:pf}function JZe(){return Z_||(Z_=KU("Omit",2,!0)||an),Z_===an?void 0:Z_}function Fie(n){return kp||(kp=KU("Awaited",1,n)||(n?an:void 0)),kp===an?void 0:kp}function KZe(){return U||(U=lc("BigInt",0,!1))||fa}function XZe(n){var a;return(a=Xn??(Xn=lc("ClassDecoratorContext",1,n)))!=null?a:Co}function YZe(n){var a;return(a=Da??(Da=lc("ClassMethodDecoratorContext",2,n)))!=null?a:Co}function $Ze(n){var a;return(a=Ia??(Ia=lc("ClassGetterDecoratorContext",2,n)))!=null?a:Co}function QZe(n){var a;return(a=Ie??(Ie=lc("ClassSetterDecoratorContext",2,n)))!=null?a:Co}function ZZe(n){var a;return(a=Ve??(Ve=lc("ClassAccessorDecoratorContext",2,n)))!=null?a:Co}function eet(n){var a;return(a=Lt??(Lt=lc("ClassAccessorDecoratorTarget",2,n)))!=null?a:Co}function tet(n){var a;return(a=Ot??(Ot=lc("ClassAccessorDecoratorResult",2,n)))!=null?a:Co}function net(n){var a;return(a=hn??(hn=lc("ClassFieldDecoratorContext",2,n)))!=null?a:Co}function ret(){return et||(et=Oie("NaN",!1))}function iet(){return qt||(qt=KU("Record",2,!0)||an),qt===an?void 0:qt}function wD(n,a){return n!==Co?Yg(n,a):fa}function uIe(n){return wD(OZe(),[n])}function dIe(n){return wD(Mie(!0),[n])}function Iu(n,a){return wD(a?ds:Es,[n])}function Bie(n){switch(n.kind){case 187:return 2;case 188:return fIe(n);case 199:return n.questionToken?2:n.dotDotDotToken?fIe(n):1;default:return 1}}function fIe(n){return qP(n.type)?4:8}function aet(n){const a=set(n.parent);if(qP(n))return a?ds:Es;const u=Vt(n.elements,Bie),p=kt(n.elements,g=>g.kind!==199);return Gie(u,a,p?void 0:n.elements)}function _Ie(n,a){return!!CS(n)||pIe(n)&&(n.kind===185?sv(n.elementType):n.kind===186?kt(n.elements,sv):a||kt(n.typeArguments,sv))}function pIe(n){const a=n.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return pIe(a);case 262:return!0}return!1}function sv(n){switch(n.kind){case 180:return JU(n)||!!(eA(n,788968).flags&524288);case 183:return!0;case 195:return n.operator!==156&&sv(n.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return sv(n.type);case 188:return n.type.kind!==185||sv(n.type.elementType);case 189:case 190:return kt(n.types,sv);case 196:return sv(n.objectType)||sv(n.indexType);case 191:return sv(n.checkType)||sv(n.extendsType)||sv(n.trueType)||sv(n.falseType)}return!1}function oet(n){const a=Jr(n);if(!a.resolvedType){const l=aet(n);if(l===Co)a.resolvedType=fa;else if(!(n.kind===186&&kt(n.elements,u=>!!(Bie(u)&8)))&&_Ie(n))a.resolvedType=n.kind===186&&n.elements.length===0?l:wie(l,n,void 0);else{const u=n.kind===185?[fi(n.elementType)]:Vt(n.elements,fi);a.resolvedType=Uie(l,u)}}return a.resolvedType}function set(n){return Gx(n)&&n.operator===146}function Bp(n,a,l=!1,u){const p=Gie(a||Vt(n,g=>1),l,u);return p===Co?fa:n.length?Uie(p,n):p}function Gie(n,a,l){if(n.length===1&&n[0]&4)return a?ds:Es;const u=Vt(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(l&&l.length?","+Vt(l,ms).join(","):"");let p=jn.get(u);return p||jn.set(u,p=cet(n,a,l)),p}function cet(n,a,l){const u=n.length,p=Gc(n,ge=>!!(ge&9));let g;const x=[];let R=0;if(u){g=new Array(u);for(let ge=0;ge<u;ge++){const Ne=g[ge]=Nd(),De=n[ge];if(R|=De,!(R&12)){const _t=ts(4|(De&2?16777216:0),""+ge,a?8:0);_t.links.tupleLabelDeclaration=l==null?void 0:l[ge],_t.links.type=Ne,x.push(_t)}}}const M=x.length,J=ts(4,"length",a?8:0);if(R&12)J.links.type=mt;else{const ge=[];for(let Ne=p;Ne<=u;Ne++)ge.push(Gp(Ne));J.links.type=Qr(ge)}x.push(J);const $=hf(12);return $.typeParameters=g,$.outerTypeParameters=void 0,$.localTypeParameters=g,$.instantiations=new Map,$.instantiations.set(o_($.typeParameters),$),$.target=$,$.resolvedTypeArguments=$.typeParameters,$.thisType=Nd(),$.thisType.isThisType=!0,$.thisType.constraint=$,$.declaredProperties=x,$.declaredCallSignatures=rt,$.declaredConstructSignatures=rt,$.declaredIndexInfos=rt,$.elementFlags=n,$.minLength=p,$.fixedLength=M,$.hasRestElement=!!(R&12),$.combinedFlags=R,$.readonly=a,$.labeledElementDeclarations=l,$}function Uie(n,a){return n.objectFlags&8?mIe(n,a):Yg(n,a)}function mIe(n,a){var l,u,p;if(!(n.combinedFlags&14))return Yg(n,a);if(n.combinedFlags&8){const De=mi(a,(_t,Bt)=>!!(n.elementFlags[Bt]&8&&_t.flags&1179648));if(De>=0)return WP(Vt(a,(_t,Bt)=>n.elementFlags[Bt]&8?_t:he))?$s(a[De],_t=>mIe(n,lH(a,De,_t))):Ce}const g=[],x=[];let R=[],M=-1,J=-1,$=-1;for(let De=0;De<a.length;De++){const _t=a[De],Bt=n.elementFlags[De];if(Bt&8)if(_t.flags&58982400||Vf(_t))Ne(_t,8,(l=n.labeledElementDeclarations)==null?void 0:l[De]);else if(Mo(_t)){const Mn=gs(_t);if(Mn.length+g.length>=1e4)return Ke(G,vh(G)?_.Type_produces_a_tuple_type_that_is_too_large_to_represent:_.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ce;Ue(Mn,(An,Kn)=>{var gn;return Ne(An,_t.target.elementFlags[Kn],(gn=_t.target.labeledElementDeclarations)==null?void 0:gn[Kn])})}else Ne(D0(_t)&&Xg(_t,mt)||Ce,4,(u=n.labeledElementDeclarations)==null?void 0:u[De]);else Ne(_t,Bt,(p=n.labeledElementDeclarations)==null?void 0:p[De])}for(let De=0;De<M;De++)x[De]&2&&(x[De]=1);J>=0&&J<$&&(g[J]=Qr(pa(g.slice(J,$+1),(De,_t)=>x[J+_t]&8?Md(De,mt):De)),g.splice(J+1,$-J),x.splice(J+1,$-J),R==null||R.splice(J+1,$-J));const ge=Gie(x,n.readonly,R);return ge===Co?fa:x.length?Yg(ge,g):ge;function Ne(De,_t,Bt){_t&1&&(M=x.length),_t&4&&J<0&&(J=x.length),_t&6&&($=x.length),g.push(_t&2?Io(De,!0):De),x.push(_t),R&&Bt?R.push(Bt):R=void 0}}function NL(n,a,l=0){const u=n.target,p=A0(n)-l;return a>u.fixedLength?$tt(n)||Bp(rt):Bp(gs(n).slice(a,p),u.elementFlags.slice(a,p),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,p))}function hIe(n){return Qr(Fn(yce(n.target.fixedLength,a=>jf(""+a)),vm(n.target.readonly?ds:Es)))}function uet(n,a){const l=mi(n.elementFlags,u=>!(u&a));return l>=0?l:n.elementFlags.length}function HP(n,a){return n.elementFlags.length-va(n.elementFlags,l=>!(l&a))-1}function det(n){return Io(fi(n.type),!0)}function ku(n){return n.id}function jb(n,a){return vv(n,a,ku,Ws)>=0}function Vie(n,a){const l=vv(n,a,ku,Ws);return l<0?(n.splice(~l,0,a),!0):!1}function fet(n,a,l){const u=l.flags;if(u&1048576)return gIe(n,a|(het(l)?1048576:0),l.types);if(!(u&131072))if(a|=u&205258751,u&465829888&&(a|=33554432),l===Nt&&(a|=8388608),!W&&u&98304)ti(l)&65536||(a|=4194304);else{const p=n.length,g=p&&l.id>n[p-1].id?~p:vv(n,l,ku,Ws);g<0&&n.splice(~g,0,l)}return a}function gIe(n,a,l){for(const u of l)a=fet(n,a,u);return a}function _et(n,a){var l;if(n.length<2)return n;const u=o_(n),p=dn.get(u);if(p)return p;const g=a&&kt(n,J=>!!(J.flags&524288)&&!Vf(J)&&cae(up(J))),x=n.length;let R=x,M=0;for(;R>0;){R--;const J=n[R];if(g||J.flags&469499904){const $=J.flags&61603840?nn(hs(J),Ne=>fp(ar(Ne))):void 0,ge=$&&yd(ar($));for(const Ne of n)if(J!==Ne){if(M===1e5&&M/(x-R)*x>1e6){(l=bi)==null||l.instant(bi.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(_t=>_t.id)}),Ke(G,_.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(M++,$&&Ne.flags&61603840){const De=fc(Ne,$.escapedName);if(De&&fp(De)&&yd(De)!==ge)continue}if(bm(J,Ne,np)&&(!(ti(q2(J))&1)||!(ti(q2(Ne))&1)||Jb(J,Ne))){l1(n,R);break}}}}return dn.set(u,n),n}function pet(n,a,l){let u=n.length;for(;u>0;){u--;const p=n[u],g=p.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||l&&g&32768&&a&16384||zb(p)&&jb(n,p.regularType))&&l1(n,u)}}function met(n){const a=lr(n,l=>!!(l.flags&134217728)&&tA(l));if(a.length){let l=n.length;for(;l>0;){l--;const u=n[l];u.flags&128&&kt(a,p=>Pae(u,p))&&l1(n,l)}}}function het(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function yIe(n,a){for(const l of a)if(l.flags&1048576){const u=l.origin;l.aliasSymbol||u&&!(u.flags&1048576)?f_(n,l):u&&u.flags&1048576&&yIe(n,u.types)}}function jie(n,a){const l=TS(n);return l.types=a,l}function Qr(n,a=1,l,u,p){if(n.length===0)return gt;if(n.length===1)return n[0];let g=[];const x=gIe(g,0,n);if(a!==0){if(x&3)return x&1?x&8388608?Nt:we:x&65536||jb(g,he)?he:j;if(x&32768&&g.length>=2&&g[0]===We&&g[1]===Xe&&l1(g,1),(x&402664352||x&16384&&x&32768)&&pet(g,x,!!(a&2)),x&128&&x&134217728&&met(g),a===2&&(g=_et(g,!!(x&524288)),!g))return Ce;if(g.length===0)return x&65536?x&4194304?Sn:Er:x&32768?x&4194304?We:Ze:gt}if(!p&&x&1048576){const M=[];yIe(M,n);const J=[];for(const ge of g)kt(M,Ne=>jb(Ne.types,ge))||J.push(ge);if(!l&&M.length===1&&J.length===0)return M[0];if(Nu(M,(ge,Ne)=>ge+Ne.types.length,0)+J.length===g.length){for(const ge of M)Vie(J,ge);p=jie(1048576,J)}}const R=(x&36323363?0:32768)|(x&2097152?16777216:0);return Wie(g,R,l,u,p)}function get(n,a){let l;const u=[];for(const g of n){const x=a_(g);if(!x||x.kind===2||x.kind===3){if(a!==2097152)continue;return}if(l){if(!Hie(l,x))return}else l=x;u.push(x.type)}if(!l)return;const p=VLe(u,a);return UP(l.kind,l.parameterName,l.parameterIndex,p)}function Hie(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Wie(n,a,l,u,p){if(n.length===0)return gt;if(n.length===1)return n[0];const x=(p?p.flags&1048576?`|${o_(p.types)}`:p.flags&2097152?`&${o_(p.types)}`:`#${p.type.id}|${o_(n)}`:o_(n))+$2(l,u);let R=In.get(x);return R||(R=Hh(1048576),R.objectFlags=a|WU(n,98304),R.types=n,R.origin=p,R.aliasSymbol=l,R.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(R.flags|=16,R.intrinsicName="boolean"),In.set(x,R)),R}function yet(n){const a=Jr(n);if(!a.resolvedType){const l=CS(n);a.resolvedType=Qr(Vt(n.types,fi),1,l,nA(l))}return a.resolvedType}function vet(n,a,l){const u=l.flags;return u&2097152?vIe(n,a,l.types):($h(l)?a&16777216||(a|=16777216,n.set(l.id.toString(),l)):(u&3?l===Nt&&(a|=8388608):(W||!(u&98304))&&(l===Xe&&(a|=262144,l=We),n.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),n.set(l.id.toString(),l))),a|=u&205258751),a)}function vIe(n,a,l){for(const u of l)a=vet(n,a,yd(u));return a}function bet(n,a){let l=n.length;for(;l>0;){l--;const u=n[l];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||$h(u)&&a&470302716)&&l1(n,l)}}function Eet(n,a){for(const l of n)if(!jb(l.types,a)){const u=a.flags&128?ue:a.flags&256?mt:a.flags&2048?zt:a.flags&8192?q:void 0;if(!u||!jb(l.types,u))return!1}return!0}function Tet(n){let a=n.length;const l=lr(n,u=>!!(u.flags&128));for(;a>0;){a--;const u=n[a];if(u.flags&134217728){for(const p of l)if(uv(p,u)){l1(n,a);break}else if(tA(u))return!0}}return!1}function bIe(n,a){return Yn(n,l=>!!(l.flags&1048576)&&kt(l.types,u=>!!(u.flags&a)))}function EIe(n,a){for(let l=0;l<n.length;l++)n[l]=_c(n[l],u=>!(u.flags&a))}function xet(n){let a;const l=mi(n,x=>!!(ti(x)&32768));if(l<0)return!1;let u=l+1;for(;u<n.length;){const x=n[u];ti(x)&32768?((a||(a=[n[l]])).push(x),l1(n,u)):u++}if(!a)return!1;const p=[],g=[];for(const x of a)for(const R of x.types)Vie(p,R)&&Eet(a,R)&&Vie(g,R);return n[l]=Wie(g,32768),!0}function Aet(n,a,l){const u=Hh(2097152);return u.objectFlags=WU(n,98304),u.types=n,u.aliasSymbol=a,u.aliasTypeArguments=l,u}function wo(n,a,l,u){const p=new Map,g=vIe(p,0,n),x=Ro(p.values());if(g&131072)return jr(x,ft)?ft:gt;if(W&&g&98304&&g&84410368||g&67108864&&g&402783228||g&402653316&&g&67238776||g&296&&g&469891796||g&2112&&g&469889980||g&12288&&g&469879804||g&49152&&g&469842940||g&134217728&&g&128&&Tet(x))return gt;if(g&1)return g&8388608?Nt:we;if(!W&&g&98304)return g&16777216?gt:g&32768?We:Sn;if((g&4&&g&402653312||g&8&&g&256||g&64&&g&2048||g&4096&&g&8192||g&16384&&g&32768||g&16777216&&g&470302716)&&(u||bet(x,g)),g&262144&&(x[x.indexOf(We)]=Xe),x.length===0)return he;if(x.length===1)return x[0];const R=o_(x)+$2(a,l);let M=Zt.get(R);if(!M){if(g&1048576)if(xet(x))M=wo(x,a,l);else if(bIe(x,32768)){const J=kt(x,GD)?Xe:We;EIe(x,32768),M=Qr([wo(x),J],1,a,l)}else if(bIe(x,65536))EIe(x,65536),M=Qr([wo(x),Sn],1,a,l);else{if(!WP(x))return Ce;const J=Cet(x),$=kt(J,ge=>!!(ge.flags&2097152))&&zie(J)>zie(x)?jie(2097152,x):void 0;M=Qr(J,1,a,l,$)}else M=Aet(x,a,l);Zt.set(R,M)}return M}function TIe(n){return Nu(n,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function WP(n){var a;const l=TIe(n);return l>=1e5?((a=bi)==null||a.instant(bi.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:l}),Ke(G,_.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Cet(n){const a=TIe(n),l=[];for(let u=0;u<a;u++){const p=n.slice();let g=u;for(let R=n.length-1;R>=0;R--)if(n[R].flags&1048576){const M=n[R].types,J=M.length;p[R]=M[g%J],g=Math.floor(g/J)}const x=wo(p);x.flags&131072||l.push(x)}return l}function SIe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?SIe(n.origin):zie(n.types)}function zie(n){return Nu(n,(a,l)=>a+SIe(l),0)}function Let(n){const a=Jr(n);if(!a.resolvedType){const l=CS(n),u=Vt(n.types,fi),p=u.length===2&&!!(u[0].flags&76)&&u[1]===Ul;a.resolvedType=wo(u,l,nA(l),p)}return a.resolvedType}function xIe(n,a){const l=Hh(4194304);return l.type=n,l.stringsOnly=a,l}function Iet(n){const a=TS(4194304);return a.type=n,a}function AIe(n,a){return a?n.resolvedStringIndexType||(n.resolvedStringIndexType=xIe(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=xIe(n,!1))}function ket(n,a,l){const u=cp(n),p=Mp(n),g=rv(n.target||n);if(!g&&!l)return p;const x=[];if(SD(n)){if(C0(p))return AIe(n,a);{const J=Ku(wL(n));lie(J,8576,a,M)}}else jE(PP(p),M);C0(p)&&jE(p,M);const R=l?_c(Qr(x),J=>!(J.flags&5)):Qr(x);if(R.flags&1048576&&p.flags&1048576&&o_(R.types)===o_(p.types))return p;return R;function M(J){const $=g?Yi(g,ND(n.mapper,u,J)):J;x.push($===ue?Ai:$)}}function wet(n){const a=cp(n);return l(rv(n)||a);function l(u){return u.flags&202375167?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?Yn(u.types,l):u.flags&8388608?l(u.objectType)&&l(u.indexType):u.flags&33554432?l(u.baseType)&&l(u.constraint):u.flags&268435456?l(u.type):!1}}function $g(n){return Ni(n)?gt:He(n)?jf(ta(n.escapedText)):yd(As(n)?ny(n):ga(n))}function OL(n,a,l){if(l||!(Qf(n)&24)){let u=Wi(VU(n)).nameType;if(!u){const p=ka(n.valueDeclaration);u=n.escapedName==="default"?jf("default"):p&&$g(p)||(ZN(n)?void 0:jf(Fl(n)))}if(u&&u.flags&a)return u}return gt}function CIe(n,a){return!!(n.flags&a||n.flags&2097152&&kt(n.types,l=>CIe(l,a)))}function Det(n,a,l){const u=l&&(ti(n)&7||n.aliasSymbol)?Iet(n):void 0,p=Vt(hs(n),x=>OL(x,a)),g=Vt(Lu(n),x=>x!==zu&&CIe(x.keyType,a)?x.keyType===ue&&a&8?Ai:x.keyType:gt);return Qr(ba(p,g),1,void 0,void 0,u)}function Ret(n){const a=ptt(n);return dp(a)!==a}function LIe(n){return!!(n.flags&58982400||aA(n)||Vf(n)&&!wet(n)||n.flags&1048576&&kt(n.types,Ret)||n.flags&2097152&&pl(n,465829888)&&kt(n.types,$h))}function vm(n,a=je,l){return n=dp(n),LIe(n)?AIe(n,a):n.flags&1048576?wo(Vt(n.types,u=>vm(u,a,l))):n.flags&2097152?Qr(Vt(n.types,u=>vm(u,a,l))):ti(n)&32?ket(n,a,l):n===Nt?Nt:n.flags&2?gt:n.flags&131073?ji:Det(n,(l?128:402653316)|(a?0:12584),a===je&&!l)}function IIe(n){if(je)return n;const a=qZe();return a?Z2(a,[n,ue]):ue}function Net(n){const a=IIe(vm(n));return a.flags&131072?ue:a}function Oet(n){const a=Jr(n);if(!a.resolvedType)switch(n.operator){case 141:a.resolvedType=vm(fi(n.type));break;case 156:a.resolvedType=n.type.kind===153?Zie(JN(n.parent)):Ce;break;case 146:a.resolvedType=fi(n.type);break;default:throw D.assertNever(n.operator)}return a.resolvedType}function Pet(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=OE([n.head.text,...Vt(n.templateSpans,l=>l.literal.text)],Vt(n.templateSpans,l=>fi(l.type)))),a.resolvedType}function OE(n,a){const l=mi(a,J=>!!(J.flags&1179648));if(l>=0)return WP(a)?$s(a[l],J=>OE(n,lH(a,l,J))):Ce;if(jr(a,Nt))return Nt;const u=[],p=[];let g=n[0];if(!M(n,a))return ue;if(u.length===0)return jf(g);if(p.push(g),Yn(p,J=>J==="")){if(Yn(u,J=>!!(J.flags&4)))return ue;if(u.length===1&&tA(u[0]))return u[0]}const x=`${o_(u)}|${Vt(p,J=>J.length).join(",")}|${p.join("")}`;let R=At.get(x);return R||At.set(x,R=Fet(p,u)),R;function M(J,$){const ge=Va(J);for(let Ne=0;Ne<$.length;Ne++){const De=$[Ne],_t=ge?J[Ne+1]:J;if(De.flags&101248){if(g+=Met(De)||"",g+=_t,!ge)return!0}else if(De.flags&134217728){if(g+=De.texts[0],!M(De.texts,De.types))return!1;if(g+=_t,!ge)return!0}else if(C0(De)||$U(De))u.push(De),p.push(g),g=_t;else if(De.flags&2097152){if(!M(J[Ne+1],De.types))return!1}else if(ge)return!1}return!0}}function Met(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 Fet(n,a){const l=Hh(134217728);return l.texts=n,l.types=a,l}function AS(n,a){return a.flags&1179648?$s(a,l=>AS(n,l)):a.flags&128?jf(kIe(n,a.value)):a.flags&134217728?OE(...Bet(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||C0(a)?wIe(n,a):$U(a)?wIe(n,OE(["",""],[a])):a}function kIe(n,a){switch(G8.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 Bet(n,a,l){switch(G8.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),l.map(u=>AS(n,u))];case 1:return[a.map(u=>u.toLowerCase()),l.map(u=>AS(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[AS(n,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[AS(n,l[0]),...l.slice(1)]:l]}return[a,l]}function wIe(n,a){const l=`${bo(n)},${ku(a)}`;let u=vn.get(l);return u||vn.set(l,u=Get(n,a)),u}function Get(n,a){const l=_m(268435456,n);return l.type=a,l}function Uet(n,a,l,u,p){const g=Hh(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=l,g.aliasSymbol=u,g.aliasTypeArguments=p,g}function DD(n){if(Se)return!1;if(ti(n)&4096)return!0;if(n.flags&1048576)return Yn(n.types,DD);if(n.flags&2097152)return kt(n.types,DD);if(n.flags&465829888){const a=fie(n);return a!==n&&DD(a)}return!1}function YU(n,a){return Jh(n)?mm(n):a&&yl(a)?C1(a):void 0}function qie(n,a){if(a.flags&8208){const l=nr(n.parent,u=>!ll(u))||n.parent;return ux(l)?ug(l)&&He(n)&&Bke(l,n):Yn(a.declarations,u=>!Ka(u)||!!(gp(u)&268435456))}return!0}function DIe(n,a,l,u,p,g){var x;const R=p&&p.kind===209?p:void 0,M=p&&Ni(p)?void 0:YU(l,p);if(M!==void 0){if(g&256)return WE(a,M)||we;const $=co(a,M);if($){if(g&64&&p&&$.declarations&&s0($)&&qie(p,$)){const Ne=(x=R==null?void 0:R.argumentExpression)!=null?x:Ux(p)?p.indexType:p;Rg(Ne,$.declarations,M)}if(R){if(y4($,R,zwe(R.expression,a.symbol)),DDe(R,$,yT(R))){Ke(R.argumentExpression,_.Cannot_assign_to_0_because_it_is_a_read_only_property,S($));return}if(g&8&&(Jr(p).resolvedSymbol=$),Bwe(R,$))return yt}const ge=ar($);return R&&yT(R)!==1?O0(R,ge):p&&Ux(p)&&GD(ge)?Qr([ge,We]):ge}if(lh(a,Mo)&&Ah(M)){const ge=+M;if(p&&lh(a,Ne=>!Ne.target.hasRestElement)&&!(g&16)){const Ne=Jie(p);if(Mo(a)){if(ge<0)return Ke(Ne,_.A_tuple_type_cannot_be_indexed_with_a_negative_value),We;Ke(Ne,_.Tuple_type_0_of_length_1_has_no_element_at_index_2,ke(a),A0(a),ta(M))}else Ke(Ne,_.Property_0_does_not_exist_on_type_1,ta(M),ke(a))}if(ge>=0)return J(sh(a,mt)),$s(a,Ne=>{const De=n4(Ne)||We;return g&1?Qr([De,Xe]):De})}}if(!(l.flags&98304)&&Mc(l,402665900)){if(a.flags&131073)return a;const $=GP(a,l)||sh(a,ue);if($){if(g&2&&$.keyType!==mt){R&&Ke(R,_.Type_0_cannot_be_used_to_index_type_1,ke(l),ke(n));return}if(p&&$.keyType===ue&&!Mc(l,12)){const ge=Jie(p);return Ke(ge,_.Type_0_cannot_be_used_as_an_index_type,ke(l)),g&1?Qr([$.type,Xe]):$.type}return J($),g&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&gd(l.symbol)===a.symbol)?Qr([$.type,Xe]):$.type}if(l.flags&131072)return gt;if(DD(a))return we;if(R&&!Boe(a)){if(N0(a)){if(Se&&l.flags&384)return $o.add(Nr(R,_.Property_0_does_not_exist_on_type_1,l.value,ke(a))),We;if(l.flags&12){const ge=Vt(a.properties,Ne=>ar(Ne));return Qr(Fn(ge,We))}}if(a.symbol===st&&M!==void 0&&st.exports.has(M)&&st.exports.get(M).flags&418)Ke(R,_.Property_0_does_not_exist_on_type_1,ta(M),ke(a));else if(Se&&!Y.suppressImplicitAnyIndexErrors&&!(g&128))if(M!==void 0&&jwe(M,a)){const ge=ke(a);Ke(R,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,M,ge,ge+"["+xc(R.argumentExpression)+"]")}else if(Xg(a,mt))Ke(R.argumentExpression,_.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ge;if(M!==void 0&&(ge=goe(M,a)))ge!==void 0&&Ke(R.argumentExpression,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,M,ke(a),ge);else{const Ne=Nit(a,R,l);if(Ne!==void 0)Ke(R,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ke(a),Ne);else{let De;if(l.flags&1024)De=Na(void 0,_.Property_0_does_not_exist_on_type_1,"["+ke(l)+"]",ke(a));else if(l.flags&8192){const _t=Bh(l.symbol,R);De=Na(void 0,_.Property_0_does_not_exist_on_type_1,"["+_t+"]",ke(a))}else l.flags&128||l.flags&256?De=Na(void 0,_.Property_0_does_not_exist_on_type_1,l.value,ke(a)):l.flags&12&&(De=Na(void 0,_.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ke(l),ke(a)));De=Na(De,_.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ke(u),ke(a)),$o.add(dg(Zn(R),R,De))}}}return}}if(DD(a))return we;if(p){const $=Jie(p);l.flags&384?Ke($,_.Property_0_does_not_exist_on_type_1,""+l.value,ke(a)):l.flags&12?Ke($,_.Type_0_has_no_matching_index_signature_for_type_1,ke(a),ke(l)):Ke($,_.Type_0_cannot_be_used_as_an_index_type,ke(l))}if(Ss(l))return l;return;function J($){$&&$.isReadonly&&R&&(Eh(R)||oq(R))&&Ke(R,_.Index_signature_in_type_0_only_permits_reading,ke(a))}}function Jie(n){return n.kind===209?n.argumentExpression:n.kind===196?n.indexType:n.kind===164?n.expression:n}function $U(n){return!!(n.flags&77)||tA(n)}function tA(n){return!!(n.flags&134217728)&&Yn(n.types,$U)||!!(n.flags&268435456)&&$U(n.type)}function PL(n){return!!RD(n)}function Hb(n){return!!(RD(n)&4194304)}function C0(n){return!!(RD(n)&8388608)}function RD(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Nu(n.types,(a,l)=>a|RD(l),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|RD(n.baseType)|RD(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Vf(n)||aA(n)?4194304:0)|(n.flags&465829888&&!tA(n)?8388608:0)}function Qg(n,a){return n.flags&8388608?jet(n,a):n.flags&16777216?Het(n,a):n}function RIe(n,a,l){if(n.flags&1048576||n.flags&2097152&&!LIe(n)){const u=Vt(n.types,p=>Qg(Md(p,a),l));return n.flags&2097152||l?wo(u):Qr(u)}}function Vet(n,a,l){if(a.flags&1048576){const u=Vt(a.types,p=>Qg(Md(n,p),l));return l?wo(u):Qr(u)}}function jet(n,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(n[l])return n[l]===jl?n:n[l];n[l]=jl;const u=Qg(n.objectType,a),p=Qg(n.indexType,a),g=Vet(u,p,a);if(g)return n[l]=g;if(!(p.flags&465829888)){const x=RIe(u,p,a);if(x)return n[l]=x}if(aA(u)&&p.flags&296){const x=UL(u,p.flags&8?0:u.target.fixedLength,0,a);if(x)return n[l]=x}if(Vf(u)){const x=rv(u);if(!x||xo(x,cp(u)))return n[l]=$s(QU(u,n.indexType),R=>Qg(R,a))}return n[l]=n}function Het(n,a){const l=n.checkType,u=n.extendsType,p=L0(n),g=I0(n);if(g.flags&131072&&cv(p)===cv(l)){if(l.flags&1||xo(PE(l),PE(u)))return Qg(p,a);if(NIe(l,u))return gt}else if(p.flags&131072&&cv(g)===cv(l)){if(!(l.flags&1)&&xo(PE(l),PE(u)))return gt;if(l.flags&1||NIe(l,u))return Qg(g,a)}return n}function NIe(n,a){return!!(Qr([OP(n,a),gt]).flags&131072)}function QU(n,a){const l=vd([cp(n)],[a]),u=w0(n.mapper,l);return Yi(Kh(n.target||n),u)}function Md(n,a,l=0,u,p,g){return lv(n,a,l,u,p,g)||(u?Ce:he)}function OIe(n,a){return lh(n,l=>{if(l.flags&384){const u=mm(l);if(Ah(u)){const p=+u;return p>=0&&p<a}}return!1})}function lv(n,a,l=0,u,p,g){if(n===Nt||a===Nt)return Nt;if(ike(n)&&!(a.flags&98304)&&Mc(a,12)&&(a=ue),Y.noUncheckedIndexedAccess&&l&32&&(l|=1),C0(a)||(u&&u.kind!==196?aA(n)&&!OIe(a,n.target.fixedLength):Hb(n)&&!(Mo(n)&&OIe(a,n.target.fixedLength)))){if(n.flags&3)return n;const R=l&1,M=n.id+","+a.id+","+R+$2(p,g);let J=Or.get(M);return J||Or.set(M,J=Uet(n,a,R,p,g)),J}const x=DL(n);if(a.flags&1048576&&!(a.flags&16)){const R=[];let M=!1;for(const J of a.types){const $=DIe(n,x,J,a,u,l|(M?128:0));if($)R.push($);else if(u)M=!0;else return}return M?void 0:l&4?wo(R,p,g):Qr(R,1,p,g)}return DIe(n,x,a,a,u,l|8|64)}function PIe(n){const a=Jr(n);if(!a.resolvedType){const l=fi(n.objectType),u=fi(n.indexType),p=CS(n);a.resolvedType=Md(l,u,0,n,p,nA(p))}return a.resolvedType}function Kie(n){const a=Jr(n);if(!a.resolvedType){const l=hf(32,n.symbol);l.declaration=n,l.aliasSymbol=CS(n),l.aliasTypeArguments=nA(l.aliasSymbol),a.resolvedType=l,Mp(l)}return a.resolvedType}function cv(n){return n.flags&33554432?cv(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?Md(cv(n.objectType),cv(n.indexType)):n}function Wet(n){const a=Cu(n);return a&&(Hb(a)||C0(a))?oV(n):n}function MIe(n){return CC(n)&&Ae(n.elements)>0&&!kt(n.elements,a=>eK(a)||tK(a)||Jk(a)&&!!(a.questionToken||a.dotDotDotToken))}function FIe(n,a){return PL(n)||a&&Mo(n)&&kt(gs(n),PL)}function Xie(n,a,l,u){let p,g,x=0;for(;;){if(x===1e3){Ke(G,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),p=Ce;break}const M=MIe(n.node.checkType)&&MIe(n.node.extendsType)&&Ae(n.node.checkType.elements)===Ae(n.node.extendsType.elements),J=Yi(cv(n.checkType),a),$=FIe(J,M),ge=Yi(n.extendsType,a);if(J===Nt||ge===Nt)return Nt;let Ne;if(n.inferTypeParameters){const _t=pa(n.inferTypeParameters,Wet),Bt=_t!==n.inferTypeParameters?vd(n.inferTypeParameters,_t):void 0,Mn=UD(_t,void 0,0);if(Bt){const Kn=w0(a,Bt);for(const gn of _t)n.inferTypeParameters.indexOf(gn)===-1&&(gn.mapper=Kn)}$||Qh(Mn.inferences,J,Yi(ge,Bt),1536);const An=w0(Bt,Mn.mapper);Ne=a?w0(An,a):An}const De=Ne?Yi(n.extendsType,Ne):ge;if(!$&&!FIe(De,M)){if(!(De.flags&3)&&(J.flags&1||!xo(sV(J),sV(De)))){J.flags&1&&(g||(g=[])).push(Yi(fi(n.node.trueType),Ne||a));const _t=fi(n.node.falseType);if(_t.flags&16777216){const Bt=_t.root;if(Bt.node.parent===n.node&&(!Bt.isDistributive||Bt.checkType===n.checkType)){n=Bt;continue}if(R(_t,a))continue}p=Yi(_t,a);break}if(De.flags&3||xo(PE(J),PE(De))){const _t=fi(n.node.trueType),Bt=Ne||a;if(R(_t,Bt))continue;p=Yi(_t,Bt);break}}p=Hh(16777216),p.root=n,p.checkType=Yi(n.checkType,a),p.extendsType=Yi(n.extendsType,a),p.mapper=a,p.combinedMapper=Ne,p.aliasSymbol=l||n.aliasSymbol,p.aliasTypeArguments=l?u:Zg(n.aliasTypeArguments,a);break}return g?Qr(Fn(g,p)):p;function R(M,J){if(M.flags&16777216&&J){const $=M.root;if($.outerTypeParameters){const ge=w0(M.mapper,J),Ne=Vt($.outerTypeParameters,Bt=>k0(Bt,ge)),De=vd($.outerTypeParameters,Ne),_t=$.isDistributive?k0($.checkType,De):void 0;if(!_t||_t===$.checkType||!(_t.flags&1179648))return n=$,a=De,l=void 0,u=void 0,$.aliasSymbol&&x++,!0}}return!1}}function L0(n){return n.resolvedTrueType||(n.resolvedTrueType=Yi(fi(n.root.node.trueType),n.mapper))}function I0(n){return n.resolvedFalseType||(n.resolvedFalseType=Yi(fi(n.root.node.falseType),n.mapper))}function zet(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Yi(fi(n.root.node.trueType),n.combinedMapper):L0(n))}function BIe(n){let a;return n.locals&&n.locals.forEach(l=>{l.flags&262144&&(a=Fn(a,Us(l)))}),a}function qet(n){return n.isDistributive&&(KP(n.checkType,n.node.trueType)||KP(n.checkType,n.node.falseType))}function Jet(n){const a=Jr(n);if(!a.resolvedType){const l=fi(n.checkType),u=CS(n),p=nA(u),g=IL(n,!0),x=p?g:lr(g,M=>KP(M,n)),R={node:n,checkType:l,extendsType:fi(n.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:BIe(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:p};a.resolvedType=Xie(R,void 0),x&&(R.instantiations=new Map,R.instantiations.set(o_(x),a.resolvedType))}return a.resolvedType}function Ket(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=wE(Ir(n.typeParameter))),a.resolvedType}function GIe(n){return He(n)?[n]:Fn(GIe(n.left),n.right)}function Xet(n){var a;const l=Jr(n);if(!l.resolvedType){if(!K0(n))return Ke(n.argument,_.String_literal_expected),l.resolvedSymbol=an,l.resolvedType=Ce;const u=n.isTypeOf?111551:n.flags&8388608?900095:788968,p=du(n,n.argument.literal);if(!p)return l.resolvedSymbol=an,l.resolvedType=Ce;const g=!!((a=p.exports)!=null&&a.get("export=")),x=hd(p,!1);if(Cl(n.qualifier))if(x.flags&u)l.resolvedType=UIe(n,l,x,u);else{const R=u===111551?_.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;Ke(n,R,n.argument.literal.text),l.resolvedSymbol=an,l.resolvedType=Ce}else{const R=GIe(n.qualifier);let M=x,J;for(;J=R.shift();){const $=R.length?1920:u,ge=as(Yl(M)),Ne=n.isTypeOf||fr(n)&&g?co(ar(ge),J.escapedText,!1,!0):void 0,De=n.isTypeOf?void 0:Kd(mf(ge),J.escapedText,$),_t=De??Ne;if(!_t)return Ke(J,_.Namespace_0_has_no_exported_member_1,Bh(M),ws(J)),l.resolvedType=Ce;Jr(J).resolvedSymbol=_t,Jr(J.parent).resolvedSymbol=_t,M=_t}l.resolvedType=UIe(n,l,M,u)}}return l.resolvedType}function UIe(n,a,l,u){const p=Yl(l);return a.resolvedSymbol=p,u===111551?gDe(ar(l),n):qU(n,p)}function VIe(n){const a=Jr(n);if(!a.resolvedType){const l=CS(n);if(nv(n.symbol).size===0&&!l)a.resolvedType=Ul;else{let u=hf(16,n.symbol);u.aliasSymbol=l,u.aliasTypeArguments=nA(l),tw(n)&&n.isArrayType&&(u=Iu(u)),a.resolvedType=u}}return a.resolvedType}function CS(n){let a=n.parent;for(;Bx(a)||OT(a)||Gx(a)&&a.operator===146;)a=a.parent;return HN(a)?Ir(a):void 0}function nA(n){return n?tv(n):void 0}function ZU(n){return!!(n.flags&524288)&&!Vf(n)}function Yie(n){return Yh(n)||!!(n.flags&474058748)}function $ie(n,a){if(!(n.flags&1048576))return n;if(Yn(n.types,Yie))return nn(n.types,Yh)||fa;const l=nn(n.types,g=>!Yie(g));if(!l||nn(n.types,g=>g!==l&&!Yie(g)))return n;return p(l);function p(g){const x=so();for(const M of hs(g))if(!(Qf(M)&24)){if(eV(M)){const J=M.flags&65536&&!(M.flags&32768),ge=ts(16777220,M.escapedName,sie(M)|(a?8:0));ge.links.type=J?We:Io(ar(M),!0),ge.declarations=M.declarations,ge.links.nameType=Wi(M).nameType,ge.links.syntheticOrigin=M,x.set(M.escapedName,ge)}}const R=Ns(g.symbol,x,rt,rt,Lu(g));return R.objectFlags|=131200,R}}function Wb(n,a,l,u,p){if(n.flags&1||a.flags&1)return we;if(n.flags&2||a.flags&2)return he;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=$ie(n,p),n.flags&1048576)return WP([n,a])?$s(n,J=>Wb(J,a,l,u,p)):Ce;if(a=$ie(a,p),a.flags&1048576)return WP([n,a])?$s(a,J=>Wb(n,J,l,u,p)):Ce;if(a.flags&473960444)return n;if(Hb(n)||Hb(a)){if(Yh(n))return a;if(n.flags&2097152){const J=n.types,$=J[J.length-1];if(ZU($)&&ZU(a))return wo(ba(J.slice(0,J.length-1),[Wb($,a,l,u,p)]))}return wo([n,a])}const g=so(),x=new Set,R=n===fa?Lu(a):LLe([n,a]);for(const J of hs(a))Qf(J)&24?x.add(J.escapedName):eV(J)&&g.set(J.escapedName,Qie(J,p));for(const J of hs(n))if(!(x.has(J.escapedName)||!eV(J)))if(g.has(J.escapedName)){const $=g.get(J.escapedName),ge=ar($);if($.flags&16777216){const Ne=ba(J.declarations,$.declarations),De=4|J.flags&16777216,_t=ts(De,J.escapedName);_t.links.type=Qr([ar(J),Sae(ge)],2),_t.links.leftSpread=J,_t.links.rightSpread=$,_t.declarations=Ne,_t.links.nameType=Wi(J).nameType,g.set(J.escapedName,_t)}}else g.set(J.escapedName,Qie(J,p));const M=Ns(l,g,rt,rt,pa(R,J=>Yet(J,p)));return M.objectFlags|=2228352|u,M}function eV(n){var a;return!kt(n.declarations,Zu)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(l=>di(l.parent))))}function Qie(n,a){const l=n.flags&65536&&!(n.flags&32768);if(!l&&a===pp(n))return n;const u=4|n.flags&16777216,p=ts(u,n.escapedName,sie(n)|(a?8:0));return p.links.type=l?We:ar(n),p.declarations=n.declarations,p.links.nameType=Wi(n).nameType,p.links.syntheticOrigin=n,p}function Yet(n,a){return n.isReadonly!==a?ym(n.keyType,n.type,a,n.declaration):n}function zP(n,a,l,u){const p=_m(n,l);return p.value=a,p.regularType=u||p,p}function rA(n){if(n.flags&2976){if(!n.freshType){const a=zP(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function yd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=$s(n,yd)):n}function zb(n){return!!(n.flags&2976)&&n.freshType===n}function jf(n){let a;return _r.get(n)||(_r.set(n,a=zP(128,n)),a)}function Gp(n){let a;return Ii.get(n)||(Ii.set(n,a=zP(256,n)),a)}function tV(n){let a;const l=R1(n);return $i.get(l)||($i.set(l,a=zP(2048,n)),a)}function $et(n,a,l){let u;const p=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return Qi.get(p)||(Qi.set(p,u=zP(g,n,l)),u)}function Qet(n){if(n.literal.kind===104)return Sn;const a=Jr(n);return a.resolvedType||(a.resolvedType=yd(ga(n.literal))),a.resolvedType}function Zet(n){const a=_m(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${bo(a.symbol)}`,a}function Zie(n){if(rfe(n)){const a=A3(n)?Xd(n.left):Xd(n);if(a){const l=Wi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=Zet(a))}}return q}function ett(n){const a=Sd(n,!1,!1),l=a&&a.parent;if(l&&(di(l)||l.kind===261)&&!Ja(a)&&(!ql(a)||vT(n,a.body)))return qu(Ir(l)).thisType;if(l&&Ls(l)&&br(l.parent)&&Ll(l.parent)===6)return qu(Xd(l.parent.left).parent).thisType;const u=n.flags&8388608?$0(n):void 0;return u&&Bs(u)&&br(u.parent)&&Ll(u.parent)===3?qu(Xd(u.parent.left).parent).thisType:Vp(a)&&vT(n,a.body)?qu(Ir(a)).thisType:(Ke(n,_.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ce)}function nV(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=ett(n)),a.resolvedType}function jIe(n){return fi(qP(n.type)||n.type)}function qP(n){switch(n.kind){case 193:return qP(n.type);case 186:if(n.elements.length===1&&(n=n.elements[0],n.kind===188||n.kind===199&&n.dotDotDotToken))return qP(n.type);break;case 185:return n.elementType}}function ttt(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?jIe(n):Io(fi(n.type),!0,!!n.questionToken))}function fi(n){return RZe(HIe(n),n)}function HIe(n){switch(n.kind){case 131:case 315:case 316:return we;case 157:return he;case 152:return ue;case 148:return mt;case 160:return zt;case 134:return Re;case 153:return q;case 114:return Rt;case 155:return We;case 104:return Sn;case 144:return gt;case 149:return n.flags&262144&&!Se?we:oi;case 139:return ie;case 194:case 108:return nV(n);case 198:return Qet(n);case 180:return Nie(n);case 179:return n.assertsModifier?Rt:Re;case 230:return Nie(n);case 183:return eIe(n);case 185:case 186:return oet(n);case 187:return det(n);case 189:return yet(n);case 190:return Let(n);case 317:return NZe(n);case 319:return Io(fi(n.type));case 199:return ttt(n);case 193:case 318:case 312:return fi(n.type);case 188:return jIe(n);case 321:return Ylt(n);case 181:case 182:case 184:case 325:case 320:case 326:return VIe(n);case 195:return Oet(n);case 196:return PIe(n);case 197:return Kie(n);case 191:return Jet(n);case 192:return Ket(n);case 200:return Pet(n);case 202:return Xet(n);case 79:case 163:case 208:const a=R_(n);return a?Us(a):Ce;default:return Ce}}function rV(n,a,l){if(n&&n.length)for(let u=0;u<n.length;u++){const p=n[u],g=l(p,a);if(p!==g){const x=u===0?[]:n.slice(0,u);for(x.push(g),u++;u<n.length;u++)x.push(l(n[u],a));return x}}return n}function Zg(n,a){return rV(n,a,Yi)}function iV(n,a){return rV(n,a,iA)}function WIe(n,a){return rV(n,a,mtt)}function vd(n,a){return n.length===1?qb(n[0],a?a[0]:we):ntt(n,a)}function k0(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const u=a.sources,p=a.targets;for(let g=0;g<u.length;g++)if(n===u[g])return p?p[g]:we;return n}case 2:{const u=a.sources,p=a.targets;for(let g=0;g<u.length;g++)if(n===u[g])return p[g]();return n}case 3:return a.func(n);case 4:case 5:const l=k0(n,a.mapper1);return l!==n&&a.kind===4?Yi(l,a.mapper2):k0(l,a.mapper2)}}function qb(n,a){return D.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function ntt(n,a){return D.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function JP(n,a){return D.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:D.isDebugging?a:void 0})}function eae(n,a){return D.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function aV(n,a,l){return D.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:l})}function zIe(n){return vd(n,void 0)}function rtt(n,a){const l=n.inferences.slice(a);return vd(Vt(l,u=>u.typeParameter),Vt(l,()=>he))}function w0(n,a){return n?aV(4,n,a):a}function itt(n,a){return n?aV(5,n,a):a}function LS(n,a,l){return l?aV(5,qb(n,a),l):qb(n,a)}function ND(n,a,l){return n?aV(5,n,qb(a,l)):qb(a,l)}function att(n){return!n.constraint&&!kie(n)||n.constraint===Xo?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Nd(n.symbol),n.restrictiveInstantiation.constraint=Xo,n.restrictiveInstantiation)}function oV(n){const a=Nd(n.symbol);return a.target=n,a}function ott(n,a){return UP(n.kind,n.parameterName,n.parameterIndex,Yi(n.type,a))}function iA(n,a,l){let u;if(n.typeParameters&&!l){u=Vt(n.typeParameters,oV),a=w0(vd(n.typeParameters,u),a);for(const g of u)g.mapper=a}const p=oh(n.declaration,u,n.thisParameter&&tae(n.thisParameter,a),rV(n.parameters,a,tae),void 0,void 0,n.minArgumentCount,n.flags&39);return p.target=n,p.mapper=a,p}function tae(n,a){const l=Wi(n);if(l.type&&!GE(l.type))return n;Il(n)&1&&(n=l.target,a=w0(l.mapper,a));const u=ts(n.flags,n.escapedName,1|Il(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),l.nameType&&(u.links.nameType=l.nameType),u}function stt(n,a,l,u){const p=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Jr(p),x=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n;let R=g.outerTypeParameters;if(!R){let M=IL(p,!0);if(Vp(p)){const $=GLe(p);M=Ti(M,$)}R=M||rt;const J=n.objectFlags&8388612?[p]:n.symbol.declarations;R=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?lr(R,$=>kt(J,ge=>KP($,ge))):R,g.outerTypeParameters=R}if(R.length){const M=w0(n.mapper,a),J=Vt(R,_t=>k0(_t,M)),$=l||n.aliasSymbol,ge=l?u:Zg(n.aliasTypeArguments,a),Ne=o_(J)+$2($,ge);x.instantiations||(x.instantiations=new Map,x.instantiations.set(o_(R)+$2(x.aliasSymbol,x.aliasTypeArguments),x));let De=x.instantiations.get(Ne);if(!De){const _t=vd(R,J);De=x.objectFlags&4?wie(n.target,n.node,_t,$,ge):x.objectFlags&32?qIe(x,_t,$,ge):iae(x,_t,$,ge),x.instantiations.set(Ne,De)}return De}return n}function ltt(n){return!(n.parent.kind===180&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===202&&n.parent.typeArguments&&n===n.parent.qualifier)}function KP(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const u=n.symbol.declarations[0].parent;for(let p=a;p!==u;p=p.parent)if(!p||p.kind===238||p.kind===191&&Ma(p.extendsType,l))return!0;return l(a)}return!0;function l(u){switch(u.kind){case 194:return!!n.isThisType;case 79:return!n.isThisType&&vh(u)&<t(u)&&HIe(u)===n;case 183:const p=u.exprName,g=Lf(p),x=D_(g),R=n.symbol.declarations[0];let M;if(R.kind===165)M=R.parent;else if(n.isThisType)M=R;else return!0;return x.declarations?kt(x.declarations,J=>vT(J,M))||kt(u.typeArguments,l):!0;case 171:case 170:return!u.type&&!!u.body||kt(u.typeParameters,l)||kt(u.parameters,l)||!!u.type&&l(u.type)}return!!Ma(u,l)}}function nae(n){const a=Mp(n);if(a.flags&4194304){const l=cv(a.type);if(l.flags&262144)return l}}function qIe(n,a,l,u){const p=nae(n);if(p){const g=Yi(p,a);if(p!==g)return Kke(dp(g),x=>{if(x.flags&61603843&&x!==Nt&&!ns(x)){if(!n.declaration.nameType){let R;if(Hf(x)||x.flags&1&&ih(p,4)<0&&(R=Cu(p))&&lh(R,ME))return utt(x,n,LS(p,x,a));if(aA(x))return ctt(x,n,p,a);if(Mo(x))return dtt(x,n,LS(p,x,a))}return iae(n,LS(p,x,a))}return x},l,u)}return Yi(Mp(n),a)===Nt?Nt:iae(n,a,l,u)}function rae(n,a){return a&1?!0:a&2?!1:n}function ctt(n,a,l,u){const p=n.target.elementFlags,g=Vt(gs(n),(R,M)=>{const J=p[M]&8?R:p[M]&4?Iu(R):Bp([R],[p[M]]);return qIe(a,LS(l,J,u))}),x=rae(n.target.readonly,hm(a));return Bp(g,Vt(g,R=>8),x)}function utt(n,a,l){const u=JIe(a,mt,!0,l);return ns(u)?Ce:Iu(u,rae(BL(n),hm(a)))}function dtt(n,a,l){const u=n.target.elementFlags,p=Vt(gs(n),(M,J)=>JIe(a,jf(""+J),!!(u[J]&2),l)),g=hm(a),x=g&4?Vt(u,M=>M&1?2:M):g&8?Vt(u,M=>M&2?1:M):u,R=rae(n.target.readonly,g);return jr(p,Ce)?Ce:Bp(p,x,R,n.target.labeledElementDeclarations)}function JIe(n,a,l,u){const p=ND(u,cp(n),a),g=Yi(Kh(n.target||n),p),x=hm(n);return W&&x&4&&!pl(g,49152)?ey(g,!0):W&&x&8&&l?l_(g,524288):g}function iae(n,a,l,u){const p=hf(n.objectFlags|64,n.symbol);if(n.objectFlags&32){p.declaration=n.declaration;const g=cp(n),x=oV(g);p.typeParameter=x,a=w0(qb(g,x),a),x.mapper=a}return n.objectFlags&8388608&&(p.node=n.node),p.target=n,p.mapper=a,p.aliasSymbol=l||n.aliasSymbol,p.aliasTypeArguments=l?u:Zg(n.aliasTypeArguments,a),p.objectFlags|=p.aliasTypeArguments?WU(p.aliasTypeArguments):0,p}function aae(n,a,l,u){const p=n.root;if(p.outerTypeParameters){const g=Vt(p.outerTypeParameters,M=>k0(M,a)),x=o_(g)+$2(l,u);let R=p.instantiations.get(x);if(!R){const M=vd(p.outerTypeParameters,g),J=p.checkType,$=p.isDistributive?k0(J,M):void 0;R=$&&J!==$&&$.flags&1179648?Kke(dp($),ge=>Xie(p,LS(J,ge,M)),l,u):Xie(p,M,l,u),p.instantiations.set(x,R)}return R}return n}function Yi(n,a){return n&&a?KIe(n,a,void 0,void 0):n}function KIe(n,a,l,u){var p;if(!GE(n))return n;if(O===100||I>=5e6)return(p=bi)==null||p.instant(bi.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:O,instantiationCount:I}),Ke(G,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ce;L++,I++,O++;const g=ftt(n,a,l,u);return O--,g}function ftt(n,a,l,u){const p=n.flags;if(p&262144)return k0(n,a);if(p&524288){const g=n.objectFlags;if(g&52){if(g&4&&!n.node){const x=n.resolvedTypeArguments,R=Zg(x,a);return R!==x?Uie(n.target,R):n}return g&1024?_tt(n,a):stt(n,a,l,u)}return n}if(p&3145728){const g=n.flags&1048576?n.origin:void 0,x=g&&g.flags&3145728?g.types:n.types,R=Zg(x,a);if(R===x&&l===n.aliasSymbol)return n;const M=l||n.aliasSymbol,J=l?u:Zg(n.aliasTypeArguments,a);return p&2097152||g&&g.flags&2097152?wo(R,M,J):Qr(R,1,M,J)}if(p&4194304)return vm(Yi(n.type,a));if(p&134217728)return OE(n.texts,Zg(n.types,a));if(p&268435456)return AS(n.symbol,Yi(n.type,a));if(p&8388608){const g=l||n.aliasSymbol,x=l?u:Zg(n.aliasTypeArguments,a);return Md(Yi(n.objectType,a),Yi(n.indexType,a),n.accessFlags,void 0,g,x)}if(p&16777216)return aae(n,w0(n.mapper,a),l,u);if(p&33554432){const g=Yi(n.baseType,a),x=Yi(n.constraint,a);return g.flags&8650752&&PL(x)?Die(g,x):x.flags&3||xo(PE(g),PE(x))?g:g.flags&8650752?Die(g,x):wo([x,g])}return n}function _tt(n,a){const l=Yi(n.mappedType,a);if(!(ti(l)&32))return n;const u=Yi(n.constraintType,a);if(!(u.flags&4194304))return n;const p=Ake(Yi(n.source,a),l,u);return p||n}function ptt(n){return n.flags&134479871?n:n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Yi(n,ss))}function sV(n){return n.flags&134479871?n:n.permissiveInstantiation||(n.permissiveInstantiation=Yi(n,Hi))}function PE(n){return n.flags&134479871?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Yi(n,ca),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function mtt(n,a){return ym(n.keyType,Yi(n.type,a),n.isReadonly,n.declaration)}function w_(n){switch(D.assert(n.kind!==171||G_(n)),n.kind){case 215:case 216:case 171:case 259:return XIe(n);case 207:return kt(n.properties,w_);case 206:return kt(n.elements,w_);case 224:return w_(n.whenTrue)||w_(n.whenFalse);case 223:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(w_(n.left)||w_(n.right));case 299:return w_(n.initializer);case 214:return w_(n.expression);case 289:return kt(n.properties,w_)||wh(n.parent)&&kt(n.parent.parent.children,w_);case 288:{const{initializer:a}=n;return!!a&&w_(a)}case 291:{const{expression:a}=n;return!!a&&w_(a)}}return!1}function XIe(n){return h7(n)||htt(n)}function htt(n){return!n.typeParameters&&!vp(n)&&!!n.body&&n.body.kind!==238&&w_(n.body)}function lV(n){return(gC(n)||G_(n))&&XIe(n)}function YIe(n){if(n.flags&524288){const a=up(n);if(a.constructSignatures.length||a.callSignatures.length){const l=hf(16,n.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=rt,l.constructSignatures=rt,l.indexInfos=rt,l}}else if(n.flags&2097152)return wo(Vt(n.types,YIe));return n}function Xh(n,a){return bm(n,a,Dd)}function OD(n,a){return bm(n,a,Dd)?-1:0}function oae(n,a){return bm(n,a,kd)?-1:0}function gtt(n,a){return bm(n,a,$m)?-1:0}function uv(n,a){return bm(n,a,$m)}function $Ie(n,a){return bm(n,a,np)}function xo(n,a){return bm(n,a,kd)}function Jb(n,a){return n.flags&1048576?Yn(n.types,l=>Jb(l,a)):a.flags&1048576?kt(a.types,l=>Jb(n,l)):n.flags&2097152?kt(n.types,l=>Jb(l,a)):n.flags&58982400?Jb(Ju(n)||he,a):$h(a)?!!(n.flags&67633152):a===Ya?!!(n.flags&67633152)&&!$h(n):a===dl?!!(n.flags&524288)&&Vae(n):kE(n,q2(a))||Hf(a)&&!BL(a)&&Jb(n,ds)}function cV(n,a){return bm(n,a,wd)}function XP(n,a){return cV(n,a)||cV(a,n)}function od(n,a,l,u,p,g){return s_(n,a,kd,l,u,p,g)}function dv(n,a,l,u,p,g){return sae(n,a,kd,l,u,p,g,void 0)}function sae(n,a,l,u,p,g,x,R){return bm(n,a,l)?!0:!u||!PD(p,n,a,l,g,x,R)?s_(n,a,l,u,g,x,R):!1}function QIe(n){return!!(n.flags&16777216||n.flags&2097152&&kt(n.types,QIe))}function PD(n,a,l,u,p,g,x){if(!n||QIe(l))return!1;if(!s_(a,l,u,void 0)&&ytt(n,a,l,u,p,g,x))return!0;switch(n.kind){case 291:case 214:return PD(n.expression,a,l,u,p,g,x);case 223:switch(n.operatorToken.kind){case 63:case 27:return PD(n.right,a,l,u,p,g,x)}break;case 207:return Ctt(n,a,l,u,g,x);case 206:return xtt(n,a,l,u,g,x);case 289:return Stt(n,a,l,u,g,x);case 216:return vtt(n,a,l,u,g,x)}return!1}function ytt(n,a,l,u,p,g,x){const R=za(a,0),M=za(a,1);for(const J of[M,R])if(kt(J,$=>{const ge=ys($);return!(ge.flags&131073)&&s_(ge,l,u,void 0)})){const $=x||{};od(a,l,n,p,g,$);const ge=$.errors[$.errors.length-1];return Ko(ge,Nr(n,J===M?_.Did_you_mean_to_use_new_with_this_expression:_.Did_you_mean_to_call_this_expression)),!0}return!1}function vtt(n,a,l,u,p,g){if(lo(n.body)||kt(n.parameters,l3))return!1;const x=DS(a);if(!x)return!1;const R=za(l,0);if(!Ae(R))return!1;const M=n.body,J=ys(x),$=Qr(Vt(R,ys));if(!s_(J,$,u,void 0)){const ge=M&&PD(M,J,$,u,void 0,p,g);if(ge)return ge;const Ne=g||{};if(s_(J,$,u,M,void 0,p,Ne),Ne.errors)return l.symbol&&Ae(l.symbol.declarations)&&Ko(Ne.errors[Ne.errors.length-1],Nr(l.symbol.declarations[0],_.The_expected_type_comes_from_the_return_type_of_this_signature)),!(jc(n)&2)&&!fc(J,"then")&&s_(x4(J),$,u,void 0)&&Ko(Ne.errors[Ne.errors.length-1],Nr(n,_.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function ZIe(n,a,l){const u=lv(a,l);if(u)return u;if(a.flags&1048576){const p=ske(n,a);if(p)return lv(p,l)}}function eke(n,a){_4(n,a,!1);const l=$L(n,1);return qD(),l}function YP(n,a,l,u,p,g){let x=!1;for(const R of n){const{errorNode:M,innerExpression:J,nameType:$,errorMessage:ge}=R;let Ne=ZIe(a,l,$);if(!Ne||Ne.flags&8388608)continue;let De=lv(a,$);if(!De)continue;const _t=YU($,void 0);if(!s_(De,Ne,u,void 0)){const Bt=J&&PD(J,De,Ne,u,void 0,p,g);if(x=!0,!Bt){const Mn=g||{},An=J?eke(J,De):De;if(qe&&dV(An,Ne)){const Kn=Nr(M,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ke(An),ke(Ne));$o.add(Kn),Mn.errors=[Kn]}else{const Kn=!!(_t&&(co(l,_t)||an).flags&16777216),gn=!!(_t&&(co(a,_t)||an).flags&16777216);Ne=FE(Ne,Kn),De=FE(De,Kn&&gn),s_(An,Ne,u,M,ge,p,Mn)&&An!==De&&s_(De,Ne,u,M,ge,p,Mn)}if(Mn.errors){const Kn=Mn.errors[Mn.errors.length-1],gn=Jh($)?mm($):void 0,xn=gn!==void 0?co(l,gn):void 0;let yr=!1;if(!xn){const ln=GP(l,$);ln&&ln.declaration&&!Zn(ln.declaration).hasNoDefaultLib&&(yr=!0,Ko(Kn,Nr(ln.declaration,_.The_expected_type_comes_from_this_index_signature)))}if(!yr&&(xn&&Ae(xn.declarations)||l.symbol&&Ae(l.symbol.declarations))){const ln=xn&&Ae(xn.declarations)?xn.declarations[0]:l.symbol.declarations[0];Zn(ln).hasNoDefaultLib||Ko(Kn,Nr(ln,_.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,gn&&!($.flags&8192)?ta(gn):ke($),ke(l)))}}}}}return x}function btt(n,a,l,u,p,g){const x=_c(l,gV),R=_c(l,$=>!gV($)),M=R!==gt?tse(13,0,R,void 0):void 0;let J=!1;for(let $=n.next();!$.done;$=n.next()){const{errorNode:ge,innerExpression:Ne,nameType:De,errorMessage:_t}=$.value;let Bt=M;const Mn=x!==gt?ZIe(a,x,De):void 0;if(Mn&&!(Mn.flags&8388608)&&(Bt=M?Qr([M,Mn]):Mn),!Bt)continue;let An=lv(a,De);if(!An)continue;const Kn=YU(De,void 0);if(!s_(An,Bt,u,void 0)){const gn=Ne&&PD(Ne,An,Bt,u,void 0,p,g);if(J=!0,!gn){const xn=g||{},yr=Ne?eke(Ne,An):An;if(qe&&dV(yr,Bt)){const ln=Nr(ge,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ke(yr),ke(Bt));$o.add(ln),xn.errors=[ln]}else{const ln=!!(Kn&&(co(x,Kn)||an).flags&16777216),Gn=!!(Kn&&(co(a,Kn)||an).flags&16777216);Bt=FE(Bt,ln),An=FE(An,ln&&Gn),s_(yr,Bt,u,ge,_t,p,xn)&&yr!==An&&s_(An,Bt,u,ge,_t,p,xn)}}}}return J}function*Ett(n){if(Ae(n.properties))for(const a of n.properties)RT(a)||aoe(Mr(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:jf(Mr(a.name))})}function*Ttt(n,a){if(!Ae(n.children))return;let l=0;for(let u=0;u<n.children.length;u++){const p=n.children[u],g=Gp(u-l),x=tke(p,g,a);x?yield x:l++}}function tke(n,a,l){switch(n.kind){case 291:return{errorNode:n,innerExpression:n.expression,nameType:a};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:l()};case 281:case 282:case 285:return{errorNode:n,innerExpression:n,nameType:a};default:return D.assertNever(n,"Found invalid jsx child")}}function Stt(n,a,l,u,p,g){let x=YP(Ett(n),a,l,u,p,g),R;if(wh(n.parent)&&Cy(n.parent.parent)){const J=n.parent.parent,$=GV(lA(n)),ge=$===void 0?"children":ta($),Ne=jf(ge),De=Md(l,Ne),_t=nO(J.children);if(!Ae(_t))return x;const Bt=Ae(_t)>1;let Mn,An;if(Mie(!1)!==Co){const gn=dIe(we);Mn=_c(De,xn=>xo(xn,gn)),An=_c(De,xn=>!xo(xn,gn))}else Mn=_c(De,gV),An=_c(De,gn=>!gV(gn));if(Bt){if(Mn!==gt){const gn=Bp(BV(J,0)),xn=Ttt(J,M);x=btt(xn,gn,Mn,u,p,g)||x}else if(!bm(Md(a,Ne),De,u)){x=!0;const gn=Ke(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ge,ke(De));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(gn)}}else if(An!==gt){const gn=_t[0],xn=tke(gn,Ne,M);xn&&(x=YP(function*(){yield xn}(),a,l,u,p,g)||x)}else if(!bm(Md(a,Ne),De,u)){x=!0;const gn=Ke(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ge,ke(De));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(gn)}}return x;function M(){if(!R){const J=xc(n.parent.tagName),$=GV(lA(n)),ge=$===void 0?"children":ta($),Ne=Md(l,jf(ge)),De=_._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;R={...De,key:"!!ALREADY FORMATTED!!",message:Wq(void 0,De,J,ge,ke(Ne))}}return R}}function*nke(n,a){const l=Ae(n.elements);if(l)for(let u=0;u<l;u++){if(GL(a)&&!co(a,""+u))continue;const p=n.elements[u];if(Rc(p))continue;const g=Gp(u);yield{errorNode:p,innerExpression:p,nameType:g}}}function xtt(n,a,l,u,p,g){if(l.flags&134479868)return!1;if(GL(a))return YP(nke(n,l),a,l,u,p,g);_4(n,l,!1);const x=bwe(n,1,!0);return qD(),GL(x)?YP(nke(n,l),x,l,u,p,g):!1}function*Att(n){if(Ae(n.properties))for(const a of n.properties){if(Kx(a))continue;const l=OL(Ir(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 175:case 174:case 171:case 300:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 299:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:SN(a.name)?_.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:D.assertNever(a)}}}function Ctt(n,a,l,u,p,g){return l.flags&134479868?!1:YP(Att(n),a,l,u,p,g)}function rke(n,a,l,u,p){return s_(n,a,wd,l,u,p)}function Ltt(n,a,l){return lae(n,a,l?4:0,!1,void 0,void 0,oae,void 0)!==0}function uV(n){if(!n.typeParameters&&(!n.thisParameter||Ss(T4(n.thisParameter)))&&n.parameters.length===1&&Eu(n)){const a=T4(n.parameters[0]);return!!((Hf(a)?gs(a)[0]:a).flags&131073&&ys(n).flags&3)}return!1}function lae(n,a,l,u,p,g,x,R){if(n===a||!(l&16&&uV(n))&&uV(a))return-1;if(l&16&&uV(n)&&!uV(a))return 0;const M=ef(a);if(!Sm(a)&&(l&8?Sm(n)||ef(n)>M:Tm(n)>M))return 0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=CZe(a),n=$we(n,a,void 0,x));const $=ef(n),ge=QD(n),Ne=QD(a);(ge||Ne)&&Yi(ge||Ne,R);const De=a.declaration?a.declaration.kind:0,_t=!(l&3)&&ce&&De!==171&&De!==170&&De!==173;let Bt=-1;const Mn=Ub(n);if(Mn&&Mn!==Rt){const gn=Ub(a);if(gn){const xn=!_t&&x(Mn,gn,!1)||x(gn,Mn,u);if(!xn)return u&&p(_.The_this_types_of_each_signature_are_incompatible),0;Bt&=xn}}const An=ge||Ne?Math.min($,M):Math.max($,M),Kn=ge||Ne?An-1:-1;for(let gn=0;gn<An;gn++){const xn=gn===Kn?YD(n,gn):zE(n,gn),yr=gn===Kn?YD(a,gn):zE(a,gn);if(xn&&yr){const ln=l&3?void 0:DS(ty(xn)),Gn=l&3?void 0:DS(ty(yr));let Zr=ln&&Gn&&!a_(ln)&&!a_(Gn)&&(wu(xn)&50331648)===(wu(yr)&50331648)?lae(Gn,ln,l&8|(_t?2:1),u,p,g,x,R):!(l&3)&&!_t&&x(xn,yr,!1)||x(yr,xn,u);if(Zr&&l&8&&gn>=Tm(n)&&gn<Tm(a)&&x(xn,yr,!1)&&(Zr=0),!Zr)return u&&p(_.Types_of_parameters_0_and_1_are_incompatible,ta(XL(n,gn)),ta(XL(a,gn))),0;Bt&=Zr}}if(!(l&4)){const gn=Aie(a)?we:a.declaration&&Vp(a.declaration)?qu(as(a.declaration.symbol)):ys(a);if(gn===Rt||gn===we)return Bt;const xn=Aie(n)?we:n.declaration&&Vp(n.declaration)?qu(as(n.declaration.symbol)):ys(n),yr=a_(a);if(yr){const ln=a_(n);if(ln)Bt&=Itt(ln,yr,u,p,x);else if(afe(yr))return u&&p(_.Signature_0_must_be_a_type_predicate,le(n)),0}else Bt&=l&1&&x(gn,xn,!1)||x(xn,gn,u),!Bt&&u&&g&&g(xn,gn)}return Bt}function Itt(n,a,l,u,p){if(n.kind!==a.kind)return l&&(u(_.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(_.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return l&&(u(_.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(_.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a))),0;const g=n.type===a.type?-1:n.type&&a.type?p(n.type,a.type,l):0;return g===0&&l&&u(_.Type_predicate_0_is_not_assignable_to_1,nu(n),nu(a)),g}function ktt(n,a){const l=ID(n),u=ID(a),p=ys(l),g=ys(u);return g===Rt||bm(g,p,kd)||bm(p,g,kd)?Ltt(l,u,!0):!1}function cae(n){return n!==La&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function Yh(n){return n.flags&524288?!Vf(n)&&cae(up(n)):n.flags&67108864?!0:n.flags&1048576?kt(n.types,Yh):n.flags&2097152?Yn(n.types,Yh):!1}function $h(n){return!!(ti(n)&16&&(n.members&&cae(n)||n.symbol&&n.symbol.flags&2048&&nv(n.symbol).size===0))}function wtt(n){if(W&&n.flags&1048576){if(!(n.objectFlags&33554432)){const a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&kt(a,$h)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function ML(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function ike(n){return n.flags&524288&&!Vf(n)&&hs(n).length===0&&Lu(n).length===1&&!!sh(n,ue)||n.flags&3145728&&Yn(n.types,ike)||!1}function uae(n,a,l){const u=n.flags&8?gd(n):n,p=a.flags&8?gd(a):a;if(u===p)return!0;if(u.escapedName!==p.escapedName||!(u.flags&256)||!(p.flags&256))return!1;const g=bo(u)+","+bo(p),x=vb.get(g);if(x!==void 0&&!(!(x&4)&&x&2&&l))return!!(x&1);const R=ar(p);for(const M of hs(ar(u)))if(M.flags&8){const J=co(R,M.escapedName);if(!J||!(J.flags&8))return l?(l(_.Property_0_is_missing_in_type_1,Fl(M),ke(Us(p),void 0,64)),vb.set(g,6)):vb.set(g,2),!1}return vb.set(g,1),!0}function MD(n,a,l,u){const p=n.flags,g=a.flags;return g&1||p&131072||n===Nt||g&2&&!(l===np&&p&1)?!0:g&131072?!1:!!(p&402653316&&g&4||p&128&&p&1024&&g&128&&!(g&1024)&&n.value===a.value||p&296&&g&8||p&256&&p&1024&&g&256&&!(g&1024)&&n.value===a.value||p&2112&&g&64||p&528&&g&16||p&12288&&g&4096||p&32&&g&32&&n.symbol.escapedName===a.symbol.escapedName&&uae(n.symbol,a.symbol,u)||p&1024&&g&1024&&(p&1048576&&g&1048576&&uae(n.symbol,a.symbol,u)||p&2944&&g&2944&&n.value===a.value&&uae(n.symbol,a.symbol,u))||p&32768&&(!W&&!(g&3145728)||g&49152)||p&65536&&(!W&&!(g&3145728)||g&65536)||p&524288&&g&67108864&&!(l===np&&$h(n)&&!(ti(n)&8192))||(l===kd||l===wd)&&(p&1||p&8&&(g&32||g&256&&g&1024)||p&256&&!(p&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||wtt(a)))}function bm(n,a,l){if(zb(n)&&(n=n.regularType),zb(a)&&(a=a.regularType),n===a)return!0;if(l!==Dd){if(l===wd&&!(a.flags&131072)&&MD(a,n,l)||MD(n,a,l))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const u=l.get(mae(n,a,0,l,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?s_(n,a,l,void 0):!1}function ake(n,a){return ti(n)&2048&&aoe(a.escapedName)}function $P(n,a){for(;;){const l=zb(n)?n.regularType:ti(n)&4?n.node?Yg(n.target,gs(n)):yae(n)||n:n.flags&3145728?Dtt(n,a):n.flags&33554432?a?n.baseType:Rie(n):n.flags&25165824?Qg(n,a):n;if(l===n)return l;n=l}}function Dtt(n,a){const l=dp(n);if(l!==n)return l;if(n.flags&2097152&&kt(n.types,$h)){const u=pa(n.types,p=>$P(p,a));if(u!==n.types)return wo(u)}return n}function s_(n,a,l,u,p,g,x){var R;let M,J,$,ge,Ne,De=0,_t=0,Bt=0,Mn=0,An=!1,Kn=0,gn,xn;D.assert(l!==Dd||!u,"no error reporting in identity checking");const yr=oa(n,a,3,!!u,p);if(xn&&Zr(),An){(R=bi)==null||R.instant(bi.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:_t,targetDepth:Bt});const nt=Ke(u||G,_.Excessive_stack_depth_comparing_types_0_and_1,ke(n),ke(a));x&&(x.errors||(x.errors=[])).push(nt)}else if(M){if(g){const tn=g();tn&&(b_e(tn,M),M=tn)}let nt;if(p&&u&&!yr&&n.symbol){const tn=Wi(n.symbol);if(tn.originatingImport&&!sf(tn.originatingImport)&&s_(ar(tn.target),a,l,void 0)){const mr=Nr(tn.originatingImport,_.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);nt=Fn(nt,mr)}}const St=dg(Zn(u),u,M,nt);J&&Ko(St,...J),x&&(x.errors||(x.errors=[])).push(St),(!x||!x.skipLogging)&&$o.add(St)}return u&&x&&x.skipLogging&&yr===0&&D.assert(!!x.errors,"missed opportunity to interact with error."),yr!==0;function ln(nt){M=nt.errorInfo,gn=nt.lastSkippedInfo,xn=nt.incompatibleStack,Kn=nt.overrideNextErrorInfo,J=nt.relatedInfo}function Gn(){return{errorInfo:M,lastSkippedInfo:gn,incompatibleStack:xn==null?void 0:xn.slice(),overrideNextErrorInfo:Kn,relatedInfo:J==null?void 0:J.slice()}}function qn(nt,St,tn,Wn,mr){Kn++,gn=void 0,(xn||(xn=[])).push([nt,St,tn,Wn,mr])}function Zr(){const nt=xn||[];xn=void 0;const St=gn;if(gn=void 0,nt.length===1){ri(...nt[0]),St&&Qa(void 0,...St);return}let tn="";const Wn=[];for(;nt.length;){const[mr,...Ln]=nt.pop();switch(mr.code){case _.Types_of_property_0_are_incompatible.code:{tn.indexOf("new ")===0&&(tn=`(${tn})`);const Sr=""+Ln[0];tn.length===0?tn=`${Sr}`:M_(Sr,es(Y))?tn=`${tn}.${Sr}`:Sr[0]==="["&&Sr[Sr.length-1]==="]"?tn=`${tn}${Sr}`:tn=`${tn}[${Sr}]`;break}case _.Call_signature_return_types_0_and_1_are_incompatible.code:case _.Construct_signature_return_types_0_and_1_are_incompatible.code:case _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(tn.length===0){let Sr=mr;mr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Sr=_.Call_signature_return_types_0_and_1_are_incompatible:mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Sr=_.Construct_signature_return_types_0_and_1_are_incompatible),Wn.unshift([Sr,Ln[0],Ln[1]])}else{const Sr=mr.code===_.Construct_signature_return_types_0_and_1_are_incompatible.code||mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Vr=mr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";tn=`${Sr}${tn}(${Vr})`}break}case _.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Wn.unshift([_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ln[0],Ln[1]]);break}case _.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Wn.unshift([_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ln[0],Ln[1],Ln[2]]);break}default:return D.fail(`Unhandled Diagnostic: ${mr.code}`)}}tn?ri(tn[tn.length-1]===")"?_.The_types_returned_by_0_are_incompatible_between_these_types:_.The_types_of_0_are_incompatible_between_these_types,tn):Wn.shift();for(const[mr,...Ln]of Wn){const Sr=mr.elidedInCompatabilityPyramid;mr.elidedInCompatabilityPyramid=!1,ri(mr,...Ln),mr.elidedInCompatabilityPyramid=Sr}St&&Qa(void 0,...St)}function ri(nt,St,tn,Wn,mr){D.assert(!!u),xn&&Zr(),!nt.elidedInCompatabilityPyramid&&(M=Na(M,nt,St,tn,Wn,mr))}function _a(nt){D.assert(!!M),J?J.push(nt):J=[nt]}function Qa(nt,St,tn){xn&&Zr();const[Wn,mr]=on(St,tn);let Ln=St,Sr=Wn;if(FD(St)&&!dae(tn)&&(Ln=fv(St),D.assert(!xo(Ln,tn),"generalized source shouldn't be assignable"),Sr=Cr(Ln)),(tn.flags&8388608&&!(St.flags&8388608)?tn.objectType.flags:tn.flags)&262144&&tn!==Ds&&tn!==hl){const Ui=Ju(tn);let Ca;Ui&&(xo(Ln,Ui)||(Ca=xo(St,Ui)))?ri(_._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ca?Wn:Sr,mr,ke(Ui)):(M=void 0,ri(_._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,mr,Sr))}if(nt)nt===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&qe&&oke(St,tn).length&&(nt=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(l===wd)nt=_.Type_0_is_not_comparable_to_type_1;else if(Wn===mr)nt=_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(qe&&oke(St,tn).length)nt=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&tn.flags&1048576){const Ui=Oit(St,tn);if(Ui){ri(_.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Sr,mr,ke(Ui));return}}nt=_.Type_0_is_not_assignable_to_type_1}ri(nt,Sr,mr)}function Ec(nt,St){const tn=Si(nt.symbol)?ke(nt,nt.symbol.valueDeclaration):ke(nt),Wn=Si(St.symbol)?ke(St,St.symbol.valueDeclaration):ke(St);(fl===nt&&ue===St||qd===nt&&mt===St||Wl===nt&&Re===St||sIe()===nt&&q===St)&&ri(_._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Wn,tn)}function Wf(nt,St,tn){return Mo(nt)?nt.target.readonly&&mV(St)?(tn&&ri(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ke(nt),ke(St)),!1):ME(St):BL(nt)&&mV(St)?(tn&&ri(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ke(nt),ke(St)),!1):Mo(St)?Hf(nt):!0}function bf(nt,St,tn){return oa(nt,St,3,tn)}function oa(nt,St,tn=3,Wn=!1,mr,Ln=0){if(nt.flags&524288&&St.flags&134348796)return l===wd&&!(St.flags&131072)&&MD(St,nt,l)||MD(nt,St,l,Wn?ri:void 0)?-1:(Wn&&Un(nt,St,nt,St,mr),0);const Sr=$P(nt,!1);let Vr=$P(St,!0);if(Sr===Vr)return-1;if(l===Dd)return Sr.flags!==Vr.flags?0:Sr.flags&67358815?-1:(sr(Sr,Vr),Qn(Sr,Vr,!1,0,tn));if(Sr.flags&262144&&DE(Sr)===Vr)return-1;if(Sr.flags&470302716&&Vr.flags&1048576){const Ui=Vr.types,Ca=Ui.length===2&&Ui[0].flags&98304?Ui[1]:Ui.length===3&&Ui[0].flags&98304&&Ui[1].flags&98304?Ui[2]:void 0;if(Ca&&!(Ca.flags&98304)&&(Vr=$P(Ca,!0),Sr===Vr))return-1}if(l===wd&&!(Vr.flags&131072)&&MD(Vr,Sr,l)||MD(Sr,Vr,l,Wn?ri:void 0))return-1;if(Sr.flags&469499904||Vr.flags&469499904){if(!(Ln&2)&&N0(Sr)&&ti(Sr)&8192&&Ga(Sr,Vr,Wn))return Wn&&Qa(mr,Sr,St.aliasSymbol?St:Vr),0;const Ca=(l!==wd||fp(Sr))&&!(Ln&2)&&Sr.flags&136970236&&Sr!==Ya&&Vr.flags&2621440&&lke(Vr)&&(hs(Sr).length>0||gj(Sr)),qa=!!(ti(Sr)&2048);if(Ca&&!Ntt(Sr,Vr,qa)){if(Wn){const eo=ke(nt.aliasSymbol?nt:Sr),Fo=ke(St.aliasSymbol?St:Vr),Do=za(Sr,0),ks=za(Sr,1);Do.length>0&&oa(ys(Do[0]),Vr,1,!1)||ks.length>0&&oa(ys(ks[0]),Vr,1,!1)?ri(_.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,eo,Fo):ri(_.Type_0_has_no_properties_in_common_with_type_1,eo,Fo)}return 0}sr(Sr,Vr);const pi=Sr.flags&1048576&&Sr.types.length<4&&!(Vr.flags&1048576)||Vr.flags&1048576&&Vr.types.length<4&&!(Sr.flags&469499904)?Qo(Sr,Vr,Wn,Ln):Qn(Sr,Vr,Wn,Ln,tn);if(pi)return pi}return Wn&&Un(nt,St,Sr,Vr,mr),0}function Un(nt,St,tn,Wn,mr){var Ln,Sr;const Vr=!!yae(nt),Ui=!!yae(St);tn=nt.aliasSymbol||Vr?nt:tn,Wn=St.aliasSymbol||Ui?St:Wn;let Ca=Kn>0;if(Ca&&Kn--,tn.flags&524288&&Wn.flags&524288){const qa=M;Wf(tn,Wn,!0),M!==qa&&(Ca=!!M)}if(tn.flags&524288&&Wn.flags&134348796)Ec(tn,Wn);else if(tn.symbol&&tn.flags&524288&&Ya===tn)ri(_.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ti(tn)&2048&&Wn.flags&2097152){const qa=Wn.types,Za=$b(kf.IntrinsicAttributes,u),pi=$b(kf.IntrinsicClassAttributes,u);if(!ns(Za)&&!ns(pi)&&(jr(qa,Za)||jr(qa,pi)))return}else M=gie(M,St);if(!mr&&Ca){gn=[tn,Wn];return}if(Qa(mr,tn,Wn),tn.flags&262144&&((Sr=(Ln=tn.symbol)==null?void 0:Ln.declarations)!=null&&Sr[0])&&!DE(tn)){const qa=oV(tn);if(qa.constraint=Yi(Wn,qb(tn,qa)),xD(qa)){const Za=ke(Wn,tn.symbol.declarations[0]);_a(Nr(tn.symbol.declarations[0],_.This_type_parameter_might_need_an_extends_0_constraint,Za))}}}function sr(nt,St){if(bi&&nt.flags&3145728&&St.flags&3145728){const tn=nt,Wn=St;if(tn.objectFlags&Wn.objectFlags&32768)return;const mr=tn.types.length,Ln=Wn.types.length;mr*Ln>1e6&&bi.instant(bi.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:nt.id,sourceSize:mr,targetId:St.id,targetSize:Ln,pos:u==null?void 0:u.pos,end:u==null?void 0:u.end})}}function Zi(nt,St){return Qr(Nu(nt,(Wn,mr)=>{var Ln;mr=Ku(mr);const Sr=mr.flags&3145728?hie(mr,St):Bb(mr,St),Vr=Sr&&ar(Sr)||((Ln=X2(mr,St))==null?void 0:Ln.type)||We;return Fn(Wn,Vr)},void 0)||rt)}function Ga(nt,St,tn){var Wn;if(!h4(St)||!Se&&ti(St)&4096)return!1;const mr=!!(ti(nt)&2048);if((l===kd||l===wd)&&(WD(Ya,St)||!mr&&Yh(St)))return!1;let Ln=St,Sr;St.flags&1048576&&(Ln=yNe(nt,St,oa)||Put(St),Sr=Ln.flags&1048576?Ln.types:[Ln]);for(const Vr of hs(nt))if(na(Vr,nt.symbol)&&!ake(nt,Vr)){if(!coe(Ln,Vr.escapedName,mr)){if(tn){const Ui=_c(Ln,h4);if(!u)return D.fail();if(F1(u)||ed(u)||ed(u.parent)){Vr.valueDeclaration&&im(Vr.valueDeclaration)&&Zn(u)===Zn(Vr.valueDeclaration.name)&&(u=Vr.valueDeclaration.name);const Ca=S(Vr),qa=Wwe(Ca,Ui),Za=qa?S(qa):void 0;Za?ri(_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ca,ke(Ui),Za):ri(_.Property_0_does_not_exist_on_type_1,Ca,ke(Ui))}else{const Ca=((Wn=nt.symbol)==null?void 0:Wn.declarations)&&Yc(nt.symbol.declarations);let qa;if(Vr.valueDeclaration&&nr(Vr.valueDeclaration,Za=>Za===Ca)&&Zn(Ca)===Zn(u)){const Za=Vr.valueDeclaration;D.assertNode(Za,hy),u=Za;const pi=Za.name;He(pi)&&(qa=goe(pi,Ui))}qa!==void 0?ri(_.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,S(Vr),ke(Ui),qa):ri(_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,S(Vr),ke(Ui))}}return!0}if(Sr&&!oa(ar(Vr),Zi(Sr,Vr.escapedName),3,tn))return tn&&qn(_.Types_of_property_0_are_incompatible,S(Vr)),!0}return!1}function na(nt,St){return nt.valueDeclaration&&St.valueDeclaration&&nt.valueDeclaration.parent===St.valueDeclaration}function Qo(nt,St,tn,Wn){if(nt.flags&1048576)return l===wd?Xu(nt,St,tn&&!(nt.flags&134348796),Wn):Te(nt,St,tn&&!(nt.flags&134348796),Wn);if(St.flags&1048576)return gl(r4(nt),St,tn&&!(nt.flags&134348796)&&!(St.flags&134348796));if(St.flags&2097152)return Ao(nt,St,tn,2);if(l===wd&&St.flags&134348796){const mr=pa(nt.types,Ln=>Ln.flags&465829888?Ju(Ln)||he:Ln);if(mr!==nt.types){if(nt=wo(mr),nt.flags&131072)return 0;if(!(nt.flags&2097152))return oa(nt,St,1,!1)||oa(St,nt,1,!1)}}return Xu(nt,St,!1,1)}function Os(nt,St){let tn=-1;const Wn=nt.types;for(const mr of Wn){const Ln=gl(mr,St,!1);if(!Ln)return 0;tn&=Ln}return tn}function gl(nt,St,tn){const Wn=St.types;if(St.flags&1048576){if(jb(Wn,nt))return-1;const mr=Mke(St,nt);if(mr){const Ln=oa(nt,mr,2,!1);if(Ln)return Ln}}for(const mr of Wn){const Ln=oa(nt,mr,2,!1);if(Ln)return Ln}if(tn){const mr=ske(nt,St,oa);mr&&oa(nt,mr,2,!0)}return 0}function Ao(nt,St,tn,Wn){let mr=-1;const Ln=St.types;for(const Sr of Ln){const Vr=oa(nt,Sr,2,tn,void 0,Wn);if(!Vr)return 0;mr&=Vr}return mr}function Xu(nt,St,tn,Wn){const mr=nt.types;if(nt.flags&1048576&&jb(mr,St))return-1;const Ln=mr.length;for(let Sr=0;Sr<Ln;Sr++){const Vr=oa(mr[Sr],St,1,tn&&Sr===Ln-1,void 0,Wn);if(Vr)return Vr}return 0}function dt(nt,St){return nt.flags&1048576&&St.flags&1048576&&!(nt.types[0].flags&32768)&&St.types[0].flags&32768?jL(St,-32769):St}function Te(nt,St,tn,Wn){let mr=-1;const Ln=nt.types,Sr=dt(nt,St);for(let Vr=0;Vr<Ln.length;Vr++){const Ui=Ln[Vr];if(Sr.flags&1048576&&Ln.length>=Sr.types.length&&Ln.length%Sr.types.length===0){const qa=oa(Ui,Sr.types[Vr%Sr.types.length],3,!1,void 0,Wn);if(qa){mr&=qa;continue}}const Ca=oa(Ui,St,1,tn,void 0,Wn);if(!Ca)return 0;mr&=Ca}return mr}function er(nt=rt,St=rt,tn=rt,Wn,mr){if(nt.length!==St.length&&l===Dd)return 0;const Ln=nt.length<=St.length?nt.length:St.length;let Sr=-1;for(let Vr=0;Vr<Ln;Vr++){const Ui=Vr<tn.length?tn[Vr]:1,Ca=Ui&7;if(Ca!==4){const qa=nt[Vr],Za=St[Vr];let pi=-1;if(Ui&8?pi=l===Dd?oa(qa,Za,3,!1):OD(qa,Za):Ca===1?pi=oa(qa,Za,3,Wn,void 0,mr):Ca===2?pi=oa(Za,qa,3,Wn,void 0,mr):Ca===3?(pi=oa(Za,qa,3,!1),pi||(pi=oa(qa,Za,3,Wn,void 0,mr))):(pi=oa(qa,Za,3,Wn,void 0,mr),pi&&(pi&=oa(Za,qa,3,Wn,void 0,mr))),!pi)return 0;Sr&=pi}}return Sr}function Qn(nt,St,tn,Wn,mr){var Ln,Sr,Vr;if(An)return 0;const Ui=mae(nt,St,Wn,l,!1),Ca=l.get(Ui);if(Ca!==void 0&&!(tn&&Ca&2&&!(Ca&4))){if(_i){const Do=Ca&24;Do&8&&Yi(nt,wn),Do&16&&Yi(nt,ua)}return Ca&1?-1:0}if(!$)$=[],ge=[],Ne=[];else{const Do=Ui.startsWith("*")?mae(nt,St,Wn,l,!0):void 0;for(let ks=0;ks<De;ks++)if(Ui===$[ks]||Do&&Do===$[ks])return 3;if(_t===100||Bt===100)return An=!0,0}const qa=De;$[De]=Ui,De++;const Za=Mn;mr&1&&(ge[_t]=nt,_t++,!(Mn&1)&&e4(nt,ge,_t)&&(Mn|=1)),mr&2&&(Ne[Bt]=St,Bt++,!(Mn&2)&&e4(St,Ne,Bt)&&(Mn|=2));let pi,eo=0;_i&&(pi=_i,_i=Do=>(eo|=Do?16:8,pi(Do)));let Fo;if(Mn===3?((Ln=bi)==null||Ln.instant(bi.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:nt.id,sourceIdStack:ge.map(Do=>Do.id),targetId:St.id,targetIdStack:Ne.map(Do=>Do.id),depth:_t,targetDepth:Bt}),Fo=3):((Sr=bi)==null||Sr.push(bi.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:nt.id,targetId:St.id}),Fo=Tr(nt,St,tn,Wn),(Vr=bi)==null||Vr.pop()),_i&&(_i=pi),mr&1&&_t--,mr&2&&Bt--,Mn=Za,Fo){if(Fo===-1||_t===0&&Bt===0){if(Fo===-1||Fo===3)for(let Do=qa;Do<De;Do++)l.set($[Do],1|eo);De=qa}}else l.set(Ui,(tn?4:0)|2|eo),De=qa;return Fo}function Tr(nt,St,tn,Wn){const mr=Gn();let Ln=wr(nt,St,tn,Wn,mr);if(l!==Dd){if(!Ln&&(nt.flags&2097152||nt.flags&262144&&St.flags&1048576)){const Sr=uZe(nt.flags&2097152?nt.types:[nt],!!(St.flags&1048576));Sr&&lh(Sr,Vr=>Vr!==nt)&&(Ln=oa(Sr,St,1,!1,void 0,Wn))}Ln&&!(Wn&2)&&St.flags&2097152&&!Hb(St)&&nt.flags&2621440?(Ln&=$t(nt,St,tn,void 0,!1,0),Ln&&N0(nt)&&ti(nt)&8192&&(Ln&=cs(nt,St,!1,tn,0))):Ln&&ZU(St)&&!ME(St)&&nt.flags&2097152&&Ku(nt).flags&3670016&&!kt(nt.types,Sr=>Sr===St||!!(ti(Sr)&262144))&&(Ln&=$t(nt,St,tn,void 0,!0,Wn))}return Ln&&ln(mr),Ln}function wr(nt,St,tn,Wn,mr){let Ln,Sr,Vr=!1,Ui=nt.flags;const Ca=St.flags;if(l===Dd){if(Ui&3145728){let pi=Os(nt,St);return pi&&(pi&=Os(St,nt)),pi}if(Ui&4194304)return oa(nt.type,St.type,3,!1);if(Ui&8388608&&(Ln=oa(nt.objectType,St.objectType,3,!1))&&(Ln&=oa(nt.indexType,St.indexType,3,!1))||Ui&16777216&&nt.root.isDistributive===St.root.isDistributive&&(Ln=oa(nt.checkType,St.checkType,3,!1))&&(Ln&=oa(nt.extendsType,St.extendsType,3,!1))&&(Ln&=oa(L0(nt),L0(St),3,!1))&&(Ln&=oa(I0(nt),I0(St),3,!1))||Ui&33554432&&(Ln=oa(nt.baseType,St.baseType,3,!1))&&(Ln&=oa(nt.constraint,St.constraint,3,!1)))return Ln;if(!(Ui&524288))return 0}else if(Ui&3145728||Ca&3145728){if(Ln=Qo(nt,St,tn,Wn))return Ln;if(!(Ui&465829888||Ui&524288&&Ca&1048576||Ui&2097152&&Ca&467402752))return 0}if(Ui&17301504&&nt.aliasSymbol&&nt.aliasTypeArguments&&nt.aliasSymbol===St.aliasSymbol&&!(fV(nt)||fV(St))){const pi=cke(nt.aliasSymbol);if(pi===rt)return 1;const eo=Wi(nt.aliasSymbol).typeParameters,Fo=gm(eo),Do=ov(nt.aliasTypeArguments,eo,Fo,fr(nt.aliasSymbol.valueDeclaration)),ks=ov(St.aliasTypeArguments,eo,Fo,fr(nt.aliasSymbol.valueDeclaration)),fu=Za(Do,ks,pi,Wn);if(fu!==void 0)return fu}if(hke(nt)&&!nt.target.readonly&&(Ln=oa(gs(nt)[0],St,1))||hke(St)&&(St.target.readonly||mV(Ju(nt)||nt))&&(Ln=oa(nt,gs(St)[0],2)))return Ln;if(Ca&262144){if(ti(nt)&32&&!nt.declaration.nameType&&oa(vm(St),Mp(nt),3)&&!(hm(nt)&4)){const pi=Kh(nt),eo=Md(St,cp(nt));if(Ln=oa(pi,eo,3,tn))return Ln}if(l===wd&&Ui&262144){let pi=Cu(nt);if(pi&&xD(nt))for(;pi&&Zh(pi,eo=>!!(eo.flags&262144));){if(Ln=oa(pi,St,1,!1))return Ln;pi=Cu(pi)}return 0}}else if(Ca&4194304){const pi=St.type;if(Ui&4194304&&(Ln=oa(pi,nt.type,3,!1)))return Ln;if(Mo(pi)){if(Ln=oa(nt,hIe(pi),2,tn))return Ln}else{const eo=uie(pi);if(eo){if(oa(nt,vm(eo,St.stringsOnly),2,tn)===-1)return-1}else if(Vf(pi)){const Fo=rv(pi),Do=Mp(pi);let ks;if(Fo&&SD(pi)){const fu=Ku(wL(pi)),mp=[];lie(fu,8576,!1,dh=>void mp.push(Yi(Fo,ND(pi.mapper,cp(pi),dh)))),ks=Qr([...mp,Fo])}else ks=Fo||Do;if(oa(nt,ks,2,tn)===-1)return-1}}}else if(Ca&8388608){if(Ui&8388608){if((Ln=oa(nt.objectType,St.objectType,3,tn))&&(Ln&=oa(nt.indexType,St.indexType,3,tn)),Ln)return Ln;tn&&(Sr=M)}if(l===kd||l===wd){const pi=St.objectType,eo=St.indexType,Fo=Ju(pi)||pi,Do=Ju(eo)||eo;if(!Hb(Fo)&&!C0(Do)){const ks=4|(Fo!==pi?2:0),fu=lv(Fo,Do,ks);if(fu){if(tn&&Sr&&ln(mr),Ln=oa(nt,fu,2,tn,void 0,Wn))return Ln;tn&&Sr&&M&&(M=qa([Sr])<=qa([M])?Sr:M)}}}tn&&(Sr=void 0)}else if(Vf(St)&&l!==Dd){const pi=!!St.declaration.nameType,eo=Kh(St),Fo=hm(St);if(!(Fo&8)){if(!pi&&eo.flags&8388608&&eo.objectType===nt&&eo.indexType===cp(St))return-1;if(!Vf(nt)){const Do=pi?rv(St):Mp(St),ks=vm(nt,void 0,!0),fu=Fo&4,mp=fu?OP(Do,ks):void 0;if(fu?!(mp.flags&131072):oa(Do,ks,3)){const dh=Kh(St),P0=cp(St),OS=jL(dh,-98305);if(!pi&&OS.flags&8388608&&OS.indexType===P0){if(Ln=oa(nt,OS.objectType,2,tn))return Ln}else{const aI=pi?mp||Do:mp?wo([mp,P0]):P0,xm=Md(nt,aI);if(Ln=oa(xm,dh,3,tn))return Ln}}Sr=M,ln(mr)}}}else if(Ca&16777216){if(e4(St,Ne,Bt,10))return 3;const pi=St;if(!pi.root.inferTypeParameters&&!qet(pi.root)){const eo=!xo(sV(pi.checkType),sV(pi.extendsType)),Fo=!eo&&xo(PE(pi.checkType),PE(pi.extendsType));if((Ln=eo?-1:oa(nt,L0(pi),2,!1,void 0,Wn))&&(Ln&=Fo?-1:oa(nt,I0(pi),2,!1,void 0,Wn),Ln))return Ln}}else if(Ca&134217728){if(Ui&134217728){if(l===wd)return vnt(nt,St)?0:-1;Yi(nt,ua)}if(Pae(nt,St))return-1}else if(St.flags&268435456&&!(nt.flags&268435456)&&Oae(nt,St))return-1;if(Ui&8650752){if(!(Ui&8388608&&Ca&8388608)){const pi=DE(nt)||he;if(Ln=oa(pi,St,1,!1,void 0,Wn))return Ln;if(Ln=oa(Uf(pi,nt),St,1,tn&&pi!==he&&!(Ca&Ui&262144),void 0,Wn))return Ln;if(pie(nt)){const eo=DE(nt.indexType);if(eo&&(Ln=oa(Md(nt.objectType,eo),St,1,tn)))return Ln}}}else if(Ui&4194304){if(Ln=oa(ji,St,1,tn))return Ln}else if(Ui&134217728&&!(Ca&524288)){if(!(Ca&134217728)){const pi=Ju(nt);if(pi&&pi!==nt&&(Ln=oa(pi,St,1,tn)))return Ln}}else if(Ui&268435456)if(Ca&268435456){if(nt.symbol!==St.symbol)return 0;if(Ln=oa(nt.type,St.type,3,tn))return Ln}else{const pi=Ju(nt);if(pi&&(Ln=oa(pi,St,1,tn)))return Ln}else if(Ui&16777216){if(e4(nt,ge,_t,10))return 3;if(Ca&16777216){const eo=nt.root.inferTypeParameters;let Fo=nt.extendsType,Do;if(eo){const ks=UD(eo,void 0,0,bf);Qh(ks.inferences,St.extendsType,Fo,1536),Fo=Yi(Fo,ks.mapper),Do=ks.mapper}if(Xh(Fo,St.extendsType)&&(oa(nt.checkType,St.checkType,3)||oa(St.checkType,nt.checkType,3))&&((Ln=oa(Yi(L0(nt),Do),L0(St),3,tn))&&(Ln&=oa(I0(nt),I0(St),3,tn)),Ln))return Ln}else{const eo=xD(nt)?NLe(nt):void 0;if(eo&&(Ln=oa(eo,St,1,tn)))return Ln}const pi=die(nt);if(pi&&(Ln=oa(pi,St,1,tn)))return Ln}else{if(l!==$m&&l!==np&&rZe(St)&&Yh(nt))return-1;if(Vf(St))return Vf(nt)&&(Ln=Ra(nt,St,tn))?Ln:0;const pi=!!(Ui&134348796);if(l!==Dd)nt=Ku(nt),Ui=nt.flags;else if(Vf(nt))return 0;if(ti(nt)&4&&ti(St)&4&&nt.target===St.target&&!Mo(nt)&&!(fV(nt)||fV(St))){if(hV(nt))return-1;const eo=_ae(nt.target);if(eo===rt)return 1;const Fo=Za(gs(nt),gs(St),eo,Wn);if(Fo!==void 0)return Fo}else{if(BL(St)?ME(nt):Hf(St)&&Mo(nt)&&!nt.target.readonly)return l!==Dd?oa(Xg(nt,mt)||we,Xg(St,mt)||we,3,tn):0;if((l===$m||l===np)&&Yh(St)&&ti(St)&8192&&!Yh(nt))return 0}if(Ui&2621440&&Ca&524288){const eo=tn&&M===mr.errorInfo&&!pi;if(Ln=$t(nt,St,eo,void 0,!1,Wn),Ln&&(Ln&=zn(nt,St,0,eo,Wn),Ln&&(Ln&=zn(nt,St,1,eo,Wn),Ln&&(Ln&=cs(nt,St,pi,eo,Wn)))),Vr&&Ln)M=Sr||M||mr.errorInfo;else if(Ln)return Ln}if(Ui&2621440&&Ca&1048576){const eo=jL(St,36175872);if(eo.flags&1048576){const Fo=Di(nt,eo);if(Fo)return Fo}}}return 0;function qa(pi){return pi?Nu(pi,(eo,Fo)=>eo+1+qa(Fo.next),0):0}function Za(pi,eo,Fo,Do){if(Ln=er(pi,eo,Fo,tn,Do))return Ln;if(kt(Fo,fu=>!!(fu&24))){Sr=void 0,ln(mr);return}const ks=eo&&Ott(eo,Fo);if(Vr=!ks,Fo!==rt&&!ks){if(Vr&&!(tn&&kt(Fo,fu=>(fu&7)===0)))return 0;Sr=M,ln(mr)}}}function Ra(nt,St,tn){if(l===wd||(l===Dd?hm(nt)===hm(St):cie(nt)<=cie(St))){let mr;const Ln=Mp(St),Sr=Yi(Mp(nt),cie(nt)<0?wn:ua);if(mr=oa(Ln,Sr,3,tn)){const Vr=vd([cp(nt)],[cp(St)]);if(Yi(rv(nt),Vr)===Yi(rv(St),Vr))return mr&oa(Yi(Kh(nt),Vr),Kh(St),3,tn)}}return 0}function Di(nt,St){var tn;const Wn=hs(nt),mr=Pke(Wn,St);if(!mr)return 0;let Ln=1;for(const Za of mr)if(Ln*=Jnt(T0(Za)),Ln>25)return(tn=bi)==null||tn.instant(bi.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:nt.id,targetId:St.id,numCombinations:Ln}),0;const Sr=new Array(mr.length),Vr=new Set;for(let Za=0;Za<mr.length;Za++){const pi=mr[Za],eo=T0(pi);Sr[Za]=eo.flags&1048576?eo.types:[eo],Vr.add(pi.escapedName)}const Ui=Pce(Sr),Ca=[];for(const Za of Ui){let pi=!1;e:for(const eo of St.types){for(let Fo=0;Fo<mr.length;Fo++){const Do=mr[Fo],ks=co(eo,Do.escapedName);if(!ks)continue e;if(Do===ks)continue;if(!Ft(nt,St,Do,ks,mp=>Za[Fo],!1,0,W||l===wd))continue e}f_(Ca,eo,H0),pi=!0}if(!pi)return 0}let qa=-1;for(const Za of Ca)if(qa&=$t(nt,Za,!1,Vr,!1,0),qa&&(qa&=zn(nt,Za,0,!1,0),qa&&(qa&=zn(nt,Za,1,!1,0),qa&&!(Mo(nt)&&Mo(Za))&&(qa&=cs(nt,Za,!1,!1,0)))),!qa)return qa;return qa}function Lr(nt,St){if(!St||nt.length===0)return nt;let tn;for(let Wn=0;Wn<nt.length;Wn++)St.has(nt[Wn].escapedName)?tn||(tn=nt.slice(0,Wn)):tn&&tn.push(nt[Wn]);return tn||nt}function bt(nt,St,tn,Wn,mr){const Ln=W&&!!(Il(St)&48),Sr=Io(T0(St),!1,Ln),Vr=tn(nt);return oa(Vr,Sr,3,Wn,void 0,mr)}function Ft(nt,St,tn,Wn,mr,Ln,Sr,Vr){const Ui=Qf(tn),Ca=Qf(Wn);if(Ui&8||Ca&8){if(tn.valueDeclaration!==Wn.valueDeclaration)return Ln&&(Ui&8&&Ca&8?ri(_.Types_have_separate_declarations_of_a_private_property_0,S(Wn)):ri(_.Property_0_is_private_in_type_1_but_not_in_type_2,S(Wn),ke(Ui&8?nt:St),ke(Ui&8?St:nt))),0}else if(Ca&16){if(!Gtt(tn,Wn))return Ln&&ri(_.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,S(Wn),ke(IS(tn)||nt),ke(IS(Wn)||St)),0}else if(Ui&16)return Ln&&ri(_.Property_0_is_protected_in_type_1_but_public_in_type_2,S(Wn),ke(nt),ke(St)),0;if(l===np&&pp(tn)&&!pp(Wn))return 0;const qa=bt(tn,Wn,mr,Ln,Sr);return qa?!Vr&&tn.flags&16777216&&Wn.flags&106500&&!(Wn.flags&16777216)?(Ln&&ri(_.Property_0_is_optional_in_type_1_but_required_in_type_2,S(Wn),ke(nt),ke(St)),0):qa:(Ln&&qn(_.Types_of_property_0_are_incompatible,S(Wn)),0)}function en(nt,St,tn,Wn){let mr=!1;if(tn.valueDeclaration&&gu(tn.valueDeclaration)&&Ni(tn.valueDeclaration.name)&&nt.symbol&&nt.symbol.flags&32){const Sr=tn.valueDeclaration.name.escapedText,Vr=QN(nt.symbol,Sr);if(Vr&&co(nt,Vr)){const Ui=N.getDeclarationName(nt.symbol.valueDeclaration),Ca=N.getDeclarationName(St.symbol.valueDeclaration);ri(_.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,r_(Sr),r_(Ui.escapedText===""?B8:Ui),r_(Ca.escapedText===""?B8:Ca));return}}const Ln=Ro(Dae(nt,St,Wn,!1));if((!p||p.code!==_.Class_0_incorrectly_implements_interface_1.code&&p.code!==_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(mr=!0),Ln.length===1){const Sr=S(tn,void 0,0,20);ri(_.Property_0_is_missing_in_type_1_but_required_in_type_2,Sr,...on(nt,St)),Ae(tn.declarations)&&_a(Nr(tn.declarations[0],_._0_is_declared_here,Sr)),mr&&M&&Kn++}else Wf(nt,St,!1)&&(Ln.length>5?ri(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ke(nt),ke(St),Vt(Ln.slice(0,4),Sr=>S(Sr)).join(", "),Ln.length-4):ri(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ke(nt),ke(St),Vt(Ln,Sr=>S(Sr)).join(", ")),mr&&M&&Kn++)}function $t(nt,St,tn,Wn,mr,Ln){if(l===Dd)return kn(nt,St,Wn);let Sr=-1;if(Mo(St)){if(ME(nt)){if(!St.target.readonly&&(BL(nt)||Mo(nt)&&nt.target.readonly))return 0;const Za=A0(nt),pi=A0(St),eo=Mo(nt)?nt.target.combinedFlags&4:4,Fo=St.target.combinedFlags&4,Do=Mo(nt)?nt.target.minLength:0,ks=St.target.minLength;if(!eo&&Za<ks)return tn&&ri(_.Source_has_0_element_s_but_target_requires_1,Za,ks),0;if(!Fo&&pi<Do)return tn&&ri(_.Source_has_0_element_s_but_target_allows_only_1,Do,pi),0;if(!Fo&&(eo||pi<Za))return tn&&(Do<ks?ri(_.Target_requires_0_element_s_but_source_may_have_fewer,ks):ri(_.Target_allows_only_0_element_s_but_source_may_have_more,pi)),0;const fu=gs(nt),mp=gs(St),dh=uet(St.target,11),P0=HP(St.target,11),OS=St.target.hasRestElement;let aI=!!Wn;for(let xm=0;xm<Za;xm++){const mA=Mo(nt)?nt.target.elementFlags[xm]:4,hA=Za-1-xm,KE=OS&&xm>=dh?pi-1-Math.min(hA,P0):xm,Fd=St.target.elementFlags[KE];if(Fd&8&&!(mA&8))return tn&&ri(_.Source_provides_no_match_for_variadic_element_at_position_0_in_target,KE),0;if(mA&8&&!(Fd&12))return tn&&ri(_.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,xm,KE),0;if(Fd&1&&!(mA&1))return tn&&ri(_.Source_provides_no_match_for_required_element_at_position_0_in_target,KE),0;if(aI&&((mA&12||Fd&12)&&(aI=!1),aI&&(Wn!=null&&Wn.has(""+xm))))continue;const wt=FE(fu[xm],!!(mA&Fd&2)),xr=mp[KE],Ei=mA&8&&Fd&4?Iu(xr):FE(xr,!!(Fd&2)),si=oa(wt,Ei,3,tn,void 0,Ln);if(!si)return tn&&(pi>1||Za>1)&&(OS&&xm>=dh&&hA>=P0&&dh!==Za-P0-1?qn(_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,dh,Za-P0-1,KE):qn(_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,xm,KE)),0;Sr&=si}return Sr}if(St.target.combinedFlags&12)return 0}const Vr=(l===$m||l===np)&&!N0(nt)&&!hV(nt)&&!Mo(nt),Ui=Rae(nt,St,Vr,!1);if(Ui)return tn&&sa(nt,St)&&en(nt,St,Ui,Vr),0;if(N0(St)){for(const Za of Lr(hs(nt),Wn))if(!Bb(St,Za.escapedName)&&!(ar(Za).flags&32768))return tn&&ri(_.Property_0_does_not_exist_on_type_1,S(Za),ke(St)),0}const Ca=hs(St),qa=Mo(nt)&&Mo(St);for(const Za of Lr(Ca,Wn)){const pi=Za.escapedName;if(!(Za.flags&4194304)&&(!qa||Ah(pi)||pi==="length")&&(!mr||Za.flags&16777216)){const eo=co(nt,pi);if(eo&&eo!==Za){const Fo=Ft(nt,St,eo,Za,T0,tn,Ln,l===wd);if(!Fo)return 0;Sr&=Fo}}}return Sr}function kn(nt,St,tn){if(!(nt.flags&524288&&St.flags&524288))return 0;const Wn=Lr(iv(nt),tn),mr=Lr(iv(St),tn);if(Wn.length!==mr.length)return 0;let Ln=-1;for(const Sr of Wn){const Vr=Bb(St,Sr.escapedName);if(!Vr)return 0;const Ui=hae(Sr,Vr,oa);if(!Ui)return 0;Ln&=Ui}return Ln}function zn(nt,St,tn,Wn,mr){var Ln,Sr;if(l===Dd)return ei(nt,St,tn);if(St===La||nt===La)return-1;const Vr=nt.symbol&&Vp(nt.symbol.valueDeclaration),Ui=St.symbol&&Vp(St.symbol.valueDeclaration),Ca=za(nt,Vr&&tn===1?0:tn),qa=za(St,Ui&&tn===1?0:tn);if(tn===1&&Ca.length&&qa.length){const Do=!!(Ca[0].flags&4),ks=!!(qa[0].flags&4);if(Do&&!ks)return Wn&&ri(_.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!bd(Ca[0],qa[0],Wn))return 0}let Za=-1;const pi=tn===1?yn:vi,eo=ti(nt),Fo=ti(St);if(eo&64&&Fo&64&&nt.symbol===St.symbol||eo&4&&Fo&4&&nt.target===St.target)for(let Do=0;Do<qa.length;Do++){const ks=ur(Ca[Do],qa[Do],!0,Wn,mr,pi(Ca[Do],qa[Do]));if(!ks)return 0;Za&=ks}else if(Ca.length===1&&qa.length===1){const Do=l===wd||!!Y.noStrictGenericChecks,ks=us(Ca),fu=us(qa);if(Za=ur(ks,fu,Do,Wn,mr,pi(ks,fu)),!Za&&Wn&&tn===1&&eo&Fo&&(((Ln=fu.declaration)==null?void 0:Ln.kind)===173||((Sr=ks.declaration)==null?void 0:Sr.kind)===173)){const mp=dh=>le(dh,void 0,262144,tn);return ri(_.Type_0_is_not_assignable_to_type_1,mp(ks),mp(fu)),ri(_.Types_of_construct_signatures_are_incompatible),Za}}else e:for(const Do of qa){const ks=Gn();let fu=Wn;for(const mp of Ca){const dh=ur(mp,Do,!0,fu,mr,pi(mp,Do));if(dh){Za&=dh,ln(ks);continue e}fu=!1}return fu&&ri(_.Type_0_provides_no_match_for_the_signature_1,ke(nt),le(Do,void 0,void 0,tn)),0}return Za}function sa(nt,St){const tn=BP(nt,0),Wn=BP(nt,1),mr=iv(nt);return(tn.length||Wn.length)&&!mr.length?!!(za(St,0).length&&tn.length||za(St,1).length&&Wn.length):!0}function vi(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(tn,Wn)=>qn(_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ke(tn),ke(Wn)):(tn,Wn)=>qn(_.Call_signature_return_types_0_and_1_are_incompatible,ke(tn),ke(Wn))}function yn(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(tn,Wn)=>qn(_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ke(tn),ke(Wn)):(tn,Wn)=>qn(_.Construct_signature_return_types_0_and_1_are_incompatible,ke(tn),ke(Wn))}function ur(nt,St,tn,Wn,mr,Ln){const Sr=l===$m?16:l===np?24:0;return lae(tn?ID(nt):nt,tn?ID(St):St,Sr,Wn,ri,Ln,Vr,ua);function Vr(Ui,Ca,qa){return oa(Ui,Ca,3,qa,void 0,mr)}}function ei(nt,St,tn){const Wn=za(nt,tn),mr=za(St,tn);if(Wn.length!==mr.length)return 0;let Ln=-1;for(let Sr=0;Sr<Wn.length;Sr++){const Vr=t4(Wn[Sr],mr[Sr],!1,!1,!1,oa);if(!Vr)return 0;Ln&=Vr}return Ln}function vr(nt,St,tn,Wn){let mr=-1;const Ln=St.keyType,Sr=nt.flags&2097152?MP(nt):iv(nt);for(const Vr of Sr)if(!ake(nt,Vr)&&K2(OL(Vr,8576),Ln)){const Ui=T0(Vr),Ca=qe||Ui.flags&32768||Ln===mt||!(Vr.flags&16777216)?Ui:l_(Ui,524288),qa=oa(Ca,St.type,3,tn,void 0,Wn);if(!qa)return tn&&ri(_.Property_0_is_incompatible_with_index_signature,S(Vr)),0;mr&=qa}for(const Vr of Lu(nt))if(K2(Vr.keyType,Ln)){const Ui=Sa(Vr,St,tn,Wn);if(!Ui)return 0;mr&=Ui}return mr}function Sa(nt,St,tn,Wn){const mr=oa(nt.type,St.type,3,tn,void 0,Wn);return!mr&&tn&&(nt.keyType===St.keyType?ri(_._0_index_signatures_are_incompatible,ke(nt.keyType)):ri(_._0_and_1_index_signatures_are_incompatible,ke(nt.keyType),ke(St.keyType))),mr}function cs(nt,St,tn,Wn,mr){if(l===Dd)return Vs(nt,St);const Ln=Lu(St),Sr=kt(Ln,Ui=>Ui.keyType===ue);let Vr=-1;for(const Ui of Ln){const Ca=!tn&&Sr&&Ui.type.flags&1?-1:Vf(nt)&&Sr?oa(Kh(nt),Ui.type,3,Wn):Gs(nt,Ui,Wn,mr);if(!Ca)return 0;Vr&=Ca}return Vr}function Gs(nt,St,tn,Wn){const mr=GP(nt,St.keyType);return mr?Sa(mr,St,tn,Wn):!(Wn&1)&&(l!==np||ti(nt)&8192)&&bV(nt)?vr(nt,St,tn,Wn):(tn&&ri(_.Index_signature_for_type_0_is_missing_in_type_1,ke(St.keyType),ke(nt)),0)}function Vs(nt,St){const tn=Lu(nt),Wn=Lu(St);if(tn.length!==Wn.length)return 0;for(const mr of Wn){const Ln=sh(nt,mr.keyType);if(!(Ln&&oa(Ln.type,mr.type,3)&&Ln.isReadonly===mr.isReadonly))return 0}return-1}function bd(nt,St,tn){if(!nt.declaration||!St.declaration)return!0;const Wn=Sx(nt.declaration,24),mr=Sx(St.declaration,24);return mr===8||mr===16&&Wn!==8||mr!==16&&!Wn?!0:(tn&&ri(_.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,gf(Wn),gf(mr)),!1)}}function dae(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ue(n.types,dae);if(n.flags&465829888){const a=DE(n);if(a&&a!==n)return dae(a)}return fp(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function oke(n,a){return Mo(n)&&Mo(a)?rt:hs(a).filter(l=>dV(fc(n,l.escapedName),ar(l)))}function dV(n,a){return!!n&&!!a&&pl(n,32768)&&!!GD(a)}function Rtt(n){return hs(n).filter(a=>GD(ar(a)))}function ske(n,a,l=oae){return yNe(n,a,l,!0)||Dut(n,a)||Rut(n,a)||Nut(n,a)||Out(n,a)}function fae(n,a,l,u,p){const g=n.types.map(M=>{});for(const[M,J]of a){const $=mie(n,J);if(p&&$&&Il($)&16)continue;let ge=0;for(const Ne of n.types){const De=fc(Ne,J);De&&l(M(),De)?g[ge]=g[ge]===void 0?!0:g[ge]:g[ge]=!1,ge++}}const x=g.indexOf(!0);if(x===-1)return u;let R=g.indexOf(!0,x+1);for(;R!==-1;){if(!Xh(n.types[x],n.types[R]))return u;R=g.indexOf(!0,R+1)}return n.types[x]}function lke(n){if(n.flags&524288){const a=up(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Yn(a.properties,l=>!!(l.flags&16777216))}return n.flags&2097152?Yn(n.types,lke):!1}function Ntt(n,a,l){for(const u of hs(n))if(coe(a,u.escapedName,l))return!0;return!1}function _ae(n){return n===Es||n===ds||n.objectFlags&8?X:uke(n.symbol,n.typeParameters)}function cke(n){return uke(n,Wi(n).typeParameters)}function uke(n,a=rt){var l,u;const p=Wi(n);if(!p.variances){(l=bi)==null||l.push(bi.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:ku(Us(n))}),p.variances=rt;const g=[];for(const x of a){const R=pae(x);let M=R&65536?R&32768?0:1:R&32768?2:void 0;if(M===void 0){let J=!1,$=!1;const ge=_i;_i=_t=>_t?$=!0:J=!0;const Ne=QP(n,x,zd),De=QP(n,x,oc);M=(xo(De,Ne)?1:0)|(xo(Ne,De)?2:0),M===3&&xo(QP(n,x,Kc),Ne)&&(M=4),_i=ge,(J||$)&&(J&&(M|=8),$&&(M|=16))}g.push(M)}p.variances=g,(u=bi)==null||u.pop({variances:g.map(D.formatVariance)})}return p.variances}function QP(n,a,l){const u=qb(a,l),p=Us(n);if(ns(p))return p;const g=n.flags&524288?Z2(n,Zg(Wi(n).typeParameters,u)):Yg(p,Zg(p.typeParameters,u));return Rn.add(ku(g)),g}function fV(n){return Rn.has(ku(n))}function pae(n){var a;return Nu((a=n.symbol)==null?void 0:a.declarations,(l,u)=>l|Fu(u),0)&100352}function Ott(n,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&n[l].flags&16384)return!0;return!1}function Ptt(n){return n.flags&262144&&!Cu(n)}function Mtt(n){return!!(ti(n)&4)&&!n.node}function _V(n){return Mtt(n)&&kt(gs(n),a=>!!(a.flags&262144)||_V(a))}function Ftt(n,a,l,u){const p=[];let g="";const x=M(n,0),R=M(a,0);return`${g}${x},${R}${l}`;function M(J,$=0){let ge=""+J.target.id;for(const Ne of gs(J)){if(Ne.flags&262144){if(u||Ptt(Ne)){let De=p.indexOf(Ne);De<0&&(De=p.length,p.push(Ne)),ge+="="+De;continue}g="*"}else if($<4&&_V(Ne)){ge+="<"+M(Ne,$+1)+">";continue}ge+="-"+Ne.id}return ge}}function mae(n,a,l,u,p){if(u===Dd&&n.id>a.id){const x=n;n=a,a=x}const g=l?":"+l:"";return _V(n)&&_V(a)?Ftt(n,a,g,p):`${n.id},${a.id}${g}`}function ZP(n,a){if(Il(n)&6){for(const l of n.links.containingType.types){const u=co(l,n.escapedName),p=u&&ZP(u,a);if(p)return p}return}return a(n)}function IS(n){return n.parent&&n.parent.flags&32?Us(gd(n)):void 0}function pV(n){const a=IS(n),l=a&&Po(a)[0];return l&&fc(l,n.escapedName)}function Btt(n,a){return ZP(n,l=>{const u=IS(l);return u?kE(u,a):!1})}function Gtt(n,a){return!ZP(a,l=>Qf(l)&16?!Btt(n,IS(l)):!1)}function dke(n,a,l){return ZP(a,u=>Qf(u,l)&16?!kE(n,IS(u)):!1)?void 0:n}function e4(n,a,l,u=3){if(l>=u){if(n.flags&2097152)return kt(n.types,R=>e4(R,a,l,u));const p=FL(n);let g=0,x=0;for(let R=0;R<l;R++){const M=a[R];if(M.flags&2097152?kt(M.types,J=>FL(J)===p):FL(M)===p){if(M.id>=x&&(g++,g>=u))return!0;x=M.id}}}return!1}function FL(n){if(n.flags&524288&&!Mae(n)){if(ti(n)&&n.node)return n.node;if(n.symbol&&!(ti(n)&16&&n.symbol.flags&32))return n.symbol;if(Mo(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 Utt(n,a){return hae(n,a,OD)!==0}function hae(n,a,l){if(n===a)return-1;const u=Qf(n)&24,p=Qf(a)&24;if(u!==p)return 0;if(u){if(_A(n)!==_A(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return pp(n)!==pp(a)?0:l(ar(n),ar(a))}function Vtt(n,a,l){const u=ef(n),p=ef(a),g=Tm(n),x=Tm(a),R=Sm(n),M=Sm(a);return!!(u===p&&g===x&&R===M||l&&g<=x)}function t4(n,a,l,u,p,g){if(n===a)return-1;if(!Vtt(n,a,l)||Ae(n.typeParameters)!==Ae(a.typeParameters))return 0;if(a.typeParameters){const M=vd(n.typeParameters,a.typeParameters);for(let J=0;J<a.typeParameters.length;J++){const $=n.typeParameters[J],ge=a.typeParameters[J];if(!($===ge||g(Yi(RL($),M)||he,RL(ge)||he)&&g(Yi(RE($),M)||he,RE(ge)||he)))return 0}n=iA(n,M,!0)}let x=-1;if(!u){const M=Ub(n);if(M){const J=Ub(a);if(J){const $=g(M,J);if(!$)return 0;x&=$}}}const R=ef(a);for(let M=0;M<R;M++){const J=_p(n,M),$=_p(a,M),ge=g($,J);if(!ge)return 0;x&=ge}if(!p){const M=a_(n),J=a_(a);x&=M||J?jtt(M,J,g):g(ys(n),ys(a))}return x}function jtt(n,a,l){return n&&a&&Hie(n,a)?n.type===a.type?-1:n.type&&a.type?l(n.type,a.type):0:0}function Htt(n){let a;for(const l of n)if(!(l.flags&131072)){const u=fv(l);if(a??(a=u),u===l||u!==a)return!1}return!0}function fke(n){return Nu(n,(a,l)=>a|(l.flags&1048576?fke(l.types):l.flags),0)}function Wtt(n){if(n.length===1)return n[0];const a=W?pa(n,u=>_c(u,p=>!(p.flags&98304))):n,l=Htt(a)?Qr(a):Nu(a,(u,p)=>uv(u,p)?p:u);return a===n?l:yV(l,fke(n)&98304)}function ztt(n){return Nu(n,(a,l)=>uv(l,a)?l:a)}function Hf(n){return!!(ti(n)&4)&&(n.target===Es||n.target===ds)}function BL(n){return!!(ti(n)&4)&&n.target===ds}function ME(n){return Hf(n)||Mo(n)}function mV(n){return Hf(n)&&!BL(n)||Mo(n)&&!n.target.readonly}function gae(n){return Hf(n)?gs(n)[0]:void 0}function D0(n){return Hf(n)||!(n.flags&98304)&&xo(n,Xi)}function yae(n){if(!(ti(n)&4)||!(ti(n.target)&3))return;if(ti(n)&33554432)return ti(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(ti(a)&1){const p=Dn(a);if(p&&p.expression.kind!==79&&p.expression.kind!==208)return}const l=Po(a);if(l.length!==1||nv(n.symbol).size)return;let u=Ae(a.typeParameters)?Yi(l[0],vd(a.typeParameters,gs(n).slice(0,a.typeParameters.length))):l[0];return Ae(gs(n))>Ae(a.typeParameters)&&(u=Uf(u,zo(gs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function _ke(n){return W?n===_n:n===Ze}function hV(n){const a=gae(n);return!!a&&_ke(a)}function GL(n){return Mo(n)||!!co(n,"0")}function gV(n){return D0(n)||GL(n)}function qtt(n,a){const l=fc(n,""+a);if(l)return l;if(lh(n,Mo))return $s(n,u=>{const p=u,g=n4(p);return g?Y.noUncheckedIndexedAccess&&a>=p.target.fixedLength+HP(p.target,3)?Qr([g,We]):g:We})}function Jtt(n){return!(n.flags&240544)}function fp(n){return!!(n.flags&109472)}function pke(n){const a=av(n);return a.flags&2097152?kt(a.types,fp):fp(a)}function Ktt(n){return n.flags&2097152&&nn(n.types,fp)||n}function FD(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Yn(n.types,fp):fp(n)}function fv(n){return n.flags&1056?bD(n):n.flags&402653312?ue:n.flags&256?mt:n.flags&2048?zt:n.flags&512?Re:n.flags&1048576?Xtt(n):n}function Xtt(n){var a;const l=`B${ku(n)}`;return(a=Eb(l))!=null?a:Dg(l,$s(n,fv))}function vae(n){return n.flags&402653312?ue:n.flags&288?mt:n.flags&2048?zt:n.flags&512?Re:n.flags&1048576?$s(n,vae):n}function Kb(n){return n.flags&1056&&zb(n)?bD(n):n.flags&128&&zb(n)?ue:n.flags&256&&zb(n)?mt:n.flags&2048&&zb(n)?zt:n.flags&512&&zb(n)?Re:n.flags&1048576?$s(n,Kb):n}function mke(n){return n.flags&8192?q:n.flags&1048576?$s(n,mke):n}function bae(n,a){return tj(n,a)||(n=mke(Kb(n))),yd(n)}function Ytt(n,a,l){if(n&&fp(n)){const u=a?l?iR(a):a:void 0;n=bae(n,u)}return n}function Eae(n,a,l,u){if(n&&fp(n)){const p=a?Qb(l,a,u):void 0;n=bae(n,p)}return n}function Mo(n){return!!(ti(n)&4&&n.target.objectFlags&8)}function aA(n){return Mo(n)&&!!(n.target.combinedFlags&8)}function hke(n){return aA(n)&&n.target.elementFlags.length===1}function n4(n){return UL(n,n.target.fixedLength)}function $tt(n){const a=n4(n);return a&&Iu(a)}function UL(n,a,l=0,u=!1,p=!1){const g=A0(n)-l;if(a<g){const x=gs(n),R=[];for(let M=a;M<g;M++){const J=x[M];R.push(n.target.elementFlags[M]&8?Md(J,mt):J)}return u?wo(R):Qr(R,p?0:1)}}function Qtt(n,a){return A0(n)===A0(a)&&Yn(n.target.elementFlags,(l,u)=>(l&12)===(a.target.elementFlags[u]&12))}function gke({value:n}){return n.base10Value==="0"}function yke(n){return _c(n,a=>!!(wu(a)&4194304))}function Ztt(n){return $s(n,ent)}function ent(n){return n.flags&4?x2:n.flags&8?sS:n.flags&64?A2:n===K||n===it||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&gke(n)?n:gt}function yV(n,a){const l=a&~n.flags&98304;return l===0?n:Qr(l===32768?[n,We]:l===65536?[n,Sn]:[n,We,Sn])}function ey(n,a=!1){D.assert(W);const l=a?Ut:We;return n===l||n.flags&1048576&&n.types[0]===l?n:Qr([n,l])}function tnt(n){return Lo||(Lo=kD("NonNullable",524288,void 0)||an),Lo!==an?Z2(Lo,[n]):wo([n,fa])}function ty(n){return W?VE(n,2097152):n}function vke(n){return W?Qr([n,cn]):n}function Tae(n){return W?LV(n,cn):n}function vV(n,a,l){return l?jI(a)?ey(n):vke(n):n}function BD(n,a){return ZM(a)?ty(n):yu(a)?Tae(n):n}function FE(n,a){return qe&&a?LV(n,Xe):n}function GD(n){return n===Xe||!!(n.flags&1048576)&&n.types[0]===Xe}function Sae(n){return qe?LV(n,Xe):l_(n,524288)}function nnt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function bV(n){const a=ti(n);return n.flags&2097152?Yn(n.types,bV):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!gj(n))||!!(a&4194304)||!!(a&1024&&bV(n.source))}function BE(n,a){const l=ts(n.flags,n.escapedName,Il(n)&8);l.declarations=n.declarations,l.parent=n.parent,l.links.type=a,l.links.target=n,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration);const u=Wi(n).nameType;return u&&(l.links.nameType=u),l}function rnt(n,a){const l=so();for(const u of iv(n)){const p=ar(u),g=a(p);l.set(u.escapedName,g===p?u:BE(u,g))}return l}function r4(n){if(!(N0(n)&&ti(n)&8192))return n;const a=n.regularType;if(a)return a;const l=n,u=rnt(n,r4),p=Ns(l.symbol,u,l.callSignatures,l.constructSignatures,l.indexInfos);return p.flags=l.flags,p.objectFlags|=l.objectFlags&-8193,n.regularType=p,p}function bke(n,a,l){return{parent:n,propertyName:a,siblings:l,resolvedProperties:void 0}}function Eke(n){if(!n.siblings){const a=[];for(const l of Eke(n.parent))if(N0(l)){const u=Bb(l,n.propertyName);u&&jE(ar(u),p=>{a.push(p)})}n.siblings=a}return n.siblings}function int(n){if(!n.resolvedProperties){const a=new Map;for(const l of Eke(n))if(N0(l)&&!(ti(l)&2097152))for(const u of hs(l))a.set(u.escapedName,u);n.resolvedProperties=Ro(a.values())}return n.resolvedProperties}function ant(n,a){if(!(n.flags&4))return n;const l=ar(n),u=a&&bke(a,n.escapedName,void 0),p=xae(l,u);return p===l?n:BE(n,p)}function ont(n){const a=gi.get(n.escapedName);if(a)return a;const l=BE(n,Ut);return l.flags|=16777216,gi.set(n.escapedName,l),l}function snt(n,a){const l=so();for(const p of iv(n))l.set(p.escapedName,ant(p,a));if(a)for(const p of int(a))l.has(p.escapedName)||l.set(p.escapedName,ont(p));const u=Ns(n.symbol,l,rt,rt,pa(Lu(n),p=>ym(p.keyType,Zd(p.type),p.isReadonly)));return u.objectFlags|=ti(n)&266240,u}function Zd(n){return xae(n,void 0)}function xae(n,a){if(ti(n)&196608){if(a===void 0&&n.widened)return n.widened;let l;if(n.flags&98305)l=we;else if(N0(n))l=snt(n,a);else if(n.flags&1048576){const u=a||bke(void 0,void 0,n.types),p=pa(n.types,g=>g.flags&98304?g:xae(g,u));l=Qr(p,kt(p,Yh)?2:1)}else n.flags&2097152?l=wo(pa(n.types,Zd)):ME(n)&&(l=Yg(n.target,pa(gs(n),Zd)));return l&&a===void 0&&(n.widened=l),l||n}return n}function EV(n){let a=!1;if(ti(n)&65536){if(n.flags&1048576)if(kt(n.types,Yh))a=!0;else for(const l of n.types)EV(l)&&(a=!0);if(ME(n))for(const l of gs(n))EV(l)&&(a=!0);if(N0(n))for(const l of iv(n)){const u=ar(l);ti(u)&65536&&(EV(u)||Ke(l.valueDeclaration,_.Object_literal_s_property_0_implicitly_has_an_1_type,S(l),ke(Zd(u))),a=!0)}}return a}function R0(n,a,l){const u=ke(Zd(a));if(fr(n)&&!AO(Zn(n),Y))return;let p;switch(n.kind){case 223:case 169:case 168:p=Se?_.Member_0_implicitly_has_an_1_type:_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:const g=n;if(He(g.name)){const x=q0(g.name);if((AC(g.parent)||Ch(g.parent)||Lh(g.parent))&&g.parent.parameters.indexOf(g)>-1&&(_l(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||x&&Vq(x))){const R="arg"+g.parent.parameters.indexOf(g),M=ws(g.name)+(g.dotDotDotToken?"[]":"");lm(Se,n,_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,R,M);return}}p=n.dotDotDotToken?Se?_.Rest_parameter_0_implicitly_has_an_any_type:_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Se?_.Parameter_0_implicitly_has_an_1_type:_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(p=_.Binding_element_0_implicitly_has_an_1_type,!Se)return;break;case 320:Ke(n,_.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 326:Se&&nw(n.parent)&&Ke(n.parent.tagName,_.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Se&&!n.name){l===3?Ke(n,_.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Ke(n,_.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}p=Se?l===3?_._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:Se&&Ke(n,_.Mapped_object_type_implicitly_has_an_any_template_type);return;default:p=Se?_.Variable_0_implicitly_has_an_1_type:_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}lm(Se,n,p,ws(ka(n)),u)}function TV(n,a,l){i(()=>{Se&&ti(a)&65536&&(!l||!noe(n))&&(EV(a)||R0(n,a,l))})}function Aae(n,a,l){const u=ef(n),p=ef(a),g=$D(n),x=$D(a),R=x?p-1:p,M=g?R:Math.min(u,R),J=Ub(n);if(J){const $=Ub(a);$&&l(J,$)}for(let $=0;$<M;$++)l(_p(n,$),_p(a,$));x&&l(YD(n,M),x)}function Cae(n,a,l){const u=a_(n),p=a_(a);u&&p&&Hie(u,p)&&u.type&&p.type?l(u.type,p.type):l(ys(n),ys(a))}function UD(n,a,l,u){return Lae(n.map(Iae),a,l,u||oae)}function lnt(n,a=0){return n&&Lae(Vt(n.inferences,Ske),n.signature,n.flags|a,n.compareTypes)}function Lae(n,a,l,u){const p={inferences:n,signature:a,flags:l,compareTypes:u,mapper:wn,nonFixingMapper:wn};return p.mapper=cnt(p),p.nonFixingMapper=unt(p),p}function cnt(n){return eae(Vt(n.inferences,a=>a.typeParameter),Vt(n.inferences,(a,l)=>()=>(a.isFixed||(dnt(n),SV(n.inferences),a.isFixed=!0),Fae(n,l))))}function unt(n){return eae(Vt(n.inferences,a=>a.typeParameter),Vt(n.inferences,(a,l)=>()=>Fae(n,l)))}function SV(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function Tke(n,a,l){var u;((u=n.intraExpressionInferenceSites)!=null?u:n.intraExpressionInferenceSites=[]).push({node:a,type:l})}function dnt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:l}of n.intraExpressionInferenceSites){const u=a.kind===171?pwe(a,2):sd(a,2);u&&Qh(n.inferences,l,u)}n.intraExpressionInferenceSites=void 0}}function Iae(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Ske(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 fnt(n){const a=lr(n.inferences,dA);return a.length?Lae(Vt(a,Ske),n.signature,n.flags,n.compareTypes):void 0}function kae(n){return n&&n.mapper}function GE(n){const a=ti(n);if(a&524288)return!!(a&1048576);const l=!!(n.flags&465829888||n.flags&524288&&!xke(n)&&(a&4&&(n.node||Ue(gs(n),GE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!xke(n)&&kt(n.types,GE));return n.flags&3899393&&(n.objectFlags|=524288|(l?1048576:0)),l}function xke(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=Al(n.aliasSymbol,262);return!!(a&&nr(a.parent,l=>l.kind===308?!0:l.kind===264?!1:"quit"))}return!1}function VD(n,a,l=0){return!!(n===a||n.flags&3145728&&kt(n.types,u=>VD(u,a,l))||l<3&&n.flags&16777216&&(VD(L0(n),a,l+1)||VD(I0(n),a,l+1)))}function _nt(n,a){const l=a_(n);return l?!!l.type&&VD(l.type,a):VD(ys(n),a)}function pnt(n){const a=so();jE(n,u=>{if(!(u.flags&128))return;const p=sl(u.value),g=ts(4,p);g.links.type=we,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(p,g)});const l=n.flags&4?[ym(ue,fa,!1)]:rt;return Ns(void 0,a,rt,rt,l)}function Ake(n,a,l){if(Ta)return;const u=n.id+","+a.id+","+l.id;if(Pr.has(u))return Pr.get(u);Ta=!0;const p=mnt(n,a,l);return Ta=!1,Pr.set(u,p),p}function wae(n){return!(ti(n)&262144)||N0(n)&&kt(hs(n),a=>wae(ar(a)))||Mo(n)&&kt(gs(n),wae)}function mnt(n,a,l){if(!(sh(n,ue)||hs(n).length!==0&&wae(n)))return;if(Hf(n))return Iu(xV(gs(n)[0],a,l),BL(n));if(Mo(n)){const p=Vt(gs(n),x=>xV(x,a,l)),g=hm(a)&4?pa(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Bp(p,g,n.target.readonly,n.target.labeledElementDeclarations)}const u=hf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=l,u}function hnt(n){const a=Wi(n);return a.type||(a.type=xV(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function xV(n,a,l){const u=Md(l.type,cp(a)),p=Kh(a),g=Iae(u);return Qh([g],n,p),Cke(g)||he}function*Dae(n,a,l,u){const p=hs(a);for(const g of p)if(!ELe(g)&&(l||!(g.flags&16777216||Il(g)&48))){const x=co(n,g.escapedName);if(!x)yield g;else if(u){const R=ar(g);if(R.flags&109472){const M=ar(x);M.flags&1||yd(M)===yd(R)||(yield g)}}}}function Rae(n,a,l,u){return oM(Dae(n,a,l,u))}function gnt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function ynt(n,a){return Mo(n)&&Mo(a)?gnt(n,a):!!Rae(n,a,!1,!0)&&!!Rae(a,n,!1,!1)}function Cke(n){return n.candidates?Qr(n.candidates,2):n.contraCandidates?wo(n.contraCandidates):void 0}function Nae(n){return!!Jr(n).skipDirectInference}function Lke(n){return!!(n.symbol&&kt(n.symbol.declarations,Nae))}function vnt(n,a){const l=n.texts[0],u=a.texts[0],p=n.texts[n.texts.length-1],g=a.texts[a.texts.length-1],x=Math.min(l.length,u.length),R=Math.min(p.length,g.length);return l.slice(0,x)!==u.slice(0,x)||p.slice(p.length-R)!==g.slice(g.length-R)}function Ike(n,a){if(n==="")return!1;const l=+n;return isFinite(l)&&(!a||""+l===n)}function bnt(n){return tV(sJ(n))}function Oae(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return xo(n,a);if(a.flags&268435456){const l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return Nu(l,(p,g)=>AS(g,p),n)===n&&Oae(n,a)}return!1}function Ent(n,a){if(n===a||a.flags&5)return!0;if(n.flags&128){const l=n.value;return!!(a.flags&8&&Ike(l,!1)||a.flags&64&&m7(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&Oae(jf(l),a))}if(n.flags&134217728){const l=n.texts;return l.length===2&&l[0]===""&&l[1]===""&&xo(n.types[0],a)}return xo(n,a)}function kke(n,a){return n.flags&128?wke([n.value],rt,a):n.flags&134217728?Zo(n.texts,a.texts)?Vt(n.types,Tnt):wke(n.texts,n.types,a):void 0}function Pae(n,a){const l=kke(n,a);return!!l&&Yn(l,(u,p)=>Ent(u,a.types[p]))}function Tnt(n){return n.flags&402653317?n:OE(["",""],[n])}function wke(n,a,l){const u=n.length-1,p=n[0],g=n[u],x=l.texts,R=x.length-1,M=x[0],J=x[R];if(u===0&&p.length<M.length+J.length||!p.startsWith(M)||!g.endsWith(J))return;const $=g.slice(0,g.length-J.length),ge=[];let Ne=0,De=M.length;for(let Mn=1;Mn<R;Mn++){const An=x[Mn];if(An.length>0){let Kn=Ne,gn=De;for(;gn=_t(Kn).indexOf(An,gn),!(gn>=0);){if(Kn++,Kn===n.length)return;gn=0}Bt(Kn,gn),De+=An.length}else if(De<_t(Ne).length)Bt(Ne,De+1);else if(Ne<u)Bt(Ne+1,0);else return}return Bt(u,_t(u).length),ge;function _t(Mn){return Mn<u?n[Mn]:$}function Bt(Mn,An){const Kn=Mn===Ne?jf(_t(Mn).slice(De,An)):OE([n[Ne].slice(De),...n.slice(Ne+1,Mn),_t(Mn).slice(0,An)],a.slice(Ne,Mn));ge.push(Kn),Ne=Mn,De=An}}function Qh(n,a,l,u=0,p=!1){let g=!1,x,R=2048,M=!0,J,$,ge,Ne=0;De(a,l);function De(Un,sr){if(GE(sr)){if(Un===Nt){const Zi=x;x=Un,De(sr,sr),x=Zi;return}if(Un.aliasSymbol&&Un.aliasSymbol===sr.aliasSymbol){if(Un.aliasTypeArguments){const Zi=Wi(Un.aliasSymbol).typeParameters,Ga=gm(Zi),na=ov(Un.aliasTypeArguments,Zi,Ga,fr(Un.aliasSymbol.valueDeclaration)),Qo=ov(sr.aliasTypeArguments,Zi,Ga,fr(Un.aliasSymbol.valueDeclaration));gn(na,Qo,cke(Un.aliasSymbol))}return}if(Un===sr&&Un.flags&3145728){for(const Zi of Un.types)De(Zi,Zi);return}if(sr.flags&1048576){const[Zi,Ga]=Kn(Un.flags&1048576?Un.types:[Un],sr.types,Snt),[na,Qo]=Kn(Zi,Ga,xnt);if(Qo.length===0)return;if(sr=Qr(Qo),na.length===0){_t(Un,sr,1);return}Un=Qr(na)}else if(sr.flags&2097152&&!Yn(sr.types,ZU)){if(!(Un.flags&1048576)){const[Zi,Ga]=Kn(Un.flags&2097152?Un.types:[Un],sr.types,Xh);if(Zi.length===0||Ga.length===0)return;Un=wo(Zi),sr=wo(Ga)}}else sr.flags&41943040&&(sr=cv(sr));if(sr.flags&8650752){if(Lke(Un))return;const Zi=ln(sr);if(Zi){if(ti(Un)&262144||Un===pe)return;if(!Zi.isFixed){if((Zi.priority===void 0||u<Zi.priority)&&(Zi.candidates=void 0,Zi.contraCandidates=void 0,Zi.topLevel=!0,Zi.priority=u),u===Zi.priority){const na=x||Un;p&&!g?jr(Zi.contraCandidates,na)||(Zi.contraCandidates=Fn(Zi.contraCandidates,na),SV(n)):jr(Zi.candidates,na)||(Zi.candidates=Fn(Zi.candidates,na),SV(n))}!(u&128)&&sr.flags&262144&&Zi.topLevel&&!VD(l,sr)&&(Zi.topLevel=!1,SV(n))}R=Math.min(R,u);return}const Ga=Qg(sr,!1);if(Ga!==sr)De(Un,Ga);else if(sr.flags&8388608){const na=Qg(sr.indexType,!1);if(na.flags&465829888){const Qo=RIe(Qg(sr.objectType,!1),na,!1);Qo&&Qo!==sr&&De(Un,Qo)}}}if(ti(Un)&4&&ti(sr)&4&&(Un.target===sr.target||Hf(Un)&&Hf(sr))&&!(Un.node&&sr.node))gn(gs(Un),gs(sr),_ae(Un.target));else if(Un.flags&4194304&&sr.flags&4194304)xn(Un.type,sr.type);else if((FD(Un)||Un.flags&4)&&sr.flags&4194304){const Zi=pnt(Un);Bt(Zi,sr.type,256)}else if(Un.flags&8388608&&sr.flags&8388608)De(Un.objectType,sr.objectType),De(Un.indexType,sr.indexType);else if(Un.flags&268435456&&sr.flags&268435456)Un.symbol===sr.symbol&&De(Un.type,sr.type);else if(Un.flags&33554432)De(Un.baseType,sr),_t(Rie(Un),sr,4);else if(sr.flags&16777216)An(Un,sr,ri);else if(sr.flags&3145728)qn(Un,sr.types,sr.flags);else if(Un.flags&1048576){const Zi=Un.types;for(const Ga of Zi)De(Ga,sr)}else if(sr.flags&134217728)_a(Un,sr);else{if(Un=dp(Un),!(u&512&&Un.flags&467927040)){const Zi=Ku(Un);if(Zi!==Un&&M&&!(Zi.flags&2621440))return M=!1,De(Zi,sr);Un=Zi}Un.flags&2621440&&An(Un,sr,Qa)}}}function _t(Un,sr,Zi){const Ga=u;u|=Zi,De(Un,sr),u=Ga}function Bt(Un,sr,Zi){const Ga=u;u|=Zi,xn(Un,sr),u=Ga}function Mn(Un,sr,Zi,Ga){const na=u;u|=Ga,qn(Un,sr,Zi),u=na}function An(Un,sr,Zi){const Ga=Un.id+","+sr.id,na=J&&J.get(Ga);if(na!==void 0){R=Math.min(R,na);return}(J||(J=new Map)).set(Ga,-1);const Qo=R;R=2048;const Os=Ne,gl=FL(Un),Ao=FL(sr);jr($,gl)&&(Ne|=1),jr(ge,Ao)&&(Ne|=2),Ne!==3?(($||($=[])).push(gl),(ge||(ge=[])).push(Ao),Zi(Un,sr),ge.pop(),$.pop()):R=-1,Ne=Os,J.set(Ga,R),R=Math.min(R,Qo)}function Kn(Un,sr,Zi){let Ga,na;for(const Qo of sr)for(const Os of Un)Zi(Os,Qo)&&(De(Os,Qo),Ga=sy(Ga,Os),na=sy(na,Qo));return[Ga?lr(Un,Qo=>!jr(Ga,Qo)):Un,na?lr(sr,Qo=>!jr(na,Qo)):sr]}function gn(Un,sr,Zi){const Ga=Un.length<sr.length?Un.length:sr.length;for(let na=0;na<Ga;na++)na<Zi.length&&(Zi[na]&7)===2?xn(Un[na],sr[na]):De(Un[na],sr[na])}function xn(Un,sr){p=!p,De(Un,sr),p=!p}function yr(Un,sr){ce||u&1024?xn(Un,sr):De(Un,sr)}function ln(Un){if(Un.flags&8650752){for(const sr of n)if(Un===sr.typeParameter)return sr}}function Gn(Un){let sr;for(const Zi of Un){const Ga=Zi.flags&2097152&&nn(Zi.types,na=>!!ln(na));if(!Ga||sr&&Ga!==sr)return;sr=Ga}return sr}function qn(Un,sr,Zi){let Ga=0;if(Zi&1048576){let na;const Qo=Un.flags&1048576?Un.types:[Un],Os=new Array(Qo.length);let gl=!1;for(const Ao of sr)if(ln(Ao))na=Ao,Ga++;else for(let Xu=0;Xu<Qo.length;Xu++){const dt=R;R=2048,De(Qo[Xu],Ao),R===u&&(Os[Xu]=!0),gl=gl||R===-1,R=Math.min(R,dt)}if(Ga===0){const Ao=Gn(sr);Ao&&_t(Un,Ao,1);return}if(Ga===1&&!gl){const Ao=ma(Qo,(Xu,dt)=>Os[dt]?void 0:Xu);if(Ao.length){De(Qr(Ao),na);return}}}else for(const na of sr)ln(na)?Ga++:De(Un,na);if(Zi&2097152?Ga===1:Ga>0)for(const na of sr)ln(na)&&_t(Un,na,1)}function Zr(Un,sr,Zi){if(Zi.flags&1048576){let Ga=!1;for(const na of Zi.types)Ga=Zr(Un,sr,na)||Ga;return Ga}if(Zi.flags&4194304){const Ga=ln(Zi.type);if(Ga&&!Ga.isFixed&&!Lke(Un)){const na=Ake(Un,sr,Zi);na&&_t(na,Ga.typeParameter,ti(Un)&262144?16:8)}return!0}if(Zi.flags&262144){_t(vm(Un),Zi,32);const Ga=DE(Zi);if(Ga&&Zr(Un,sr,Ga))return!0;const na=Vt(hs(Un),ar),Qo=Vt(Lu(Un),Os=>Os!==zu?Os.type:gt);return De(Qr(ba(na,Qo)),Kh(sr)),!0}return!1}function ri(Un,sr){if(Un.flags&16777216)De(Un.checkType,sr.checkType),De(Un.extendsType,sr.extendsType),De(L0(Un),L0(sr)),De(I0(Un),I0(sr));else{const Zi=[L0(sr),I0(sr)];Mn(Un,Zi,sr.flags,p?64:0)}}function _a(Un,sr){const Zi=kke(Un,sr),Ga=sr.types;if(Zi||Yn(sr.texts,na=>na.length===0))for(let na=0;na<Ga.length;na++){const Qo=Zi?Zi[na]:gt,Os=Ga[na];if(Qo.flags&128&&Os.flags&8650752){const gl=ln(Os),Ao=gl?Ju(gl.typeParameter):void 0;if(Ao&&!Ss(Ao)){const Xu=Ao.flags&1048576?Ao.types:[Ao];let dt=Nu(Xu,(Te,er)=>Te|er.flags,0);if(!(dt&4)){const Te=Qo.value;dt&296&&!Ike(Te,!0)&&(dt&=-297),dt&2112&&!m7(Te,!0)&&(dt&=-2113);const er=Nu(Xu,(Qn,Tr)=>Tr.flags&dt?Qn.flags&4?Qn:Tr.flags&4?Qo:Qn.flags&134217728?Qn:Tr.flags&134217728&&Pae(Qo,Tr)?Qo:Qn.flags&268435456?Qn:Tr.flags&268435456&&Te===kIe(Tr.symbol,Te)?Qo:Qn.flags&128?Qn:Tr.flags&128&&Tr.value===Te?Tr:Qn.flags&8?Qn:Tr.flags&8?Gp(+Te):Qn.flags&32?Qn:Tr.flags&32?Gp(+Te):Qn.flags&256?Qn:Tr.flags&256&&Tr.value===+Te?Tr:Qn.flags&64?Qn:Tr.flags&64?bnt(Te):Qn.flags&2048?Qn:Tr.flags&2048&&R1(Tr.value)===Te?Tr:Qn.flags&16?Qn:Tr.flags&16?Te==="true"?Pe:Te==="false"?it:Re:Qn.flags&512?Qn:Tr.flags&512&&Tr.intrinsicName===Te?Tr:Qn.flags&32768?Qn:Tr.flags&32768&&Tr.intrinsicName===Te?Tr:Qn.flags&65536?Qn:Tr.flags&65536&&Tr.intrinsicName===Te?Tr:Qn:Qn,gt);if(!(er.flags&131072)){De(er,Os);continue}}}}De(Qo,Os)}}function Qa(Un,sr){var Zi,Ga;if(ti(Un)&4&&ti(sr)&4&&(Un.target===sr.target||Hf(Un)&&Hf(sr))){gn(gs(Un),gs(sr),_ae(Un.target));return}if(Vf(Un)&&Vf(sr)){De(Mp(Un),Mp(sr)),De(Kh(Un),Kh(sr));const na=rv(Un),Qo=rv(sr);na&&Qo&&De(na,Qo)}if(ti(sr)&32&&!sr.declaration.nameType){const na=Mp(sr);if(Zr(Un,sr,na))return}if(!ynt(Un,sr)){if(ME(Un)){if(Mo(sr)){const na=A0(Un),Qo=A0(sr),Os=gs(sr),gl=sr.target.elementFlags;if(Mo(Un)&&Qtt(Un,sr)){for(let dt=0;dt<Qo;dt++)De(gs(Un)[dt],Os[dt]);return}const Ao=Mo(Un)?Math.min(Un.target.fixedLength,sr.target.fixedLength):0,Xu=Math.min(Mo(Un)?HP(Un.target,3):0,sr.target.hasRestElement?HP(sr.target,3):0);for(let dt=0;dt<Ao;dt++)De(gs(Un)[dt],Os[dt]);if(!Mo(Un)||na-Ao-Xu===1&&Un.target.elementFlags[Ao]&4){const dt=gs(Un)[Ao];for(let Te=Ao;Te<Qo-Xu;Te++)De(gl[Te]&8?Iu(dt):dt,Os[Te])}else{const dt=Qo-Ao-Xu;if(dt===2){if(gl[Ao]&gl[Ao+1]&8){const Te=ln(Os[Ao]);Te&&Te.impliedArity!==void 0&&(De(NL(Un,Ao,Xu+na-Te.impliedArity),Os[Ao]),De(NL(Un,Ao+Te.impliedArity,Xu),Os[Ao+1]))}else if(gl[Ao]&8&&gl[Ao+1]&4){const Te=(Zi=ln(Os[Ao]))==null?void 0:Zi.typeParameter,er=Te&&Ju(Te);if(er&&Mo(er)&&!er.target.hasRestElement){const Qn=er.target.fixedLength;De(NL(Un,Ao,na-(Ao+Qn)),Os[Ao]),De(UL(Un,Ao+Qn,Xu),Os[Ao+1])}}else if(gl[Ao]&4&&gl[Ao+1]&8){const Te=(Ga=ln(Os[Ao+1]))==null?void 0:Ga.typeParameter,er=Te&&Ju(Te);if(er&&Mo(er)&&!er.target.hasRestElement){const Qn=er.target.fixedLength,Tr=na-HP(sr.target,3),wr=Tr-Qn,Ra=Bp(gs(Un).slice(wr,Tr),Un.target.elementFlags.slice(wr,Tr),!1,Un.target.labeledElementDeclarations&&Un.target.labeledElementDeclarations.slice(wr,Tr));De(UL(Un,Ao,Xu+Qn),Os[Ao]),De(Ra,Os[Ao+1])}}}else if(dt===1&&gl[Ao]&8){const Te=sr.target.elementFlags[Qo-1]&2,er=NL(Un,Ao,Xu);_t(er,Os[Ao],Te?2:0)}else if(dt===1&&gl[Ao]&4){const Te=UL(Un,Ao,Xu);Te&&De(Te,Os[Ao])}}for(let dt=0;dt<Xu;dt++)De(gs(Un)[na-dt-1],Os[Qo-dt-1]);return}if(Hf(sr)){oa(Un,sr);return}}Ec(Un,sr),Wf(Un,sr,0),Wf(Un,sr,1),oa(Un,sr)}}function Ec(Un,sr){const Zi=iv(sr);for(const Ga of Zi){const na=co(Un,Ga.escapedName);na&&!kt(na.declarations,Nae)&&De(ar(na),ar(Ga))}}function Wf(Un,sr,Zi){const Ga=za(Un,Zi),na=za(sr,Zi),Qo=Ga.length,Os=na.length,gl=Qo<Os?Qo:Os;for(let Ao=0;Ao<gl;Ao++)bf(IZe(Ga[Qo-gl+Ao]),ID(na[Os-gl+Ao]))}function bf(Un,sr){const Zi=g,Ga=sr.declaration?sr.declaration.kind:0;g=g||Ga===171||Ga===170||Ga===173,Aae(Un,sr,yr),g=Zi,Cae(Un,sr,De)}function oa(Un,sr){const Zi=ti(Un)&ti(sr)&32?8:0,Ga=Lu(sr);if(bV(Un))for(const na of Ga){const Qo=[];for(const Os of hs(Un))if(K2(OL(Os,8576),na.keyType)){const gl=ar(Os);Qo.push(Os.flags&16777216?Sae(gl):gl)}for(const Os of Lu(Un))K2(Os.keyType,na.keyType)&&Qo.push(Os.type);Qo.length&&_t(Qr(Qo),na.type,Zi)}for(const na of Ga){const Qo=GP(Un,na.keyType);Qo&&_t(Qo.type,na.type,Zi)}}}function Snt(n,a){return a===Xe?n===a:Xh(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function xnt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Ant(n){const a=Cu(n);return!!a&&pl(a.flags&16777216?die(a):a,406978556)}function N0(n){return!!(ti(n)&128)}function Mae(n){return!!(ti(n)&16512)}function Cnt(n){if(n.length>1){const a=lr(n,Mae);if(a.length){const l=Qr(a,2);return ba(lr(n,u=>!Mae(u)),[l])}}return n}function Lnt(n){return n.priority&416?wo(n.contraCandidates):ztt(n.contraCandidates)}function Int(n,a){const l=Cnt(n.candidates),u=Ant(n.typeParameter)||FP(n.typeParameter),p=!u&&n.topLevel&&(n.isFixed||!_nt(a,n.typeParameter)),g=u?pa(l,yd):p?pa(l,Kb):l,x=n.priority&416?Qr(g,2):Wtt(g);return Zd(x)}function Fae(n,a){const l=n.inferences[a];if(!l.inferredType){let u;const p=n.signature;if(p){const x=l.candidates?Int(l,p):void 0;if(l.contraCandidates)u=x&&!(x.flags&131072)&&kt(l.contraCandidates,M=>uv(x,M))&&Yn(n.inferences,M=>M!==l&&Cu(M.typeParameter)!==l.typeParameter||Yn(M.candidates,J=>uv(J,x)))?x:Lnt(l);else if(x)u=x;else if(n.flags&1)u=ft;else{const R=RE(l.typeParameter);R&&(u=Yi(R,itt(rtt(n,a),n.nonFixingMapper)))}}else u=Cke(l);l.inferredType=u||Bae(!!(n.flags&2));const g=Cu(l.typeParameter);if(g){const x=Yi(g,n.nonFixingMapper);(!u||!n.compareTypes(u,Uf(x,u)))&&(l.inferredType=u=x)}}return l.inferredType}function Bae(n){return n?we:he}function Gae(n){const a=[];for(let l=0;l<n.inferences.length;l++)a.push(Fae(n,l));return a}function Dke(n){switch(n.escapedText){case"document":case"console":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Y.types?_.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:_.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 Y.types?_.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:_.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 Y.types?_.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:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return _.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(no(n.parent))return _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===300?_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_.Cannot_find_name_0}}function D_(n){const a=Jr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Cl(n)&&_l(n,n.escapedText,1160127,Dke(n),n,!Bq(n),!1)||an),a.resolvedSymbol}function VL(n){return!!nr(n,a=>a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit")}function Rke(n){return!!(n.flags&16777216||nr(n,a=>id(a)||cf(a)))}function AV(n,a,l,u){switch(n.kind){case 79:if(!Tx(n)){const x=D_(n);return x!==an?`${u?ms(u):"-1"}|${ku(a)}|${ku(l)}|${bo(x)}`:void 0}case 108:return`0|${u?ms(u):"-1"}|${ku(a)}|${ku(l)}`;case 232:case 214:return AV(n.expression,a,l,u);case 163:const p=AV(n.left,a,l,u);return p&&p+"."+n.right.escapedText;case 208:case 209:const g=UE(n);if(g!==void 0){const x=AV(n.expression,a,l,u);return x&&x+"."+g}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${ms(n)}#${ku(a)}`}}function Xc(n,a){switch(a.kind){case 214:case 232:return Xc(n,a.expression);case 223:return nd(a)&&Xc(n,a.left)||br(a)&&a.operatorToken.kind===27&&Xc(n,a.right)}switch(n.kind){case 233:return a.kind===233&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 79:case 80:return Tx(n)?a.kind===108:a.kind===79&&D_(n)===D_(a)||(Ki(a)||ps(a))&&Op(D_(n))===Ir(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return Xc(n.expression,a);case 208:case 209:const l=UE(n),u=ll(a)?UE(a):void 0;return l!==void 0&&u!==void 0&&u===l&&Xc(n.expression,a.expression);case 163:return ll(a)&&n.right.escapedText===UE(a)&&Xc(n.left,a.expression);case 223:return br(n)&&n.operatorToken.kind===27&&Xc(n.right,a)}return!1}function UE(n){if(Fr(n))return n.name.escapedText;if(cl(n))return knt(n);if(ps(n)){const a=Cn(n);return a?sl(a):void 0}if(Ba(n))return""+n.parent.parameters.indexOf(n)}function Nke(n){return n.flags&8192?n.escapedName:n.flags&384?sl(""+n.value):void 0}function knt(n){if(Xf(n.argumentExpression))return sl(n.argumentExpression.text);if(zl(n.argumentExpression)){const a=Nl(n.argumentExpression,111551,!0);if(!a||!(HL(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const u=Pd(l);if(u){const p=Nke(u);if(p!==void 0)return p}if(cT(l)&&Og(l,n.argumentExpression)){const p=RN(l);if(p)return Nke(Du(p));if(B1(l))return HA(l.name)}}}function Oke(n,a){for(;ll(n);)if(n=n.expression,Xc(n,a))return!0;return!1}function kS(n,a){for(;yu(n);)if(n=n.expression,Xc(n,a))return!0;return!1}function jD(n,a){if(n&&n.flags&1048576){const l=mie(n,a);if(l&&Il(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!PL(ar(l))),!!l.links.isDiscriminantProperty}return!1}function Pke(n,a){let l;for(const u of n)if(jD(a,u.escapedName)){if(l){l.push(u);continue}l=[u]}return l}function wnt(n,a){const l=new Map;let u=0;for(const p of n)if(p.flags&61603840){const g=fc(p,a);if(g){if(!FD(g))return;let x=!1;jE(g,R=>{const M=ku(yd(R)),J=l.get(M);J?J!==he&&(l.set(M,he),x=!0):l.set(M,p)}),x||u++}}return u>=10&&u*2>=n.length?l:void 0}function i4(n){const a=n.types;if(!(a.length<10||ti(n)&32768||Gc(a,l=>!!(l.flags&59506688))<10)){if(n.keyPropertyName===void 0){const l=Ue(a,p=>p.flags&59506688?Ue(hs(p),g=>fp(ar(g))?g.escapedName:void 0):void 0),u=l&&wnt(a,l);n.keyPropertyName=u?l:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function a4(n,a){var l;const u=(l=n.constituentMap)==null?void 0:l.get(ku(yd(a)));return u!==he?u:void 0}function Mke(n,a){const l=i4(n),u=l&&fc(a,l);return u&&a4(n,u)}function Dnt(n,a){const l=i4(n),u=l&&nn(a.properties,g=>g.symbol&&g.kind===299&&g.symbol.escapedName===l&&f4(g.initializer)),p=u&&k4(u.initializer);return p&&a4(n,p)}function Fke(n,a){return Xc(n,a)||Oke(n,a)}function Bke(n,a){if(n.arguments){for(const l of n.arguments)if(Fke(a,l))return!0}return!!(n.expression.kind===208&&Fke(a,n.expression.expression))}function Uae(n){return(!n.id||n.id<0)&&(n.id=GX,GX++),n.id}function Rnt(n,a){if(!(n.flags&1048576))return xo(n,a);for(const l of n.types)if(xo(l,a))return!0;return!1}function Nnt(n,a){var l;if(n===a)return n;if(a.flags&131072)return a;const u=`A${ku(n)},${ku(a)}`;return(l=Eb(u))!=null?l:Dg(u,Ont(n,a))}function Ont(n,a){const l=_c(n,p=>Rnt(a,p)),u=a.flags&512&&zb(a)?$s(l,rA):l;return xo(a,u)?u:n}function Vae(n){const a=up(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&uv(n,dl))}function wu(n){n.flags&467927040&&(n=Ju(n)||he);const a=n.flags;if(a&268435460)return W?16317953:16776705;if(a&134217856){const l=a&128&&n.value==="";return W?l?12123649:7929345:l?12582401:16776705}if(a&40)return W?16317698:16776450;if(a&256){const l=n.value===0;return W?l?12123394:7929090:l?12582146:16776450}if(a&64)return W?16317188:16775940;if(a&2048){const l=gke(n);return W?l?12122884:7928580:l?12581636:16775940}return a&16?W?16316168:16774920:a&528?W?n===it||n===K?12121864:7927560:n===it||n===K?12580616:16774920:a&524288?ti(n)&16&&Yh(n)?W?83427327:83886079:Vae(n)?W?7880640:16728e3:W?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?W?7925520:16772880:a&67108864?W?7888800:16736160:a&131072?0:a&1048576?Nu(n.types,(l,u)=>l|wu(u),0):a&2097152?Pnt(n):83886079}function Pnt(n){const a=pl(n,134348796);let l=0,u=134217727;for(const p of n.types)if(!(a&&p.flags&524288)){const g=wu(p);l|=g,u&=g}return l&8256|u&134209471}function l_(n,a){return _c(n,l=>(wu(l)&a)!==0)}function VE(n,a){const l=Gke(l_(W&&n.flags&2?Vl:n,a));if(W)switch(a){case 524288:return $s(l,u=>wu(u)&65536?wo([u,wu(u)&131072&&!pl(l,65536)?Qr([fa,Sn]):fa]):u);case 1048576:return $s(l,u=>wu(u)&131072?wo([u,wu(u)&65536&&!pl(l,32768)?Qr([fa,We]):fa]):u);case 2097152:case 4194304:return $s(l,u=>wu(u)&262144?tnt(u):u)}return l}function Gke(n){return n===Vl?he:n}function jae(n,a){return a?Qr([Ee(n),Du(a)]):n}function Uke(n,a){var l;const u=$g(a);if(!Jh(u))return Ce;const p=mm(u);return fc(n,p)||HD((l=X2(n,p))==null?void 0:l.type)||Ce}function Vke(n,a){return lh(n,GL)&&qtt(n,a)||HD(pv(65,n,We,void 0))||Ce}function HD(n){return n&&(Y.noUncheckedIndexedAccess?Qr([n,Xe]):n)}function jke(n){return Iu(pv(65,n,We,void 0)||Ce)}function Mnt(n){return n.parent.kind===206&&Hae(n.parent)||n.parent.kind===299&&Hae(n.parent.parent)?jae(o4(n),n.right):Du(n.right)}function Hae(n){return n.parent.kind===223&&n.parent.left===n||n.parent.kind===247&&n.parent.initializer===n}function Fnt(n,a){return Vke(o4(n),n.elements.indexOf(a))}function Bnt(n){return jke(o4(n.parent))}function Hke(n){return Uke(o4(n.parent),n.name)}function Gnt(n){return jae(Hke(n),n.objectAssignmentInitializer)}function o4(n){const{parent:a}=n;switch(a.kind){case 246:return ue;case 247:return M4(a)||Ce;case 223:return Mnt(a);case 217:return We;case 206:return Fnt(a,n);case 227:return Bnt(a);case 299:return Hke(a);case 300:return Gnt(a)}return Ce}function Unt(n){const a=n.parent,l=zke(a.parent),u=a.kind===203?Uke(l,n.propertyName||n.name):n.dotDotDotToken?jke(l):Vke(l,a.elements.indexOf(n));return jae(u,n.initializer)}function Wke(n){return Jr(n).resolvedType||Du(n)}function Vnt(n){return n.initializer?Wke(n.initializer):n.parent.parent.kind===246?ue:n.parent.parent.kind===247&&M4(n.parent.parent)||Ce}function zke(n){return n.kind===257?Vnt(n):Unt(n)}function jnt(n){return n.kind===257&&n.initializer&&Is(n.initializer)||n.kind!==205&&n.parent.kind===223&&Is(n.parent.right)}function Xb(n){switch(n.kind){case 214:return Xb(n.expression);case 223:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return Xb(n.left);case 27:return Xb(n.right)}}return n}function qke(n){const{parent:a}=n;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===n||a.kind===223&&a.operatorToken.kind===27&&a.right===n?qke(a):n}function Hnt(n){return n.kind===292?yd(Du(n.expression)):gt}function CV(n){const a=Jr(n);if(!a.switchTypes){a.switchTypes=[];for(const l of n.caseBlock.clauses)a.switchTypes.push(Hnt(l))}return a.switchTypes}function Jke(n){if(kt(n.caseBlock.clauses,l=>l.kind===292&&!xs(l.expression)))return;const a=[];for(const l of n.caseBlock.clauses){const u=l.kind===292?l.expression.text:void 0;a.push(u&&!jr(a,u)?u:void 0)}return a}function Wnt(n,a){return n.flags&1048576?!Ue(n.types,l=>!jr(a,l)):jr(a,n)}function WD(n,a){return n===a||a.flags&1048576&&znt(n,a)}function znt(n,a){if(n.flags&1048576){for(const l of n.types)if(!jb(a.types,l))return!1;return!0}return n.flags&1056&&bD(n)===a?!0:jb(a.types,n)}function jE(n,a){return n.flags&1048576?Ue(n.types,a):a(n)}function Zh(n,a){return n.flags&1048576?kt(n.types,a):a(n)}function lh(n,a){return n.flags&1048576?Yn(n.types,a):a(n)}function qnt(n,a){return n.flags&3145728?Yn(n.types,a):a(n)}function _c(n,a){if(n.flags&1048576){const l=n.types,u=lr(l,a);if(u===l)return n;const p=n.origin;let g;if(p&&p.flags&1048576){const x=p.types,R=lr(x,M=>!!(M.flags&1048576)||a(M));if(x.length-R.length===l.length-u.length){if(R.length===1)return R[0];g=jie(1048576,R)}}return Wie(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:gt}function LV(n,a){return _c(n,l=>l!==a)}function Jnt(n){return n.flags&1048576?n.types.length:1}function $s(n,a,l){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const u=n.origin,p=u&&u.flags&1048576?u.types:n.types;let g,x=!1;for(const R of p){const M=R.flags&1048576?$s(R,a,l):a(R);x||(x=R!==M),M&&(g?g.push(M):g=[M])}return x?g&&Qr(g,l?0:1):n}function Kke(n,a,l,u){return n.flags&1048576&&l?Qr(Vt(n.types,a),1,l,u):$s(n,a)}function jL(n,a){return _c(n,l=>(l.flags&a)!==0)}function Xke(n,a){return pl(n,134217804)&&pl(a,402655616)?$s(n,l=>l.flags&4?jL(a,402653316):tA(l)&&!pl(a,402653188)?jL(a,128):l.flags&8?jL(a,264):l.flags&64?jL(a,2112):l):n}function oA(n){return n.flags===0}function HE(n){return n.flags===0?n.type:n}function sA(n,a){return a?{flags:0,type:n.flags&131072?ft:n}:n}function Knt(n){const a=hf(256);return a.elementType=n,a}function Wae(n){return Pi[n.id]||(Pi[n.id]=Knt(n))}function Yke(n,a){const l=r4(fv(k4(a)));return WD(l,n.elementType)?n:Wae(Qr([n.elementType,l]))}function Xnt(n){return n.flags&131072?Nn:Iu(n.flags&1048576?Qr(n.types,2):n)}function Ynt(n){return n.finalArrayType||(n.finalArrayType=Xnt(n.elementType))}function s4(n){return ti(n)&256?Ynt(n):n}function $nt(n){return ti(n)&256?n.elementType:gt}function Qnt(n){let a=!1;for(const l of n)if(!(l.flags&131072)){if(!(ti(l)&256))return!1;a=!0}return a}function $ke(n){const a=qke(n),l=a.parent,u=Fr(l)&&(l.name.escapedText==="length"||l.parent.kind===210&&He(l.name)&&uq(l.name)),p=l.kind===209&&l.expression===a&&l.parent.kind===223&&l.parent.operatorToken.kind===63&&l.parent.left===l&&!Eh(l.parent)&&Mc(Du(l.argumentExpression),296);return u||p}function Znt(n){return(Ki(n)||to(n)||If(n)||Ba(n))&&!!(Zc(n)||fr(n)&&wv(n)&&n.initializer&&gC(n.initializer)&&vp(n.initializer))}function IV(n,a){if(n=Yl(n),n.flags&8752)return ar(n);if(n.flags&7){if(Il(n)&262144){const u=n.links.syntheticOrigin;if(u&&IV(u))return ar(n)}const l=n.valueDeclaration;if(l){if(Znt(l))return ar(n);if(Ki(l)&&l.parent.parent.kind===247){const u=l.parent.parent,p=l4(u.expression,void 0);if(p){const g=u.awaitModifier?15:13;return pv(g,p,We,void 0)}}a&&Ko(a,Nr(l,_._0_needs_an_explicit_type_annotation,S(n)))}}}function l4(n,a){if(!(n.flags&33554432))switch(n.kind){case 79:const l=Op(D_(n));return IV(l,a);case 108:return yrt(n);case 106:return Xae(n);case 208:{const u=l4(n.expression,a);if(u){const p=n.name;let g;if(Ni(p)){if(!u.symbol)return;g=co(u,QN(u.symbol,p.escapedText))}else g=co(u,p.escapedText);return g&&IV(g,a)}return}case 214:return l4(n.expression,a)}}function kV(n){const a=Jr(n);let l=a.effectsSignature;if(l===void 0){let u;n.parent.kind===241?u=l4(n.expression,void 0):n.expression.kind!==106&&(yu(n)?u=Up(BD(ga(n.expression),n.expression),n.expression):u=qL(n.expression));const p=za(u&&Ku(u)||he,0),g=p.length===1&&!p[0].typeParameters?p[0]:kt(p,Qke)?KL(n):void 0;l=a.effectsSignature=g&&Qke(g)?g:rn}return l===rn?void 0:l}function Qke(n){return!!(a_(n)||n.declaration&&(Y2(n.declaration)||he).flags&131072)}function ert(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const l=js(a.expression);return ll(l)?js(l.expression):void 0}function trt(n){const a=nr(n,sz),l=Zn(n),u=yy(l,a.statements.pos);$o.add(Dc(l,u.start,u.length,_.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function c4(n){const a=wV(n,!1);return pn=n,dr=a,a}function u4(n){const a=js(n,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(u4(a.left)||u4(a.right))||a.operatorToken.kind===56&&u4(a.left)&&u4(a.right))}function wV(n,a){for(;;){if(n===pn)return dr;const l=n.flags;if(l&4096){if(!a){const u=Uae(n),p=C2[u];return p!==void 0?p:C2[u]=wV(n,!0)}a=!1}if(l&368)n=n.antecedent;else if(l&512){const u=kV(n.node);if(u){const p=a_(u);if(p&&p.kind===3&&!p.type){const g=n.node.arguments[p.parameterIndex];if(g&&u4(g))return!1}if(ys(u).flags&131072)return!1}n=n.antecedent}else{if(l&4)return kt(n.antecedents,u=>wV(u,!1));if(l&8){const u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(l&128){if(n.clauseStart===n.clauseEnd&&LDe(n.switchStatement))return!1;n=n.antecedent}else if(l&1024){pn=void 0;const u=n.target,p=u.antecedents;u.antecedents=n.antecedents;const g=wV(n.antecedent,!1);return u.antecedents=p,g}else return!(l&1)}}}function DV(n,a){for(;;){const l=n.flags;if(l&4096){if(!a){const u=Uae(n),p=rE[u];return p!==void 0?p:rE[u]=DV(n,!0)}a=!1}if(l&496)n=n.antecedent;else if(l&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(l&4)return Yn(n.antecedents,u=>DV(u,!1));if(l&8)n=n.antecedents[0];else if(l&1024){const u=n.target,p=u.antecedents;u.antecedents=n.antecedents;const g=DV(n.antecedent,!1);return u.antecedents=p,g}else return!!(l&1)}}}function Zke(n){switch(n.kind){case 79:if(!Tx(n)){const a=D_(n);return HL(a)||cJ(a)&&!RV(a)}break;case 208:case 209:return Zke(n.expression)&&pp(Jr(n).resolvedSymbol||an)}return!1}function O0(n,a,l=a,u,p=(g=>(g=ai(n,WN))==null?void 0:g.flowNode)()){let g,x=!1,R=0;if(Ji)return Ce;if(!p)return a;tr++;const M=qr,J=HE(Ne(p));qr=M;const $=ti(J)&256&&$ke(n)?Nn:s4(J);if($===$n||n.parent&&n.parent.kind===232&&!($.flags&131072)&&l_($,2097152).flags&131072)return a;return $===j?he:$;function ge(){return x?g:(x=!0,g=AV(n,a,l,u))}function Ne(bt){var Ft;if(R===2e3)return(Ft=bi)==null||Ft.instant(bi.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:bt.id}),Ji=!0,trt(n),Ce;R++;let en;for(;;){const $t=bt.flags;if($t&4096){for(let zn=M;zn<qr;zn++)if(nE[zn]===bt)return R--,n0[zn];en=bt}let kn;if($t&16){if(kn=_t(bt),!kn){bt=bt.antecedent;continue}}else if($t&512){if(kn=Mn(bt),!kn){bt=bt.antecedent;continue}}else if($t&96)kn=Kn(bt);else if($t&128)kn=gn(bt);else if($t&12){if(bt.antecedents.length===1){bt=bt.antecedents[0];continue}kn=$t&4?xn(bt):yr(bt)}else if($t&256){if(kn=An(bt),!kn){bt=bt.antecedent;continue}}else if($t&1024){const zn=bt.target,sa=zn.antecedents;zn.antecedents=bt.antecedents,kn=Ne(bt.antecedent),zn.antecedents=sa}else if($t&2){const zn=bt.node;if(zn&&zn!==u&&n.kind!==208&&n.kind!==209&&n.kind!==108){bt=zn.flowNode;continue}kn=l}else kn=lR(a);return en&&(nE[qr]=en,n0[qr]=kn,qr++),R--,kn}}function De(bt){const Ft=bt.node;return zae(Ft.kind===257||Ft.kind===205?zke(Ft):o4(Ft),n)}function _t(bt){const Ft=bt.node;if(Xc(n,Ft)){if(!c4(bt))return $n;if(yT(Ft)===2){const en=Ne(bt.antecedent);return sA(fv(HE(en)),oA(en))}if(a===yt||a===Nn){if(jnt(Ft))return Wae(gt);const en=Kb(De(bt));return xo(en,a)?en:Dt}return a.flags&1048576?Nnt(a,De(bt)):a}if(Oke(n,Ft)){if(!c4(bt))return $n;if(Ki(Ft)&&(fr(Ft)||fg(Ft))){const en=NN(Ft);if(en&&(en.kind===215||en.kind===216))return Ne(bt.antecedent)}return a}if(Ki(Ft)&&Ft.parent.parent.kind===246&&(Xc(n,Ft.parent.parent.expression)||kS(Ft.parent.parent.expression,n)))return foe(s4(HE(Ne(bt.antecedent))))}function Bt(bt,Ft){const en=js(Ft,!0);if(en.kind===95)return $n;if(en.kind===223){if(en.operatorToken.kind===55)return Bt(Bt(bt,en.left),en.right);if(en.operatorToken.kind===56)return Qr([Bt(bt,en.left),Bt(bt,en.right)])}return Di(bt,en,!0)}function Mn(bt){const Ft=kV(bt.node);if(Ft){const en=a_(Ft);if(en&&(en.kind===2||en.kind===3)){const $t=Ne(bt.antecedent),kn=s4(HE($t)),zn=en.type?Ra(kn,en,bt.node,!0):en.kind===3&&en.parameterIndex>=0&&en.parameterIndex<bt.node.arguments.length?Bt(kn,bt.node.arguments[en.parameterIndex]):kn;return zn===kn?$t:sA(zn,oA($t))}if(ys(Ft).flags&131072)return $n}}function An(bt){if(a===yt||a===Nn){const Ft=bt.node,en=Ft.kind===210?Ft.expression.expression:Ft.left.expression;if(Xc(n,Xb(en))){const $t=Ne(bt.antecedent),kn=HE($t);if(ti(kn)&256){let zn=kn;if(Ft.kind===210)for(const sa of Ft.arguments)zn=Yke(zn,sa);else{const sa=k4(Ft.left.argumentExpression);Mc(sa,296)&&(zn=Yke(zn,Ft.right))}return zn===kn?$t:sA(zn,oA($t))}return $t}}}function Kn(bt){const Ft=Ne(bt.antecedent),en=HE(Ft);if(en.flags&131072)return Ft;const $t=(bt.flags&32)!==0,kn=s4(en),zn=Di(kn,bt.node,$t);return zn===kn?Ft:sA(zn,oA(Ft))}function gn(bt){const Ft=bt.switchStatement.expression,en=Ne(bt.antecedent);let $t=HE(en);if(Xc(n,Ft))$t=Qo($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd);else if(Ft.kind===218&&Xc(n,Ft.expression))$t=Ao($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd);else{W&&(kS(Ft,n)?$t=na($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd,zn=>!(zn.flags&163840)):Ft.kind===218&&kS(Ft.expression,n)&&($t=na($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd,zn=>!(zn.flags&131072||zn.flags&128&&zn.value==="undefined"))));const kn=qn(Ft,$t);kn&&($t=_a($t,kn,bt.switchStatement,bt.clauseStart,bt.clauseEnd))}return sA($t,oA(en))}function xn(bt){const Ft=[];let en=!1,$t=!1,kn;for(const zn of bt.antecedents){if(!kn&&zn.flags&128&&zn.clauseStart===zn.clauseEnd){kn=zn;continue}const sa=Ne(zn),vi=HE(sa);if(vi===a&&a===l)return vi;f_(Ft,vi),WD(vi,a)||(en=!0),oA(sa)&&($t=!0)}if(kn){const zn=Ne(kn),sa=HE(zn);if(!(sa.flags&131072)&&!jr(Ft,sa)&&!LDe(kn.switchStatement)){if(sa===a&&a===l)return sa;Ft.push(sa),WD(sa,a)||(en=!0),oA(zn)&&($t=!0)}}return sA(ln(Ft,en?2:1),$t)}function yr(bt){const Ft=Uae(bt),en=Ig[Ft]||(Ig[Ft]=new Map),$t=ge();if(!$t)return a;const kn=en.get($t);if(kn)return kn;for(let ur=Tn;ur<Hn;ur++)if(lS[ur]===bt&&eE[ur]===$t&&tE[ur].length)return sA(ln(tE[ur],1),!0);const zn=[];let sa=!1,vi;for(const ur of bt.antecedents){let ei;if(!vi)ei=vi=Ne(ur);else{lS[Hn]=bt,eE[Hn]=$t,tE[Hn]=zn,Hn++;const Sa=Aa;Aa=void 0,ei=Ne(ur),Aa=Sa,Hn--;const cs=en.get($t);if(cs)return cs}const vr=HE(ei);if(f_(zn,vr),WD(vr,a)||(sa=!0),vr===a)break}const yn=ln(zn,sa?2:1);return oA(vi)?sA(yn,!0):(en.set($t,yn),yn)}function ln(bt,Ft){if(Qnt(bt))return Wae(Qr(Vt(bt,$nt)));const en=Gke(Qr(pa(bt,s4),Ft));return en!==a&&en.flags&a.flags&1048576&&Zo(en.types,a.types)?a:en}function Gn(bt){if(Xa(n)||gC(n)||G_(n)){if(He(bt)){const en=D_(bt).valueDeclaration;if(en&&(ps(en)||Ba(en))&&n===en.parent&&!en.initializer&&!en.dotDotDotToken)return en}}else if(ll(bt)){if(Xc(n,bt.expression))return bt}else if(He(bt)){const Ft=D_(bt);if(HL(Ft)){const en=Ft.valueDeclaration;if(Ki(en)&&!en.type&&en.initializer&&ll(en.initializer)&&Xc(n,en.initializer.expression))return en.initializer;if(ps(en)&&!en.initializer){const $t=en.parent.parent;if(Ki($t)&&!$t.type&&$t.initializer&&(He($t.initializer)||ll($t.initializer))&&Xc(n,$t.initializer))return en}}}}function qn(bt,Ft){const en=a.flags&1048576?a:Ft;if(en.flags&1048576){const $t=Gn(bt);if($t){const kn=UE($t);if(kn&&jD(en,kn))return $t}}}function Zr(bt,Ft,en){const $t=UE(Ft);if($t===void 0)return bt;const kn=yu(Ft),zn=W&&(kn||q_e(Ft))&&pl(bt,98304);let sa=fc(zn?l_(bt,2097152):bt,$t);if(!sa)return bt;sa=zn&&kn?ey(sa):sa;const vi=en(sa);return _c(bt,yn=>{const ur=kP(yn,$t);return!(ur.flags&131072)&&!(vi.flags&131072)&&XP(vi,ur)})}function ri(bt,Ft,en,$t,kn){if((en===36||en===37)&&bt.flags&1048576){const zn=i4(bt);if(zn&&zn===UE(Ft)){const sa=a4(bt,Du($t));if(sa)return en===(kn?36:37)?sa:fp(fc(sa,zn)||he)?LV(bt,sa):bt}}return Zr(bt,Ft,zn=>sr(zn,en,$t,kn))}function _a(bt,Ft,en,$t,kn){if($t<kn&&bt.flags&1048576&&i4(bt)===UE(Ft)){const zn=CV(en).slice($t,kn),sa=Qr(Vt(zn,vi=>a4(bt,vi)||he));if(sa!==he)return sa}return Zr(bt,Ft,zn=>Qo(zn,en,$t,kn))}function Qa(bt,Ft,en){if(Xc(n,Ft))return VE(bt,en?4194304:8388608);W&&en&&kS(Ft,n)&&(bt=VE(bt,2097152));const $t=qn(Ft,bt);return $t?Zr(bt,$t,kn=>l_(kn,en?4194304:8388608)):bt}function Ec(bt,Ft,en){const $t=co(bt,Ft);return $t?!!($t.flags&16777216)||en:!!X2(bt,Ft)||!en}function Wf(bt,Ft,en){const $t=mm(Ft);if(Zh(bt,zn=>Ec(zn,$t,!0)))return _c(bt,zn=>Ec(zn,$t,en));if(en){const zn=iet();if(zn)return wo([bt,Z2(zn,[Ft,he])])}return bt}function bf(bt,Ft,en){switch(Ft.operatorToken.kind){case 63:case 75:case 76:case 77:return Qa(Di(bt,Ft.right,en),Ft.left,en);case 34:case 35:case 36:case 37:const $t=Ft.operatorToken.kind,kn=Xb(Ft.left),zn=Xb(Ft.right);if(kn.kind===218&&xs(zn))return Zi(bt,kn,$t,zn,en);if(zn.kind===218&&xs(kn))return Zi(bt,zn,$t,kn,en);if(Xc(n,kn))return sr(bt,$t,zn,en);if(Xc(n,zn))return sr(bt,$t,kn,en);W&&(kS(kn,n)?bt=Un(bt,$t,zn,en):kS(zn,n)&&(bt=Un(bt,$t,kn,en)));const sa=qn(kn,bt);if(sa)return ri(bt,sa,$t,zn,en);const vi=qn(zn,bt);if(vi)return ri(bt,vi,$t,kn,en);if(Xu(kn))return dt(bt,$t,zn,en);if(Xu(zn))return dt(bt,$t,kn,en);break;case 102:return Te(bt,Ft,en);case 101:if(Ni(Ft.left))return oa(bt,Ft,en);const yn=Xb(Ft.right),ur=Du(Ft.left);if(ur.flags&8576){if(GD(bt)&&ll(n)&&Xc(n.expression,yn)&&UE(n)===mm(ur))return l_(bt,en?524288:65536);if(Xc(n,yn))return Wf(bt,ur,en)}break;case 27:return Di(bt,Ft.right,en);case 55:return en?Di(Di(bt,Ft.left,!0),Ft.right,!0):Qr([Di(bt,Ft.left,!1),Di(bt,Ft.right,!1)]);case 56:return en?Qr([Di(bt,Ft.left,!0),Di(bt,Ft.right,!0)]):Di(Di(bt,Ft.left,!1),Ft.right,!1)}return bt}function oa(bt,Ft,en){const $t=Xb(Ft.right);if(!Xc(n,$t))return bt;D.assertNode(Ft.left,Ni);const kn=HV(Ft.left);if(kn===void 0)return bt;const zn=kn.parent,sa=gc(D.checkDefined(kn.valueDeclaration,"should always have a declaration"))?ar(zn):Us(zn);return Qn(bt,sa,en,!0)}function Un(bt,Ft,en,$t){const kn=Ft===34||Ft===36,zn=Ft===34||Ft===35?98304:32768,sa=Du(en);return kn!==$t&&lh(sa,yn=>!!(yn.flags&zn))||kn===$t&&lh(sa,yn=>!(yn.flags&(3|zn)))?VE(bt,2097152):bt}function sr(bt,Ft,en,$t){if(bt.flags&1)return bt;(Ft===35||Ft===37)&&($t=!$t);const kn=Du(en),zn=Ft===34||Ft===35;if(kn.flags&98304){if(!W)return bt;const sa=zn?$t?262144:2097152:kn.flags&65536?$t?131072:1048576:$t?65536:524288;return VE(bt,sa)}if($t){if(!zn&&(bt.flags&2||Zh(bt,$h))){if(kn.flags&201457660||$h(kn))return kn;if(kn.flags&524288)return oi}const sa=_c(bt,vi=>XP(vi,kn)||zn&&nnt(vi,kn));return Xke(sa,kn)}return fp(kn)?_c(bt,sa=>!(pke(sa)&&XP(sa,kn))):bt}function Zi(bt,Ft,en,$t,kn){(en===35||en===37)&&(kn=!kn);const zn=Xb(Ft.expression);if(!Xc(n,zn)){W&&kS(zn,n)&&kn===($t.text!=="undefined")&&(bt=VE(bt,2097152));const sa=qn(zn,bt);return sa?Zr(bt,sa,vi=>Ga(vi,$t,kn)):bt}return Ga(bt,$t,kn)}function Ga(bt,Ft,en){return en?Os(bt,Ft.text):VE(bt,lF.get(Ft.text)||32768)}function na(bt,Ft,en,$t,kn){return en!==$t&&Yn(CV(Ft).slice(en,$t),kn)?l_(bt,2097152):bt}function Qo(bt,Ft,en,$t){const kn=CV(Ft);if(!kn.length)return bt;const zn=kn.slice(en,$t),sa=en===$t||jr(zn,gt);if(bt.flags&2&&!sa){let ei;for(let vr=0;vr<zn.length;vr+=1){const Sa=zn[vr];if(Sa.flags&201457660)ei!==void 0&&ei.push(Sa);else if(Sa.flags&524288)ei===void 0&&(ei=zn.slice(0,vr)),ei.push(oi);else return bt}return Qr(ei===void 0?zn:ei)}const vi=Qr(zn),yn=vi.flags&131072?gt:Xke(_c(bt,ei=>XP(vi,ei)),vi);if(!sa)return yn;const ur=_c(bt,ei=>!(pke(ei)&&jr(kn,yd(Ktt(ei)))));return yn.flags&131072?ur:Qr([yn,ur])}function Os(bt,Ft){switch(Ft){case"string":return gl(bt,ue,1);case"number":return gl(bt,mt,2);case"bigint":return gl(bt,zt,4);case"boolean":return gl(bt,Re,8);case"symbol":return gl(bt,q,16);case"object":return bt.flags&1?bt:Qr([gl(bt,oi,32),gl(bt,Sn,131072)]);case"function":return bt.flags&1?bt:gl(bt,dl,64);case"undefined":return gl(bt,We,65536)}return gl(bt,oi,128)}function gl(bt,Ft,en){return $s(bt,$t=>bm($t,Ft,np)?wu($t)&en?$t:gt:uv(Ft,$t)?Ft:wu($t)&en?wo([$t,Ft]):gt)}function Ao(bt,Ft,en,$t){const kn=Jke(Ft);if(!kn)return bt;const zn=mi(Ft.caseBlock.clauses,yn=>yn.kind===293);if(en===$t||zn>=en&&zn<$t){const yn=CDe(en,$t,kn);return _c(bt,ur=>(wu(ur)&yn)===yn)}const vi=kn.slice(en,$t);return Qr(Vt(vi,yn=>yn?Os(bt,yn):gt))}function Xu(bt){return(Fr(bt)&&Mr(bt.name)==="constructor"||cl(bt)&&xs(bt.argumentExpression)&&bt.argumentExpression.text==="constructor")&&Xc(n,bt.expression)}function dt(bt,Ft,en,$t){if($t?Ft!==34&&Ft!==36:Ft!==35&&Ft!==37)return bt;const kn=Du(en);if(!pse(kn)&&!x0(kn))return bt;const zn=co(kn,"prototype");if(!zn)return bt;const sa=ar(zn),vi=Ss(sa)?void 0:sa;if(!vi||vi===Ya||vi===dl)return bt;if(Ss(bt))return vi;return _c(bt,ur=>yn(ur,vi));function yn(ur,ei){return ur.flags&524288&&ti(ur)&1||ei.flags&524288&&ti(ei)&1?ur.symbol===ei.symbol:uv(ur,ei)}}function Te(bt,Ft,en){const $t=Xb(Ft.left);if(!Xc(n,$t))return en&&W&&kS($t,n)?VE(bt,2097152):bt;const kn=Du(Ft.right);if(!Jb(kn,dl))return bt;const zn=$s(kn,er);return Ss(bt)&&(zn===Ya||zn===dl)||!en&&!(zn.flags&524288&&!$h(zn))?bt:Qn(bt,zn,en,!0)}function er(bt){const Ft=fc(bt,"prototype");if(Ft&&!Ss(Ft))return Ft;const en=za(bt,1);return en.length?Qr(Vt(en,$t=>ys(ID($t)))):fa}function Qn(bt,Ft,en,$t){var kn;const zn=bt.flags&1048576?`N${ku(bt)},${ku(Ft)},${(en?1:0)|($t?2:0)}`:void 0;return(kn=Eb(zn))!=null?kn:Dg(zn,Tr(bt,Ft,en,$t))}function Tr(bt,Ft,en,$t){if(!en){if($t)return _c(bt,yn=>!Jb(yn,Ft));const vi=Qn(bt,Ft,!0,!1);return _c(bt,yn=>!WD(yn,vi))}if(bt.flags&3)return Ft;const kn=$t?Jb:uv,zn=bt.flags&1048576?i4(bt):void 0,sa=$s(Ft,vi=>{const yn=zn&&fc(vi,zn),ur=yn&&a4(bt,yn),ei=$s(ur||bt,$t?vr=>Jb(vr,vi)?vr:Jb(vi,vr)?vi:gt:vr=>$Ie(vr,vi)?vr:$Ie(vi,vr)?vi:uv(vr,vi)?vr:uv(vi,vr)?vi:gt);return ei.flags&131072?$s(bt,vr=>pl(vr,465829888)&&kn(vi,Ju(vr)||he)?wo([vr,vi]):gt):ei});return sa.flags&131072?uv(Ft,bt)?Ft:xo(bt,Ft)?bt:xo(Ft,bt)?Ft:wo([bt,Ft]):sa}function wr(bt,Ft,en){if(Bke(Ft,n)){const $t=en||!aT(Ft)?kV(Ft):void 0,kn=$t&&a_($t);if(kn&&(kn.kind===0||kn.kind===1))return Ra(bt,kn,Ft,en)}if(GD(bt)&&ll(n)&&Fr(Ft.expression)){const $t=Ft.expression;if(Xc(n.expression,Xb($t.expression))&&He($t.name)&&$t.name.escapedText==="hasOwnProperty"&&Ft.arguments.length===1){const kn=Ft.arguments[0];if(xs(kn)&&UE(n)===sl(kn.text))return l_(bt,en?524288:65536)}}return bt}function Ra(bt,Ft,en,$t){if(Ft.type&&!(Ss(bt)&&(Ft.type===Ya||Ft.type===dl))){const kn=ert(Ft,en);if(kn){if(Xc(n,kn))return Qn(bt,Ft.type,$t,!1);W&&$t&&kS(kn,n)&&!(wu(Ft.type)&65536)&&(bt=VE(bt,2097152));const zn=qn(kn,bt);if(zn)return Zr(bt,zn,sa=>Qn(sa,Ft.type,$t,!1))}}return bt}function Di(bt,Ft,en){if(ZM(Ft)||br(Ft.parent)&&(Ft.parent.operatorToken.kind===60||Ft.parent.operatorToken.kind===77)&&Ft.parent.left===Ft)return Lr(bt,Ft,en);switch(Ft.kind){case 79:if(!Xc(n,Ft)&&k<5){const $t=D_(Ft);if(HL($t)){const kn=$t.valueDeclaration;if(kn&&Ki(kn)&&!kn.type&&kn.initializer&&Zke(n)){k++;const zn=Di(bt,kn.initializer,en);return k--,zn}}}case 108:case 106:case 208:case 209:return Qa(bt,Ft,en);case 210:return wr(bt,Ft,en);case 214:case 232:return Di(bt,Ft.expression,en);case 223:return bf(bt,Ft,en);case 221:if(Ft.operator===53)return Di(bt,Ft.operand,!en);break}return bt}function Lr(bt,Ft,en){if(Xc(n,Ft))return VE(bt,en?2097152:262144);const $t=qn(Ft,bt);return $t?Zr(bt,$t,kn=>l_(kn,en?2097152:262144)):bt}}function nrt(n,a){if(n=Op(n),(a.kind===79||a.kind===80)&&(yk(a)&&(a=a.parent),_g(a)&&(!Eh(a)||Sk(a)))){const l=Du(a);if(Op(Jr(a).resolvedSymbol)===n)return l}return mg(a)&&gy(a.parent)&&F(a.parent)?ea(a.parent.symbol):T0(n)}function zD(n){return nr(n.parent,a=>Ka(a)&&!mT(a)||a.kind===265||a.kind===308||a.kind===169)}function RV(n){if(!n.valueDeclaration)return!1;const a=Fm(n.valueDeclaration).parent,l=Jr(a);return l.flags&524288||(l.flags|=524288,rrt(a)||ewe(a)),n.isAssigned||!1}function rrt(n){return!!nr(n.parent,a=>(Ka(a)||NC(a))&&!!(Jr(a).flags&524288))}function ewe(n){if(n.kind===79){if(Eh(n)){const a=D_(n);cJ(a)&&(a.isAssigned=!0)}}else Ma(n,ewe)}function HL(n){return n.flags&3&&(UV(n)&2)!==0}function irt(n){const a=Jr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Bf(n,9))return CL(n.symbol),!0;const l=!!(wu(eR(n,0))&16777216);if(!i_())return CL(n.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function art(n,a){return W&&a.kind===166&&a.initializer&&wu(n)&16777216&&!irt(a)?l_(n,524288):n}function ort(n,a){const l=a.parent;return l.kind===208||l.kind===163||l.kind===210&&l.expression===a||l.kind===209&&l.expression===a&&!(Zh(n,nwe)&&C0(Du(l.argumentExpression)))}function twe(n){return n.flags&2097152?kt(n.types,twe):!!(n.flags&465829888&&av(n).flags&1146880)}function nwe(n){return n.flags&2097152?kt(n.types,nwe):!!(n.flags&465829888&&!pl(av(n),98304))}function srt(n,a){const l=(He(n)||Fr(n)||cl(n))&&!((wh(n.parent)||Wx(n.parent))&&n.parent.tagName===n)&&(a&&a&64?sd(n,8):sd(n,void 0));return l&&!PL(l)}function zae(n,a,l){return!(l&&l&2)&&Zh(n,twe)&&(ort(n,a)||srt(a,l))?$s(n,av):n}function rwe(n){return!!nr(n,a=>{const l=a.parent;return l===void 0?"quit":Gl(l)?l.expression===a&&zl(a):dd(l)?l.name===a||l.propertyName===a:!1})}function NV(n,a){if(!Y.verbatimModuleSyntax&&jy(n,111551)&&!VL(a)&&!Rd(n,111551)){const l=nc(n);uu(l)&1160127&&(H_(Y)||w1(Y)&&rwe(a)||!cR(Op(l))?Nb(n):Ob(n))}}function lrt(n,a){var l;const u=ar(n),p=n.valueDeclaration;if(p){if(ps(p)&&!p.initializer&&!p.dotDotDotToken&&p.parent.elements.length>=2){const g=p.parent.parent;if(g.kind===257&&gp(p)&2||g.kind===166){const x=Jr(g);if(!(x.flags&16777216)){x.flags|=16777216;const R=j2(g,0),M=R&&$s(R,av);if(x.flags&=-16777217,M&&M.flags&1048576&&!(g.kind===166&&RV(n))){const J=p.parent,$=O0(J,M,M,void 0,a.flowNode);return $.flags&131072?gt:xi(p,$)}}}}if(Ba(p)&&!p.type&&!p.initializer&&!p.dotDotDotToken){const g=p.parent;if(g.parameters.length>=2&&lV(g)){const x=JD(g);if(x&&x.parameters.length===1&&Eu(x)){const R=DL(Yi(ar(x.parameters[0]),(l=wS(g))==null?void 0:l.nonFixingMapper));if(R.flags&1048576&&lh(R,Mo)&&!RV(n)){const M=O0(g,R,R,void 0,a.flowNode),J=g.parameters.indexOf(p)-(L1(g)?1:0);return Md(M,Gp(J))}}}}}return u}function crt(n,a){if(Tx(n))return d4(n);const l=D_(n);if(l===an)return Ce;if(l===Ct){if(Uwe(n))return Ke(n,_.arguments_cannot_be_referenced_in_property_initializers),Ce;const Kn=Cf(n);return P<2&&(Kn.kind===216?Ke(n,_.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Yr(Kn,512)&&Ke(n,_.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Jr(Kn).flags|=512,ar(l)}drt(n)&&NV(l,n);const u=Op(l),p=GRe(u,n);s0(p)&&qie(n,p)&&p.declarations&&Rg(n,p.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32){if(g.kind===260&&XA(re,g)){let Kn=Ac(n);for(;Kn!==void 0;){if(Kn===g&&Kn.name!==n){Jr(g).flags|=1048576,Jr(n).flags|=2097152;break}Kn=Ac(Kn)}}else if(g.kind===228){let Kn=Sd(n,!1,!1);for(;Kn.kind!==308;){if(Kn.parent===g){(to(Kn)&&Ja(Kn)||kl(Kn))&&(Jr(g).flags|=1048576,Jr(n).flags|=2097152);break}Kn=Sd(Kn,!1,!1)}}}prt(n,l);let x=lrt(u,n);const R=yT(n);if(R){if(!(u.flags&3)&&!(fr(n)&&u.flags&512)){const Kn=u.flags&384?_.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?_.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?_.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?_.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?_.Cannot_assign_to_0_because_it_is_an_import:_.Cannot_assign_to_0_because_it_is_not_a_variable;return Ke(n,Kn,S(l)),Ce}if(pp(u))return u.flags&3?Ke(n,_.Cannot_assign_to_0_because_it_is_a_constant,S(l)):Ke(n,_.Cannot_assign_to_0_because_it_is_a_read_only_property,S(l)),Ce}const M=u.flags&2097152;if(u.flags&3){if(R===1)return x}else if(M)g=md(l);else return x;if(!g)return x;x=zae(x,n,a);const J=Fm(g).kind===166,$=zD(g);let ge=zD(n);const Ne=ge!==$,De=n.parent&&n.parent.parent&&Kx(n.parent)&&Hae(n.parent.parent),_t=l.flags&134217728;for(;ge!==$&&(ge.kind===215||ge.kind===216||C3(ge))&&(HL(u)&&x!==Nn||J&&!RV(u));)ge=zD(ge);const Bt=J||M||Ne||De||_t||urt(n,g)||x!==yt&&x!==Nn&&(!W||(x.flags&16387)!==0||VL(n)||Rke(n)||n.parent.kind===278)||n.parent.kind===232||g.kind===257&&g.exclamationToken||g.flags&16777216,Mn=Bt?J?art(x,g):x:x===yt||x===Nn?We:ey(x),An=O0(n,x,Mn,ge);if(!$ke(n)&&(x===yt||x===Nn)){if(An===yt||An===Nn)return Se&&(Ke(ka(g),_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,S(l),ke(An)),Ke(n,_.Variable_0_implicitly_has_an_1_type,S(l),ke(An))),lR(An)}else if(!Bt&&!ML(x)&&ML(An))return Ke(n,_.Variable_0_is_used_before_being_assigned,S(l)),x;return R?fv(An):An}function urt(n,a){if(ps(a)){const l=nr(n,ps);return l&&Fm(l)===Fm(a)}}function drt(n){var a;const l=n.parent;if(l){if(Fr(l)&&l.expression===n||dd(l)&&l.isTypeOnly)return!1;const u=(a=l.parent)==null?void 0:a.parent;if(u&&eu(u)&&u.isTypeOnly)return!1}return!0}function frt(n,a){return!!nr(n,l=>l===a?"quit":Ka(l)||l.parent&&to(l.parent)&&!gc(l.parent)&&l.parent.initializer===l)}function _rt(n,a){return nr(n,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function qae(n){return nr(n,a=>!a||dq(a)?"quit":Iv(a,!1))}function prt(n,a){if(P>=2||!(a.flags&34)||!a.valueDeclaration||qi(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)return;const l=Mm(a.valueDeclaration),u=frt(n,l),p=qae(l);if(p){if(u){let g=!0;if(DT(l)){const x=Q0(a.valueDeclaration,258);if(x&&x.parent===l){const R=_rt(n.parent,l);if(R){const M=Jr(R);M.flags|=8192;const J=M.capturedBlockScopeBindings||(M.capturedBlockScopeBindings=[]);f_(J,a),R===l.initializer&&(g=!1)}}}g&&(Jr(p).flags|=4096)}if(DT(l)){const g=Q0(a.valueDeclaration,258);g&&g.parent===l&&hrt(n,l)&&(Jr(a.valueDeclaration).flags|=262144)}Jr(a.valueDeclaration).flags|=32768}u&&(Jr(a.valueDeclaration).flags|=16384)}function mrt(n,a){const l=Jr(n);return!!l&&jr(l.capturedBlockScopeBindings,Ir(a))}function hrt(n,a){let l=n;for(;l.parent.kind===214;)l=l.parent;let u=!1;if(Eh(l))u=!0;else if(l.parent.kind===221||l.parent.kind===222){const p=l.parent;u=p.operator===45||p.operator===46}return u?!!nr(l,p=>p===a?"quit":p===a.statement):!1}function Jae(n,a){if(Jr(n).flags|=2,a.kind===169||a.kind===173){const l=a.parent;Jr(l).flags|=4}else Jr(a).flags|=4}function iwe(n){return zA(n)?n:Ka(n)?void 0:Ma(n,iwe)}function awe(n){const a=Ir(n),l=Us(a);return ii(l)===Er}function owe(n,a,l){const u=a.parent;A1(u)&&!awe(u)&&WN(n)&&n.flowNode&&!DV(n.flowNode,!1)&&Ke(n,l)}function grt(n,a){to(a)&&gc(a)&&re&&a.initializer&&qM(a.initializer,n.pos)&&$f(a.parent)&&Ke(n,_.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function d4(n){const a=VL(n);let l=Sd(n,!0,!0),u=!1,p=!1;for(l.kind===173&&owe(n,l,_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===216&&(l=Sd(l,!1,!p),u=!0),l.kind===164){l=Sd(l,!u,!1),p=!0;continue}break}if(grt(n,l),p)Ke(n,_.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 264:Ke(n,_.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Ke(n,_.this_cannot_be_referenced_in_current_location);break;case 173:swe(n,l)&&Ke(n,_.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&P<2&&Jae(n,l);const g=Kae(n,!0,l);if(ee){const x=ar(st);if(g===x&&u)Ke(n,_.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){const R=Ke(n,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!qi(l)){const M=Kae(l);M&&M!==x&&Ko(R,Nr(l,_.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||we}function Kae(n,a=!0,l=Sd(n,!1,!1)){const u=fr(n);if(Ka(l)&&(!$ae(n)||L1(l))){let p=Xt(l)||u&&brt(l);if(!p){const g=vrt(l);if(u&&g){const x=ga(g).symbol;x&&x.members&&x.flags&16&&(p=Us(x).thisType)}else Vp(l)&&(p=Us(as(l.symbol)).thisType);p||(p=cwe(l))}if(p)return O0(n,p)}if(di(l.parent)){const p=Ir(l.parent),g=Ja(l)?ar(p):Us(p).thisType;return O0(n,g)}if(qi(l))if(l.commonJsModuleIndicator){const p=Ir(l);return p&&ar(p)}else{if(l.externalModuleIndicator)return We;if(a)return ar(st)}}function yrt(n){const a=Sd(n,!1,!1);if(Ka(a)){const l=Fp(a);if(l.thisParameter)return IV(l.thisParameter)}if(di(a.parent)){const l=Ir(a.parent);return Ja(a)?ar(l):Us(l).thisType}}function vrt(n){if(n.kind===215&&br(n.parent)&&Ll(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===171&&n.parent.kind===207&&br(n.parent.parent)&&Ll(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===215&&n.parent.kind===299&&n.parent.parent.kind===207&&br(n.parent.parent.parent)&&Ll(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===215&&qc(n.parent)&&He(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Ls(n.parent.parent)&&no(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Ll(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(ac(n)&&He(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Ls(n.parent)&&no(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Ll(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function brt(n){const a=Av(n);if(a&&a.kind===320){const u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return fi(u.parameters[0].type)}const l=YM(n);if(l&&l.typeExpression)return fi(l.typeExpression)}function swe(n,a){return!!nr(n,l=>Qs(l)?"quit":l.kind===166&&l.parent===a)}function Xae(n){const a=n.parent.kind===210&&n.parent.expression===n,l=CN(n,!0);let u=l,p=!1,g=!1;if(!a){for(;u&&u.kind===216;)Yr(u,512)&&(g=!0),u=CN(u,!0),p=P<2;u&&Yr(u,512)&&(g=!0)}let x=0;if(!u||!$(u)){const ge=nr(n,Ne=>Ne===u?"quit":Ne.kind===164);return ge&&ge.kind===164?Ke(n,_.super_cannot_be_referenced_in_a_computed_property_name):a?Ke(n,_.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(di(u.parent)||u.parent.kind===207)?Ke(n,_.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ke(n,_.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ce}if(!a&&l.kind===173&&owe(n,u,_.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ja(u)||a?(x=32,!a&&P>=2&&P<=8&&(to(u)||kl(u))&&Xde(n.parent,ge=>{(!qi(ge)||of(ge))&&(Jr(ge).flags|=8388608)})):x=16,Jr(n).flags|=x,u.kind===171&&g&&(ud(n.parent)&&Eh(n.parent)?Jr(u).flags|=256:Jr(u).flags|=128),p&&Jae(n.parent,u),u.parent.kind===207)return P<2?(Ke(n,_.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ce):we;const R=u.parent;if(!A1(R))return Ke(n,_.super_can_only_be_referenced_in_a_derived_class),Ce;const M=Us(Ir(R)),J=M&&Po(M)[0];if(!J)return Ce;if(u.kind===173&&swe(n,u))return Ke(n,_.super_cannot_be_referenced_in_constructor_arguments),Ce;return x===32?ii(M):Uf(J,M.thisType);function $(ge){return a?ge.kind===173:di(ge.parent)||ge.parent.kind===207?Ja(ge)?ge.kind===171||ge.kind===170||ge.kind===174||ge.kind===175||ge.kind===169||ge.kind===172:ge.kind===171||ge.kind===170||ge.kind===174||ge.kind===175||ge.kind===169||ge.kind===168||ge.kind===173:!1}}function Ert(n){return(n.kind===171||n.kind===174||n.kind===175)&&n.parent.kind===207?n.parent:n.kind===215&&n.parent.kind===299?n.parent.parent:void 0}function lwe(n){return ti(n)&4&&n.target===xe?gs(n)[0]:void 0}function Trt(n){return $s(n,a=>a.flags&2097152?Ue(a.types,lwe):lwe(a))}function cwe(n){if(n.kind===216)return;if(lV(n)){const l=JD(n);if(l){const u=l.thisParameter;if(u)return ar(u)}}const a=fr(n);if(ee||a){const l=Ert(n);if(l){const p=Yb(l,void 0);let g=l,x=p;for(;x;){const R=Trt(x);if(R)return Yi(R,kae(wS(l)));if(g.parent.kind!==299)break;g=g.parent.parent,x=Yb(g,void 0)}return Zd(p?ty(p):Ql(l))}const u=Rv(n.parent);if(u.kind===223&&u.operatorToken.kind===63){const p=u.left;if(ll(p)){const{expression:g}=p;if(a&&He(g)){const x=Zn(u);if(x.commonJsModuleIndicator&&D_(g)===x.symbol)return}return Zd(Ql(g))}}}}function uwe(n){const a=n.parent;if(!lV(a))return;const l=mT(a);if(l&&l.arguments){const p=Aoe(l),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return Soe(p,g,p.length,we,void 0,0);const x=Jr(l),R=x.resolvedSignature;x.resolvedSignature=Ks;const M=g<p.length?Kb(ga(p[g])):n.initializer?void 0:Ze;return x.resolvedSignature=R,M}const u=JD(a);if(u){const p=a.parameters.indexOf(n)-(L1(a)?1:0);return n.dotDotDotToken&&tl(a.parameters)===n?YD(u,p):zE(u,p)}}function Yae(n,a){const l=Zc(n)||(fr(n)?y7(n):void 0);if(l)return fi(l);switch(n.kind){case 166:return uwe(n);case 205:return Srt(n,a);case 169:if(Ja(n))return xrt(n,a)}}function Srt(n,a){const l=n.parent.parent,u=n.propertyName||n.name,p=Yae(l,a)||l.kind!==205&&l.initializer&&eR(l,n.dotDotDotToken?64:0);if(!p||Xa(u)||SN(u))return;if(l.name.kind===204){const x=jA(n.parent.elements,n);return x<0?void 0:mwe(p,x)}const g=$g(u);if(Jh(g)){const x=mm(g);return fc(p,x)}}function xrt(n,a){const l=vt(n.parent)&&sd(n.parent,a);if(l)return WE(l,Ir(n).escapedName)}function Art(n,a){const l=n.parent;if(wv(l)&&n===l.initializer){const u=Yae(l,a);if(u)return u;if(!(a&8)&&Xa(l.name)&&l.name.elements.length>0)return ko(l.name,!0,!1)}}function Crt(n,a){const l=Cf(n);if(l){let u=Qae(l,a);if(u){const p=jc(l);if(p&1){const g=(p&2)!==0;u.flags&1048576&&(u=_c(u,R=>!!Qb(1,R,g)));const x=Qb(1,u,(p&2)!==0);if(!x)return;u=x}if(p&2){const g=$s(u,ry);return g&&Qr([g,SDe(g)])}return u}}}function Lrt(n,a){const l=sd(n,a);if(l){const u=ry(l);return u&&Qr([u,SDe(u)])}}function Irt(n,a){const l=Cf(n);if(l){const u=jc(l);let p=Qae(l,a);if(p){const g=(u&2)!==0;return!n.asteriskToken&&p.flags&1048576&&(p=_c(p,x=>!!Qb(1,x,g))),n.asteriskToken?p:Qb(0,p,g)}}}function $ae(n){let a=!1;for(;n.parent&&!Ka(n.parent);){if(Ba(n.parent)&&(a||n.parent.initializer===n))return!0;ps(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function dwe(n,a){const l=!!(jc(a)&2),u=Qae(a,void 0);if(u)return Qb(n,u,l)||void 0}function Qae(n,a){const l=Y2(n);if(l)return l;const u=noe(n);if(u&&!Aie(u))return ys(u);const p=mT(n);if(p)return sd(p,a)}function fwe(n,a){const u=Aoe(n).indexOf(a);return u===-1?void 0:Zae(n,u)}function Zae(n,a){if(sf(n))return a===0?ue:a===1?aIe(!1):we;const l=Jr(n).resolvedSignature===Hl?Hl:KL(n);if(ed(n)&&a===0)return FV(l,n);const u=l.parameters.length-1;return Eu(l)&&a>=u?Md(ar(l.parameters[u]),Gp(a-u),256):_p(l,a)}function krt(n){const a=Poe(n);return a?NE(a):void 0}function wrt(n,a){if(n.parent.kind===212)return fwe(n.parent,a)}function Drt(n,a){const l=n.parent,{left:u,operatorToken:p,right:g}=l;switch(p.kind){case 63:case 76:case 75:case 77:return n===g?Nrt(l):void 0;case 56:case 60:const x=sd(l,a);return n===g&&(x&&x.pattern||!x&&!pfe(l))?Du(u):x;case 55:case 27:return n===g?sd(l,a):void 0;default:return}}function Rrt(n){if(Rm(n)&&n.symbol)return n.symbol;if(He(n))return D_(n);if(Fr(n)){const l=Du(n.expression);return Ni(n.name)?a(l,n.name):co(l,n.name.escapedText)}if(cl(n)){const l=Ql(n.argumentExpression);if(!Jh(l))return;const u=Du(n.expression);return co(u,mm(l))}return;function a(l,u){const p=jV(u.escapedText,u);return p&&_oe(l,p)}}function Nrt(n){var a,l;const u=Ll(n);switch(u){case 0:case 4:const p=Rrt(n.left),g=p&&p.valueDeclaration;if(g&&(to(g)||If(g))){const M=Zc(g);return M&&Yi(fi(M),Wi(p).mapper)||(to(g)?g.initializer&&Du(n.left):void 0)}return u===0?Du(n.left):_we(n);case 5:if(OV(n,u))return _we(n);if(!Rm(n.left)||!n.left.symbol)return Du(n.left);{const M=n.left.symbol.valueDeclaration;if(!M)return;const J=ao(n.left,ll),$=Zc(M);if($)return fi($);if(He(J.expression)){const ge=J.expression,Ne=_l(ge,ge.escapedText,111551,void 0,ge.escapedText,!0);if(Ne){const De=Ne.valueDeclaration&&Zc(Ne.valueDeclaration);if(De){const _t=pg(J);if(_t!==void 0)return WE(fi(De),_t)}return}}return fr(M)?void 0:Du(n.left)}case 1:case 6:case 3:case 2:let x;u!==2&&(x=Rm(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(l=n.symbol)==null?void 0:l.valueDeclaration);const R=x&&Zc(x);return R?fi(R):void 0;case 7:case 8:case 9:return D.fail("Does not apply");default:return D.assertNever(u)}}function OV(n,a=Ll(n)){if(a===4)return!0;if(!fr(n)||a!==5||!He(n.left.expression))return!1;const l=n.left.expression.escapedText,u=_l(n.left,l,111551,void 0,void 0,!0,!0);return w3(u==null?void 0:u.valueDeclaration)}function _we(n){if(!n.symbol)return Du(n.left);if(n.symbol.valueDeclaration){const p=Zc(n.symbol.valueDeclaration);if(p){const g=fi(p);if(g)return g}}const a=ao(n.left,ll);if(!G_(Sd(a.expression,!1,!1)))return;const l=d4(a.expression),u=pg(a);return u!==void 0&&WE(l,u)||void 0}function Ort(n){return!!(Il(n)&262144&&!n.links.type&&ih(n,0)>=0)}function WE(n,a,l){return $s(n,u=>{var p;if(Vf(u)&&!u.declaration.nameType){const g=Mp(u),x=Ju(g)||g,R=l||jf(ta(a));if(xo(R,x))return QU(u,R)}else if(u.flags&3670016){const g=co(u,a);if(g)return Ort(g)?void 0:ar(g);if(Mo(u)&&Ah(a)&&+a>=0){const x=UL(u,u.target.fixedLength,0,!1,!0);if(x)return x}return(p=vie(bie(u),l||jf(ta(a))))==null?void 0:p.type}},!0)}function pwe(n,a){if(D.assert(G_(n)),!(n.flags&33554432))return eoe(n,a)}function eoe(n,a){const l=n.parent,u=qc(n)&&Yae(n,a);if(u)return u;const p=Yb(l,a);if(p){if(J2(n)){const g=Ir(n);return WE(p,g.escapedName,Wi(g).nameType)}if(n.name){const g=$g(n.name);return $s(p,x=>{var R;return(R=vie(bie(x),g))==null?void 0:R.type},!0)}}}function mwe(n,a){return n&&(a>=0&&WE(n,""+a)||$s(n,l=>Mo(l)?UL(l,0,0,!1,!0):ese(1,l,We,void 0,!1),!0))}function Prt(n,a){const l=n.parent;return n===l.whenTrue||n===l.whenFalse?sd(l,a):void 0}function Mrt(n,a,l){const u=Yb(n.openingElement.tagName,l),p=GV(lA(n));if(!(u&&!Ss(u)&&p&&p!==""))return;const g=nO(n.children),x=g.indexOf(a),R=WE(u,p);return R&&(g.length===1?R:$s(R,M=>D0(M)?Md(M,Gp(x)):M,!0))}function Frt(n,a){const l=n.parent;return s3(l)?sd(n,a):Cy(l)?Mrt(l,n,a):void 0}function hwe(n,a){if(im(n)){const l=Yb(n.parent,a);return!l||Ss(l)?void 0:WE(l,n.name.escapedText)}else return sd(n.parent,a)}function f4(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return f4(n.expression);case 291:return!n.expression||f4(n.expression)}return!1}function Brt(n,a){return Dnt(a,n)||fae(a,ba(Vt(lr(n.properties,l=>!!l.symbol&&l.kind===299&&f4(l.initializer)&&jD(a,l.symbol.escapedName)),l=>[()=>k4(l.initializer),l.symbol.escapedName]),Vt(lr(hs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&jD(a,l.escapedName)}),l=>[()=>We,l.escapedName])),xo,a)}function Grt(n,a){return fae(a,ba(Vt(lr(n.properties,l=>!!l.symbol&&l.kind===288&&jD(a,l.symbol.escapedName)&&(!l.initializer||f4(l.initializer))),l=>[l.initializer?()=>k4(l.initializer):()=>Pe,l.symbol.escapedName]),Vt(lr(hs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&jD(a,l.escapedName)}),l=>[()=>We,l.escapedName])),xo,a)}function Yb(n,a){const l=G_(n)?pwe(n,a):sd(n,a),u=PV(l,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){const p=$s(u,Ku,!0);return p.flags&1048576&&Ls(n)?Brt(n,p):p.flags&1048576&&F1(n)?Grt(n,p):p}}function PV(n,a,l){if(n&&pl(n,465829888)){const u=wS(a);if(u&&l&1&&kt(u.inferences,yot))return MV(n,u.nonFixingMapper);if(u!=null&&u.returnMapper){const p=MV(n,u.returnMapper);return p.flags&1048576&&jb(p.types,K)&&jb(p.types,Z)?_c(p,g=>g!==K&&g!==Z):p}}return n}function MV(n,a){return n.flags&465829888?Yi(n,a):n.flags&1048576?Qr(Vt(n.types,l=>MV(l,a)),0):n.flags&2097152?wo(Vt(n.types,l=>MV(l,a))):n}function sd(n,a){var l,u;if(n.flags&33554432)return;const p=ywe(n,!a);if(p>=0)return sc[p];const{parent:g}=n;switch(g.kind){case 257:case 166:case 169:case 168:case 205:return Art(n,a);case 216:case 250:return Crt(n,a);case 226:return Irt(g,a);case 220:return Lrt(g,a);case 210:case 211:return fwe(g,n);case 167:return krt(g);case 213:case 231:return cg(g.type)?sd(g,a):fi(g.type);case 223:return Drt(n,a);case 299:case 300:return eoe(g,a);case 301:return sd(g.parent,a);case 206:{const x=g,R=Yb(x,a),M=(u=(l=Jr(x)).firstSpreadIndex)!=null?u:l.firstSpreadIndex=mi(x.elements,Ih),J=jA(x.elements,n);return mwe(R,M<0||J<M?J:-1)}case 224:return Prt(n,a);case 236:return D.assert(g.parent.kind===225),wrt(g.parent,n);case 214:{if(fr(g)){if(_J(g))return fi(pJ(g));const x=p1(g);if(x&&!cg(x.typeExpression.type))return fi(x.typeExpression.type)}return sd(g,a)}case 232:return sd(g,a);case 235:return fi(g.type);case 274:return Pd(g);case 291:return Frt(g,a);case 288:case 290:return hwe(g,a);case 283:case 282:return jrt(g,a)}}function gwe(n){_4(n,sd(n,void 0),!0)}function _4(n,a,l){Ys[Cg]=n,sc[Cg]=a,Ym[Cg]=l,Cg++}function qD(){Cg--}function ywe(n,a){for(let l=Cg-1;l>=0;l--)if(n===Ys[l]&&(a||!Ym[l]))return l;return-1}function Urt(n,a){ep[Zv]=n,hb[Zv]=a,Zv++}function Vrt(){Zv--}function wS(n){for(let a=Zv-1;a>=0;a--)if(vT(n,ep[a]))return hb[a]}function jrt(n,a){if(wh(n)&&a!==4){const l=ywe(n.parent,!a);if(l>=0)return sc[l]}return Zae(n,0)}function FV(n,a){return eDe(a)!==0?Hrt(n,a):qrt(n,a)}function Hrt(n,a){let l=Noe(n,he);l=vwe(a,lA(a),l);const u=$b(kf.IntrinsicAttributes,a);return ns(u)||(l=OP(u,l)),l}function Wrt(n,a){if(n.compositeSignatures){const u=[];for(const p of n.compositeSignatures){const g=ys(p);if(Ss(g))return g;const x=fc(g,a);if(!x)return;u.push(x)}return wo(u)}const l=ys(n);return Ss(l)?l:fc(l,a)}function zrt(n){if(zL(n.tagName)){const l=Iwe(n),u=XV(n,l);return NE(u)}const a=Ql(n.tagName);if(a.flags&128){const l=Lwe(a,n);if(!l)return Ce;const u=XV(n,l);return NE(u)}return a}function vwe(n,a,l){const u=dit(a);if(u){const p=Us(u),g=zrt(n);if(u.flags&524288){const x=Wi(u).typeParameters;if(Ae(x)>=2){const R=ov([g,l],x,2,fr(n));return Z2(u,R)}}if(Ae(p.typeParameters)>=2){const x=ov([g,l],p.typeParameters,2,fr(n));return Yg(p,x)}}return l}function qrt(n,a){const l=lA(a),u=fit(l);let p=u===void 0?Noe(n,he):u===""?ys(n):Wrt(n,u);if(!p)return u&&Ae(a.attributes.properties)&&Ke(a,_.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,ta(u)),he;if(p=vwe(a,l,p),Ss(p))return p;{let g=p;const x=$b(kf.IntrinsicClassAttributes,a);if(!ns(x)){const M=tv(x.symbol),J=ys(n);let $;if(M){const ge=ov([J],M,gm(M),fr(a));$=Yi(x,vd(M,ge))}else $=x;g=OP($,g)}const R=$b(kf.IntrinsicAttributes,a);return ns(R)||(g=OP(R,g)),g}}function Jrt(n){return v_(Y,"noImplicitAny")?Nu(n,(a,l)=>a===l||!a?a:CLe(a.typeParameters,l.typeParameters)?Yrt(a,l):void 0):void 0}function Krt(n,a,l){if(!n||!a)return n||a;const u=Qr([ar(n),Yi(ar(a),l)]);return BE(n,u)}function Xrt(n,a,l){const u=ef(n),p=ef(a),g=u>=p?n:a,x=g===n?a:n,R=g===n?u:p,M=Sm(n)||Sm(a),J=M&&!Sm(g),$=new Array(R+(J?1:0));for(let ge=0;ge<R;ge++){let Ne=zE(g,ge);g===a&&(Ne=Yi(Ne,l));let De=zE(x,ge)||he;x===a&&(De=Yi(De,l));const _t=Qr([Ne,De]),Bt=M&&!J&&ge===R-1,Mn=ge>=Tm(g)&&ge>=Tm(x),An=ge>=u?void 0:XL(n,ge),Kn=ge>=p?void 0:XL(a,ge),gn=An===Kn?An:An?Kn?void 0:An:Kn,xn=ts(1|(Mn&&!Bt?16777216:0),gn||`arg${ge}`);xn.links.type=Bt?Iu(_t):_t,$[ge]=xn}if(J){const ge=ts(1,"args");ge.links.type=Iu(_p(x,R)),x===a&&(ge.links.type=Yi(ge.links.type,l)),$[R]=ge}return $}function Yrt(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=vd(a.typeParameters,n.typeParameters));const p=n.declaration,g=Xrt(n,a,u),x=Krt(n.thisParameter,a.thisParameter,u),R=Math.max(n.minArgumentCount,a.minArgumentCount),M=oh(p,l,x,g,void 0,void 0,R,(n.flags|a.flags)&39);return M.compositeKind=2097152,M.compositeSignatures=ba(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(M.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?w0(n.mapper,u):u),M}function toe(n,a){const l=za(n,0),u=lr(l,p=>!$rt(p,a));return u.length===1?u[0]:Jrt(u)}function $rt(n,a){let l=0;for(;l<a.parameters.length;l++){const u=a.parameters[l];if(u.initializer||u.questionToken||u.dotDotDotToken||IO(u))break}return a.parameters.length&&I1(a.parameters[0])&&l--,!Sm(n)&&ef(n)<l}function noe(n){return gC(n)||G_(n)?JD(n):void 0}function JD(n){D.assert(n.kind!==171||G_(n));const a=CD(n);if(a)return a;const l=Yb(n,1);if(!l)return;if(!(l.flags&1048576))return toe(l,n);let u;const p=l.types;for(const g of p){const x=toe(g,n);if(x)if(!u)u=[x];else if(t4(u[0],x,!1,!0,!0,OD))u.push(x);else return}if(u)return u.length===1?u[0]:xLe(u[0],u)}function Qrt(n,a){P<2&&pc(n,Y.downlevelIteration?1536:1024);const l=ga(n.expression,a);return pv(33,l,We,n.expression)}function Zrt(n){return n.isSpread?Md(n.type,mt):n.type}function WL(n){return n.kind===205&&!!n.initializer||n.kind===223&&n.operatorToken.kind===63}function bwe(n,a,l){const u=n.elements,p=u.length,g=[],x=[];gwe(n);const R=Eh(n),M=YL(n),J=Yb(n,void 0),$=!!J&&Zh(J,GL);let ge=!1;for(let Ne=0;Ne<p;Ne++){const De=u[Ne];if(De.kind===227){P<2&&pc(De,Y.downlevelIteration?1536:1024);const _t=ga(De.expression,a,l);if(D0(_t))g.push(_t),x.push(8);else if(R){const Bt=Xg(_t,mt)||ese(65,_t,We,void 0,!1)||he;g.push(Bt),x.push(4)}else g.push(pv(33,_t,We,De.expression)),x.push(4)}else if(qe&&De.kind===229)ge=!0,g.push(Ut),x.push(2);else{const _t=$L(De,a,l);if(g.push(Io(_t,!0,ge)),x.push(ge?2:1),$&&a&&a&2&&!(a&4)&&w_(De)){const Bt=wS(n);D.assert(Bt),Tke(Bt,De,_t)}}}return qD(),R?Bp(g,x):Ewe(l||M||$?Bp(g,x,M):Iu(g.length?Qr(pa(g,(Ne,De)=>x[De]&8?lv(Ne,mt)||we:Ne),2):W?_n:Ze,M))}function Ewe(n){if(!(ti(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=JLe(n),a.objectFlags|=147456),a}function eit(n){switch(n.kind){case 164:return tit(n);case 79:return Ah(n.escapedText);case 8:case 10:return Ah(n.text);default:return!1}}function tit(n){return Mc(ny(n),296)}function ny(n){const a=Jr(n.expression);if(!a.resolvedType){if((cf(n.parent.parent)||di(n.parent.parent)||id(n.parent.parent))&&br(n.expression)&&n.expression.operatorToken.kind===101&&n.parent.kind!==174&&n.parent.kind!==175)return a.resolvedType=Ce;if(a.resolvedType=ga(n.expression),to(n.parent)&&!gc(n.parent)&&Uu(n.parent.parent)){const l=Mm(n.parent.parent),u=qae(l);u&&(Jr(u).flags|=4096,Jr(n).flags|=32768,Jr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Mc(a.resolvedType,402665900)&&!xo(a.resolvedType,Ci))&&Ke(n,_.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function nit(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return Ah(n.escapedName)||l&&gu(l)&&eit(l.name)}function Twe(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return ZN(n)||l&&gu(l)&&As(l.name)&&Mc(ny(l.name),4096)}function roe(n,a,l,u){const p=[];for(let x=a;x<l.length;x++){const R=l[x];(u===ue&&!Twe(R)||u===mt&&nit(R)||u===q&&Twe(R))&&p.push(ar(l[x]))}const g=p.length?Qr(p,2):We;return ym(u,g,YL(n))}function ioe(n){D.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Wi(n);if(!a.immediateTarget){const l=md(n);if(!l)return D.fail();a.immediateTarget=op(l,!0)}return a.immediateTarget}function rit(n,a){var l;const u=Eh(n);iut(n,u);const p=W?so():void 0;let g=so(),x=[],R=fa;gwe(n);const M=Yb(n,void 0),J=M&&M.pattern&&(M.pattern.kind===203||M.pattern.kind===207),$=YL(n),ge=$?8:0,Ne=fr(n)&&!P3(n),De=XW(n),_t=!M&&Ne&&!De;let Bt=Ge,Mn=!1,An=!1,Kn=!1,gn=!1;for(const ln of n.properties)ln.name&&As(ln.name)&&ny(ln.name);let xn=0;for(const ln of n.properties){let Gn=Ir(ln);const qn=ln.name&&ln.name.kind===164?ny(ln.name):void 0;if(ln.kind===299||ln.kind===300||G_(ln)){let Zr=ln.kind===299?FDe(ln,a):ln.kind===300?$L(!u&&ln.objectAssignmentInitializer?ln.objectAssignmentInitializer:ln.name,a):BDe(ln,a);if(Ne){const Qa=ki(ln);Qa?(od(Zr,Qa,ln),Zr=Qa):De&&De.typeExpression&&od(Zr,fi(De.typeExpression),ln)}Bt|=ti(Zr)&458752;const ri=qn&&Jh(qn)?qn:void 0,_a=ri?ts(4|Gn.flags,mm(ri),ge|4096):ts(4|Gn.flags,Gn.escapedName,ge);if(ri&&(_a.links.nameType=ri),u)(ln.kind===299&&WL(ln.initializer)||ln.kind===300&&ln.objectAssignmentInitializer)&&(_a.flags|=16777216);else if(J&&!(ti(M)&512)){const Qa=co(M,Gn.escapedName);Qa?_a.flags|=Qa.flags&16777216:!Y.suppressExcessPropertyErrors&&!sh(M,ue)&&Ke(ln.name,_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,S(Gn),ke(M))}if(_a.declarations=Gn.declarations,_a.parent=Gn.parent,Gn.valueDeclaration&&(_a.valueDeclaration=Gn.valueDeclaration),_a.links.type=Zr,_a.links.target=Gn,Gn=_a,p==null||p.set(_a.escapedName,_a),M&&a&&a&2&&!(a&4)&&(ln.kind===299||ln.kind===171)&&w_(ln)){const Qa=wS(n);D.assert(Qa);const Ec=ln.kind===299?ln.initializer:ln;Tke(Qa,Ec,Zr)}}else if(ln.kind===301){P<2&&pc(ln,2),x.length>0&&(R=Wb(R,yr(),n.symbol,Bt,$),x=[],g=so(),An=!1,Kn=!1,gn=!1);const Zr=dp(ga(ln.expression));if(p4(Zr)){const ri=$ie(Zr,$);if(p&&xwe(ri,p,ln),xn=x.length,ns(R))continue;R=Wb(R,ri,n.symbol,Bt,$)}else Ke(ln,_.Spread_types_may_only_be_created_from_object_types),R=Ce;continue}else D.assert(ln.kind===174||ln.kind===175),rI(ln);qn&&!(qn.flags&8576)?xo(qn,Ci)&&(xo(qn,mt)?Kn=!0:xo(qn,q)?gn=!0:An=!0,u&&(Mn=!0)):g.set(Gn.escapedName,Gn),x.push(Gn)}if(qD(),J){const ln=nr(M.pattern.parent,qn=>qn.kind===257||qn.kind===223||qn.kind===166);if(nr(n,qn=>qn===ln||qn.kind===301).kind!==301)for(const qn of hs(M))!g.get(qn.escapedName)&&!co(R,qn.escapedName)&&(qn.flags&16777216||Ke(qn.valueDeclaration||((l=ai(qn,Om))==null?void 0:l.links.bindingElement),_.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(qn.escapedName,qn),x.push(qn))}if(ns(R))return Ce;if(R!==fa)return x.length>0&&(R=Wb(R,yr(),n.symbol,Bt,$),x=[],g=so(),An=!1,Kn=!1),$s(R,ln=>ln===fa?yr():ln);return yr();function yr(){const ln=[];An&&ln.push(roe(n,xn,x,ue)),Kn&&ln.push(roe(n,xn,x,mt)),gn&&ln.push(roe(n,xn,x,q));const Gn=Ns(n.symbol,g,rt,rt,ln);return Gn.objectFlags|=Bt|128|131072,_t&&(Gn.objectFlags|=4096),Mn&&(Gn.objectFlags|=512),u&&(Gn.pattern=n),Gn}}function p4(n){const a=yke($s(n,av));return!!(a.flags&126615553||a.flags&3145728&&Yn(a.types,p4))}function iit(n){loe(n)}function ait(n,a){return rI(n),m4(n)||we}function oit(n){loe(n.openingElement),zL(n.closingElement.tagName)?ooe(n.closingElement):ga(n.closingElement.tagName),BV(n)}function sit(n,a){return rI(n),m4(n)||we}function lit(n){loe(n.openingFragment);const a=Zn(n);return Jq(Y)&&(Y.jsxFactory||a.pragmas.has("jsx"))&&!Y.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ke(n,Y.jsxFactory?_.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),BV(n),m4(n)||we}function aoe(n){return pu(n,"-")}function zL(n){return n.kind===79&&dk(n.escapedText)}function Swe(n,a){return n.initializer?$L(n.initializer,a):Pe}function cit(n,a){const l=n.attributes,u=sd(l,0),p=W?so():void 0;let g=so(),x=ec,R=!1,M,J=!1,$=2048;const ge=GV(lA(n));for(const _t of l.properties){const Bt=_t.symbol;if(im(_t)){const Mn=Swe(_t,a);$|=ti(Mn)&458752;const An=ts(4|Bt.flags,Bt.escapedName);if(An.declarations=Bt.declarations,An.parent=Bt.parent,Bt.valueDeclaration&&(An.valueDeclaration=Bt.valueDeclaration),An.links.type=Mn,An.links.target=Bt,g.set(An.escapedName,An),p==null||p.set(An.escapedName,An),_t.name.escapedText===ge&&(J=!0),u){const Kn=co(u,Bt.escapedName);Kn&&Kn.declarations&&s0(Kn)&&Rg(_t.name,Kn.declarations,_t.name.escapedText)}}else{D.assert(_t.kind===290),g.size>0&&(x=Wb(x,De(),l.symbol,$,!1),g=so());const Mn=dp(Ql(_t.expression,a));Ss(Mn)&&(R=!0),p4(Mn)?(x=Wb(x,Mn,l.symbol,$,!1),p&&xwe(Mn,p,_t)):(Ke(_t.expression,_.Spread_types_may_only_be_created_from_object_types),M=M?wo([M,Mn]):Mn)}}R||g.size>0&&(x=Wb(x,De(),l.symbol,$,!1));const Ne=n.parent.kind===281?n.parent:void 0;if(Ne&&Ne.openingElement===n&&Ne.children.length>0){const _t=BV(Ne,a);if(!R&&ge&&ge!==""){J&&Ke(l,_._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,ta(ge));const Bt=Yb(n.attributes,void 0),Mn=Bt&&WE(Bt,ge),An=ts(4,ge);An.links.type=_t.length===1?_t[0]:Mn&&Zh(Mn,GL)?Bp(_t):Iu(Qr(_t)),An.valueDeclaration=N.createPropertySignature(void 0,ta(ge),void 0,void 0),Uo(An.valueDeclaration,l),An.valueDeclaration.symbol=An;const Kn=so();Kn.set(ge,An),x=Wb(x,Ns(l.symbol,Kn,rt,rt,rt),l.symbol,$,!1)}}if(R)return we;if(M&&x!==ec)return wo([M,x]);return M||(x===ec?De():x);function De(){$|=Ge;const _t=Ns(l.symbol,g,rt,rt,rt);return _t.objectFlags|=$|128|131072,_t}}function BV(n,a){const l=[];for(const u of n.children)if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||l.push(ue);else{if(u.kind===291&&!u.expression)continue;l.push($L(u,a))}return l}function xwe(n,a,l){for(const u of hs(n))if(!(u.flags&16777216)){const p=a.get(u.escapedName);if(p){const g=Ke(p.valueDeclaration,_._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,ta(p.escapedName));Ko(g,Nr(l,_.This_spread_always_overwrites_this_property))}}}function uit(n,a){return cit(n.parent,a)}function $b(n,a){const l=lA(a),u=l&&mf(l),p=u&&Kd(u,n,788968);return p?Us(p):Ce}function ooe(n){const a=Jr(n);if(!a.resolvedSymbol){const l=$b(kf.IntrinsicElements,n);if(ns(l))return Se&&Ke(n,_.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,ta(kf.IntrinsicElements)),a.resolvedSymbol=an;{if(!He(n.tagName))return D.fail();const u=co(l,n.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):Xg(l,ue)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Ke(n,_.Property_0_does_not_exist_on_type_1,Mr(n.tagName),"JSX."+kf.IntrinsicElements),a.resolvedSymbol=an)}}return a.resolvedSymbol}function soe(n){const a=n&&Zn(n),l=a&&Jr(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const u=u7(c7(Y,a),Y);if(!u)return;const g=vl(Y)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations,x=bc(n,u,g,n),R=x&&x!==an?as(Yl(x)):void 0;return l&&(l.jsxImplicitImportContainer=R||!1),R}function lA(n){const a=n&&Jr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=soe(n);if(!u||u===an){const p=Tb(n);u=_l(n,p,1920,void 0,p,!1)}if(u){const p=Yl(Kd(mf(Yl(u)),kf.JSX,1920));if(p&&p!==an)return a&&(a.jsxNamespace=p),p}a&&(a.jsxNamespace=!1)}const l=Yl(kD(kf.JSX,1920,void 0));if(l!==an)return l}function Awe(n,a){const l=a&&Kd(a.exports,n,788968),u=l&&Us(l),p=u&&hs(u);if(p){if(p.length===0)return"";if(p.length===1)return p[0].escapedName;p.length>1&&l.declarations&&Ke(l.declarations[0],_.The_global_type_JSX_0_may_not_have_more_than_one_property,ta(n))}}function dit(n){return n&&Kd(n.exports,kf.LibraryManagedAttributes,788968)}function fit(n){return Awe(kf.ElementAttributesPropertyNameContainer,n)}function GV(n){return Awe(kf.ElementChildrenAttributeNameContainer,n)}function Cwe(n,a){if(n.flags&4)return[Ks];if(n.flags&128){const p=Lwe(n,a);return p?[XV(a,p)]:(Ke(a,_.Property_0_does_not_exist_on_type_1,n.value,"JSX."+kf.IntrinsicElements),rt)}const l=Ku(n);let u=za(l,1);return u.length===0&&(u=za(l,0)),u.length===0&&l.flags&1048576&&(u=oie(Vt(l.types,p=>Cwe(p,a)))),u}function Lwe(n,a){const l=$b(kf.IntrinsicElements,a);if(!ns(l)){const u=n.value,p=co(l,sl(u));if(p)return ar(p);const g=Xg(l,ue);return g||void 0}return we}function _it(n,a,l){if(n===1){const p=wwe(l);p&&s_(a,p,kd,l.tagName,_.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){const p=kwe(l);p&&s_(a,p,kd,l.tagName,_.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{const p=wwe(l),g=kwe(l);if(!p||!g)return;const x=Qr([p,g]);s_(a,x,kd,l.tagName,_.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){const p=xc(l.tagName);return Na(void 0,_._0_cannot_be_used_as_a_JSX_component,p)}}function Iwe(n){D.assert(zL(n.tagName));const a=Jr(n);if(!a.resolvedJsxElementAttributesType){const l=ooe(n);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=ar(l)||Ce:a.jsxFlags&2?a.resolvedJsxElementAttributesType=Xg($b(kf.IntrinsicElements,n),ue)||Ce:a.resolvedJsxElementAttributesType=Ce}return a.resolvedJsxElementAttributesType}function kwe(n){const a=$b(kf.ElementClass,n);if(!ns(a))return a}function m4(n){return $b(kf.Element,n)}function wwe(n){const a=m4(n);if(a)return Qr([a,Sn])}function pit(n){const a=$b(kf.IntrinsicElements,n);return a?hs(a):rt}function mit(n){(Y.jsx||0)===0&&Ke(n,_.Cannot_use_JSX_unless_the_jsx_flag_is_provided),m4(n)===void 0&&Se&&Ke(n,_.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function loe(n){const a=ed(n);if(a&&aut(n),mit(n),!soe(n)){const l=$o&&Y.jsx===2?_.Cannot_find_name_0:void 0,u=Tb(n),p=a?n.tagName:n;let g;if(Jx(n)&&u==="null"||(g=_l(p,u,111551,l,u,!0)),g&&(g.isReferenced=67108863,!Y.verbatimModuleSyntax&&g.flags&2097152&&!Rd(g)&&Nb(g)),Jx(n)){const x=Zn(n),R=uS(x);R&&_l(p,R,111551,l,R,!0)}}if(a){const l=n,u=KL(l);$V(u,n),_it(eDe(l),ys(u),l)}}function coe(n,a,l){if(n.flags&524288){if(Bb(n,a)||X2(n,a)||ED(a)&&sh(n,ue)||l&&aoe(a))return!0}else if(n.flags&3145728&&h4(n)){for(const u of n.types)if(coe(u,a,l))return!0}return!1}function h4(n){return!!(n.flags&524288&&!(ti(n)&512)||n.flags&67108864||n.flags&1048576&&kt(n.types,h4)||n.flags&2097152&&Yn(n.types,h4))}function hit(n,a){if(sut(n),n.expression){const l=ga(n.expression,a);return n.dotDotDotToken&&l!==we&&!Hf(l)&&Ke(n,_.JSX_spread_child_must_be_an_array_type),l}else return Ce}function UV(n){return n.valueDeclaration?gp(n.valueDeclaration):0}function uoe(n){if(n.flags&8192||Il(n)&4)return!0;if(fr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&br(a)&&Ll(a)===3}}function doe(n,a,l,u,p,g=!0){const x=g?n.kind===163?n.right:n.kind===202?n:n.kind===205&&n.propertyName?n.propertyName:n.name:void 0;return Dwe(n,a,l,u,p,x)}function Dwe(n,a,l,u,p,g){const x=Qf(p,l);if(a){if(P<2&&Rwe(p))return g&&Ke(g,_.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(x&256)return g&&Ke(g,_.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,S(p),ke(IS(p))),!1}if(x&256&&Rwe(p)&&(LN(n)||ufe(n)||Hm(n.parent)&&w3(n.parent.parent))){const M=gg(gd(p));if(M&&oct(n))return g&&Ke(g,_.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,S(p),V_(M.name)),!1}if(!(x&24))return!0;if(x&8){const M=gg(gd(p));return dse(n,M)?!0:(g&&Ke(g,_.Property_0_is_private_and_only_accessible_within_class_1,S(p),ke(IS(p))),!1)}if(a)return!0;let R=KRe(n,M=>{const J=Us(Ir(M));return dke(J,p,l)});return!R&&(R=git(n),R=R&&dke(R,p,l),x&32||!R)?(g&&Ke(g,_.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,S(p),ke(IS(p)||u)),!1):x&32?!0:(u.flags&262144&&(u=u.isThisType?Cu(u):Ju(u)),!u||!kE(u,R)?(g&&Ke(g,_.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,S(p),ke(R),ke(u)),!1):!0)}function git(n){const a=yit(n);let l=(a==null?void 0:a.type)&&fi(a.type);if(l&&l.flags&262144&&(l=Cu(l)),l&&ti(l)&7)return q2(l)}function yit(n){const a=Sd(n,!1,!1);return a&&Ka(a)?L1(a):void 0}function Rwe(n){return!!ZP(n,a=>!(a.flags&8192))}function qL(n){return Up(ga(n),n)}function VV(n){return!!(wu(n)&50331648)}function foe(n){return VV(n)?ty(n):n}function vit(n,a){const l=zl(n)?Af(n):void 0;if(n.kind===104){Ke(n,_.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(He(n)&&l==="undefined"){Ke(n,_.The_value_0_cannot_be_used_here,"undefined");return}Ke(n,a&16777216?a&33554432?_._0_is_possibly_null_or_undefined:_._0_is_possibly_undefined:_._0_is_possibly_null,l)}else Ke(n,a&16777216?a&33554432?_.Object_is_possibly_null_or_undefined:_.Object_is_possibly_undefined:_.Object_is_possibly_null)}function bit(n,a){Ke(n,a&16777216?a&33554432?_.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_.Cannot_invoke_an_object_which_is_possibly_undefined:_.Cannot_invoke_an_object_which_is_possibly_null)}function Nwe(n,a,l){if(W&&n.flags&2){if(zl(a)){const p=Af(a);if(p.length<100)return Ke(a,_._0_is_of_type_unknown,p),Ce}return Ke(a,_.Object_is_of_type_unknown),Ce}const u=wu(n);if(u&50331648){l(a,u);const p=ty(n);return p.flags&229376?Ce:p}return n}function Up(n,a){return Nwe(n,a,vit)}function Owe(n,a){const l=Up(n,a);if(l.flags&16384){if(zl(a)){const u=Af(a);if(He(a)&&u==="undefined")return Ke(a,_.The_value_0_cannot_be_used_here,u),l;if(u.length<100)return Ke(a,_._0_is_possibly_undefined,u),l}Ke(a,_.Object_is_possibly_undefined)}return l}function Pwe(n,a){return n.flags&32?Eit(n,a):poe(n,n.expression,qL(n.expression),n.name,a)}function Eit(n,a){const l=ga(n.expression),u=BD(l,n.expression);return vV(poe(n,n.expression,Up(u,n.expression),n.name,a),n,u!==l)}function Mwe(n,a){const l=O3(n)&&TT(n.left)?Up(d4(n.left),n.left):qL(n.left);return poe(n,n.left,l,n.right,a)}function Fwe(n){for(;n.parent.kind===214;)n=n.parent;return ug(n.parent)&&n.parent.expression===n}function jV(n,a){for(let l=Ac(a);l;l=Ac(l)){const{symbol:u}=l,p=QN(u,n),g=u.members&&u.members.get(p)||u.exports&&u.exports.get(p);if(g)return g}}function Tit(n){if(!Ac(n))return En(n,_.Private_identifiers_are_not_allowed_outside_class_bodies);if(!iK(n.parent)){if(!_g(n))return En(n,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=br(n.parent)&&n.parent.operatorToken.kind===101;if(!HV(n)&&!a)return En(n,_.Cannot_find_name_0,Mr(n))}return!1}function Sit(n){Tit(n);const a=HV(n);return a&&y4(a,void 0,!1),we}function HV(n){if(!_g(n))return;const a=Jr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=jV(n.escapedText,n)),a.resolvedSymbol}function _oe(n,a){return co(n,a.escapedName)}function xit(n,a,l){let u;const p=hs(n);p&&Ue(p,x=>{const R=x.valueDeclaration;if(R&&gu(R)&&Ni(R.name)&&R.name.escapedText===a.escapedText)return u=x,!0});const g=r_(a);if(u){const x=D.checkDefined(u.valueDeclaration),R=D.checkDefined(Ac(x));if(l!=null&&l.valueDeclaration){const M=l.valueDeclaration,J=Ac(M);if(D.assert(!!J),nr(J,$=>R===$)){const $=Ke(a,_.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,ke(n));return Ko($,Nr(M,_.The_shadowing_declaration_of_0_is_defined_here,g),Nr(x,_.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return Ke(a,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,r_(R.name||B8)),!0}return!1}function Bwe(n,a){return(Od(a)||LN(n)&&Pp(a))&&Sd(n,!0,!1)===pm(a)}function poe(n,a,l,u,p){const g=Jr(a).resolvedSymbol,x=yT(n),R=Ku(x!==0||Fwe(n)?Zd(l):l),M=Ss(R)||R===ft;let J;if(Ni(u)){P<99&&(x!==0&&pc(n,1048576),x!==1&&pc(n,524288));const ge=jV(u.escapedText,u);if(x&&ge&&ge.valueDeclaration&&ac(ge.valueDeclaration)&&En(u,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Mr(u)),M){if(ge)return ns(R)?Ce:R;if(!Ac(u))return En(u,_.Private_identifiers_are_not_allowed_outside_class_bodies),we}if(J=ge?_oe(l,ge):void 0,!J&&xit(l,u,ge))return Ce;J&&J.flags&65536&&!(J.flags&32768)&&x!==1&&Ke(n,_.Private_accessor_was_defined_without_a_getter)}else{if(M)return He(a)&&g&&NV(g,n),ns(R)?Ce:R;J=co(R,u.escapedText,!1,n.kind===163)}He(a)&&g&&(H_(Y)||!(J&&(cR(J)||J.flags&8&&n.parent.kind===302))||w1(Y)&&rwe(n))&&NV(g,n);let $;if(J){s0(J)&&qie(n,J)&&J.declarations&&Rg(u,J.declarations,u.escapedText),Ait(J,n,u),y4(J,n,zwe(a,g)),Jr(n).resolvedSymbol=J;const ge=Sk(n);if(doe(n,a.kind===106,ge,R,J),DDe(n,J,x))return Ke(u,_.Cannot_assign_to_0_because_it_is_a_read_only_property,Mr(u)),Ce;$=Bwe(n,J)?yt:ge?LL(J):ar(J)}else{const ge=!Ni(u)&&(x===0||!Hb(l)||Mk(l))?X2(R,u.escapedText):void 0;if(!(ge&&ge.type)){const Ne=moe(n,l.symbol,!0);return!Ne&&DD(l)?we:l.symbol===st?(st.exports.has(u.escapedText)&&st.exports.get(u.escapedText).flags&418?Ke(u,_.Property_0_does_not_exist_on_type_1,ta(u.escapedText),ke(l)):Se&&Ke(u,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ke(l)),we):(u.escapedText&&!l0(n)&&Vwe(u,Mk(l)?R:l,Ne),Ce)}ge.isReadonly&&(Eh(n)||oq(n))&&Ke(n,_.Index_signature_in_type_0_only_permits_reading,ke(R)),$=Y.noUncheckedIndexedAccess&&!Eh(n)?Qr([ge.type,Xe]):ge.type,Y.noPropertyAccessFromIndexSignature&&Fr(n)&&Ke(u,_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,ta(u.escapedText)),ge.declaration&&gp(ge.declaration)&268435456&&Rg(u,[ge.declaration],u.escapedText)}return Gwe(n,J,$,u,p)}function moe(n,a,l){const u=Zn(n);if(u&&Y.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){const p=Ue(a==null?void 0:a.declarations,Zn);return!(u!==p&&p&&Qm(p))&&!(l&&a&&a.flags&32)&&!(n&&l&&Fr(n)&&n.expression.kind===108)}return!1}function Gwe(n,a,l,u,p){const g=yT(n);if(g===1)return FE(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!pj(a.declarations))return l;if(l===yt)return W2(n,a);l=zae(l,n,p);let x=!1;if(W&&ve&&ll(n)&&n.expression.kind===108){const M=a&&a.valueDeclaration;if(M&&ORe(M)&&!Ja(M)){const J=zD(n);J.kind===173&&J.parent===M.parent&&!(M.flags&16777216)&&(x=!0)}}else W&&a&&a.valueDeclaration&&Fr(a.valueDeclaration)&&FN(a.valueDeclaration)&&zD(n)===zD(a.valueDeclaration)&&(x=!0);const R=O0(n,l,x?ey(l):l);return x&&!ML(l)&&ML(R)?(Ke(u,_.Property_0_is_used_before_being_assigned,S(a)),l):g?fv(R):R}function Ait(n,a,l){const{valueDeclaration:u}=n;if(!u||Zn(a).isDeclarationFile)return;let p;const g=Mr(l);Uwe(a)&&!yZe(u)&&!(ll(a)&&ll(a.expression))&&!Og(u,l)&&!(ac(u)&&py(u)&32)&&(Y.useDefineForClassFields||!Cit(n))?p=Ke(l,_.Property_0_is_used_before_its_initialization,g):u.kind===260&&a.parent.kind!==180&&!(u.flags&16777216)&&!Og(u,l)&&(p=Ke(l,_.Class_0_used_before_its_declaration,g)),p&&Ko(p,Nr(u,_._0_is_declared_here,g))}function Uwe(n){return!!nr(n,a=>{switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return lo(a.parent)&&kl(a.parent.parent)?!0:"quit";default:return _g(a)?!1:"quit"}})}function Cit(n){if(!(n.parent.flags&32))return!1;let a=ar(n.parent);for(;;){if(a=a.symbol&&Lit(a),!a)return!1;const l=co(a,n.escapedName);if(l&&l.valueDeclaration)return!0}}function Lit(n){const a=Po(n);if(a.length!==0)return wo(a)}function Vwe(n,a,l){let u,p;if(!Ni(n)&&a.flags&1048576&&!(a.flags&134348796)){for(const x of a.types)if(!co(x,n.escapedText)&&!X2(x,n.escapedText)){u=Na(u,_.Property_0_does_not_exist_on_type_1,ws(n),ke(x));break}}if(jwe(n.escapedText,a)){const x=ws(n),R=ke(a);u=Na(u,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,R,R+"."+x)}else{const x=iR(a);if(x&&co(x,n.escapedText))u=Na(u,_.Property_0_does_not_exist_on_type_1,ws(n),ke(a)),p=Nr(n,_.Did_you_forget_to_use_await);else{const R=ws(n),M=ke(a),J=wit(R,a);if(J!==void 0)u=Na(u,_.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,R,M,J);else{const $=hoe(n,a);if($!==void 0){const ge=Fl($),Ne=l?_.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=Na(u,Ne,R,M,ge),p=$.valueDeclaration&&Nr($.valueDeclaration,_._0_is_declared_here,ge)}else{const ge=Iit(a)?_.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_.Property_0_does_not_exist_on_type_1;u=Na(gie(u,a),ge,R,M)}}}}const g=dg(Zn(n),n,u);p&&Ko(g,p),Fy(!l||u.code!==_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Iit(n){return Y.lib&&!Y.lib.includes("dom")&&qnt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ta(a.symbol.escapedName)))&&Yh(n)}function jwe(n,a){const l=a.symbol&&co(ar(a.symbol),n);return l!==void 0&&!!l.valueDeclaration&&Ja(l.valueDeclaration)}function kit(n){const a=r_(n),u=Iz().get(a);return u&&gce(u.keys())}function wit(n,a){const l=Ku(a).symbol;if(!l)return;const u=Fl(l),g=Iz().get(u);if(g){for(const[x,R]of g)if(jr(R,n))return x}}function Hwe(n,a){return g4(n,hs(a),106500)}function hoe(n,a){let l=hs(a);if(typeof n!="string"){const u=n.parent;Fr(u)&&(l=lr(l,p=>qwe(u,a,p))),n=Mr(n)}return g4(n,l,111551)}function Wwe(n,a){const l=Ha(n)?n:Mr(n),u=hs(a),p=l==="for"?nn(u,g=>Fl(g)==="htmlFor"):l==="class"?nn(u,g=>Fl(g)==="className"):void 0;return p??g4(l,u,111551)}function goe(n,a){const l=hoe(n,a);return l&&Fl(l)}function yoe(n,a,l){return D.assert(a!==void 0,"outername should always be defined"),Lb(n,a,l,void 0,a,!1,!1,!0,(p,g,x)=>{D.assertEqual(a,g,"name should equal outerName");const R=Kd(p,g,x);if(R)return R;let M;return p===ze?M=ia(["string","number","boolean","object","bigint","symbol"],$=>p.has($.charAt(0).toUpperCase()+$.slice(1))?ts(524288,$):void 0).concat(Ro(p.values())):M=Ro(p.values()),g4(ta(g),M,x)})}function Dit(n,a,l){const u=yoe(n,a,l);return u&&Fl(u)}function WV(n,a){return a.exports&&g4(Mr(n),Wy(a),2623475)}function Rit(n,a){const l=WV(n,a);return l&&Fl(l)}function Nit(n,a,l){function u(x){const R=Bb(n,x);if(R){const M=DS(ar(R));return!!M&&Tm(M)>=1&&xo(l,_p(M,0))}return!1}const p=Eh(a)?"set":"get";if(!u(p))return;let g=dO(a.expression);return g===void 0?g=p:g+="."+p,g}function Oit(n,a){const l=a.types.filter(u=>!!(u.flags&128));return xI(n.value,l,u=>u.value)}function g4(n,a,l){return xI(n,a,u);function u(p){const g=Fl(p);if(!xa(g,'"')){if(p.flags&l)return g;if(p.flags&2097152){const x=Bg(p);if(x&&x.flags&l)return g}}}}function y4(n,a,l){const u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;const p=Bd(u,8),g=n.valueDeclaration&&gu(n.valueDeclaration)&&Ni(n.valueDeclaration.name);if(!(!p&&!g)&&!(a&&Bq(a)&&!(n.flags&65536))){if(l){const x=nr(a,Qs);if(x&&x.symbol===n)return}(Il(n)&1?Wi(n).target:n).isReferenced=67108863}}function zwe(n,a){return n.kind===108||!!a&&zl(n)&&a===D_(Lf(n))}function Pit(n,a){switch(n.kind){case 208:return voe(n,n.expression.kind===106,a,Zd(ga(n.expression)));case 163:return voe(n,!1,a,Zd(ga(n.left)));case 202:return voe(n,!1,a,fi(n))}}function qwe(n,a,l){return boe(n,n.kind===208&&n.expression.kind===106,!1,a,l)}function voe(n,a,l,u){if(Ss(u))return!0;const p=co(u,l);return!!p&&boe(n,a,!1,u,p)}function boe(n,a,l,u,p){if(Ss(u))return!0;if(p.valueDeclaration&&Zu(p.valueDeclaration)){const g=Ac(p.valueDeclaration);return!yu(n)&&!!nr(n,x=>x===g)}return Dwe(n,a,l,u,p)}function Mit(n){const a=n.initializer;if(a.kind===258){const l=a.declarations[0];if(l&&!Xa(l.name))return Ir(l)}else if(a.kind===79)return D_(a)}function Fit(n){return Lu(n).length===1&&!!sh(n,mt)}function Bit(n){const a=js(n);if(a.kind===79){const l=D_(a);if(l.flags&3){let u=n,p=n.parent;for(;p;){if(p.kind===246&&u===p.statement&&Mit(p)===l&&Fit(Du(p.expression)))return!0;u=p,p=p.parent}}}return!1}function Git(n,a){return n.flags&32?Uit(n,a):Jwe(n,qL(n.expression),a)}function Uit(n,a){const l=ga(n.expression),u=BD(l,n.expression);return vV(Jwe(n,Up(u,n.expression),a),n,u!==l)}function Jwe(n,a,l){const u=yT(n)!==0||Fwe(n)?Zd(a):a,p=n.argumentExpression,g=ga(p);if(ns(u)||u===ft)return u;if(Boe(u)&&!xs(p))return Ke(p,_.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ce;const x=Bit(p)?mt:g,R=Eh(n)?4|(Hb(u)&&!Mk(u)?2:0):32,M=lv(u,x,R,n)||Ce;return $De(Gwe(n,Jr(n).resolvedSymbol,M,p,l),n)}function Kwe(n){return ug(n)||kT(n)||ed(n)}function cA(n){return Kwe(n)&&Ue(n.typeArguments,go),n.kind===212?ga(n.template):ed(n)?ga(n.attributes):n.kind!==167&&Ue(n.arguments,a=>{ga(a)}),Ks}function Em(n){return cA(n),rn}function Vit(n,a,l){let u,p,g=0,x,R=-1,M;D.assert(!a.length);for(const J of n){const $=J.declaration&&Ir(J.declaration),ge=J.declaration&&J.declaration.parent;!p||$===p?u&&ge===u?x=x+1:(u=ge,x=g):(x=g=a.length,u=ge),p=$,PX(J)?(R++,M=R,g++):M=x,a.splice(M,0,l?jQe(J,l):J)}}function zV(n){return!!n&&(n.kind===227||n.kind===234&&n.isSpread)}function qV(n){return mi(n,zV)}function Xwe(n){return!!(n.flags&16384)}function jit(n){return!!(n.flags&49155)}function JV(n,a,l,u=!1){let p,g=!1,x=ef(l),R=Tm(l);if(n.kind===212)if(p=a.length,n.template.kind===225){const M=zo(n.template.templateSpans);g=Cl(M.literal)||!!M.literal.isUnterminated}else{const M=n.template;D.assert(M.kind===14),g=!!M.isUnterminated}else if(n.kind===167)p=nDe(n,l);else if(ed(n)){if(g=n.attributes.end===n.end,g)return!0;p=R===0?a.length:1,x=a.length===0?x:1,R=Math.min(R,1)}else if(n.arguments){p=u?a.length+1:a.length,g=n.arguments.end===n.end;const M=qV(a);if(M>=0)return M>=Tm(l)&&(Sm(l)||M<ef(l))}else return D.assert(n.kind===211),Tm(l)===0;if(!Sm(l)&&p>x)return!1;if(g||p>=R)return!0;for(let M=p;M<R;M++){const J=_p(l,M);if(_c(J,fr(n)&&!W?jit:Xwe).flags&131072)return!1}return!0}function Eoe(n,a){const l=Ae(n.typeParameters),u=gm(n.typeParameters);return!kt(a)||a.length>=u&&a.length<=l}function DS(n){return KD(n,0,!1)}function Ywe(n){return KD(n,0,!1)||KD(n,1,!1)}function KD(n,a,l){if(n.flags&524288){const u=up(n);if(l||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function $we(n,a,l,u){const p=UD(n.typeParameters,n,0,u),g=$D(a),x=l&&(g&&g.flags&262144?l.nonFixingMapper:l.mapper),R=x?iA(a,x):a;return Aae(R,n,(M,J)=>{Qh(p.inferences,M,J)}),l||Cae(a,n,(M,J)=>{Qh(p.inferences,M,J,128)}),LD(n,Gae(p),fr(a.declaration))}function Hit(n,a,l,u){const p=FV(a,n),g=uA(n.attributes,p,u,l);return Qh(u.inferences,g,p),Gae(u)}function Qwe(n){if(!n)return Rt;const a=ga(n);return VI(n.parent)?ty(a):yu(n.parent)?Tae(a):a}function Toe(n,a,l,u,p){if(ed(n))return Hit(n,a,u,p);if(n.kind!==167){const M=Yn(a.typeParameters,$=>!!RE($)),J=sd(n,M?8:0);if(J){const $=ys(a);if(GE($)){const ge=wS(n);if(!(!M&&sd(n,8)!==J)){const Bt=kae(lnt(ge,1)),Mn=Yi(J,Bt),An=DS(Mn),Kn=An&&An.typeParameters?NE(Cie(An,An.typeParameters)):Mn;Qh(p.inferences,Kn,$,128)}const De=UD(a.typeParameters,a,p.flags),_t=Yi(J,ge&&ge.returnMapper);Qh(De.inferences,_t,$),p.returnMapper=kt(De.inferences,dA)?kae(fnt(De)):void 0}}}const g=QD(a),x=g?Math.min(ef(a)-1,l.length):l.length;if(g&&g.flags&262144){const M=nn(p.inferences,J=>J.typeParameter===g);M&&(M.impliedArity=mi(l,zV,x)<0?l.length-x:void 0)}const R=Ub(a);if(R&&GE(R)){const M=tDe(n);Qh(p.inferences,Qwe(M),R)}for(let M=0;M<x;M++){const J=l[M];if(J.kind!==229&&!(u&32&&Nae(J))){const $=_p(a,M);if(GE($)){const ge=uA(J,$,p,u);Qh(p.inferences,ge,$)}}}if(g&&GE(g)){const M=Soe(l,x,l.length,g,p,u);Qh(p.inferences,M,g)}return Gae(p)}function Zwe(n){return n.flags&1048576?$s(n,Zwe):n.flags&1||mV(Ju(n)||n)?n:Mo(n)?Bp(gs(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):Bp([n],[8])}function Soe(n,a,l,u,p,g){if(a>=l-1){const $=n[l-1];if(zV($))return Zwe($.kind===234?$.type:uA($.expression,u,p,g))}const x=[],R=[],M=[],J=FP(u);for(let $=a;$<l;$++){const ge=n[$];if(zV(ge)){const Ne=ge.kind===234?ge.type:ga(ge.expression);D0(Ne)?(x.push(Ne),R.push(8)):(x.push(pv(33,Ne,We,ge.kind===227?ge.expression:ge)),R.push(4))}else{const Ne=Md(u,Gp($-a),256),De=uA(ge,Ne,p,g),_t=J||pl(Ne,406978556);x.push(_t?yd(De):Kb(De)),R.push(1)}ge.kind===234&&ge.tupleNameSource&&M.push(ge.tupleNameSource)}return Bp(x,R,J,Ae(M)===Ae(x)?M:void 0)}function xoe(n,a,l,u){const p=fr(n.declaration),g=n.typeParameters,x=ov(Vt(a,fi),g,gm(g),p);let R;for(let M=0;M<a.length;M++){D.assert(g[M]!==void 0,"Should not call checkTypeArguments with too many type arguments");const J=Cu(g[M]);if(J){const $=l&&u?()=>Na(void 0,_.Type_0_does_not_satisfy_the_constraint_1):void 0,ge=u||_.Type_0_does_not_satisfy_the_constraint_1;R||(R=vd(g,x));const Ne=x[M];if(!od(Ne,Uf(Yi(J,R),Ne),l?a[M]:void 0,ge,$))return}}return x}function eDe(n){if(zL(n.tagName))return 2;const a=Ku(ga(n.tagName));return Ae(za(a,1))?0:Ae(za(a,0))?1:2}function Wit(n,a,l,u,p,g,x){const R=FV(a,n),M=uA(n.attributes,R,void 0,u);return J()&&sae(M,R,l,p?n.tagName:void 0,n.attributes,void 0,g,x);function J(){var $;if(soe(n))return!0;const ge=wh(n)||Wx(n)&&!zL(n.tagName)?ga(n.tagName):void 0;if(!ge)return!0;const Ne=za(ge,0);if(!Ae(Ne))return!0;const De=aNe(n);if(!De)return!0;const _t=Nl(De,111551,!0,!1,n);if(!_t)return!0;const Bt=ar(_t),Mn=za(Bt,0);if(!Ae(Mn))return!0;let An=!1,Kn=0;for(const xn of Mn){const yr=_p(xn,0),ln=za(yr,0);if(Ae(ln))for(const Gn of ln){if(An=!0,Sm(Gn))return!0;const qn=ef(Gn);qn>Kn&&(Kn=qn)}}if(!An)return!0;let gn=1/0;for(const xn of Ne){const yr=Tm(xn);yr<gn&&(gn=yr)}if(gn<=Kn)return!0;if(p){const xn=Nr(n.tagName,_.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Af(n.tagName),gn,Af(De),Kn),yr=($=R_(n.tagName))==null?void 0:$.valueDeclaration;yr&&Ko(xn,Nr(yr,_._0_is_declared_here,Af(n.tagName))),x&&x.skipLogging&&(x.errors||(x.errors=[])).push(xn),x.skipLogging||$o.add(xn)}return!1}}function v4(n,a,l,u,p,g,x){const R={errors:void 0,skipLogging:!0};if(ed(n))return Wit(n,l,u,p,g,x,R)?void 0:(D.assert(!g||!!R.errors,"jsx should have errors when reporting errors"),R.errors||rt);const M=Ub(l);if(M&&M!==Rt&&!(P1(n)||no(n)&&ud(n.expression))){const De=tDe(n),_t=Qwe(De),Bt=g?De||n:void 0,Mn=_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!s_(_t,M,u,Bt,Mn,x,R))return D.assert(!g||!!R.errors,"this parameter should have errors when reporting errors"),R.errors||rt}const J=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,$=QD(l),ge=$?Math.min(ef(l)-1,a.length):a.length;for(let De=0;De<ge;De++){const _t=a[De];if(_t.kind!==229){const Bt=_p(l,De),Mn=uA(_t,Bt,void 0,p),An=p&4?r4(Mn):Mn;if(!sae(An,Bt,u,g?_t:void 0,_t,J,x,R))return D.assert(!g||!!R.errors,"parameter should have errors when reporting errors"),Ne(_t,An,Bt),R.errors||rt}}if($){const De=Soe(a,ge,a.length,$,void 0,p),_t=a.length-ge,Bt=g?_t===0?n:_t===1?a[ge]:Vm(b4(n,De),a[ge].pos,a[a.length-1].end):void 0;if(!s_(De,$,u,Bt,J,void 0,R))return D.assert(!g||!!R.errors,"rest parameter should have errors when reporting errors"),Ne(Bt,De,$),R.errors||rt}return;function Ne(De,_t,Bt){if(De&&g&&R.errors&&R.errors.length){if(rR(Bt))return;const Mn=rR(_t);Mn&&bm(Mn,Bt,u)&&Ko(R.errors[0],Nr(De,_.Did_you_forget_to_use_await))}}}function tDe(n){const a=n.kind===210?n.expression:n.kind===212?n.tag:void 0;if(a){const l=bu(a);if(ll(l))return l.expression}}function b4(n,a,l,u){const p=Jm.createSyntheticExpression(a,l,u);return ht(p,n),Uo(p,n),p}function Aoe(n){if(n.kind===212){const u=n.template,p=[b4(u,PZe())];return u.kind===225&&Ue(u.templateSpans,g=>{p.push(g.expression)}),p}if(n.kind===167)return zit(n);if(ed(n))return n.attributes.properties.length>0||wh(n)&&n.parent.children.length>0?[n.attributes]:rt;const a=n.arguments||rt,l=qV(a);if(l>=0){const u=a.slice(0,l);for(let p=l;p<a.length;p++){const g=a[p],x=g.kind===227&&(Hn?ga(g.expression):Ql(g.expression));x&&Mo(x)?Ue(gs(x),(R,M)=>{var J;const $=x.target.elementFlags[M],ge=b4(g,$&4?Iu(R):R,!!($&12),(J=x.target.labeledElementDeclarations)==null?void 0:J[M]);u.push(ge)}):u.push(g)}return u}return a}function zit(n){const a=n.expression,l=Poe(n);if(l){const u=[];for(const p of l.parameters){const g=ar(p);u.push(b4(a,g))}return u}return D.fail()}function nDe(n,a){return Y.experimentalDecorators?qit(n,a):2}function qit(n,a){switch(n.parent.kind){case 260:case 228:return 1;case 169:return Bm(n.parent)?3:2;case 171:case 174:case 175:return P===0||a.parameters.length<=2?2:3;case 166:return 3;default:return D.fail()}}function rDe(n,a){let l,u;const p=Zn(n);if(Fr(n.expression)){const g=E1(p,n.expression.name);l=g.start,u=a?g.length:n.end-l}else{const g=E1(p,n.expression);l=g.start,u=a?g.length:n.end-l}return{start:l,length:u,sourceFile:p}}function XD(n,a,l,u,p,g){if(no(n)){const{sourceFile:x,start:R,length:M}=rDe(n);return"message"in a?Dc(x,R,M,a,l,u,p,g):Uz(x,a)}else return"message"in a?Nr(n,a,l,u,p,g):dg(Zn(n),n,a)}function Jit(n){if(!no(n)||!He(n.expression))return!1;const a=_l(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!Ba(l)||!gC(l.parent)||!P1(l.parent.parent)||!He(l.parent.parent.expression))return!1;const u=Pie(!1);return u?R_(l.parent.parent.expression,!0)===u:!1}function iDe(n,a,l,u){var p;const g=qV(l);if(g>-1)return Nr(l[g],_.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,M=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,$;for(const Bt of a){const Mn=Tm(Bt),An=ef(Bt);Mn<x&&(x=Mn,$=Bt),R=Math.max(R,An),Mn<l.length&&Mn>M&&(M=Mn),l.length<An&&An<J&&(J=An)}const ge=kt(a,Sm),Ne=ge?x:x<R?x+"-"+R:x,De=!ge&&Ne===1&&l.length===0&&Jit(n);if(De&&fr(n))return XD(n,_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const _t=Bu(n)?ge?_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ge?_.Expected_at_least_0_arguments_but_got_1:De?_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_.Expected_0_arguments_but_got_1;if(x<l.length&&l.length<R){if(u){let Bt=Na(void 0,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,M,J);return Bt=Na(Bt,u),XD(n,Bt)}return XD(n,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,M,J)}else if(l.length<x){let Bt;if(u){let An=Na(void 0,_t,Ne,l.length);An=Na(An,u),Bt=XD(n,An)}else Bt=XD(n,_t,Ne,l.length);const Mn=(p=$==null?void 0:$.declaration)==null?void 0:p.parameters[$.thisParameter?l.length+1:l.length];if(Mn){const An=Nr(Mn,Xa(Mn.name)?_.An_argument_matching_this_binding_pattern_was_not_provided:yh(Mn)?_.Arguments_for_the_rest_parameter_0_were_not_provided:_.An_argument_for_0_was_not_provided,Mn.name?Xa(Mn.name)?void 0:Mr(Lf(Mn.name)):l.length);return Ko(Bt,An)}return Bt}else{const Bt=N.createNodeArray(l.slice(R)),Mn=us(Bt).pos;let An=zo(Bt).end;if(An===Mn&&An++,Vm(Bt,Mn,An),u){let Kn=Na(void 0,_t,Ne,l.length);return Kn=Na(Kn,u),xN(Zn(n),Bt,Kn)}return WA(Zn(n),Bt,_t,Ne,l.length)}}function Kit(n,a,l,u){const p=l.length;if(a.length===1){const R=a[0],M=gm(R.typeParameters),J=Ae(R.typeParameters);if(u){let $=Na(void 0,_.Expected_0_type_arguments_but_got_1,M<J?M+"-"+J:M,p);return $=Na($,u),xN(Zn(n),l,$)}return WA(Zn(n),l,_.Expected_0_type_arguments_but_got_1,M<J?M+"-"+J:M,p)}let g=-1/0,x=1/0;for(const R of a){const M=gm(R.typeParameters),J=Ae(R.typeParameters);M>p?x=Math.min(x,M):J<p&&(g=Math.max(g,J))}if(g!==-1/0&&x!==1/0){if(u){let R=Na(void 0,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,g,x);return R=Na(R,u),xN(Zn(n),l,R)}return WA(Zn(n),l,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,g,x)}if(u){let R=Na(void 0,_.Expected_0_type_arguments_but_got_1,g===-1/0?x:g,p);return R=Na(R,u),xN(Zn(n),l,R)}return WA(Zn(n),l,_.Expected_0_type_arguments_but_got_1,g===-1/0?x:g,p)}function JL(n,a,l,u,p,g){const x=n.kind===212,R=n.kind===167,M=ed(n),J=!H&&!l;let $;!R&&!zA(n)&&($=n.typeArguments,(x||M||n.expression.kind!==106)&&Ue($,go));const ge=l||[];if(Vit(a,ge,p),!ge.length)return J&&$o.add(XD(n,_.Call_target_does_not_contain_any_signatures)),Em(n);const Ne=Aoe(n),De=ge.length===1&&!ge[0].typeParameters;let _t=!R&&!De&&kt(Ne,w_)?4:0;_t|=u&32;let Bt,Mn,An,Kn;const gn=!!(u&16)&&n.kind===210&&n.arguments.hasTrailingComma;if(ge.length>1&&(Kn=yr(ge,$m,De,gn)),Kn||(Kn=yr(ge,kd,De,gn)),Kn)return Kn;if(Kn=Xit(n,ge,Ne,!!l,u),Jr(n).resolvedSignature=Kn,J)if(Bt)if(Bt.length===1||Bt.length>3){const ln=Bt[Bt.length-1];let Gn;Bt.length>3&&(Gn=Na(Gn,_.The_last_overload_gave_the_following_error),Gn=Na(Gn,_.No_overload_matches_this_call)),g&&(Gn=Na(Gn,g));const qn=v4(n,Ne,ln,kd,0,!0,()=>Gn);if(qn)for(const Zr of qn)ln.declaration&&Bt.length>3&&Ko(Zr,Nr(ln.declaration,_.The_last_overload_is_declared_here)),xn(ln,Zr),$o.add(Zr);else D.fail("No error for last overload signature")}else{const ln=[];let Gn=0,qn=Number.MAX_VALUE,Zr=0,ri=0;for(const bf of Bt){const Un=v4(n,Ne,bf,kd,0,!0,()=>Na(void 0,_.Overload_0_of_1_2_gave_the_following_error,ri+1,ge.length,le(bf)));Un?(Un.length<=qn&&(qn=Un.length,Zr=ri),Gn=Math.max(Gn,Un.length),ln.push(Un)):D.fail("No error for 3 or fewer overload signatures"),ri++}const _a=Gn>1?ln[Zr]:is(ln);D.assert(_a.length>0,"No errors reported for 3 or fewer overload signatures");let Qa=Na(Vt(_a,$de),_.No_overload_matches_this_call);g&&(Qa=Na(Qa,g));const Ec=[...ma(_a,bf=>bf.relatedInformation)];let Wf;if(Yn(_a,bf=>bf.start===_a[0].start&&bf.length===_a[0].length&&bf.file===_a[0].file)){const{file:bf,start:oa,length:Un}=_a[0];Wf={file:bf,start:oa,length:Un,code:Qa.code,category:Qa.category,messageText:Qa,relatedInformation:Ec}}else Wf=dg(Zn(n),n,Qa,Ec);xn(Bt[0],Wf),$o.add(Wf)}else if(Mn)$o.add(iDe(n,[Mn],Ne,g));else if(An)xoe(An,n.typeArguments,!0,g);else{const ln=lr(a,Gn=>Eoe(Gn,$));ln.length===0?$o.add(Kit(n,a,$,g)):$o.add(iDe(n,ln,Ne,g))}return Kn;function xn(ln,Gn){var qn,Zr;const ri=Bt,_a=Mn,Qa=An,Ec=((Zr=(qn=ln.declaration)==null?void 0:qn.symbol)==null?void 0:Zr.declarations)||rt,bf=Ec.length>1?nn(Ec,oa=>Qs(oa)&&p_(oa.body)):void 0;if(bf){const oa=Fp(bf),Un=!oa.typeParameters;yr([oa],kd,Un)&&Ko(Gn,Nr(bf,_.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Bt=ri,Mn=_a,An=Qa}function yr(ln,Gn,qn,Zr=!1){if(Bt=void 0,Mn=void 0,An=void 0,qn){const ri=ln[0];if(kt($)||!JV(n,Ne,ri,Zr))return;if(v4(n,Ne,ri,Gn,0,!1,void 0)){Bt=[ri];return}return ri}for(let ri=0;ri<ln.length;ri++){const _a=ln[ri];if(!Eoe(_a,$)||!JV(n,Ne,_a,Zr))continue;let Qa,Ec;if(_a.typeParameters){let Wf;if(kt($)){if(Wf=xoe(_a,$,!1),!Wf){An=_a;continue}}else Ec=UD(_a.typeParameters,_a,fr(n)?2:0),Wf=Toe(n,_a,Ne,_t|8,Ec),_t|=Ec.flags&4?8:0;if(Qa=LD(_a,Wf,fr(_a.declaration),Ec&&Ec.inferredTypeParameters),QD(_a)&&!JV(n,Ne,Qa,Zr)){Mn=Qa;continue}}else Qa=_a;if(v4(n,Ne,Qa,Gn,_t,!1,void 0)){(Bt||(Bt=[])).push(Qa);continue}if(_t){if(_t=u&32,Ec){const Wf=Toe(n,_a,Ne,_t,Ec);if(Qa=LD(_a,Wf,fr(_a.declaration),Ec.inferredTypeParameters),QD(_a)&&!JV(n,Ne,Qa,Zr)){Mn=Qa;continue}}if(v4(n,Ne,Qa,Gn,_t,!1,void 0)){(Bt||(Bt=[])).push(Qa);continue}}return ln[ri]=Qa,Qa}}}function Xit(n,a,l,u,p){return D.assert(a.length>0),rI(n),u||a.length===1||a.some(g=>!!g.typeParameters)?Qit(n,a,l,p):Yit(a)}function Yit(n){const a=ia(n,M=>M.thisParameter);let l;a.length&&(l=aDe(a,a.map(T4)));const{min:u,max:p}=F_e(n,$it),g=[];for(let M=0;M<p;M++){const J=ia(n,$=>Eu($)?M<$.parameters.length-1?$.parameters[M]:zo($.parameters):M<$.parameters.length?$.parameters[M]:void 0);D.assert(J.length!==0),g.push(aDe(J,ia(n,$=>zE($,M))))}const x=ia(n,M=>Eu(M)?zo(M.parameters):void 0);let R=0;if(x.length!==0){const M=Iu(Qr(ia(n,jLe),2));g.push(oDe(x,M)),R|=1}return n.some(PX)&&(R|=2),oh(n[0].declaration,void 0,l,g,wo(n.map(ys)),void 0,u,R)}function $it(n){const a=n.parameters.length;return Eu(n)?a-1:a}function aDe(n,a){return oDe(n,Qr(a,2))}function oDe(n,a){return BE(us(n),a)}function Qit(n,a,l,u){const p=tat(a,tt===void 0?l.length:tt),g=a[p],{typeParameters:x}=g;if(!x)return g;const R=Kwe(n)?n.typeArguments:void 0,M=R?jU(g,Zit(R,x,fr(n))):eat(n,x,g,l,u);return a[p]=M,M}function Zit(n,a,l){const u=n.map(RS);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(RE(a[u.length])||Cu(a[u.length])||Bae(l));return u}function eat(n,a,l,u,p){const g=UD(a,l,fr(n)?2:0),x=Toe(n,l,u,p|4|8,g);return jU(l,x)}function tat(n,a){let l=-1,u=-1;for(let p=0;p<n.length;p++){const g=n[p],x=ef(g);if(Sm(g)||x>=a)return p;x>u&&(u=x,l=p)}return l}function nat(n,a,l){if(n.expression.kind===106){const M=Xae(n.expression);if(Ss(M)){for(const J of n.arguments)ga(J);return Ks}if(!ns(M)){const J=$p(Ac(n));if(J){const $=Ur(M,J.typeArguments,J);return JL(n,$,a,l,0)}}return cA(n)}let u,p=ga(n.expression);if(aT(n)){const M=BD(p,n.expression);u=M===p?0:jI(n)?16:8,p=M}else u=0;if(p=Nwe(p,n.expression,bit),p===ft)return xu;const g=Ku(p);if(ns(g))return Em(n);const x=za(g,0),R=za(g,1).length;if(KV(p,g,x.length,R))return!ns(p)&&n.typeArguments&&Ke(n,_.Untyped_function_calls_may_not_accept_type_arguments),cA(n);if(!x.length){if(R)Ke(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ke(p));else{let M;if(n.arguments.length===1){const J=Zn(n).text;hu(J.charCodeAt(Jo(J,n.expression.end,!0)-1))&&(M=Nr(n.expression,_.Are_you_missing_a_semicolon))}Loe(n.expression,g,0,M)}return Em(n)}return l&8&&!n.typeArguments&&x.some(rat)?(UDe(n,l),Hl):x.some(M=>fr(M.declaration)&&!!JW(M.declaration))?(Ke(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ke(p)),Em(n)):JL(n,x,a,l,u)}function rat(n){return!!(n.typeParameters&&pse(ys(n)))}function KV(n,a,l,u){return Ss(n)||Ss(a)&&!!(n.flags&262144)||!l&&!u&&!(a.flags&1048576)&&!(dp(a).flags&131072)&&xo(n,dl)}function iat(n,a,l){if(n.arguments&&P<1){const x=qV(n.arguments);x>=0&&Ke(n.arguments[x],_.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=qL(n.expression);if(u===ft)return xu;if(u=Ku(u),ns(u))return Em(n);if(Ss(u))return n.typeArguments&&Ke(n,_.Untyped_function_calls_may_not_accept_type_arguments),cA(n);const p=za(u,1);if(p.length){if(!aat(n,p[0]))return Em(n);if(sDe(p,R=>!!(R.flags&4)))return Ke(n,_.Cannot_create_an_instance_of_an_abstract_class),Em(n);const x=u.symbol&&gg(u.symbol);return x&&Yr(x,256)?(Ke(n,_.Cannot_create_an_instance_of_an_abstract_class),Em(n)):JL(n,p,a,l,0)}const g=za(u,0);if(g.length){const x=JL(n,g,a,l,0);return Se||(x.declaration&&!Vp(x.declaration)&&ys(x)!==Rt&&Ke(n,_.Only_a_void_function_can_be_called_with_the_new_keyword),Ub(x)===Rt&&Ke(n,_.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Loe(n.expression,u,1),Em(n)}function sDe(n,a){return Va(n)?kt(n,l=>sDe(l,a)):n.compositeKind===1048576?kt(n.compositeSignatures,a):a(n)}function Coe(n,a){const l=Po(a);if(!Ae(l))return!1;const u=l[0];if(u.flags&2097152){const p=u.types,g=ILe(p);let x=0;for(const R of u.types){if(!g[x]&&ti(R)&3&&(R.symbol===n||Coe(n,R)))return!0;x++}return!1}return u.symbol===n?!0:Coe(n,u)}function aat(n,a){if(!a||!a.declaration)return!0;const l=a.declaration,u=Sx(l,24);if(!u||l.kind!==173)return!0;const p=gg(l.parent.symbol),g=Us(l.parent.symbol);if(!dse(n,p)){const x=Ac(n);if(x&&u&16){const R=RS(x);if(Coe(l.parent.symbol,R))return!0}return u&8&&Ke(n,_.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ke(g)),u&16&&Ke(n,_.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ke(g)),!1}return!0}function lDe(n,a,l){let u;const p=l===0,g=JE(a),x=g&&za(g,l).length>0;if(a.flags&1048576){const M=a.types;let J=!1;for(const $ of M)if(za($,l).length!==0){if(J=!0,u)break}else if(u||(u=Na(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,ke($)),u=Na(u,p?_.Not_all_constituents_of_type_0_are_callable:_.Not_all_constituents_of_type_0_are_constructable,ke(a))),J)break;J||(u=Na(void 0,p?_.No_constituent_of_type_0_is_callable:_.No_constituent_of_type_0_is_constructable,ke(a))),u||(u=Na(u,p?_.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ke(a)))}else u=Na(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,ke(a));let R=p?_.This_expression_is_not_callable:_.This_expression_is_not_constructable;if(no(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:M}=Jr(n);M&&M.flags&32768&&(R=_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Na(u,R),relatedMessage:x?_.Did_you_forget_to_use_await:void 0}}function Loe(n,a,l,u){const{messageChain:p,relatedMessage:g}=lDe(n,a,l),x=dg(Zn(n),n,p);if(g&&Ko(x,Nr(n,g)),no(n.parent)){const{start:R,length:M}=rDe(n.parent,!0);x.start=R,x.length=M}$o.add(x),cDe(a,l,u?Ko(x,u):x)}function cDe(n,a,l){if(!n.symbol)return;const u=Wi(n.symbol).originatingImport;if(u&&!sf(u)){const p=za(ar(Wi(n.symbol).target),a);if(!p||!p.length)return;Ko(l,Nr(u,_.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 oat(n,a,l){const u=ga(n.tag),p=Ku(u);if(ns(p))return Em(n);const g=za(p,0),x=za(p,1).length;if(KV(u,p,g.length,x))return cA(n);if(!g.length){if(Gu(n.parent)){const R=Nr(n.tag,_.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 $o.add(R),Em(n)}return Loe(n.tag,p,0),Em(n)}return JL(n,g,a,l,0)}function sat(n){switch(n.parent.kind){case 260:case 228:return _.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return _.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return _.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return _.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return D.fail()}}function lat(n,a,l){const u=ga(n.expression),p=Ku(u);if(ns(p))return Em(n);const g=za(p,0),x=za(p,1).length;if(KV(u,p,g.length,x))return cA(n);if(uat(n,g)&&!Ud(n.expression)){const M=xc(n.expression,!1);return Ke(n,_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,M),Em(n)}const R=sat(n);if(!g.length){const M=lDe(n.expression,p,0),J=Na(M.messageChain,R),$=dg(Zn(n.expression),n.expression,J);return M.relatedMessage&&Ko($,Nr(n.expression,M.relatedMessage)),$o.add($),cDe(p,0,$),Em(n)}return JL(n,g,a,l,0,R)}function XV(n,a){const l=lA(n),u=l&&mf(l),p=u&&Kd(u,kf.Element,788968),g=p&&Ye.symbolToEntityName(p,788968,n),x=N.createFunctionTypeNode(void 0,[N.createParameterDeclaration(void 0,void 0,"props",void 0,Ye.typeToTypeNode(a,n))],g?N.createTypeReferenceNode(g,void 0):N.createKeywordTypeNode(131)),R=ts(1,"props");return R.links.type=a,oh(x,void 0,void 0,[R],p?Us(p):Ce,void 0,1,0)}function cat(n,a,l){if(zL(n.tagName)){const x=Iwe(n),R=XV(n,x);return dv(uA(n.attributes,FV(R,n),void 0,0),x,n.tagName,n.attributes),Ae(n.typeArguments)&&(Ue(n.typeArguments,go),$o.add(WA(Zn(n),n.typeArguments,_.Expected_0_type_arguments_but_got_1,0,Ae(n.typeArguments)))),R}const u=ga(n.tagName),p=Ku(u);if(ns(p))return Em(n);const g=Cwe(u,n);return KV(u,p,g.length,0)?cA(n):g.length===0?(Ke(n.tagName,_.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,xc(n.tagName)),Em(n)):JL(n,g,a,l,0)}function uat(n,a){return a.length&&Yn(a,l=>l.minArgumentCount===0&&!Eu(l)&&l.parameters.length<nDe(n,l))}function dat(n,a,l){switch(n.kind){case 210:return nat(n,a,l);case 211:return iat(n,a,l);case 212:return oat(n,a,l);case 167:return lat(n,a,l);case 283:case 282:return cat(n,a,l)}throw D.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function KL(n,a,l){const u=Jr(n),p=u.resolvedSignature;if(p&&p!==Hl&&!a)return p;u.resolvedSignature=Hl;const g=dat(n,a,l||0);return g!==Hl&&(u.resolvedSignature=Tn===Hn?g:p),g}function Vp(n){var a;if(!n||!fr(n))return!1;const l=yc(n)||Bs(n)?n:(Ki(n)||qc(n))&&n.initializer&&Bs(n.initializer)?n.initializer:void 0;if(l){if(JW(n))return!0;if(qc(Rv(l.parent)))return!1;const u=Ir(l);return!!((a=u==null?void 0:u.members)!=null&&a.size)}return!1}function Ioe(n,a){var l,u;if(a){const p=Wi(a);if(!p.inferredClassSymbol||!p.inferredClassSymbol.has(bo(n))){const g=Om(n)?n:Ab(n);return g.exports=g.exports||so(),g.members=g.members||so(),g.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&Pc(g.exports,a.exports),(u=a.members)!=null&&u.size&&Pc(g.members,a.members),(p.inferredClassSymbol||(p.inferredClassSymbol=new Map)).set(bo(g),g),g}return p.inferredClassSymbol.get(bo(n))}}function fat(n){var a;const l=n&&YV(n,!0),u=(a=l==null?void 0:l.exports)==null?void 0:a.get("prototype"),p=(u==null?void 0:u.valueDeclaration)&&_at(u.valueDeclaration);return p?Ir(p):void 0}function YV(n,a){if(!n.parent)return;let l,u;if(Ki(n.parent)&&n.parent.initializer===n){if(!fr(n)&&!(fg(n.parent)&&Qs(n)))return;l=n.parent.name,u=n.parent}else if(br(n.parent)){const p=n.parent,g=n.parent.operatorToken.kind;if(g===63&&(a||p.right===n))l=p.left,u=l;else if((g===56||g===60)&&(Ki(p.parent)&&p.parent.initializer===p?(l=p.parent.name,u=p.parent):br(p.parent)&&p.parent.operatorToken.kind===63&&(a||p.parent.right===p)&&(l=p.parent.left,u=l),!l||!mx(l)||!$A(l,p.left)))return}else a&&yc(n)&&(l=n.name,u=n);if(!(!u||!l||!a&&!Y0(n,eb(l))))return Xd(u)}function _at(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===208;)a=a.parent;if(a&&br(a)&&eb(a.left)&&a.operatorToken.kind===63){const l=tq(a);return Ls(l)&&l}}function pat(n,a){var l,u,p;V4(n,n.typeArguments);const g=KL(n,void 0,a);if(g===Hl)return ft;if($V(g,n),n.expression.kind===106)return Rt;if(n.kind===211){const R=g.declaration;if(R&&R.kind!==173&&R.kind!==177&&R.kind!==182&&!(G1(R)&&((u=(l=ok(R))==null?void 0:l.parent)==null?void 0:u.kind)===173)&&!eC(R)&&!Vp(R))return Se&&Ke(n,_.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),we}if(fr(n)&&vl(Y)!==100&&pDe(n))return ULe(n.arguments[0]);const x=ys(g);if(x.flags&12288&&uDe(n))return Zie(Rv(n.parent));if(n.kind===210&&!n.questionDotToken&&n.parent.kind===241&&x.flags&16384&&a_(g)){if(!gk(n.expression))Ke(n.expression,_.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!kV(n)){const R=Ke(n.expression,_.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);l4(n.expression,R)}}if(fr(n)){const R=YV(n,!1);if((p=R==null?void 0:R.exports)!=null&&p.size){const M=Ns(R,R.exports,rt,rt,rt);return M.objectFlags|=4096,wo([x,M])}}return x}function $V(n,a){if(n.declaration&&n.declaration.flags&268435456){const l=E4(a),u=dO(D3(a));dS(l,n.declaration,u,le(n))}}function E4(n){switch(n=js(n),n.kind){case 210:case 167:case 211:return E4(n.expression);case 212:return E4(n.tag);case 283:case 282:return E4(n.tagName);case 209:return n.argumentExpression;case 208:return n.name;case 180:const a=n;return Cd(a.typeName)?a.typeName.right:a;default:return n}}function uDe(n){if(!no(n))return!1;let a=n.expression;if(Fr(a)&&a.name.escapedText==="for"&&(a=a.expression),!He(a)||a.escapedText!=="Symbol")return!1;const l=oIe(!1);return l?l===_l(a,"Symbol",111551,void 0,void 0,!1):!1}function mat(n){if(wut(n),n.arguments.length===0)return A4(n,we);const a=n.arguments[0],l=Ql(a),u=n.arguments.length>1?Ql(n.arguments[1]):void 0;for(let g=2;g<n.arguments.length;++g)Ql(n.arguments[g]);if((l.flags&32768||l.flags&65536||!xo(l,ue))&&Ke(a,_.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ke(l)),u){const g=aIe(!0);g!==fa&&od(u,yV(g,32768),n.arguments[1])}const p=du(n,a);if(p){const g=Mb(p,a,!0,!1);if(g)return A4(n,fDe(ar(g),g,p,a)||_De(ar(g),g,p,a))}return A4(n,we)}function dDe(n,a,l){const u=so(),p=ts(2097152,"default");return p.parent=a,p.links.nameType=jf("default"),p.links.aliasTarget=Yl(n),u.set("default",p),Ns(l,u,rt,rt,rt)}function fDe(n,a,l,u){if(Rs(u)&&n&&!ns(n)){const g=n;if(!g.defaultOnlyType){const x=dDe(a,l);g.defaultOnlyType=x}return g.defaultOnlyType}}function _De(n,a,l,u){var p;if(ae&&n&&!ns(n)){const g=n;if(!g.syntheticType){const x=(p=l.declarations)==null?void 0:p.find(qi);if(Gy(x,l,!1,u)){const M=ts(2048,"__type"),J=dDe(a,l,M);M.links.type=J,g.syntheticType=p4(n)?Wb(n,J,M,0,!1):J}else g.syntheticType=n}return g.syntheticType}return n}function pDe(n){if(!xd(n,!0))return!1;if(!He(n.expression))return D.fail();const a=_l(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===Et)return!0;if(a.flags&2097152)return!1;const l=a.flags&16?259:a.flags&3?257:0;if(l!==0){const u=Al(a,l);return!!u&&!!(u.flags&16777216)}return!1}function hat(n){tut(n)||V4(n,n.typeArguments),P<2&&pc(n,262144);const a=KL(n);return $V(a,n),ys(a)}function gat(n){if(n.kind===213){const a=Zn(n);a&&Sc(a.fileName,[".cts",".mts"])&&En(n,_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return mDe(n,n.type,n.expression)}function koe(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return koe(n.expression);case 221:const a=n.operator,l=n.operand;return a===40&&(l.kind===8||l.kind===9)||a===39&&l.kind===8;case 208:case 209:const u=js(n.expression),p=zl(u)?Nl(u,111551,!0):void 0;return!!(p&&p.flags&384)}return!1}function mDe(n,a,l,u){let p=ga(l,u);if(cg(a))return koe(l)||Ke(l,_.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),yd(p);go(a),p=r4(fv(p));const g=fi(a);return ns(g)||i(()=>{const x=Zd(p);cV(g,x)||rke(p,g,n,_.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)}),g}function yat(n){const a=ga(n.expression),l=BD(a,n.expression);return vV(ty(l),n,l!==a)}function vat(n){return n.flags&32?yat(n):ty(ga(n.expression))}function hDe(n){lNe(n),Ue(n.typeArguments,go);const a=n.kind===230?ga(n.expression):TT(n.exprName)?d4(n.exprName):ga(n.exprName);return gDe(a,n)}function gDe(n,a){const l=a.typeArguments;if(n===ft||ns(n)||!kt(l))return n;let u=!1,p;const g=R(n),x=u?p:n;return x&&$o.add(WA(Zn(a),l,_.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ke(x))),g;function R(J){let $=!1,ge=!1;const Ne=De(J);return u||(u=ge),$&&!ge&&(p??(p=J)),Ne;function De(_t){if(_t.flags&524288){const Bt=up(_t),Mn=M(Bt.callSignatures),An=M(Bt.constructSignatures);if($||($=Bt.callSignatures.length!==0||Bt.constructSignatures.length!==0),ge||(ge=Mn.length!==0||An.length!==0),Mn!==Bt.callSignatures||An!==Bt.constructSignatures){const Kn=Ns(void 0,Bt.members,Mn,An,Bt.indexInfos);return Kn.objectFlags|=8388608,Kn.node=a,Kn}}else if(_t.flags&58982400){const Bt=Ju(_t);if(Bt){const Mn=De(Bt);if(Mn!==Bt)return Mn}}else{if(_t.flags&1048576)return $s(_t,R);if(_t.flags&2097152)return wo(pa(_t.types,De))}return _t}}function M(J){const $=lr(J,ge=>!!ge.typeParameters&&Eoe(ge,l));return pa($,ge=>{const Ne=xoe(ge,l,!0);return Ne?LD(ge,Ne,fr(ge.declaration)):ge})}}function bat(n){return go(n.type),woe(n.expression,n.type)}function woe(n,a,l){const u=ga(n,l),p=fi(a);return ns(p)?p:(dv(u,p,a,n,_.Type_0_does_not_satisfy_the_expected_type_1),u)}function Eat(n){return gut(n),n.keywordToken===103?Doe(n):n.keywordToken===100?Tat(n):D.assertNever(n.keywordToken)}function yDe(n){switch(n.keywordToken){case 100:return iIe();case 103:const a=Doe(n);return ns(a)?Ce:Uat(a);default:D.assertNever(n.keywordToken)}}function Doe(n){const a=cfe(n);if(a)if(a.kind===173){const l=Ir(a.parent);return ar(l)}else{const l=Ir(a);return ar(l)}else return Ke(n,_.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ce}function Tat(n){de===100||de===199?Zn(n).impliedNodeFormat!==99&&Ke(n,_.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):de<6&&de!==4&&Ke(n,_.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=Zn(n);return D.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?rIe():Ce}function T4(n){const a=ar(n);if(W){const l=n.valueDeclaration;if(l&&wv(l))return ey(a)}return a}function QV(n){return D.assert(He(n.name)),n.name.escapedText}function XL(n,a,l){const u=n.parameters.length-(Eu(n)?1:0);if(a<u)return n.parameters[a].escapedName;const p=n.parameters[u]||an,g=l||ar(p);if(Mo(g)){const x=g.target.labeledElementDeclarations,R=a-u;return x&&QV(x[R])||p.escapedName+"_"+R}return p.escapedName}function Sat(n,a){var l;if(((l=n.declaration)==null?void 0:l.kind)===320)return;const u=n.parameters.length-(Eu(n)?1:0);if(a<u){const x=n.parameters[a];return vDe(x)?[x.escapedName,!1]:void 0}const p=n.parameters[u]||an;if(!vDe(p))return;const g=ar(p);if(Mo(g)){const x=g.target.labeledElementDeclarations,R=a-u,M=x==null?void 0:x[R],J=!!(M!=null&&M.dotDotDotToken);return M?[QV(M),J]:void 0}if(a===u)return[p.escapedName,!0]}function vDe(n){return n.valueDeclaration&&Ba(n.valueDeclaration)&&He(n.valueDeclaration.name)}function bDe(n){return n.kind===199||Ba(n)&&n.name&&He(n.name)}function xat(n,a){const l=n.parameters.length-(Eu(n)?1:0);if(a<l){const g=n.parameters[a].valueDeclaration;return g&&bDe(g)?g:void 0}const u=n.parameters[l]||an,p=ar(u);if(Mo(p)){const g=p.target.labeledElementDeclarations,x=a-l;return g&&g[x]}return u.valueDeclaration&&bDe(u.valueDeclaration)?u.valueDeclaration:void 0}function _p(n,a){return zE(n,a)||we}function zE(n,a){const l=n.parameters.length-(Eu(n)?1:0);if(a<l)return T4(n.parameters[a]);if(Eu(n)){const u=ar(n.parameters[l]),p=a-l;if(!Mo(u)||u.target.hasRestElement||p<u.target.fixedLength)return Md(u,Gp(p))}}function YD(n,a){const l=ef(n),u=Tm(n),p=$D(n);if(p&&a>=l-1)return a===l-1?p:Iu(Md(p,mt));const g=[],x=[],R=[];for(let M=a;M<l;M++){!p||M<l-1?(g.push(_p(n,M)),x.push(M<u?1:2)):(g.push(p),x.push(8));const J=xat(n,M);J&&R.push(J)}return Bp(g,x,!1,Ae(R)===Ae(g)?R:void 0)}function ef(n){const a=n.parameters.length;if(Eu(n)){const l=ar(n.parameters[a-1]);if(Mo(l))return a+l.target.fixedLength-(l.target.hasRestElement?0:1)}return a}function Tm(n,a){const l=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let p;if(Eu(n)){const g=ar(n.parameters[n.parameters.length-1]);if(Mo(g)){const x=mi(g.target.elementFlags,M=>!(M&1)),R=x<0?g.target.fixedLength:x;R>0&&(p=n.parameters.length-1+R)}}if(p===void 0){if(!l&&n.flags&32)return 0;p=n.minArgumentCount}if(u)return p;for(let g=p-1;g>=0;g--){const x=_p(n,g);if(_c(x,Xwe).flags&131072)break;p=g}n.resolvedMinArgumentCount=p}return n.resolvedMinArgumentCount}function Sm(n){if(Eu(n)){const a=ar(n.parameters[n.parameters.length-1]);return!Mo(a)||a.target.hasRestElement}return!1}function $D(n){if(Eu(n)){const a=ar(n.parameters[n.parameters.length-1]);if(!Mo(a))return a;if(a.target.hasRestElement)return NL(a,a.target.fixedLength)}}function QD(n){const a=$D(n);return a&&!Hf(a)&&!Ss(a)&&!(dp(a).flags&131072)?a:void 0}function Roe(n){return Noe(n,gt)}function Noe(n,a){return n.parameters.length>0?_p(n,0):a}function Aat(n,a,l){const u=n.parameters.length-(Eu(n)?1:0);for(let p=0;p<u;p++){const g=n.parameters[p].valueDeclaration;if(g.type){const x=Zc(g);x&&Qh(l.inferences,fi(x),_p(a,p))}}}function Cat(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=BE(a.thisParameter,void 0)),S4(n.thisParameter,ar(a.thisParameter)))}const l=n.parameters.length-(Eu(n)?1:0);for(let u=0;u<l;u++){const p=n.parameters[u];if(!Zc(p.valueDeclaration)){const g=zE(a,u);S4(p,g)}}if(Eu(n)){const u=zo(n.parameters);if(u.valueDeclaration?!Zc(u.valueDeclaration):Il(u)&65536){const p=YD(a,l);S4(u,p)}}}function Lat(n){n.thisParameter&&S4(n.thisParameter);for(const a of n.parameters)S4(a)}function S4(n,a){const l=Wi(n);if(l.type)a&&D.assertEqual(l.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const u=n.valueDeclaration;l.type=a||(u?El(u,!0):ar(n)),u&&u.name.kind!==79&&(l.type===he&&(l.type=ko(u.name)),EDe(u.name,l.type))}}function EDe(n,a){for(const l of n.elements)if(!Rc(l)){const u=xi(l,a);l.name.kind===79?Wi(Ir(l)).type=u:EDe(l.name,u)}}function Iat(n){return Q2(XZe(!0),[n])}function kat(n,a){return Q2(YZe(!0),[n,a])}function wat(n,a){return Q2($Ze(!0),[n,a])}function Dat(n,a){return Q2(QZe(!0),[n,a])}function Rat(n,a){return Q2(ZZe(!0),[n,a])}function Nat(n,a){return Q2(net(!0),[n,a])}function Oat(n,a,l){const u=`${a?"p":"P"}${l?"s":"S"}${n.id}`;let p=rr.get(u);if(!p){const g=so();g.set("name",sE("name",n)),g.set("private",sE("private",a?Pe:it)),g.set("static",sE("static",l?Pe:it)),p=Ns(void 0,g,rt,rt,rt),rr.set(u,p)}return p}function TDe(n,a,l){const u=gc(n),p=Ni(n.name),g=p?jf(Mr(n.name)):$g(n.name),x=ac(n)?kat(a,l):q_(n)?wat(a,l):e_(n)?Dat(a,l):rf(n)?Rat(a,l):to(n)?Nat(a,l):D.failBadSyntaxKind(n),R=Oat(g,p,u);return wo([x,R])}function Pat(n,a){return Q2(eet(!0),[n,a])}function Mat(n,a){return Q2(tet(!0),[n,a])}function Fat(n,a){const l=rp("this",n),u=rp("value",a);return Koe(void 0,l,[u],a,void 0,1)}function Ooe(n,a,l){const u=rp("target",n),p=rp("context",a),g=Qr([l,Rt]);return oR(void 0,void 0,[u,p],g)}function Bat(n){const{parent:a}=n,l=Jr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ks,a.kind){case 260:case 228:{const p=ar(Ir(a)),g=Iat(p);l.decoratorSignature=Ooe(p,g,p);break}case 171:case 174:case 175:{const u=a;if(!di(u.parent))break;const p=ac(u)?NE(Fp(u)):RS(u),g=gc(u)?ar(Ir(u.parent)):qu(Ir(u.parent)),x=q_(u)?eRe(p):e_(u)?tRe(p):p,R=TDe(u,g,p),M=q_(u)?eRe(p):e_(u)?tRe(p):p;l.decoratorSignature=Ooe(x,R,M);break}case 169:{const u=a;if(!di(u.parent))break;const p=RS(u),g=gc(u)?ar(Ir(u.parent)):qu(Ir(u.parent)),x=Bm(u)?Pat(g,p):We,R=TDe(u,g,p),M=Bm(u)?Mat(g,p):Fat(g,p);l.decoratorSignature=Ooe(x,R,M);break}}return l.decoratorSignature===Ks?void 0:l.decoratorSignature}function Gat(n){const{parent:a}=n,l=Jr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ks,a.kind){case 260:case 228:{const p=ar(Ir(a)),g=rp("target",p);l.decoratorSignature=oR(void 0,void 0,[g],Qr([p,Rt]));break}case 166:{const u=a;if(!ql(u.parent)&&!(ac(u.parent)||e_(u.parent)&&di(u.parent.parent))||L1(u.parent)===u)break;const p=L1(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);D.assert(p>=0);const g=ql(u.parent)?ar(Ir(u.parent.parent)):$Re(u.parent),x=ql(u.parent)?We:QRe(u.parent),R=Gp(p),M=rp("target",g),J=rp("propertyKey",x),$=rp("parameterIndex",R);l.decoratorSignature=oR(void 0,void 0,[M,J,$],Rt);break}case 171:case 174:case 175:case 169:{const u=a;if(!di(u.parent))break;const p=$Re(u),g=rp("target",p),x=QRe(u),R=rp("propertyKey",x),M=to(u)?Rt:uIe(RS(u));if(P!==0&&(!to(a)||Bm(a))){const $=uIe(RS(u)),ge=rp("descriptor",$);l.decoratorSignature=oR(void 0,void 0,[g,R,ge],Qr([M,Rt]))}else l.decoratorSignature=oR(void 0,void 0,[g,R],Qr([M,Rt]));break}}return l.decoratorSignature===Ks?void 0:l.decoratorSignature}function Poe(n){return re?Gat(n):Bat(n)}function x4(n){const a=jP(!0);return a!==Co?(n=ry(QL(n))||he,Yg(a,[n])):he}function SDe(n){const a=lIe(!0);return a!==Co?(n=ry(QL(n))||he,Yg(a,[n])):he}function A4(n,a){const l=x4(a);return l===he?(Ke(n,sf(n)?_.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ce):(Pie(!0)||Ke(n,sf(n)?_.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),l)}function Uat(n){const a=ts(0,"NewTargetExpression"),l=ts(4,"target",8);l.parent=a,l.links.type=n;const u=so([l]);return a.members=u,Ns(a,u,rt,rt,rt)}function ZV(n,a){if(!n.body)return Ce;const l=jc(n),u=(l&2)!==0,p=(l&1)!==0;let g,x,R,M=Rt;if(n.body.kind!==238)g=Ql(n.body,a&&a&-9),u&&(g=QL(aR(g,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(p){const J=kDe(n,a);J?J.length>0&&(g=Qr(J,2)):M=gt;const{yieldTypes:$,nextTypes:ge}=Vat(n,a);x=kt($)?Qr($,2):void 0,R=kt(ge)?wo(ge):void 0}else{const J=kDe(n,a);if(!J)return l&2?A4(n,gt):gt;if(J.length===0)return l&2?A4(n,Rt):Rt;g=Qr(J,2)}if(g||x||R){if(x&&TV(n,x,3),g&&TV(n,g,1),R&&TV(n,R,2),g&&fp(g)||x&&fp(x)||R&&fp(R)){const J=noe(n),$=J?J===Fp(n)?p?void 0:g:PV(ys(J),n,void 0):void 0;p?(x=Eae(x,$,0,u),g=Eae(g,$,1,u),R=Eae(R,$,2,u)):g=Ytt(g,$,u)}x&&(x=Zd(x)),g&&(g=Zd(g)),R&&(R=Zd(R))}return p?xDe(x||gt,g||M,R||dwe(2,n)||he,u):u?x4(g||M):g||M}function xDe(n,a,l,u){const p=u?xt:mn,g=p.getGlobalGeneratorType(!1);if(n=p.resolveIterationType(n,void 0)||he,a=p.resolveIterationType(a,void 0)||he,l=p.resolveIterationType(l,void 0)||he,g===Co){const x=p.getGlobalIterableIteratorType(!1),R=x!==Co?gRe(x,p):void 0,M=R?R.returnType:we,J=R?R.nextType:We;return xo(a,M)&&xo(J,l)?x!==Co?wD(x,[n]):(p.getGlobalIterableIteratorType(!0),fa):(p.getGlobalGeneratorType(!0),fa)}return wD(g,[n,a,l])}function Vat(n,a){const l=[],u=[],p=(jc(n)&2)!==0;return Zde(n.body,g=>{const x=g.expression?ga(g.expression,a):Ze;f_(l,ADe(g,x,we,p));let R;if(g.asteriskToken){const M=cj(x,p?19:17,g.expression);R=M&&M.nextType}else R=sd(g,void 0);R&&f_(u,R)}),{yieldTypes:l,nextTypes:u}}function ADe(n,a,l,u){const p=n.expression||n,g=n.asteriskToken?pv(u?19:17,a,l,p):a;return u?JE(g,p,n.asteriskToken?_.Type_of_iterated_elements_of_a_yield_Asterisk_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):g}function CDe(n,a,l){let u=0;for(let p=0;p<l.length;p++){const g=p<n||p>=a?l[p]:void 0;u|=g!==void 0?lF.get(g)||32768:0}return u}function LDe(n){const a=Jr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=jat(n);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function jat(n){if(n.expression.kind===218){const u=Jke(n);if(!u)return!1;const p=av(Ql(n.expression.expression)),g=CDe(0,0,u);return p.flags&3?(556800&g)===556800:!Zh(p,x=>(wu(x)&g)===g)}const a=Ql(n.expression);if(!FD(a))return!1;const l=CV(n);return!l.length||kt(l,Jtt)?!1:Wnt($s(a,yd),l)}function IDe(n){return n.endFlowNode&&c4(n.endFlowNode)}function kDe(n,a){const l=jc(n),u=[];let p=IDe(n),g=!1;if(_T(n.body,x=>{const R=x.expression;if(R){let M=Ql(R,a&&a&-9);l&2&&(M=QL(aR(M,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),M.flags&131072&&(g=!0),f_(u,M)}else p=!0}),!(u.length===0&&!p&&(g||Hat(n))))return W&&u.length&&p&&!(Vp(n)&&u.some(x=>x.symbol===n.symbol))&&f_(u,We),u}function Hat(n){switch(n.kind){case 215:case 216:return!0;case 171:return n.parent.kind===207;default:return!1}}function Moe(n,a){i(l);return;function l(){const u=jc(n),p=a&&uj(a,u);if(p&&pl(p,16385)||n.kind===170||Cl(n.body)||n.body.kind!==238||!IDe(n))return;const g=n.flags&512,x=vp(n)||n;if(p&&p.flags&131072)Ke(x,_.A_function_returning_never_cannot_have_a_reachable_end_point);else if(p&&!g)Ke(x,_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(p&&W&&!xo(We,p))Ke(x,_.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Y.noImplicitReturns){if(!p){if(!g)return;const R=ys(Fp(n));if(xRe(n,R))return}Ke(x,_.Not_all_code_paths_return_a_value)}}}function wDe(n,a){if(D.assert(n.kind!==171||G_(n)),rI(n),Bs(n)&&eI(n,n.name),a&&a&4&&w_(n)){if(!vp(n)&&!h7(n)){const u=JD(n);if(u&&GE(ys(u))){const p=Jr(n);if(p.contextFreeType)return p.contextFreeType;const g=ZV(n,a),x=oh(void 0,void 0,void 0,rt,g,void 0,0,0),R=Ns(n.symbol,te,[x],rt,rt);return R.objectFlags|=262144,p.contextFreeType=R}}return La}return!Ej(n)&&n.kind===215&&yse(n),Wat(n,a),ar(Ir(n))}function Wat(n,a){const l=Jr(n);if(!(l.flags&64)){const u=JD(n);if(!(l.flags&64)){l.flags|=64;const p=Yc(za(ar(Ir(n)),0));if(!p)return;if(w_(n))if(u){const g=wS(n);let x;if(a&&a&2){Aat(p,u,g);const R=$D(u);R&&R.flags&262144&&(x=iA(u,g.nonFixingMapper))}x||(x=g?iA(u,g.mapper):u),Cat(p,x)}else Lat(p);if(u&&!Y2(n)&&!p.resolvedReturnType){const g=ZV(n,a);p.resolvedReturnType||(p.resolvedReturnType=g)}tR(n)}}}function zat(n){D.assert(n.kind!==171||G_(n));const a=jc(n),l=Y2(n);if(Moe(n,l),n.body)if(vp(n)||ys(Fp(n)),n.body.kind===238)go(n.body);else{const u=ga(n.body),p=l&&uj(l,a);if(p)if((a&3)===2){const g=aR(u,!1,n.body,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);dv(g,p,n.body,n.body)}else dv(u,p,n.body,n.body)}}function ej(n,a,l,u=!1){if(!xo(a,mo)){const p=u&&rR(a);return o0(n,!!p&&xo(p,mo),l),!1}return!0}function qat(n){if(!no(n)||!px(n))return!1;const a=Ql(n.arguments[2]);if(fc(a,"value")){const p=co(a,"writable"),g=p&&ar(p);if(!g||g===it||g===K)return!0;if(p&&p.valueDeclaration&&qc(p.valueDeclaration)){const x=p.valueDeclaration.initializer,R=ga(x);if(R===it||R===K)return!0}return!1}return!co(a,"set")}function pp(n){return!!(Il(n)&8||n.flags&4&&Qf(n)&64||n.flags&3&&UV(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||kt(n.declarations,qat))}function DDe(n,a,l){var u,p;if(l===0)return!1;if(pp(a)){if(a.flags&4&&ll(n)&&n.expression.kind===108){const g=Cf(n);if(!(g&&(g.kind===173||Vp(g))))return!0;if(a.valueDeclaration){const x=br(a.valueDeclaration),R=g.parent===a.valueDeclaration.parent,M=g===a.valueDeclaration.parent,J=x&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,$=x&&((p=a.parent)==null?void 0:p.valueDeclaration)===g;return!(R||M||J||$)}}return!0}if(ll(n)){const g=js(n.expression);if(g.kind===79){const x=Jr(g).resolvedSymbol;if(x.flags&2097152){const R=md(x);return!!R&&R.kind===271}}}return!1}function ZD(n,a,l){const u=bu(n,7);return u.kind!==79&&!ll(u)?(Ke(n,a),!1):u.flags&32?(Ke(n,l),!1):!0}function Jat(n){ga(n.expression);const a=js(n.expression);if(!ll(a))return Ke(a,_.The_operand_of_a_delete_operator_must_be_a_property_reference),Re;Fr(a)&&Ni(a.name)&&Ke(a,_.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=Jr(a),u=Op(l.resolvedSymbol);return u&&(pp(u)&&Ke(a,_.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Kat(a,u)),Re}function Kat(n,a){const l=ar(a);W&&!(l.flags&131075)&&!(qe?a.flags&16777216:wu(l)&16777216)&&Ke(n,_.The_operand_of_a_delete_operator_must_be_optional)}function Xat(n){return ga(n.expression),vL}function Yat(n){return ga(n.expression),Ze}function $at(n){const a=I3(n);if(a&&kl(a))Ke(n,_.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(k3(n)){const l=Zn(n);if(!Zb(l)){let u;if(!fx(l,Y)){u??(u=yy(l,n.pos));const p=Dc(l,u.start,u.length,_.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);$o.add(p)}switch(de){case 100:case 199:if(l.impliedNodeFormat===1){u??(u=yy(l,n.pos)),$o.add(Dc(l,u.start,u.length,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(P>=4)break;default:u??(u=yy(l,n.pos)),$o.add(Dc(l,u.start,u.length,_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{const l=Zn(n);if(!Zb(l)){const u=yy(l,n.pos),p=Dc(l,u.start,u.length,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(jc(a)&2)){const g=Nr(a,_.Did_you_mean_to_mark_this_function_as_async);Ko(p,g)}$o.add(p)}}$ae(n)&&Ke(n,_.await_expressions_cannot_be_used_in_a_parameter_initializer)}function Qat(n){i(()=>$at(n));const a=ga(n.expression),l=aR(a,!0,n,_.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!ns(l)&&!(a.flags&3)&&Fy(!1,Nr(n,_.await_has_no_effect_on_the_type_of_this_expression)),l}function Zat(n){const a=ga(n.operand);if(a===ft)return ft;switch(n.operand.kind){case 8:switch(n.operator){case 40:return rA(Gp(-n.operand.text));case 39:return rA(Gp(+n.operand.text))}break;case 9:if(n.operator===40)return rA(tV({negative:!0,base10Value:Dk(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Up(a,n.operand),C4(a,12288)&&Ke(n.operand,_.The_0_operator_cannot_be_applied_to_type_symbol,yo(n.operator)),n.operator===39?(C4(a,2112)&&Ke(n.operand,_.Operator_0_cannot_be_applied_to_type_1,yo(n.operator),ke(fv(a))),mt):Foe(a);case 53:fA(n.operand);const l=wu(a)&12582912;return l===4194304?it:l===8388608?Pe:Re;case 45:case 46:return ej(n.operand,Up(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&ZD(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Foe(a)}return Ce}function eot(n){const a=ga(n.operand);return a===ft?ft:(ej(n.operand,Up(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&ZD(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Foe(a))}function Foe(n){return pl(n,2112)?Mc(n,3)||pl(n,296)?mo:zt:mt}function C4(n,a){if(pl(n,a))return!0;const l=av(n);return!!l&&pl(l,a)}function pl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const l=n.types;for(const u of l)if(pl(u,a))return!0}return!1}function Mc(n,a,l){return n.flags&a?!0:l&&n.flags&114691?!1:!!(a&296)&&xo(n,mt)||!!(a&2112)&&xo(n,zt)||!!(a&402653316)&&xo(n,ue)||!!(a&528)&&xo(n,Re)||!!(a&16384)&&xo(n,Rt)||!!(a&131072)&&xo(n,gt)||!!(a&65536)&&xo(n,Sn)||!!(a&32768)&&xo(n,We)||!!(a&4096)&&xo(n,q)||!!(a&67108864)&&xo(n,oi)}function L4(n,a,l){return n.flags&1048576?Yn(n.types,u=>L4(u,a,l)):Mc(n,a,l)}function Boe(n){return!!(ti(n)&16)&&!!n.symbol&&Goe(n.symbol)}function Goe(n){return(n.flags&128)!==0}function tot(n,a,l,u){return l===ft||u===ft?ft:(!Ss(l)&&L4(l,134348796)&&Ke(n,_.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ss(u)||gj(u)||uv(u,dl)||Ke(a,_.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Re)}function not(n){return Zh(n,a=>a===Xl||!!(a.flags&2097152)&&$h(av(a)))}function rot(n,a,l,u){if(l===ft||u===ft)return ft;if(Ni(n)){if(P<99&&pc(n,2097152),!Jr(n).resolvedSymbol&&Ac(n)){const p=moe(n,u.symbol,!0);Vwe(n,u,p)}}else od(Up(l,n),Ci,n);return od(Up(u,a),oi,a)&¬(u)&&Ke(a,_.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,ke(u)),Re}function iot(n,a,l){const u=n.properties;if(W&&u.length===0)return Up(a,n);for(let p=0;p<u.length;p++)RDe(n,a,p,u,l);return a}function RDe(n,a,l,u,p=!1){const g=n.properties,x=g[l];if(x.kind===299||x.kind===300){const R=x.name,M=$g(R);if(Jh(M)){const ge=mm(M),Ne=co(a,ge);Ne&&(y4(Ne,x,p),doe(x,!1,!0,a,Ne))}const J=Md(a,M,32,R),$=$e(x,J);return qE(x.kind===300?x:x.initializer,$)}else if(x.kind===301)if(l<g.length-1)Ke(x,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{P<99&&pc(x,4);const R=[];if(u)for(const J of u)Kx(J)||R.push(J.name);const M=H2(a,R,a.symbol);return NS(u,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),qE(x.expression,M)}else Ke(x,_.Property_assignment_expected)}function aot(n,a,l){const u=n.elements;P<2&&Y.downlevelIteration&&pc(n,512);const p=pv(193,a,We,n)||Ce;let g=Y.noUncheckedIndexedAccess?void 0:p;for(let x=0;x<u.length;x++){let R=p;n.elements[x].kind===227&&(R=g=g??(pv(65,a,We,n)||Ce)),NDe(n,a,x,R,l)}return a}function NDe(n,a,l,u,p){const g=n.elements,x=g[l];if(x.kind!==229){if(x.kind!==227){const R=Gp(l);if(D0(a)){const M=32|(WL(x)?16:0),J=lv(a,R,M,b4(x,R))||Ce,$=WL(x)?l_(J,524288):J,ge=$e(x,$);return qE(x,ge,p)}return qE(x,u,p)}if(l<g.length-1)Ke(x,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const R=x.expression;if(R.kind===223&&R.operatorToken.kind===63)Ke(R.operatorToken,_.A_rest_element_cannot_have_an_initializer);else{NS(n.elements,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const M=lh(a,Mo)?$s(a,J=>NL(J,l)):Iu(u);return qE(R,M,p)}}}}function qE(n,a,l,u){let p;if(n.kind===300){const g=n;g.objectAssignmentInitializer&&(W&&!(wu(ga(g.objectAssignmentInitializer))&16777216)&&(a=l_(a,524288)),cot(g.name,g.equalsToken,g.objectAssignmentInitializer,l)),p=n.name}else p=n;return p.kind===223&&p.operatorToken.kind===63&&(Oe(p,l),p=p.left,W&&(a=l_(a,524288))),p.kind===207?iot(p,a,u):p.kind===206?aot(p,a,l):oot(p,a,l)}function oot(n,a,l){const u=ga(n,l),p=n.parent.kind===301?_.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=n.parent.kind===301?_.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;return ZD(n,p,g)&&dv(a,u,n,n),OA(n)&&pc(n.parent,1048576),a}function I4(n){switch(n=js(n),n.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return I4(n.whenTrue)&&I4(n.whenFalse);case 223:return vy(n.operatorToken.kind)?!1:I4(n.left)&&I4(n.right);case 221:case 222:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function Uoe(n,a){return(a.flags&98304)!==0||cV(n,a)}function sot(){const n=T5(a,l,u,p,g,x);return(Ne,De)=>{const _t=n(Ne,De);return D.assertIsDefined(_t),_t};function a(Ne,De,_t){return De?(De.stackIndex++,De.skip=!1,J(De,void 0),ge(De,void 0)):De={checkMode:_t,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},fr(Ne)&&_x(Ne)?(De.skip=!0,ge(De,ga(Ne.right,_t)),De):(lot(Ne),Ne.operatorToken.kind===63&&(Ne.left.kind===207||Ne.left.kind===206)&&(De.skip=!0,ge(De,qE(Ne.left,ga(Ne.right,_t),_t,Ne.right.kind===108))),De)}function l(Ne,De,_t){if(!De.skip)return R(De,Ne)}function u(Ne,De,_t){if(!De.skip){const Bt=$(De);D.assertIsDefined(Bt),J(De,Bt),ge(De,void 0);const Mn=Ne.kind;if(sO(Mn)){let An=_t.parent;for(;An.kind===214||lO(An);)An=An.parent;(Mn===55||wT(An))&&Zoe(_t.left,Bt,wT(An)?An.thenStatement:void 0),_Re(Bt,_t.left)}}}function p(Ne,De,_t){if(!De.skip)return R(De,Ne)}function g(Ne,De){let _t;if(De.skip)_t=$(De);else{const Bt=M(De);D.assertIsDefined(Bt);const Mn=$(De);D.assertIsDefined(Mn),_t=ODe(Ne.left,Ne.operatorToken,Ne.right,Bt,Mn,Ne)}return De.skip=!1,J(De,void 0),ge(De,void 0),De.stackIndex--,_t}function x(Ne,De,_t){return ge(Ne,De),Ne}function R(Ne,De){if(br(De))return De;ge(Ne,ga(De,Ne.checkMode))}function M(Ne){return Ne.typeStack[Ne.stackIndex]}function J(Ne,De){Ne.typeStack[Ne.stackIndex]=De}function $(Ne){return Ne.typeStack[Ne.stackIndex+1]}function ge(Ne,De){Ne.typeStack[Ne.stackIndex+1]=De}}function lot(n){const{left:a,operatorToken:l,right:u}=n;l.kind===60&&(br(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&En(a,_._0_and_1_operations_cannot_be_mixed_without_parentheses,yo(a.operatorToken.kind),yo(l.kind)),br(u)&&(u.operatorToken.kind===56||u.operatorToken.kind===55)&&En(u,_._0_and_1_operations_cannot_be_mixed_without_parentheses,yo(u.operatorToken.kind),yo(l.kind)))}function cot(n,a,l,u,p){const g=a.kind;if(g===63&&(n.kind===207||n.kind===206))return qE(n,ga(l,u),u,l.kind===108);let x;sO(g)?x=fA(n,u):x=ga(n,u);const R=ga(l,u);return ODe(n,a,l,x,R,p)}function ODe(n,a,l,u,p,g){const x=a.kind;switch(x){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(u===ft||p===ft)return ft;u=Up(u,n),p=Up(p,l);let gn;if(u.flags&528&&p.flags&528&&(gn=ge(a.kind))!==void 0)return Ke(g||a,_.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,yo(a.kind),yo(gn)),mt;{const ln=ej(n,u,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Gn=ej(l,p,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let qn;if(Mc(u,3)&&Mc(p,3)||!(pl(u,2112)||pl(p,2112)))qn=mt;else if(R(u,p)){switch(x){case 49:case 72:Bt();break;case 42:case 67:P<3&&Ke(g,_.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}qn=zt}else Bt(R),qn=Ce;return ln&&Gn&&Ne(qn),qn}case 39:case 64:if(u===ft||p===ft)return ft;!Mc(u,402653316)&&!Mc(p,402653316)&&(u=Up(u,n),p=Up(p,l));let xn;return Mc(u,296,!0)&&Mc(p,296,!0)?xn=mt:Mc(u,2112,!0)&&Mc(p,2112,!0)?xn=zt:Mc(u,402653316,!0)||Mc(p,402653316,!0)?xn=ue:(Ss(u)||Ss(p))&&(xn=ns(u)||ns(p)?Ce:we),xn&&!$(x)?xn:xn?(x===64&&Ne(xn),xn):(Bt((Gn,qn)=>Mc(Gn,402655727)&&Mc(qn,402655727)),we);case 29:case 31:case 32:case 33:return $(x)&&(u=vae(Up(u,n)),p=vae(Up(p,l)),_t((ln,Gn)=>{if(Ss(ln)||Ss(Gn))return!0;const qn=xo(ln,mo),Zr=xo(Gn,mo);return qn&&Zr||!qn&&!Zr&&XP(ln,Gn)})),Re;case 34:case 35:case 36:case 37:if(rz(n)||rz(l)){const ln=x===34||x===36;Ke(g,_.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,ln?"false":"true")}return An(g,x,n,l),_t((ln,Gn)=>Uoe(ln,Gn)||Uoe(Gn,ln)),Re;case 102:return tot(n,l,u,p);case 101:return rot(n,l,u,p);case 55:case 76:{const ln=wu(u)&4194304?Qr([Ztt(W?u:fv(p)),p]):u;return x===76&&Ne(p),ln}case 56:case 75:{const ln=wu(u)&8388608?Qr([ty(yke(u)),p],2):u;return x===75&&Ne(p),ln}case 60:case 77:{const ln=wu(u)&262144?Qr([ty(u),p],2):u;return x===77&&Ne(p),ln}case 63:const yr=br(n.parent)?Ll(n.parent):0;return M(yr,p),De(yr)?((!(p.flags&524288)||yr!==2&&yr!==6&&!Yh(p)&&!Vae(p)&&!(ti(p)&1))&&Ne(p),u):(Ne(p),p);case 27:if(!Y.allowUnreachableCode&&I4(n)&&!J(n.parent)){const ln=Zn(n),Gn=ln.text,qn=Jo(Gn,n.pos);ln.parseDiagnostics.some(ri=>ri.code!==_.JSX_expressions_must_have_one_parent_element.code?!1:jW(ri,qn))||Ke(n,_.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return p;default:return D.fail()}function R(gn,xn){return Mc(gn,2112)&&Mc(xn,2112)}function M(gn,xn){if(gn===2)for(const yr of iv(xn)){const ln=ar(yr);if(ln.symbol&&ln.symbol.flags&32){const Gn=yr.escapedName,qn=_l(yr.valueDeclaration,Gn,788968,void 0,Gn,!1);qn!=null&&qn.declarations&&qn.declarations.some(mK)&&(Cb(qn,_.Duplicate_identifier_0,ta(Gn),yr),Cb(yr,_.Duplicate_identifier_0,ta(Gn),qn))}}}function J(gn){return gn.parent.kind===214&&b_(gn.left)&&gn.left.text==="0"&&(no(gn.parent.parent)&&gn.parent.parent.expression===gn.parent||gn.parent.parent.kind===212)&&(ll(gn.right)||He(gn.right)&&gn.right.escapedText==="eval")}function $(gn){const xn=C4(u,12288)?n:C4(p,12288)?l:void 0;return xn?(Ke(xn,_.The_0_operator_cannot_be_applied_to_type_symbol,yo(gn)),!1):!0}function ge(gn){switch(gn){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Ne(gn){vy(x)&&i(xn);function xn(){if(ZD(n,_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let yr;if(qe&&Fr(n)&&pl(gn,32768)){const ln=fc(Du(n.expression),n.name.escapedText);dV(gn,ln)&&(yr=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}dv(gn,u,n,l,yr)}}}function De(gn){var xn;switch(gn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const yr=Xd(n),ln=_x(l);return!!ln&&Ls(ln)&&!!((xn=yr==null?void 0:yr.exports)!=null&&xn.size);default:return!1}}function _t(gn){return gn(u,p)?!1:(Bt(gn),!0)}function Bt(gn){let xn=!1;const yr=g||a;if(gn){const ri=ry(u),_a=ry(p);xn=!(ri===u&&_a===p)&&!!(ri&&_a)&&gn(ri,_a)}let ln=u,Gn=p;!xn&&gn&&([ln,Gn]=uot(u,p,gn));const[qn,Zr]=on(ln,Gn);Mn(yr,xn,qn,Zr)||o0(yr,xn,_.Operator_0_cannot_be_applied_to_types_1_and_2,yo(a.kind),qn,Zr)}function Mn(gn,xn,yr,ln){switch(a.kind){case 36:case 34:case 37:case 35:return o0(gn,xn,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,yr,ln);default:return}}function An(gn,xn,yr,ln){const Gn=Kn(js(yr)),qn=Kn(js(ln));if(Gn||qn){const Zr=Ke(gn,_.This_condition_will_always_return_0,yo(xn===36||xn===34?95:110));if(Gn&&qn)return;const ri=xn===37||xn===35?yo(53):"",_a=Gn?ln:yr,Qa=js(_a);Ko(Zr,Nr(_a,_.Did_you_mean_0,`${ri}Number.isNaN(${zl(Qa)?Af(Qa):"..."})`))}}function Kn(gn){if(He(gn)&&gn.escapedText==="NaN"){const xn=ret();return!!xn&&xn===D_(gn)}return!1}}function uot(n,a,l){let u=n,p=a;const g=fv(n),x=fv(a);return l(g,x)||(u=g,p=x),[u,p]}function dot(n){i(Ne);const a=Cf(n);if(!a)return we;const l=jc(a);if(!(l&1))return we;const u=(l&2)!==0;n.asteriskToken&&(u&&P<99&&pc(n,26624),!u&&P<2&&Y.downlevelIteration&&pc(n,256));const p=Y2(a),g=p&&SRe(p,u),x=g&&g.yieldType||we,R=g&&g.nextType||we,M=u?JE(R)||we:R,J=n.expression?ga(n.expression):Ze,$=ADe(n,J,M,u);if(p&&$&&dv($,x,n.expression||n,n.expression),n.asteriskToken)return tse(u?19:17,1,J,n.expression)||we;if(p)return Qb(2,p,u)||we;let ge=dwe(2,a);return ge||(ge=we,i(()=>{if(Se&&!j_e(n)){const De=sd(n,void 0);(!De||Ss(De))&&Ke(n,_.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ge;function Ne(){n.flags&8192||Fc(n,_.A_yield_expression_is_only_allowed_in_a_generator_body),$ae(n)&&Ke(n,_.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function fot(n,a){const l=fA(n.condition);Zoe(n.condition,l,n.whenTrue);const u=ga(n.whenTrue,a),p=ga(n.whenFalse,a);return Qr([u,p],2)}function PDe(n){const a=n.parent;return Ud(a)&&PDe(a)||cl(a)&&a.argumentExpression===n}function _ot(n){const a=[n.head.text],l=[];for(const u of n.templateSpans){const p=ga(u.expression);C4(p,12288)&&Ke(u.expression,_.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),l.push(xo(p,To)?p:ue)}return YL(n)||PDe(n)||Zh(sd(n,void 0)||he,pot)?OE(a,l):ue}function pot(n){return!!(n.flags&134217856||n.flags&58982400&&pl(Ju(n)||he,402653316))}function mot(n){return F1(n)&&!Wx(n.parent)?n.parent.parent:n}function uA(n,a,l,u){const p=mot(n);_4(p,a,!1),Urt(p,l);const g=ga(n,u|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const x=pl(g,2944)&&tj(g,PV(a,n,void 0))?yd(g):g;return Vrt(),qD(),x}function Ql(n,a){if(a)return ga(n,a);const l=Jr(n);if(!l.resolvedType){const u=Tn,p=Aa;Tn=Hn,Aa=void 0,l.resolvedType=ga(n,a),Aa=p,Tn=u}return l.resolvedType}function MDe(n){return n=js(n,!0),n.kind===213||n.kind===231||aw(n)}function eR(n,a,l){const u=RN(n);if(fr(n)){const g=y7(n);if(g)return woe(u,g,a)}const p=Hoe(u)||(l?uA(u,l,void 0,a||0):Ql(u,a));return Ba(n)&&n.name.kind===204&&Mo(p)&&!p.target.hasRestElement&&A0(p)<n.name.elements.length?hot(p,n.name):p}function hot(n,a){const l=a.elements,u=gs(n).slice(),p=n.target.elementFlags.slice();for(let g=A0(n);g<l.length;g++){const x=l[g];(g<l.length-1||!(x.kind===205&&x.dotDotDotToken))&&(u.push(!Rc(x)&&WL(x)?Zy(x,!1,!1):we),p.push(2),!Rc(x)&&!WL(x)&&R0(x,we))}return Bp(u,p,n.target.readonly)}function Voe(n,a){const l=gp(n)&2||b3(n)?a:Kb(a);if(fr(n)){if(_ke(l))return R0(n,we),we;if(hV(l))return R0(n,Dt),Dt}return l}function tj(n,a){if(a){if(a.flags&3145728){const l=a.types;return kt(l,u=>tj(n,u))}if(a.flags&58982400){const l=Ju(a)||he;return pl(l,4)&&pl(n,128)||pl(l,8)&&pl(n,256)||pl(l,64)&&pl(n,2048)||pl(l,4096)&&pl(n,8192)||tj(n,l)}return!!(a.flags&406847616&&pl(n,128)||a.flags&256&&pl(n,256)||a.flags&2048&&pl(n,2048)||a.flags&512&&pl(n,512)||a.flags&8192&&pl(n,8192))}return!1}function YL(n){const a=n.parent;return lT(a)&&cg(a.type)||aw(a)&&cg(y5(a))||koe(n)&&got(n)||(Ud(a)||Gu(a)||Ih(a))&&YL(a)||(qc(a)||t_(a)||$k(a))&&YL(a.parent)}function got(n){const a=sd(n,0);return!!a&&Zh(a,FP)}function $L(n,a,l){const u=ga(n,a,l);return YL(n)||nfe(n)?yd(u):MDe(n)?u:bae(u,PV(sd(n,void 0),n,void 0))}function FDe(n,a){return n.name.kind===164&&ny(n.name),$L(n.initializer,a)}function BDe(n,a){dNe(n),n.name.kind===164&&ny(n.name);const l=wDe(n,a);return GDe(n,l,a)}function GDe(n,a,l){if(l&&l&10){const u=KD(a,0,!0),p=KD(a,1,!0),g=u||p;if(g&&g.typeParameters){const x=Yb(n,2);if(x){const R=KD(ty(x),u?0:1,!1);if(R&&!R.typeParameters){if(l&8)return UDe(n,l),La;const M=wS(n),J=M.signature&&ys(M.signature),$=J&&Ywe(J);if($&&!$.typeParameters&&!Yn(M.inferences,dA)){const ge=Eot(M,g.typeParameters),Ne=Cie(g,ge),De=Vt(M.inferences,_t=>Iae(_t.typeParameter));if(Aae(Ne,R,(_t,Bt)=>{Qh(De,_t,Bt,0,!0)}),kt(De,dA)&&(Cae(Ne,R,(_t,Bt)=>{Qh(De,_t,Bt)}),!vot(M.inferences,De)))return bot(M.inferences,De),M.inferredTypeParameters=ba(M.inferredTypeParameters,ge),NE(Ne)}return NE($we(g,R,M))}}}}return a}function UDe(n,a){if(a&2){const l=wS(n);l.flags|=4}}function dA(n){return!!(n.candidates||n.contraCandidates)}function yot(n){return!!(n.candidates||n.contraCandidates||PLe(n.typeParameter))}function vot(n,a){for(let l=0;l<n.length;l++)if(dA(n[l])&&dA(a[l]))return!0;return!1}function bot(n,a){for(let l=0;l<n.length;l++)!dA(n[l])&&dA(a[l])&&(n[l]=a[l])}function Eot(n,a){const l=[];let u,p;for(const g of a){const x=g.symbol.escapedName;if(joe(n.inferredTypeParameters,x)||joe(l,x)){const R=Tot(ba(n.inferredTypeParameters,l),x),M=ts(262144,R),J=Nd(M);J.target=g,u=Fn(u,g),p=Fn(p,J),l.push(J)}else l.push(g)}if(p){const g=vd(u,p);for(const x of p)x.mapper=g}return l}function joe(n,a){return kt(n,l=>l.symbol.escapedName===a)}function Tot(n,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const u=a.slice(0,l);for(let p=1;;p++){const g=u+p;if(!joe(n,g))return g}}function VDe(n){const a=DS(n);if(a&&!a.typeParameters)return ys(a)}function Sot(n){const a=ga(n.expression),l=BD(a,n.expression),u=VDe(a);return u&&vV(u,n,l!==a)}function Du(n){const a=Hoe(n);if(a)return a;if(n.flags&134217728&&Aa){const p=Aa[ms(n)];if(p)return p}const l=tr,u=ga(n);if(tr!==l){const p=Aa||(Aa=[]);p[ms(n)]=u,V_e(n,n.flags|134217728)}return u}function Hoe(n){let a=js(n,!0);if(aw(a)){const l=y5(a);if(!cg(l))return fi(l)}if(a=js(n),DC(a)){const l=Hoe(a.expression);return l?JE(l):void 0}if(no(a)&&a.expression.kind!==106&&!xd(a,!0)&&!uDe(a))return aT(a)?Sot(a):VDe(qL(a.expression));if(lT(a)&&!cg(a.type))return fi(a.type);if(oT(n)||cde(n))return ga(n)}function k4(n){const a=Jr(n);if(a.contextFreeType)return a.contextFreeType;_4(n,we,!1);const l=a.contextFreeType=ga(n,4);return qD(),l}function ga(n,a,l){var u,p;(u=bi)==null||u.push(bi.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const g=G;G=n,I=0;const x=Cot(n,a,l),R=GDe(n,x,a);return Boe(R)&&xot(n,R),G=g,(p=bi)==null||p.pop(),R}function xot(n,a){n.parent.kind===208&&n.parent.expression===n||n.parent.kind===209&&n.parent.expression===n||(n.kind===79||n.kind===163)&&mj(n)||n.parent.kind===183&&n.parent.exprName===n||n.parent.kind===278||Ke(n,_.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),H_(Y)&&(D.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&Ke(n,_.Cannot_access_ambient_const_enums_when_0_is_enabled,jt))}function Aot(n,a){if(xf(n)){if(_J(n))return woe(n.expression,pJ(n),a);if(aw(n)){const l=y5(n);return mDe(l,l,n.expression,a)}}return ga(n.expression,a)}function Cot(n,a,l){const u=n.kind;if(o)switch(u){case 228:case 215:case 216:o.throwIfCancellationRequested()}switch(u){case 79:return crt(n,a);case 80:return Sit(n);case 108:return d4(n);case 106:return Xae(n);case 104:return Er;case 14:case 10:return rA(jf(n.text));case 8:return Tse(n),rA(Gp(+n.text));case 9:return Cut(n),rA(tV({negative:!1,base10Value:Dk(n.text)}));case 110:return Pe;case 95:return it;case 225:return _ot(n);case 13:return Nf;case 206:return bwe(n,a,l);case 207:return rit(n,a);case 208:return Pwe(n,a);case 163:return Mwe(n,a);case 209:return Git(n,a);case 210:if(n.expression.kind===100)return mat(n);case 211:return pat(n,a);case 212:return hat(n);case 214:return Aot(n,a);case 228:return flt(n);case 215:case 216:return wDe(n,a);case 218:return Xat(n);case 213:case 231:return gat(n);case 232:return vat(n);case 230:return hDe(n);case 235:return bat(n);case 233:return Eat(n);case 217:return Jat(n);case 219:return Yat(n);case 220:return Qat(n);case 221:return Zat(n);case 222:return eot(n);case 223:return Oe(n,a);case 224:return fot(n,a);case 227:return Qrt(n,a);case 229:return Ze;case 226:return dot(n);case 234:return Zrt(n);case 291:return hit(n,a);case 281:return sit(n);case 282:return ait(n);case 285:return lit(n);case 289:return uit(n,a);case 283:D.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ce}function jDe(n){uh(n),n.expression&&Fc(n.expression,_.Type_expected),go(n.constraint),go(n.default);const a=wE(Ir(n));Ju(a),fZe(a)||Ke(n.default,_.Type_parameter_0_has_a_circular_default,ke(a));const l=Cu(a),u=RE(a);l&&u&&od(u,Uf(Yi(l,qb(a,u)),u),n.default,_.Type_0_does_not_satisfy_the_constraint_1),rI(n),i(()=>tI(n.name,_.Type_parameter_name_cannot_be_0))}function Lot(n){var a,l;if(id(n.parent)||di(n.parent)||nm(n.parent)){const u=wE(Ir(n)),p=pae(u)&98304;if(p){const g=Ir(n.parent);if(nm(n.parent)&&!(ti(Us(g))&48))Ke(n,_.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(p===32768||p===65536){(a=bi)==null||a.push(bi.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:ku(Us(g)),id:ku(u)});const x=QP(g,u,p===65536?hl:Ds),R=QP(g,u,p===65536?Ds:hl),M=u;V=u,od(x,R,n,_.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),V=M,(l=bi)==null||l.pop()}}}}function HDe(n){uh(n),P4(n);const a=Cf(n);Yr(n,16476)&&(a.kind===173&&p_(a.body)||Ke(n,_.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&He(n.name)&&n.name.escapedText==="constructor"&&Ke(n.name,_.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&fJ(n)&&Xa(n.name)&&a.body&&Ke(n,_.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&&Ke(n,_.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===173||a.kind===177||a.kind===182)&&Ke(n,_.A_constructor_cannot_have_a_this_parameter),a.kind===216&&Ke(n,_.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&Ke(n,_.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Xa(n.name)&&!xo(dp(ar(n.symbol)),Xi)&&Ke(n,_.A_rest_parameter_must_be_of_an_array_type)}function Iot(n){const a=kot(n);if(!a){Ke(n,_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Fp(a),u=a_(l);if(!u)return;go(n.type);const{parameterName:p}=n;if(u.kind===0||u.kind===2)nV(p);else if(u.parameterIndex>=0){if(Eu(l)&&u.parameterIndex===l.parameters.length-1)Ke(p,_.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){const g=()=>Na(void 0,_.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);od(u.type,ar(l.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(p){let g=!1;for(const{name:x}of a.parameters)if(Xa(x)&&WDe(x,p,u.parameterName)){g=!0;break}g||Ke(n.parameterName,_.Cannot_find_parameter_0,u.parameterName)}}function kot(n){switch(n.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const a=n.parent;if(n===a.type)return a}}function WDe(n,a,l){for(const u of n.elements){if(Rc(u))continue;const p=u.name;if(p.kind===79&&p.escapedText===l)return Ke(a,_.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((p.kind===204||p.kind===203)&&WDe(p,a,l))return!0}}function tR(n){n.kind===178?Zct(n):(n.kind===181||n.kind===259||n.kind===182||n.kind===176||n.kind===173||n.kind===177)&&Ej(n);const a=jc(n);a&4||((a&3)===3&&P<99&&pc(n,6144),(a&3)===2&&P<4&&pc(n,64),a&3&&P<2&&pc(n,128)),F4(Cv(n)),clt(n),Ue(n.parameters,HDe),n.type&&go(n.type),i(l);function l(){Cst(n);const u=vp(n);if(Se&&!u)switch(n.kind){case 177:Ke(n,_.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Ke(n,_.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){const p=jc(n);if((p&5)===1){const g=fi(u);if(g===Rt)Ke(u,_.A_generator_cannot_have_a_void_type_annotation);else{const x=Qb(0,g,(p&2)!==0)||we,R=Qb(1,g,(p&2)!==0)||x,M=Qb(2,g,(p&2)!==0)||he,J=xDe(x,R,M,!!(p&2));od(J,g,u)}}else(p&3)===2&&ost(n,u)}n.kind!==178&&n.kind!==320&&_v(n)}}function wot(n){const a=new Map,l=new Map,u=new Map;for(const g of n.members)if(g.kind===173)for(const x of g.parameters)tf(x,g)&&!Xa(x.name)&&p(a,x.name,x.name.escapedText,3);else{const x=Ja(g),R=g.name;if(!R)continue;const M=Ni(R),J=M&&x?16:0,$=M?u:x?l:a,ge=R&&C1(R);if(ge)switch(g.kind){case 174:p($,R,ge,1|J);break;case 175:p($,R,ge,2|J);break;case 169:p($,R,ge,3|J);break;case 171:p($,R,ge,8|J);break}}function p(g,x,R,M){const J=g.get(R);if(J)if((J&16)!==(M&16))Ke(x,_.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,xc(x));else{const $=!!(J&8),ge=!!(M&8);$||ge?$!==ge&&Ke(x,_.Duplicate_identifier_0,xc(x)):J&M&-17?Ke(x,_.Duplicate_identifier_0,xc(x)):g.set(R,J|M)}else g.set(R,M)}}function Dot(n){for(const a of n.members){const l=a.name;if(Ja(a)&&l){const p=C1(l);switch(p){case"name":case"length":case"caller":case"arguments":case"prototype":const g=_.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=Yy(Ir(n));Ke(l,g,p,x);break}}}}function zDe(n){const a=new Map;for(const l of n.members)if(l.kind===168){let u;const p=l.name;switch(p.kind){case 10:case 8:u=p.text;break;case 79:u=Mr(p);break;default:continue}a.get(u)?(Ke(ka(l.symbol.valueDeclaration),_.Duplicate_identifier_0,u),Ke(l.name,_.Duplicate_identifier_0,u)):a.set(u,!0)}}function Woe(n){if(n.kind===261){const l=Ir(n);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==n)return}const a=HLe(Ir(n));if(a!=null&&a.declarations){const l=new Map;for(const u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&jE(fi(u.parameters[0].type),p=>{const g=l.get(ku(p));g?g.declarations.push(u):l.set(ku(p),{type:p,declarations:[u]})});l.forEach(u=>{if(u.declarations.length>1)for(const p of u.declarations)Ke(p,_.Duplicate_index_signature_for_type_0,ke(u.type))})}}function qDe(n){!uh(n)&&!Eut(n)&&Tj(n.name),P4(n),zoe(n),Yr(n,256)&&n.kind===169&&n.initializer&&Ke(n,_.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,ws(n.name))}function Rot(n){return Ni(n.name)&&Ke(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),qDe(n)}function Not(n){dNe(n)||Tj(n.name),ac(n)&&n.asteriskToken&&He(n.name)&&Mr(n.name)==="constructor"&&Ke(n.name,_.Class_constructor_may_not_be_a_generator),aRe(n),Yr(n,256)&&n.kind===171&&n.body&&Ke(n,_.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,ws(n.name)),Ni(n.name)&&!Ac(n)&&Ke(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),zoe(n)}function zoe(n){if(Ni(n.name)&&P<99){for(let a=Mm(n);a;a=Mm(a))Jr(a).flags|=4194304;if(Uu(n.parent)){const a=qae(n.parent);a&&(Jr(n.name).flags|=32768,Jr(a).flags|=4096)}}}function Oot(n){uh(n),Ma(n,go)}function Pot(n){tR(n),vut(n)||but(n),go(n.body);const a=Ir(n),l=Al(a,n.kind);if(n===l&&ij(a),Cl(n.body))return;i(p);return;function u(g){return Zu(g)?!0:g.kind===169&&!Ja(g)&&!!g.initializer}function p(){const g=n.parent;if(A1(g)){Jae(n.parent,g);const x=awe(g),R=iwe(n.body);if(R){if(x&&Ke(R,_.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(es(Y)!==99||!ye)&&(kt(n.parent.members,u)||kt(n.parameters,J=>Yr(J,16476))))if(!Mot(R,n.body))Ke(R,_.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 J;for(const $ of n.body.statements){if(ou($)&&zA(bu($.expression))){J=$;break}if(JDe($))break}J===void 0&&Ke(n,_.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||Ke(n,_.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Mot(n,a){const l=Rv(n.parent);return ou(l)&&l.parent===a}function JDe(n){return n.kind===106||n.kind===108?!0:lfe(n)?!1:!!Ma(n,JDe)}function KDe(n){He(n.name)&&Mr(n.name)==="constructor"&&Ke(n.name,_.Class_constructor_may_not_be_an_accessor),i(a),go(n.body),zoe(n);function a(){if(!Ej(n)&&!lut(n)&&Tj(n.name),D4(n),tR(n),n.kind===174&&!(n.flags&16777216)&&p_(n.body)&&n.flags&256&&(n.flags&512||Ke(n.name,_.A_get_accessor_must_return_a_value)),n.name.kind===164&&ny(n.name),J2(n)){const u=Ir(n),p=Al(u,174),g=Al(u,175);if(p&&g&&!(pA(p)&1)){Jr(p).flags|=1;const x=Fu(p),R=Fu(g);(x&256)!==(R&256)&&(Ke(p.name,_.Accessors_must_both_be_abstract_or_non_abstract),Ke(g.name,_.Accessors_must_both_be_abstract_or_non_abstract)),(x&16&&!(R&24)||x&8&&!(R&8))&&(Ke(p.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ke(g.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));const M=se(p),J=se(g);M&&J&&od(M,J,p,_.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const l=Gr(Ir(n));n.kind===174&&Moe(n,l)}}function Fot(n){D4(n)}function Bot(n,a,l){return n.typeArguments&&l<n.typeArguments.length?fi(n.typeArguments[l]):nj(n,a)[l]}function nj(n,a){return ov(Vt(n.typeArguments,fi),a,gm(a),fr(n))}function XDe(n,a){let l,u,p=!0;for(let g=0;g<a.length;g++){const x=Cu(a[g]);x&&(l||(l=nj(n,a),u=vd(a,l)),p=p&&od(l[g],Yi(x,u),n.typeArguments[g],_.Type_0_does_not_satisfy_the_constraint_1))}return p}function Got(n,a){if(!ns(n))return a.flags&524288&&Wi(a).typeParameters||(ti(n)&4?n.target.localTypeParameters:void 0)}function qoe(n){const a=fi(n);if(!ns(a)){const l=Jr(n).resolvedSymbol;if(l)return Got(a,l)}}function Joe(n){if(V4(n,n.typeArguments),n.kind===180&&!fr(n)&&!wN(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Zn(n);Qde(a,n.typeName.end)===24&&e1(n,Jo(a.text,n.typeName.end),1,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}Ue(n.typeArguments,go),YDe(n)}function YDe(n){const a=fi(n);if(!ns(a)){n.typeArguments&&i(()=>{const u=qoe(n);u&&XDe(n,u)});const l=Jr(n).resolvedSymbol;l&&kt(l.declarations,u=>yC(u)&&!!(u.flags&268435456))&&Rg(E4(n),l.declarations,l.escapedName)}}function Uot(n){const a=ai(n.parent,c3);if(!a)return;const l=qoe(a);if(!l)return;const u=Cu(l[a.typeArguments.indexOf(n)]);return u&&Yi(u,vd(l,nj(a,l)))}function Vot(n){eIe(n)}function jot(n){Ue(n.members,go),i(a);function a(){const l=VIe(n);dj(l,l.symbol),Woe(n),zDe(n)}}function Hot(n){go(n.elementType)}function Wot(n){const a=n.elements;let l=!1,u=!1;const p=kt(a,Jk);for(const g of a){if(g.kind!==199&&p){En(g,_.Tuple_members_must_all_have_names_or_all_not_have_names);break}const x=Bie(g);if(x&8){const R=fi(g.type);if(!D0(R)){Ke(g,_.A_rest_element_type_must_be_an_array_type);break}(Hf(R)||Mo(R)&&R.target.combinedFlags&4)&&(u=!0)}else if(x&4){if(u){En(g,_.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(x&2){if(u){En(g,_.An_optional_element_cannot_follow_a_rest_element);break}l=!0}else if(l){En(g,_.A_required_element_cannot_follow_an_optional_element);break}}Ue(n.elements,go),fi(n)}function zot(n){Ue(n.types,go),fi(n)}function $De(n,a){if(!(n.flags&8388608))return n;const l=n.objectType,u=n.indexType;if(xo(u,vm(l,!1)))return a.kind===209&&Eh(a)&&ti(l)&32&&hm(l)&1&&Ke(a,_.Index_signature_in_type_0_only_permits_reading,ke(l)),n;const p=Ku(l);if(sh(p,mt)&&Mc(u,296))return n;if(Hb(l)){const g=YU(u,a);if(g){const x=jE(p,R=>co(R,g));if(x&&Qf(x)&24)return Ke(a,_.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,ta(g)),Ce}}return Ke(a,_.Type_0_cannot_be_used_to_index_type_1,ke(u),ke(l)),Ce}function qot(n){go(n.objectType),go(n.indexType),$De(PIe(n),n)}function Jot(n){Kot(n),go(n.typeParameter),go(n.nameType),go(n.type),n.type||R0(n,we);const a=Kie(n),l=rv(a);if(l)od(l,ji,n.nameType);else{const u=Mp(a);od(u,ji,NA(n.typeParameter))}}function Kot(n){var a;if((a=n.members)!=null&&a.length)return En(n.members[0],_.A_mapped_type_may_not_declare_properties_or_methods)}function Xot(n){nV(n)}function Yot(n){uut(n),go(n.type)}function $ot(n){Ma(n,go)}function Qot(n){nr(n,l=>l.parent&&l.parent.kind===191&&l.parent.extendsType===l)||En(n,_.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),go(n.typeParameter);const a=Ir(n.typeParameter);if(a.declarations&&a.declarations.length>1){const l=Wi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const u=wE(a),p=Ide(a,165);if(!LRe(p,[u],g=>[g])){const g=S(a);for(const x of p)Ke(x.name,_.All_declarations_of_0_must_have_identical_constraints,g)}}}_v(n)}function Zot(n){for(const a of n.templateSpans){go(a.type);const l=fi(a.type);od(l,To,a.type)}fi(n)}function est(n){go(n.argument),n.assertions&&t2(n.assertions.assertClause,En)&&(iO()||En(n.assertions.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),vl(Y)!==3&&vl(Y)!==99&&En(n.assertions.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),YDe(n)}function tst(n){n.dotDotDotToken&&n.questionToken&&En(n,_.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===187&&En(n.type,_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===188&&En(n.type,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),go(n.type),fi(n)}function w4(n){return(Bd(n,8)||Zu(n))&&!!(n.flags&16777216)}function rj(n,a){let l=py(n);return n.parent.kind!==261&&n.parent.kind!==260&&n.parent.kind!==228&&n.flags&16777216&&(!(l&2)&&!(rm(n.parent)&&Jl(n.parent.parent)&&Yp(n.parent.parent))&&(l|=1),l|=2),l&a}function ij(n){i(()=>nst(n))}function nst(n){function a(xn,yr){return yr!==void 0&&yr.parent===xn[0].parent?yr:xn[0]}function l(xn,yr,ln,Gn,qn){if((Gn^qn)!==0){const ri=rj(a(xn,yr),ln);Ue(xn,_a=>{const Qa=rj(_a,ln)^ri;Qa&1?Ke(ka(_a),_.Overload_signatures_must_all_be_exported_or_non_exported):Qa&2?Ke(ka(_a),_.Overload_signatures_must_all_be_ambient_or_non_ambient):Qa&24?Ke(ka(_a)||_a,_.Overload_signatures_must_all_be_public_private_or_protected):Qa&256&&Ke(ka(_a),_.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(xn,yr,ln,Gn){if(ln!==Gn){const qn=gx(a(xn,yr));Ue(xn,Zr=>{gx(Zr)!==qn&&Ke(ka(Zr),_.Overload_signatures_must_all_be_optional_or_required)})}}const p=283;let g=0,x=p,R=!1,M=!0,J=!1,$,ge,Ne;const De=n.declarations,_t=(n.flags&16384)!==0;function Bt(xn){if(xn.name&&Cl(xn.name))return;let yr=!1;const ln=Ma(xn.parent,qn=>{if(yr)return qn;yr=qn===xn});if(ln&&ln.pos===xn.end&&ln.kind===xn.kind){const qn=ln.name||ln,Zr=ln.name;if(xn.name&&Zr&&(Ni(xn.name)&&Ni(Zr)&&xn.name.escapedText===Zr.escapedText||As(xn.name)&&As(Zr)||U_(xn.name)&&U_(Zr)&&ck(xn.name)===ck(Zr))){if((xn.kind===171||xn.kind===170)&&Ja(xn)!==Ja(ln)){const _a=Ja(xn)?_.Function_overload_must_be_static:_.Function_overload_must_not_be_static;Ke(qn,_a)}return}if(p_(ln.body)){Ke(qn,_.Function_implementation_name_must_be_0,ws(xn.name));return}}const Gn=xn.name||xn;_t?Ke(Gn,_.Constructor_implementation_is_missing):Yr(xn,256)?Ke(Gn,_.All_declarations_of_an_abstract_method_must_be_consecutive):Ke(Gn,_.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Mn=!1,An=!1,Kn=!1;const gn=[];if(De)for(const xn of De){const yr=xn,ln=yr.flags&16777216,Gn=yr.parent&&(yr.parent.kind===261||yr.parent.kind===184)||ln;if(Gn&&(Ne=void 0),(yr.kind===260||yr.kind===228)&&!ln&&(Kn=!0),yr.kind===259||yr.kind===171||yr.kind===170||yr.kind===173){gn.push(yr);const qn=rj(yr,p);g|=qn,x&=qn,R=R||gx(yr),M=M&&gx(yr);const Zr=p_(yr.body);Zr&&$?_t?An=!0:Mn=!0:(Ne==null?void 0:Ne.parent)===yr.parent&&Ne.end!==yr.pos&&Bt(Ne),Zr?$||($=yr):J=!0,Ne=yr,Gn||(ge=yr)}if(fr(xn)&&Ka(xn)&&xn.jsDoc){for(const qn of xn.jsDoc)if(qn.tags)for(const Zr of qn.tags)nw(Zr)&&(J=!0)}}if(An&&Ue(gn,xn=>{Ke(xn,_.Multiple_constructor_implementations_are_not_allowed)}),Mn&&Ue(gn,xn=>{Ke(ka(xn)||xn,_.Duplicate_function_implementation)}),Kn&&!_t&&n.flags&16&&De){const xn=lr(De,yr=>yr.kind===260).map(yr=>Nr(yr,_.Consider_adding_a_declare_modifier_to_this_class));Ue(De,yr=>{const ln=yr.kind===260?_.Class_declaration_cannot_implement_overload_list_for_0:yr.kind===259?_.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;ln&&Ko(Ke(ka(yr)||yr,ln,Fl(n)),...xn)})}if(ge&&!ge.body&&!Yr(ge,256)&&!ge.questionToken&&Bt(ge),J&&(De&&(l(De,$,p,g,x),u(De,$,R,M)),$)){const xn=Gb(n),yr=Fp($);for(const ln of xn)if(!ktt(yr,ln)){const Gn=ln.declaration&&G1(ln.declaration)?ln.declaration.parent.tagName:ln.declaration;Ko(Ke(Gn,_.This_overload_signature_is_not_compatible_with_its_implementation_signature),Nr($,_.The_implementation_signature_is_declared_here));break}}}function nR(n){i(()=>rst(n))}function rst(n){let a=n.localSymbol;if(!a&&(a=Ir(n),!a.exportSymbol)||Al(a,n.kind)!==n)return;let l=0,u=0,p=0;for(const J of a.declarations){const $=M(J),ge=rj(J,1025);ge&1?ge&1024?p|=$:l|=$:u|=$}const g=l|u,x=l&u,R=p&g;if(x||R)for(const J of a.declarations){const $=M(J),ge=ka(J);$&R?Ke(ge,_.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,ws(ge)):$&x&&Ke(ge,_.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,ws(ge))}function M(J){let $=J;switch($.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return Mu($)||Eg($)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const ge=$,Ne=Gl(ge)?ge.expression:ge.right;if(!zl(Ne))return 1;$=Ne;case 268:case 271:case 270:let De=0;const _t=nc(Ir($));return Ue(_t.declarations,Bt=>{De|=M(Bt)}),De;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return D.failBadSyntaxKind($)}}}function rR(n,a,l,u){const p=iR(n,a);return p&&JE(p,a,l,u)}function iR(n,a,l){if(Ss(n))return;const u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(S0(n,jP(!1)))return u.promisedTypeOfPromise=gs(n)[0];if(L4(av(n),134479868))return;const p=fc(n,"then");if(Ss(p))return;const g=p?za(p,0):rt;if(g.length===0){a&&Ke(a,_.A_promise_must_have_a_then_method);return}let x,R;for(const $ of g){const ge=Ub($);ge&&ge!==Rt&&!bm(n,ge,$m)?x=ge:R=Fn(R,$)}if(!R){D.assertIsDefined(x),l&&(l.value=x),a&&Ke(a,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ke(n),ke(x));return}const M=l_(Qr(Vt(R,Roe)),2097152);if(Ss(M))return;const J=za(M,0);if(J.length===0){a&&Ke(a,_.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=Qr(Vt(J,Roe),2)}function aR(n,a,l,u,p){return(a?JE(n,l,u,p):ry(n,l,u,p))||Ce}function QDe(n){if(L4(av(n),134479868))return!1;const a=fc(n,"then");return!!a&&za(l_(a,2097152),0).length>0}function aj(n){var a;if(n.flags&16777216){const l=Fie(!1);return!!l&&n.aliasSymbol===l&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function QL(n){return n.flags&1048576?$s(n,QL):aj(n)?n.aliasTypeArguments[0]:n}function ZDe(n){if(Ss(n)||aj(n))return!1;if(Hb(n)){const a=Ju(n);if(a?a.flags&3||Yh(a)||Zh(a,QDe):pl(n,8650752))return!0}return!1}function ist(n){const a=Fie(!0);if(a)return Z2(a,[QL(n)])}function ast(n){if(ZDe(n)){const a=ist(n);if(a)return a}return D.assert(aj(n)||iR(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function JE(n,a,l,u){const p=ry(n,a,l,u);return p&&ast(p)}function ry(n,a,l,u){if(Ss(n)||aj(n))return n;const p=n;if(p.awaitedTypeOfType)return p.awaitedTypeOfType;if(n.flags&1048576){if(kg.lastIndexOf(n.id)>=0){a&&Ke(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const R=a?J=>ry(J,a,l,u):ry;kg.push(n.id);const M=$s(n,R);return kg.pop(),p.awaitedTypeOfType=M}if(ZDe(n))return p.awaitedTypeOfType=n;const g={value:void 0},x=iR(n,void 0,g);if(x){if(n.id===x.id||kg.lastIndexOf(x.id)>=0){a&&Ke(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}kg.push(n.id);const R=ry(x,a,l,u);return kg.pop(),R?p.awaitedTypeOfType=R:void 0}if(QDe(n)){if(a){D.assertIsDefined(l);let R;g.value&&(R=Na(R,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ke(n),ke(g.value))),R=Na(R,l,u),$o.add(dg(Zn(a),a,R))}return}return p.awaitedTypeOfType=n}function ost(n,a){const l=fi(a);if(P>=2){if(ns(l))return;const u=jP(!0);if(u!==Co&&!S0(l,u)){Ke(a,_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ke(ry(l)||Rt));return}}else{if(lst(a),ns(l))return;const u=IN(a);if(u===void 0){Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,ke(l));return}const p=Nl(u,111551,!0),g=p?ar(p):Ce;if(ns(g)){u.kind===79&&u.escapedText==="Promise"&&q2(l)===jP(!1)?Ke(a,_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Af(u));return}const x=FZe(!0);if(x===fa){Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Af(u));return}if(!od(g,x,a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const R=u&&Lf(u),M=Kd(n.locals,R.escapedText,111551);if(M){Ke(M.valueDeclaration,_.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Mr(R),Af(u));return}}aR(l,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function sst(n){const a=KL(n);$V(a,n);const l=ys(a);if(l.flags&1)return;const u=Poe(n);if(!(u!=null&&u.resolvedReturnType))return;let p;const g=u.resolvedReturnType;switch(n.parent.kind){case 260:case 228:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!re){p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:p=_.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return D.failBadSyntaxKind(n.parent)}od(l,g,n.expression,p)}function oR(n,a,l,u,p,g=l.length,x=0){const R=N.createFunctionTypeNode(void 0,rt,N.createKeywordTypeNode(131));return oh(R,n,a,l,u,p,g,x)}function Koe(n,a,l,u,p,g,x){const R=oR(n,a,l,u,p,g,x);return NE(R)}function eRe(n){return Koe(void 0,void 0,rt,n)}function tRe(n){const a=rp("value",n);return Koe(void 0,void 0,[a],Rt)}function lst(n){nRe(n&&IN(n),!1)}function nRe(n,a){if(!n)return;const l=Lf(n),u=(n.kind===79?788968:1920)|2097152,p=_l(l,l.escapedText,u,void 0,void 0,!0);if(p&&p.flags&2097152){if(!Y.verbatimModuleSyntax&&Vg(p)&&!cR(nc(p))&&!Rd(p))Nb(p);else if(a&&H_(Y)&&au(Y)>=5&&!Vg(p)&&!kt(p.declarations,g1)){const g=Ke(n,_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=nn(p.declarations||rt,Mg);x&&Ko(g,Nr(x,_._0_was_imported_here,Mr(l)))}}}function ZL(n){const a=Xoe(n);a&&nf(a)&&nRe(a,!0)}function Xoe(n){if(n)switch(n.kind){case 190:case 189:return rRe(n.types);case 191:return rRe([n.trueType,n.falseType]);case 193:case 199:return Xoe(n.type);case 180:return n.typeName}}function rRe(n){let a;for(let l of n){for(;l.kind===193||l.kind===199;)l=l.type;if(l.kind===144||!W&&(l.kind===198&&l.literal.kind===104||l.kind===155))continue;const u=Xoe(l);if(!u)return;if(a){if(!He(a)||!He(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function oj(n){const a=Zc(n);return yh(n)?zz(a):a}function D4(n){if(!Yx(n)||!$f(n)||!n.modifiers||!R3(re,n,n.parent,n.parent.parent))return;const a=nn(n.modifiers,Bu);if(a){if(re?(pc(a,8),n.kind===166&&pc(a,32)):P<99&&(pc(a,8),Nc(n)?n.name?IRe(n)&&pc(a,8388608):pc(a,8388608):Uu(n)||(Ni(n.name)&&(ac(n)||J0(n)||rf(n))&&pc(a,8388608),As(n.name)&&pc(a,16777216))),Y.emitDecoratorMetadata)switch(pc(a,16),n.kind){case 260:const l=Th(n);if(l)for(const x of l.parameters)ZL(oj(x));break;case 174:case 175:const u=n.kind===174?175:174,p=Al(Ir(n),u);ZL(F(n)||p&&F(p));break;case 171:for(const x of n.parameters)ZL(oj(x));ZL(vp(n));break;case 169:ZL(Zc(n));break;case 166:ZL(oj(n));const g=n.parent;for(const x of g.parameters)ZL(oj(x));break}for(const l of n.modifiers)Bu(l)&&sst(l)}}function cst(n){i(a);function a(){aRe(n),yse(n),eI(n,n.name)}}function ust(n){n.typeExpression||Ke(n.name,_.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&tI(n.name,_.Type_alias_name_cannot_be_0),go(n.typeExpression),F4(Cv(n))}function dst(n){go(n.constraint);for(const a of n.typeParameters)go(a)}function fst(n){go(n.typeExpression)}function _st(n){go(n.typeExpression);const a=nC(n);if(a){const l=$W(a,m5);if(Ae(l)>1)for(let u=1;u<Ae(l);u++){const p=l[u].tagName;Ke(p,_._0_tag_already_specified,Mr(p))}}}function pst(n){n.name&&G4(n.name,!0)}function mst(n){go(n.typeExpression)}function hst(n){go(n.typeExpression)}function gst(n){i(a),tR(n);function a(){!n.type&&!eC(n)&&R0(n,we)}}function yst(n){const a=nC(n);(!a||!Nc(a)&&!Uu(a))&&Ke(a,_.JSDoc_0_is_not_attached_to_a_class,Mr(n.tagName))}function vst(n){const a=nC(n);if(!a||!Nc(a)&&!Uu(a)){Ke(a,_.JSDoc_0_is_not_attached_to_a_class,Mr(n.tagName));return}const l=m1(a).filter(MC);D.assert(l.length>0),l.length>1&&Ke(l[1],_.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const u=iRe(n.class.expression),p=A1(a);if(p){const g=iRe(p.expression);g&&u.escapedText!==g.escapedText&&Ke(u,_.JSDoc_0_1_does_not_match_the_extends_2_clause,Mr(n.tagName),Mr(u),Mr(g))}}function bst(n){const a=yx(n);a&&Zu(a)&&Ke(n,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function iRe(n){switch(n.kind){case 79:return n;case 208:return n.name;default:return}}function aRe(n){var a;D4(n),tR(n);const l=jc(n);if(n.name&&n.name.kind===164&&ny(n.name),J2(n)){const g=Ir(n),x=n.localSymbol||g,R=(a=x.declarations)==null?void 0:a.find(M=>M.kind===n.kind&&!(M.flags&262144));n===R&&ij(x),g.parent&&ij(g)}const u=n.kind===170?void 0:n.body;if(go(u),Moe(n,Y2(n)),i(p),fr(n)){const g=p1(n);g&&g.typeExpression&&!toe(fi(g.typeExpression),n)&&Ke(g.typeExpression.type,_.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function p(){vp(n)||(Cl(u)&&!w4(n)&&R0(n,we),l&1&&p_(u)&&ys(Fp(n)))}}function _v(n){i(a);function a(){const l=Zn(n);let u=bn.get(l.path);u||(u=[],bn.set(l.path,u)),u.push(n)}}function oRe(n,a){for(const l of n)switch(l.kind){case 260:case 228:Est(l,a),Yoe(l,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:cRe(l,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:l.body&&cRe(l,a),Yoe(l,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:Yoe(l,a);break;case 192:Tst(l,a);break;default:D.assertNever(l,"Node should not have been registered for unused identifiers check")}}function sRe(n,a,l){const u=ka(n)||n,p=yC(n)?_._0_is_declared_but_never_used:_._0_is_declared_but_its_value_is_never_read;l(n,0,Nr(u,p,a))}function R4(n){return He(n)&&Mr(n).charCodeAt(0)===95}function Est(n,a){for(const l of n.members)switch(l.kind){case 171:case 169:case 174:case 175:if(l.kind===175&&l.symbol.flags&32768)break;const u=Ir(l);!u.isReferenced&&(Bd(l,8)||gu(l)&&Ni(l.name))&&!(l.flags&16777216)&&a(l,0,Nr(l.name,_._0_is_declared_but_its_value_is_never_read,S(u)));break;case 173:for(const p of l.parameters)!p.symbol.isReferenced&&Yr(p,8)&&a(p,0,Nr(p.name,_.Property_0_is_declared_but_its_value_is_never_read,Fl(p.symbol)));break;case 178:case 237:case 172:break;default:D.fail("Unexpected class member")}}function Tst(n,a){const{typeParameter:l}=n;$oe(l)&&a(n,1,Nr(n,_._0_is_declared_but_its_value_is_never_read,Mr(l.name)))}function Yoe(n,a){const l=Ir(n).declarations;if(!l||zo(l)!==n)return;const u=Cv(n),p=new Set;for(const g of u){if(!$oe(g))continue;const x=Mr(g.name),{parent:R}=g;if(R.kind!==192&&R.typeParameters.every($oe)){if(gv(p,R)){const M=Zn(R),J=Tp(R)?iJ(R):aJ(M,R.typeParameters),$=R.typeParameters.length===1,ge=$?_._0_is_declared_but_its_value_is_never_read:_.All_type_parameters_are_unused,Ne=$?x:void 0;a(g,1,Dc(M,J.pos,J.end-J.pos,ge,Ne))}}else a(g,1,Nr(g,_._0_is_declared_but_its_value_is_never_read,x))}}function $oe(n){return!(as(n.symbol).isReferenced&262144)&&!R4(n.name)}function N4(n,a,l,u){const p=String(u(a)),g=n.get(p);g?g[1].push(l):n.set(p,[a,[l]])}function lRe(n){return ai(Fm(n),Ba)}function Sst(n){return ps(n)?Hm(n.parent)?!!(n.propertyName&&R4(n.name)):R4(n.name):Mu(n)||(Ki(n)&&BA(n.parent.parent)||uRe(n))&&R4(n.name)}function cRe(n,a){const l=new Map,u=new Map,p=new Map;n.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(const x of g.declarations)if(!Sst(x))if(uRe(x))N4(l,Ast(x),x,ms);else if(ps(x)&&Hm(x.parent)){const R=zo(x.parent.elements);(x===R||!zo(x.parent.elements).dotDotDotToken)&&N4(u,x.parent,x,ms)}else if(Ki(x))N4(p,x.parent,x,ms);else{const R=g.valueDeclaration&&lRe(g.valueDeclaration),M=g.valueDeclaration&&ka(g.valueDeclaration);R&&M?!tf(R,R.parent)&&!I1(R)&&!R4(M)&&(ps(x)&&kC(x.parent)?N4(u,x.parent,x,ms):a(R,1,Nr(M,_._0_is_declared_but_its_value_is_never_read,Fl(g)))):sRe(x,Fl(g),a)}}}),l.forEach(([g,x])=>{const R=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===271?1:g.namedBindings.elements.length:0)===x.length)a(R,0,x.length===1?Nr(R,_._0_is_declared_but_its_value_is_never_read,Mr(us(x).name)):Nr(R,_.All_imports_in_import_declaration_are_unused));else for(const J of x)sRe(J,Mr(J.name),a)}),u.forEach(([g,x])=>{const R=lRe(g.parent)?1:0;if(g.elements.length===x.length)x.length===1&&g.parent.kind===257&&g.parent.parent.kind===258?N4(p,g.parent.parent,g.parent,ms):a(g,R,x.length===1?Nr(g,_._0_is_declared_but_its_value_is_never_read,O4(us(x).name)):Nr(g,_.All_destructured_elements_are_unused));else for(const M of x)a(M,R,Nr(M,_._0_is_declared_but_its_value_is_never_read,O4(M.name)))}),p.forEach(([g,x])=>{if(g.declarations.length===x.length)a(g,0,x.length===1?Nr(us(x).name,_._0_is_declared_but_its_value_is_never_read,O4(us(x).name)):Nr(g.parent.kind===240?g.parent:g,_.All_variables_are_unused));else for(const R of x)a(R,0,Nr(R,_._0_is_declared_but_its_value_is_never_read,O4(R.name)))})}function xst(){var n;for(const a of cS)if(!((n=Ir(a))!=null&&n.isReferenced)){const l=RA(a);D.assert(bT(l),"Only parameter declaration should be checked here");const u=Nr(a.name,_._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,ws(a.name),ws(a.propertyName));l.type||Ko(u,Dc(Zn(l),l.end,1,_.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,ws(a.propertyName))),$o.add(u)}}function O4(n){switch(n.kind){case 79:return Mr(n);case 204:case 203:return O4(ao(us(n.elements),ps).name);default:return D.assertNever(n)}}function uRe(n){return n.kind===270||n.kind===273||n.kind===271}function Ast(n){return n.kind===270?n:n.kind===271?n.parent:n.parent.parent}function sj(n){if(n.kind===238&&eg(n),sz(n)){const a=Ji;Ue(n.statements,go),Ji=a}else Ue(n.statements,go);n.locals&&_v(n)}function Cst(n){P>=2||!yz(n)||n.flags&16777216||Cl(n.body)||Ue(n.parameters,a=>{a.name&&!Xa(a.name)&&a.name.escapedText===Ct.escapedName&&a0("noEmit",a,_.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function sR(n,a,l){if((a==null?void 0:a.escapedText)!==l||n.kind===169||n.kind===168||n.kind===171||n.kind===170||n.kind===174||n.kind===175||n.kind===299||n.flags&16777216||(Wm(n)||su(n)||Ld(n))&&g1(n))return!1;const u=Fm(n);return!(Ba(u)&&Cl(u.parent.body))}function Lst(n){nr(n,a=>pA(a)&4?(n.kind!==79?Ke(ka(n),_.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ke(n,_.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Ist(n){nr(n,a=>pA(a)&8?(n.kind!==79?Ke(ka(n),_.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ke(n,_.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function kst(n,a){if(de>=5&&!(de>=100&&Zn(n).impliedNodeFormat===1)||!a||!sR(n,a,"require")&&!sR(n,a,"exports")||Jl(n)&&Eg(n)!==1)return;const l=LE(n);l.kind===308&&of(l)&&a0("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,ws(a),ws(a))}function wst(n,a){if(!a||P>=4||!sR(n,a,"Promise")||Jl(n)&&Eg(n)!==1)return;const l=LE(n);l.kind===308&&of(l)&&l.flags&2048&&a0("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,ws(a),ws(a))}function Dst(n,a){P<=8&&(sR(n,a,"WeakMap")||sR(n,a,"WeakSet"))&&yb.push(n)}function Rst(n){const a=Mm(n);pA(a)&4194304&&(D.assert(gu(n)&&He(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),a0("noEmit",n,_.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Nst(n,a){a&&P>=2&&P<=8&&sR(n,a,"Reflect")&&i0.push(n)}function Ost(n){let a=!1;if(Uu(n)){for(const l of n.members)if(pA(l)&8388608){a=!0;break}}else if(Bs(n))pA(n)&8388608&&(a=!0);else{const l=Mm(n);l&&pA(l)&8388608&&(a=!0)}a&&(D.assert(gu(n)&&He(n.name),"The target of a Reflect collision check should be an identifier"),a0("noEmit",n,_.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,ws(n.name),"Reflect"))}function eI(n,a){a&&(kst(n,a),wst(n,a),Dst(n,a),Nst(n,a),di(n)?(tI(a,_.Class_name_cannot_be_0),n.flags&16777216||llt(a)):ob(n)&&tI(a,_.Enum_name_cannot_be_0))}function Pst(n){if(gp(n)&3||bT(n)||n.kind===257&&!n.initializer)return;const a=Ir(n);if(a.flags&1){if(!He(n.name))return D.fail();const l=_l(n,n.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&UV(l)&3){const u=Q0(l.valueDeclaration,258),p=u.parent.kind===240&&u.parent.parent?u.parent.parent:void 0;if(!(p&&(p.kind===238&&Ka(p.parent)||p.kind===265||p.kind===264||p.kind===308))){const x=S(l);Ke(n,_.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function lR(n){return n===yt?we:n===Nn?Dt:n}function P4(n){var a;if(D4(n),ps(n)||go(n.type),!n.name)return;if(n.name.kind===164&&(ny(n.name),cT(n)&&n.initializer&&Ql(n.initializer)),ps(n)){if(n.propertyName&&He(n.name)&&bT(n)&&Cl(Cf(n).body)){cS.push(n);return}Hm(n.parent)&&n.dotDotDotToken&&P<5&&pc(n,4),n.propertyName&&n.propertyName.kind===164&&ny(n.propertyName);const p=n.parent.parent,g=n.dotDotDotToken?64:0,x=j2(p,g),R=n.propertyName||n.name;if(x&&!Xa(R)){const M=$g(R);if(Jh(M)){const J=mm(M),$=co(x,J);$&&(y4($,void 0,!1),doe(n,!!p.initializer&&p.initializer.kind===106,!1,x,$))}}}if(Xa(n.name)&&(n.name.kind===204&&P<2&&Y.downlevelIteration&&pc(n,512),Ue(n.name.elements,go)),Ba(n)&&n.initializer&&Cl(Cf(n).body)){Ke(n,_.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Xa(n.name)){const p=cT(n)&&n.initializer&&n.parent.parent.kind!==246,g=!kt(n.name.elements,pM(Rc));if(p||g){const x=El(n);if(p){const R=Ql(n.initializer);W&&g?Owe(R,n):dv(R,El(n),n,n.initializer)}g&&(kC(n.name)?pv(65,x,We,n):W&&Owe(x,n))}return}const l=Ir(n);if(l.flags&2097152&&(x1(n)||ffe(n))){fj(n);return}const u=lR(ar(l));if(n===l.valueDeclaration){const p=cT(n)&&RN(n);p&&!(fr(n)&&Ls(p)&&(p.properties.length===0||eb(n.name))&&((a=l.exports)!=null&&a.size))&&n.parent.parent.kind!==246&&dv(Ql(p),u,n,p,void 0),l.declarations&&l.declarations.length>1&&kt(l.declarations,g=>g!==n&&JA(g)&&!fRe(g,n))&&Ke(n.name,_.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}else{const p=lR(El(n));!ns(u)&&!ns(p)&&!Xh(u,p)&&!(l.flags&67108864)&&dRe(l.valueDeclaration,u,n,p),cT(n)&&n.initializer&&dv(Ql(n.initializer),p,n,n.initializer,void 0),l.valueDeclaration&&!fRe(n,l.valueDeclaration)&&Ke(n.name,_.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}n.kind!==169&&n.kind!==168&&(nR(n),(n.kind===257||n.kind===205)&&Pst(n),eI(n,n.name))}function dRe(n,a,l,u){const p=ka(l),g=l.kind===169||l.kind===168?_.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=ws(p),R=Ke(p,g,x,ke(a),ke(u));n&&Ko(R,Nr(n,_._0_was_also_declared_here,x))}function fRe(n,a){if(n.kind===166&&a.kind===257||n.kind===257&&a.kind===166)return!0;if(gx(n)!==gx(a))return!1;const l=888;return Sx(n,l)===Sx(a,l)}function Qoe(n){var a,l;(a=bi)==null||a.push(bi.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),mut(n),P4(n),(l=bi)==null||l.pop()}function Mst(n){return fut(n),P4(n)}function Fst(n){!uh(n)&&!Ese(n.declarationList)&&hut(n),Ue(n.declarationList.declarations,go)}function Bst(n){eg(n),ga(n.expression)}function Gst(n){eg(n);const a=fA(n.expression);Zoe(n.expression,a,n.thenStatement),go(n.thenStatement),n.thenStatement.kind===239&&Ke(n.thenStatement,_.The_body_of_an_if_statement_cannot_be_the_empty_statement),go(n.elseStatement)}function Zoe(n,a,l){if(!W)return;u(n,l);function u(g,x){for(g=js(g),p(g,x);br(g)&&(g.operatorToken.kind===56||g.operatorToken.kind===60);)g=js(g.left),p(g,x)}function p(g,x){const R=lO(g)?js(g.right):g;if(bh(R))return;if(lO(R)){u(R,x);return}const M=R===g?a:fA(R),J=Fr(R)&&MDe(R.expression);if(!(wu(M)&4194304)||J)return;const $=za(M,0),ge=!!rR(M);if($.length===0&&!ge)return;const Ne=He(R)?R:Fr(R)?R.name:void 0,De=Ne&&R_(Ne);if(!De&&!ge)return;De&&br(g.parent)&&Vst(g.parent,De)||De&&x&&Ust(g,x,Ne,De)||(ge?o0(R,!0,_.This_condition_will_always_return_true_since_this_0_is_always_defined,Cr(M)):Ke(R,_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Ust(n,a,l,u){return!!Ma(a,function p(g){if(He(g)){const x=R_(g);if(x&&x===u){if(He(n)||He(l)&&br(l.parent))return!0;let R=l.parent,M=g.parent;for(;R&&M;){if(He(R)&&He(M)||R.kind===108&&M.kind===108)return R_(R)===R_(M);if(Fr(R)&&Fr(M)){if(R_(R.name)!==R_(M.name))return!1;M=M.expression,R=R.expression}else if(no(R)&&no(M))M=M.expression,R=R.expression;else return!1}}}return Ma(g,p)})}function Vst(n,a){for(;br(n)&&n.operatorToken.kind===55;){if(Ma(n.right,function u(p){if(He(p)){const g=R_(p);if(g&&g===a)return!0}return Ma(p,u)}))return!0;n=n.parent}return!1}function jst(n){eg(n),go(n.statement),fA(n.expression)}function Hst(n){eg(n),fA(n.expression),go(n.statement)}function _Re(n,a){return n.flags&16384&&Ke(a,_.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function fA(n,a){return _Re(ga(n,a),n)}function Wst(n){eg(n)||n.initializer&&n.initializer.kind===258&&Ese(n.initializer),n.initializer&&(n.initializer.kind===258?Ue(n.initializer.declarations,Qoe):ga(n.initializer)),n.condition&&fA(n.condition),n.incrementor&&ga(n.incrementor),go(n.statement),n.locals&&_v(n)}function zst(n){uNe(n);const a=I3(n);if(n.awaitModifier?a&&kl(a)?En(n.awaitModifier,_.For_await_loops_cannot_be_used_inside_a_class_static_block):(jc(a)&6)===2&&P<99&&pc(n,16384):Y.downlevelIteration&&P<2&&pc(n,256),n.initializer.kind===258)pRe(n);else{const l=n.initializer,u=M4(n);if(l.kind===206||l.kind===207)qE(l,u||Ce);else{const p=ga(l);ZD(l,_.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&dv(u,p,l,n.expression)}}go(n.statement),n.locals&&_v(n)}function qst(n){uNe(n);const a=foe(ga(n.expression));if(n.initializer.kind===258){const l=n.initializer.declarations[0];l&&Xa(l.name)&&Ke(l.name,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),pRe(n)}else{const l=n.initializer,u=ga(l);l.kind===206||l.kind===207?Ke(l,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):xo(Net(a),u)?ZD(l,_.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ke(l,_.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===gt||!Mc(a,126091264))&&Ke(n.expression,_.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,ke(a)),go(n.statement),n.locals&&_v(n)}function pRe(n){const a=n.initializer;if(a.declarations.length>=1){const l=a.declarations[0];Qoe(l)}}function M4(n){const a=n.awaitModifier?15:13;return pv(a,qL(n.expression),We,n.expression)}function pv(n,a,l,u){return Ss(a)?a:ese(n,a,l,u,!0)||we}function ese(n,a,l,u,p){const g=(n&2)!==0;if(a===gt){ase(u,a,g);return}const x=P>=2,R=!x&&Y.downlevelIteration,M=Y.noUncheckedIndexedAccess&&!!(n&128);if(x||R||g){const _t=cj(a,n,x?u:void 0);if(p&&_t){const Bt=n&8?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?_.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;Bt&&od(l,_t.nextType,u,Bt)}if(_t||x)return M?HD(_t&&_t.yieldType):_t&&_t.yieldType}let J=a,$=!1,ge=!1;if(n&4){if(J.flags&1048576){const _t=a.types,Bt=lr(_t,Mn=>!(Mn.flags&402653316));Bt!==_t&&(J=Qr(Bt,2))}else J.flags&402653316&&(J=gt);if(ge=J!==a,ge&&(P<1&&u&&(Ke(u,_.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),$=!0),J.flags&131072))return M?HD(ue):ue}if(!D0(J)){if(u&&!$){const _t=!!(n&4)&&!ge,[Bt,Mn]=De(_t,R);o0(u,Mn&&!!rR(J),Bt,ke(J))}return ge?M?HD(ue):ue:void 0}const Ne=Xg(J,mt);if(ge&&Ne)return Ne.flags&402653316&&!Y.noUncheckedIndexedAccess?ue:Qr(M?[Ne,ue,We]:[Ne,ue],2);return n&128?HD(Ne):Ne;function De(_t,Bt){var Mn;return Bt?_t?[_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:tse(n,0,a,void 0)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Jst((Mn=a.symbol)==null?void 0:Mn.escapedName)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:_t?[_.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_.Type_0_is_not_an_array_type,!0]}}function Jst(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 tse(n,a,l,u){if(Ss(l))return;const p=cj(l,n,u);return p&&p[Pge(a)]}function iy(n=gt,a=gt,l=he){if(n.flags&67359327&&a.flags&180227&&l.flags&180227){const u=o_([n,a,l]);let p=fe.get(u);return p||(p={yieldType:n,returnType:a,nextType:l},fe.set(u,p)),p}return{yieldType:n,returnType:a,nextType:l}}function mRe(n){let a,l,u;for(const p of n)if(!(p===void 0||p===It)){if(p===Ht)return Ht;a=Fn(a,p.yieldType),l=Fn(l,p.returnType),u=Fn(u,p.nextType)}return a||l||u?iy(a&&Qr(a),l&&Qr(l),u&&wo(u)):It}function lj(n,a){return n[a]}function ch(n,a,l){return n[a]=l}function cj(n,a,l){var u,p;if(Ss(n))return Ht;if(!(n.flags&1048576)){const J=l?{errors:void 0}:void 0,$=hRe(n,a,l,J);if($===It){if(l){const ge=ase(l,n,!!(a&2));J!=null&&J.errors&&Ko(ge,...J.errors)}return}else if((u=J==null?void 0:J.errors)!=null&&u.length)for(const ge of J.errors)$o.add(ge);return $}const g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=lj(n,g);if(x)return x===It?void 0:x;let R;for(const J of n.types){const $=l?{errors:void 0}:void 0,ge=hRe(J,a,l,$);if(ge===It){if(l){const Ne=ase(l,n,!!(a&2));$!=null&&$.errors&&Ko(Ne,...$.errors)}ch(n,g,It);return}else if((p=$==null?void 0:$.errors)!=null&&p.length)for(const Ne of $.errors)$o.add(Ne);R=Fn(R,ge)}const M=R?mRe(R):It;return ch(n,g,M),M===It?void 0:M}function nse(n,a){if(n===It)return It;if(n===Ht)return Ht;const{yieldType:l,returnType:u,nextType:p}=n;return a&&Fie(!0),iy(JE(l,a)||we,JE(u,a)||we,p)}function hRe(n,a,l,u){if(Ss(n))return Ht;let p=!1;if(a&2){const g=rse(n,xt)||yRe(n,xt);if(g)if(g===It&&l)p=!0;else return a&8?nse(g,l):g}if(a&1){let g=rse(n,mn)||yRe(n,mn);if(g)if(g===It&&l)p=!0;else if(a&2){if(g!==It)return g=nse(g,l),p?g:ch(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){const g=ise(n,xt,l,u,p);if(g!==It)return g}if(a&1){let g=ise(n,mn,l,u,p);if(g!==It)return a&2?(g=nse(g,l),p?g:ch(n,"iterationTypesOfAsyncIterable",g)):g}return It}function rse(n,a){return lj(n,a.iterableCacheKey)}function gRe(n,a){const l=rse(n,a)||ise(n,a,void 0,void 0,!1);return l===It?ot:l}function yRe(n,a){let l;if(S0(n,l=a.getGlobalIterableType(!1))||S0(n,l=a.getGlobalIterableIteratorType(!1))){const[u]=gs(n),{returnType:p,nextType:g}=gRe(l,a);return ch(n,a.iterableCacheKey,iy(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,g))}if(S0(n,a.getGlobalGeneratorType(!1))){const[u,p,g]=gs(n);return ch(n,a.iterableCacheKey,iy(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,g))}}function Kst(n){const a=oIe(!1),l=a&&fc(ar(a),sl(n));return l&&Jh(l)?mm(l):`__@${n}`}function ise(n,a,l,u,p){var g;const x=co(n,Kst(a.iteratorSymbolName)),R=x&&!(x.flags&16777216)?ar(x):void 0;if(Ss(R))return p?Ht:ch(n,a.iterableCacheKey,Ht);const M=R?za(R,0):void 0;if(!kt(M))return p?It:ch(n,a.iterableCacheKey,It);const J=wo(Vt(M,ys)),$=(g=vRe(J,a,l,u,p))!=null?g:It;return p?$:ch(n,a.iterableCacheKey,$)}function ase(n,a,l){const u=l?_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,p=!!rR(a)||!l&&XO(n.parent)&&n.parent.expression===n&&XU(!1)!==Co&&xo(a,XU(!1));return o0(n,p,u,ke(a))}function Xst(n,a,l,u){return vRe(n,a,l,u,!1)}function vRe(n,a,l,u,p){if(Ss(n))return Ht;let g=bRe(n,a)||Yst(n,a);return g===It&&l&&(g=void 0,p=!0),g??(g=TRe(n,a,l,u,p)),g===It?void 0:g}function bRe(n,a){return lj(n,a.iteratorCacheKey)}function Yst(n,a){const l=a.getGlobalIterableIteratorType(!1);if(S0(n,l)){const[u]=gs(n),p=bRe(l,a)||TRe(l,a,void 0,void 0,!1),{returnType:g,nextType:x}=p===It?ot:p;return ch(n,a.iteratorCacheKey,iy(u,g,x))}if(S0(n,a.getGlobalIteratorType(!1))||S0(n,a.getGlobalGeneratorType(!1))){const[u,p,g]=gs(n);return ch(n,a.iteratorCacheKey,iy(u,p,g))}}function ERe(n,a){const l=fc(n,"done")||it;return xo(a===0?it:Pe,l)}function $st(n){return ERe(n,0)}function Qst(n){return ERe(n,1)}function Zst(n){if(Ss(n))return Ht;const a=lj(n,"iterationTypesOfIteratorResult");if(a)return a;if(S0(n,WZe(!1))){const x=gs(n)[0];return ch(n,"iterationTypesOfIteratorResult",iy(x,void 0,void 0))}if(S0(n,zZe(!1))){const x=gs(n)[0];return ch(n,"iterationTypesOfIteratorResult",iy(void 0,x,void 0))}const l=_c(n,$st),u=l!==gt?fc(l,"value"):void 0,p=_c(n,Qst),g=p!==gt?fc(p,"value"):void 0;return!u&&!g?ch(n,"iterationTypesOfIteratorResult",It):ch(n,"iterationTypesOfIteratorResult",iy(u,g||Rt,void 0))}function ose(n,a,l,u,p){var g,x,R,M,J,$;const ge=co(n,l);if(!ge&&l!=="next")return;const Ne=ge&&!(l==="next"&&ge.flags&16777216)?l==="next"?ar(ge):l_(ar(ge),2097152):void 0;if(Ss(Ne))return l==="next"?Ht:Q;const De=Ne?za(Ne,0):rt;if(De.length===0){if(u){const ln=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;p?((g=p.errors)!=null||(p.errors=[]),p.errors.push(Nr(u,ln,l))):Ke(u,ln,l)}return l==="next"?It:void 0}if(Ne!=null&&Ne.symbol&&De.length===1){const ln=a.getGlobalGeneratorType(!1),Gn=a.getGlobalIteratorType(!1),qn=((R=(x=ln.symbol)==null?void 0:x.members)==null?void 0:R.get(l))===Ne.symbol,Zr=!qn&&((J=(M=Gn.symbol)==null?void 0:M.members)==null?void 0:J.get(l))===Ne.symbol;if(qn||Zr){const ri=qn?ln:Gn,{mapper:_a}=Ne;return iy(k0(ri.typeParameters[0],_a),k0(ri.typeParameters[1],_a),l==="next"?k0(ri.typeParameters[2],_a):void 0)}}let _t,Bt;for(const ln of De)l!=="throw"&&kt(ln.parameters)&&(_t=Fn(_t,_p(ln,0))),Bt=Fn(Bt,ys(ln));let Mn,An;if(l!=="throw"){const ln=_t?Qr(_t):he;if(l==="next")An=ln;else if(l==="return"){const Gn=a.resolveIterationType(ln,u)||we;Mn=Fn(Mn,Gn)}}let Kn;const gn=Bt?wo(Bt):gt,xn=a.resolveIterationType(gn,u)||we,yr=Zst(xn);return yr===It?(u&&(p?(($=p.errors)!=null||(p.errors=[]),p.errors.push(Nr(u,a.mustHaveAValueDiagnostic,l))):Ke(u,a.mustHaveAValueDiagnostic,l)),Kn=we,Mn=Fn(Mn,we)):(Kn=yr.yieldType,Mn=Fn(Mn,yr.returnType)),iy(Kn,Qr(Mn),An)}function TRe(n,a,l,u,p){const g=mRe([ose(n,a,"next",l,u),ose(n,a,"return",l,u),ose(n,a,"throw",l,u)]);return p?g:ch(n,a.iteratorCacheKey,g)}function Qb(n,a,l){if(Ss(a))return;const u=SRe(a,l);return u&&u[Pge(n)]}function SRe(n,a){if(Ss(n))return Ht;const l=a?2:1,u=a?xt:mn;return cj(n,l,void 0)||Xst(n,u,void 0,void 0)}function elt(n){eg(n)||dut(n)}function uj(n,a){const l=!!(a&1),u=!!(a&2);if(l){const p=Qb(1,n,u);return p?u?ry(QL(p)):p:Ce}return u?ry(n)||Ce:n}function xRe(n,a){const l=uj(a,jc(n));return!!l&&pl(l,16387)}function tlt(n){var a;if(eg(n))return;const l=I3(n);if(l&&kl(l)){Fc(n,_.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!l){Fc(n,_.A_return_statement_can_only_be_used_within_a_function_body);return}const u=Fp(l),p=ys(u),g=jc(l);if(W||n.expression||p.flags&131072){const x=n.expression?Ql(n.expression):We;if(l.kind===175)n.expression&&Ke(n,_.Setters_cannot_return_a_value);else if(l.kind===173)n.expression&&!dv(x,p,n,n.expression)&&Ke(n,_.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Y2(l)){const R=(a=uj(p,g))!=null?a:p,M=g&2?aR(x,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):x;R&&dv(M,R,n,n.expression)}}else l.kind!==173&&Y.noImplicitReturns&&!xRe(l,p)&&Ke(n,_.Not_all_code_paths_return_a_value)}function nlt(n){eg(n)||n.flags&32768&&Fc(n,_.with_statements_are_not_allowed_in_an_async_function_block),ga(n.expression);const a=Zn(n);if(!Zb(a)){const l=yy(a,n.pos).start,u=n.statement.pos;e1(a,l,u-l,_.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function rlt(n){eg(n);let a,l=!1;const u=ga(n.expression);Ue(n.caseBlock.clauses,p=>{p.kind===293&&!l&&(a===void 0?a=p:(En(p,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),p.kind===292&&i(g(p)),Ue(p.statements,go),Y.noFallthroughCasesInSwitch&&p.fallthroughFlowNode&&c4(p.fallthroughFlowNode)&&Ke(p,_.Fallthrough_case_in_switch);function g(x){return()=>{const R=ga(x.expression);Uoe(u,R)||rke(R,u,x.expression,void 0)}}}),n.caseBlock.locals&&_v(n.caseBlock)}function ilt(n){eg(n)||nr(n.parent,a=>Ka(a)?"quit":a.kind===253&&a.label.escapedText===n.label.escapedText?(En(n.label,_.Duplicate_label_0,xc(n.label)),!0):!1),go(n.statement)}function alt(n){eg(n)||He(n.expression)&&!n.expression.escapedText&&Lut(n,_.Line_break_not_permitted_here),n.expression&&ga(n.expression)}function olt(n){eg(n),sj(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;P4(l);const u=Zc(l);if(u){const p=fi(u);p&&!(p.flags&3)&&Fc(u,_.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)Fc(l.initializer,_.Catch_clause_variable_cannot_have_an_initializer);else{const p=a.block.locals;p&&XI(a.locals,g=>{const x=p.get(g);x!=null&&x.valueDeclaration&&x.flags&2&&En(x.valueDeclaration,_.Cannot_redeclare_identifier_0_in_catch_clause,g)})}}sj(a.block)}n.finallyBlock&&sj(n.finallyBlock)}function dj(n,a,l){const u=Lu(n);if(u.length===0)return;for(const g of iv(n))l&&g.flags&4194304||ARe(n,g,OL(g,8576,!0),T0(g));const p=a.valueDeclaration;if(p&&di(p)){for(const g of p.members)if(!Ja(g)&&!J2(g)){const x=Ir(g);ARe(n,x,Du(g.name.expression),T0(x))}}if(u.length>1)for(const g of u)slt(n,g)}function ARe(n,a,l,u){const p=a.valueDeclaration,g=ka(p);if(g&&Ni(g))return;const x=Eie(n,l),R=ti(n)&2?Al(n.symbol,261):void 0,M=p&&p.kind===223||g&&g.kind===164?p:void 0,J=gd(a)===n.symbol?p:void 0;for(const $ of x){const ge=$.declaration&&gd(Ir($.declaration))===n.symbol?$.declaration:void 0,Ne=J||ge||(R&&!kt(Po(n),De=>!!Bb(De,a.escapedName)&&!!Xg(De,$.keyType))?R:void 0);if(Ne&&!xo(u,$.type)){const De=oE(Ne,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,S(a),ke(u),ke($.keyType),ke($.type));M&&Ne!==M&&Ko(De,Nr(M,_._0_is_declared_here,S(a))),$o.add(De)}}}function slt(n,a){const l=a.declaration,u=Eie(n,a.keyType),p=ti(n)&2?Al(n.symbol,261):void 0,g=l&&gd(Ir(l))===n.symbol?l:void 0;for(const x of u){if(x===a)continue;const R=x.declaration&&gd(Ir(x.declaration))===n.symbol?x.declaration:void 0,M=g||R||(p&&!kt(Po(n),J=>!!sh(J,a.keyType)&&!!Xg(J,x.keyType))?p:void 0);M&&!xo(a.type,x.type)&&Ke(M,_._0_index_type_1_is_not_assignable_to_2_index_type_3,ke(a.keyType),ke(a.type),ke(x.keyType),ke(x.type))}}function tI(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":Ke(n,a,n.escapedText)}}function llt(n){P>=1&&n.escapedText==="Object"&&(de<5||Zn(n).impliedNodeFormat===1)&&Ke(n,_.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,NM[de])}function clt(n){const a=lr(m1(n),am);if(!Ae(a))return;const l=fr(n),u=new Set,p=new Set;if(Ue(n.parameters,({name:x},R)=>{He(x)&&u.add(x.escapedText),Xa(x)&&p.add(R)}),xie(n)){const x=a.length-1,R=a[x];l&&R&&He(R.name)&&R.typeExpression&&R.typeExpression.type&&!u.has(R.name.escapedText)&&!p.has(x)&&!Hf(fi(R.typeExpression.type))&&Ke(R.name,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Mr(R.name))}else Ue(a,({name:x,isNameFirst:R},M)=>{p.has(M)||He(x)&&u.has(x.escapedText)||(Cd(x)?l&&Ke(x,_.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Af(x),Af(x.left)):R||lm(l,x,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Mr(x)))})}function F4(n){let a=!1;if(n)for(let u=0;u<n.length;u++){const p=n[u];jDe(p),i(l(p,u))}function l(u,p){return()=>{u.default?(a=!0,ult(u.default,n,p)):a&&Ke(u,_.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;g<p;g++)n[g].symbol===u.symbol&&Ke(u.name,_.Duplicate_identifier_0,ws(u.name))}}}function ult(n,a,l){u(n);function u(p){if(p.kind===180){const g=Nie(p);if(g.flags&262144)for(let x=l;x<a.length;x++)g.symbol===Ir(a[x])&&Ke(p,_.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Ma(p,u)}}function CRe(n){if(n.declarations&&n.declarations.length===1)return;const a=Wi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const l=ylt(n);if(!l||l.length<=1)return;const u=Us(n);if(!LRe(l,u.localTypeParameters,Cv)){const p=S(n);for(const g of l)Ke(g.name,_.All_declarations_of_0_must_have_identical_type_parameters,p)}}}function LRe(n,a,l){const u=Ae(a),p=gm(a);for(const g of n){const x=l(g),R=x.length;if(R<p||R>u)return!1;for(let M=0;M<R;M++){const J=x[M],$=a[M];if(J.name.escapedText!==$.symbol.escapedName)return!1;const ge=NA(J),Ne=ge&&fi(ge),De=Cu($);if(Ne&&De&&!Xh(Ne,De))return!1;const _t=J.default&&fi(J.default),Bt=RE($);if(_t&&Bt&&!Xh(_t,Bt))return!1}}return!0}function IRe(n){var a;const l=!re&&P<99&&S1(!1,n),u=P<=9,p=!ye||P<9;if(l||u)for(const g of n.members){if(l&&Jz(!1,g,n))return(a=Yc(xv(n)))!=null?a:n;if(u){if(kl(g))return g;if(Ja(g)&&(Zu(g)||p&&H8(g)))return g}}}function dlt(n){var a;if(n.name)return;const l=ome(n);if(!cq(l))return;const u=!re&&P<99;let p;u&&S1(!1,n)?p=(a=Yc(xv(n)))!=null?a:n:p=IRe(n),p&&(pc(p,8388608),(qc(l)||to(l)||ps(l))&&As(l.name)&&pc(p,16777216))}function flt(n){return kRe(n),rI(n),dlt(n),ar(Ir(n))}function _lt(n){Ue(n.members,go),_v(n)}function plt(n){const a=nn(n.modifiers,Bu);re&&a&&kt(n.members,l=>gc(l)&&Zu(l))&&En(a,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Yr(n,1024)&&Fc(n,_.A_class_declaration_without_the_default_modifier_must_have_a_name),kRe(n),Ue(n.members,go),_v(n)}function kRe(n){Yct(n),D4(n),eI(n,n.name),F4(Cv(n)),nR(n);const a=Ir(n),l=Us(a),u=Uf(l),p=ar(a);CRe(a),ij(a),wot(n),!!(n.flags&16777216)||Dot(n);const x=$p(n);if(x){Ue(x.typeArguments,go),P<2&&pc(x.parent,1);const J=A1(n);J&&J!==x&&ga(J.expression);const $=Po(l);$.length&&i(()=>{const ge=$[0],Ne=ii(l),De=Ku(Ne);if(hlt(De,x),go(x.expression),kt(x.typeArguments)){Ue(x.typeArguments,go);for(const Bt of Kr(De,x.typeArguments,x))if(!XDe(x,Bt.typeParameters))break}const _t=Uf(ge,l.thisType);if(od(u,_t,void 0)?od(p,YIe(De),n.name||n,_.Class_static_side_0_incorrectly_extends_base_class_static_side_1):RRe(n,u,_t,_.Class_0_incorrectly_extends_base_class_1),Ne.flags&8650752&&(DP(p)?za(Ne,1).some(Mn=>Mn.flags&4)&&!Yr(n,256)&&Ke(n.name||n,_.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ke(n.name||n,_.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(De.symbol&&De.symbol.flags&32)&&!(Ne.flags&8650752)){const Bt=Ur(De,x.typeArguments,x);Ue(Bt,Mn=>!Vp(Mn.declaration)&&!Xh(ys(Mn),ge))&&Ke(x.expression,_.Base_constructors_must_all_have_the_same_return_type)}vlt(l,ge)})}mlt(n,l,u,p);const R=iC(n);if(R)for(const J of R)(!zl(J.expression)||yu(J.expression))&&Ke(J.expression,_.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Joe(J),i(M(J));i(()=>{dj(l,a),dj(p,a,!0),Woe(n),Tlt(n)});function M(J){return()=>{const $=dp(fi(J));if(!ns($))if(ah($)){const ge=$.symbol&&$.symbol.flags&32?_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_.Class_0_incorrectly_implements_interface_1,Ne=Uf($,l.thisType);od(u,Ne,void 0)||RRe(n,u,Ne,ge)}else Ke(J,_.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function mlt(n,a,l,u){const g=$p(n)&&Po(a),x=g!=null&&g.length?Uf(us(g),a.thisType):void 0,R=ii(a);for(const M of n.members)Lq(M)||(ql(M)&&Ue(M.parameters,J=>{tf(J,M)&&wRe(n,u,R,x,a,l,J,!0)}),wRe(n,u,R,x,a,l,M,!1))}function wRe(n,a,l,u,p,g,x,R,M=!0){const J=x.name&&R_(x.name)||R_(x);return J?DRe(n,a,l,u,p,g,Cq(x),k1(x),Ja(x),R,Fl(J),M?x:void 0):0}function DRe(n,a,l,u,p,g,x,R,M,J,$,ge){const Ne=fr(n),De=!!(n.flags&16777216);if(u&&(x||Y.noImplicitOverride)){const _t=sl($),Bt=M?a:g,Mn=M?l:u,An=co(Bt,_t),Kn=co(Mn,_t),gn=ke(u);if(An&&!Kn&&x){if(ge){const xn=Hwe($,Mn);xn?Ke(ge,Ne?_.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:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,gn,S(xn)):Ke(ge,Ne?_.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_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,gn)}return 2}else if(An&&(Kn!=null&&Kn.declarations)&&Y.noImplicitOverride&&!De){const xn=kt(Kn.declarations,k1);if(x)return 0;if(xn){if(R&&xn)return ge&&Ke(ge,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,gn),1}else{if(ge){const yr=J?Ne?_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_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:Ne?_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ke(ge,yr,gn)}return 1}}}else if(x){if(ge){const _t=ke(p);Ke(ge,Ne?_.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_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,_t)}return 2}return 0}function RRe(n,a,l,u){let p=!1;for(const g of n.members){if(Ja(g))continue;const x=g.name&&R_(g.name)||R_(g);if(x){const R=co(a,x.escapedName),M=co(l,x.escapedName);if(R&&M){const J=()=>Na(void 0,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,S(x),ke(a),ke(l));od(ar(R),ar(M),g.name||g,void 0,J)||(p=!0)}}}p||od(a,l,n.name||n,u)}function hlt(n,a){const l=za(n,1);if(l.length){const u=l[0].declaration;if(u&&Bd(u,8)){const p=gg(n.symbol);dse(a,p)||Ke(a,_.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Bh(n.symbol))}}}function glt(n,a,l){if(!a.name)return 0;const u=Ir(n),p=Us(u),g=Uf(p),x=ar(u),M=$p(n)&&Po(p),J=M!=null&&M.length?Uf(us(M),p.thisType):void 0,$=ii(p),ge=a.parent?Cq(a):Yr(a,16384);return DRe(n,x,$,J,p,g,ge,k1(a),Ja(a),!1,Fl(l))}function _A(n){return Il(n)&1?n.links.target:n}function ylt(n){return lr(n.declarations,a=>a.kind===260||a.kind===261)}function vlt(n,a){var l,u,p,g;const x=hs(a);e:for(const R of x){const M=_A(R);if(M.flags&4194304)continue;const J=Bb(n,M.escapedName);if(!J)continue;const $=_A(J),ge=Qf(M);if(D.assert(!!$,"derived should point to something, even if it is the base class' declaration."),$===M){const Ne=gg(n.symbol);if(ge&256&&(!Ne||!Yr(Ne,256))){for(const De of Po(n)){if(De===a)continue;const _t=Bb(De,M.escapedName),Bt=_t&&_A(_t);if(Bt&&Bt!==M)continue e}Ne.kind===228?Ke(Ne,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,S(R),ke(a)):Ke(Ne,_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ke(n),S(R),ke(a))}}else{const Ne=Qf($);if(ge&8||Ne&8)continue;let De;const _t=M.flags&98308,Bt=$.flags&98308;if(_t&&Bt){if((Il(M)&6?(l=M.declarations)!=null&&l.some(Kn=>NRe(Kn,ge)):(u=M.declarations)!=null&&u.every(Kn=>NRe(Kn,ge)))||Il(M)&262144||$.valueDeclaration&&br($.valueDeclaration))continue;const Mn=_t!==4&&Bt===4;if(Mn||_t===4&&Bt!==4){const Kn=Mn?_._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;Ke(ka($.valueDeclaration)||$.valueDeclaration,Kn,S(M),ke(a),ke(n))}else if(ye){const Kn=(p=$.declarations)==null?void 0:p.find(gn=>gn.kind===169&&!gn.initializer);if(Kn&&!($.flags&33554432)&&!(ge&256)&&!(Ne&256)&&!((g=$.declarations)!=null&&g.some(gn=>!!(gn.flags&16777216)))){const gn=m0(gg(n.symbol)),xn=Kn.name;if(Kn.exclamationToken||!gn||!He(xn)||!W||!PRe(xn,n,gn)){const yr=_.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;Ke(ka($.valueDeclaration)||$.valueDeclaration,yr,S(M),ke(a))}}}continue}else if(uoe(M)){if(uoe($)||$.flags&4)continue;D.assert(!!($.flags&98304)),De=_.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else M.flags&98304?De=_.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:De=_.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ke(ka($.valueDeclaration)||$.valueDeclaration,De,ke(a),S(M),ke(n))}}}function NRe(n,a){return a&256&&(!to(n)||!n.initializer)||id(n.parent)}function blt(n,a,l){if(!Ae(a))return l;const u=new Map;Ue(l,p=>{u.set(p.escapedName,p)});for(const p of a){const g=hs(Uf(p,n.thisType));for(const x of g){const R=u.get(x.escapedName);R&&x.parent===R.parent&&u.delete(x.escapedName)}}return Ro(u.values())}function Elt(n,a){const l=Po(n);if(l.length<2)return!0;const u=new Map;Ue(nie(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let p=!0;for(const g of l){const x=hs(Uf(g,n.thisType));for(const R of x){const M=u.get(R.escapedName);if(!M)u.set(R.escapedName,{prop:R,containingType:g});else if(M.containingType!==n&&!Utt(M.prop,R)){p=!1;const $=ke(M.containingType),ge=ke(g);let Ne=Na(void 0,_.Named_property_0_of_types_1_and_2_are_not_identical,S(R),$,ge);Ne=Na(Ne,_.Interface_0_cannot_simultaneously_extend_types_1_and_2,ke(n),$,ge),$o.add(dg(Zn(a),a,Ne))}}}return p}function Tlt(n){if(!W||!ve||n.flags&16777216)return;const a=m0(n);for(const l of n.members)if(!(Fu(l)&2)&&!Ja(l)&&ORe(l)){const u=l.name;if(He(u)||Ni(u)||As(u)){const p=ar(Ir(l));p.flags&3||ML(p)||(!a||!PRe(u,p,a))&&Ke(l.name,_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,ws(u))}}}function ORe(n){return n.kind===169&&!k1(n)&&!n.exclamationToken&&!n.initializer}function Slt(n,a,l,u,p){for(const g of l)if(g.pos>=u&&g.pos<=p){const x=N.createPropertyAccessExpression(N.createThis(),n);Uo(x.expression,x),Uo(x,g),x.flowNode=g.returnFlowNode;const R=O0(x,a,ey(a));if(!ML(R))return!0}return!1}function PRe(n,a,l){const u=As(n)?N.createElementAccessExpression(N.createThis(),n.expression):N.createPropertyAccessExpression(N.createThis(),n);Uo(u.expression,u),Uo(u,l),u.flowNode=l.returnFlowNode;const p=O0(u,a,ey(a));return!ML(p)}function xlt(n){uh(n)||rut(n),F4(n.typeParameters),i(()=>{tI(n.name,_.Interface_name_cannot_be_0),nR(n);const a=Ir(n);CRe(a);const l=Al(a,261);if(n===l){const u=Us(a),p=Uf(u);if(Elt(u,n.name)){for(const g of Po(u))od(p,Uf(g,u.thisType),n.name,_.Interface_0_incorrectly_extends_interface_1);dj(u,a)}}zDe(n)}),Ue(lk(n),a=>{(!zl(a.expression)||yu(a.expression))&&Ke(a.expression,_.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Joe(a)}),Ue(n.members,go),i(()=>{Woe(n),_v(n)})}function Alt(n){uh(n),tI(n.name,_.Type_alias_name_cannot_be_0),nR(n),F4(n.typeParameters),n.type.kind===139?(!G8.has(n.name.escapedText)||Ae(n.typeParameters)!==1)&&Ke(n.type,_.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(go(n.type),_v(n))}function MRe(n){const a=Jr(n);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const u of n.members){const p=Clt(u,l);Jr(u).enumMemberValue=p,l=typeof p=="number"?p+1:void 0}}}function Clt(n,a){if(SN(n.name))Ke(n.name,_.Computed_property_names_are_not_allowed_in_enums);else{const l=HA(n.name);Ah(l)&&!Pk(l)&&Ke(n.name,_.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Llt(n);if(!(n.parent.flags&16777216&&!T1(n.parent))){if(a!==void 0)return a;Ke(n.name,_.Enum_member_must_have_initializer)}}function Llt(n){const a=T1(n.parent),l=n.initializer,u=nI(l,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Ke(l,isNaN(u)?_.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Ke(l,_.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&16777216?Ke(l,_.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):od(ga(l),mt,l,_.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function nI(n,a){switch(n.kind){case 221:const l=nI(n.operand,a);if(typeof l=="number")switch(n.operator){case 39:return l;case 40:return-l;case 54:return~l}break;case 223:const u=nI(n.left,a),p=nI(n.right,a);if(typeof u=="number"&&typeof p=="number")switch(n.operatorToken.kind){case 51:return u|p;case 50:return u&p;case 48:return u>>p;case 49:return u>>>p;case 47:return u<<p;case 52:return u^p;case 41:return u*p;case 43:return u/p;case 39:return u+p;case 40:return u-p;case 44:return u%p;case 42:return u**p}else if((typeof u=="string"||typeof u=="number")&&(typeof p=="string"||typeof p=="number")&&n.operatorToken.kind===39)return""+u+p;break;case 10:case 14:return n.text;case 225:return Ilt(n,a);case 8:return Tse(n),+n.text;case 214:return nI(n.expression,a);case 79:if(Pk(n.escapedText))return+n.escapedText;case 208:if(zl(n)){const x=Nl(n,111551,!0);if(x){if(x.flags&8)return FRe(n,x,a);if(HL(x)){const R=x.valueDeclaration;if(R&&!R.type&&R.initializer&&R!==a&&Og(R,a))return nI(R.initializer,R)}}}break;case 209:const g=n.expression;if(zl(g)&&xs(n.argumentExpression)){const x=Nl(g,111551,!0);if(x&&x.flags&384){const R=sl(n.argumentExpression.text),M=x.exports.get(R);if(M)return FRe(n,M,a)}}break}}function FRe(n,a,l){const u=a.valueDeclaration;if(!u||u===l){Ke(n,_.Property_0_is_used_before_being_assigned,S(a));return}return Og(u,l)?bj(u):(Ke(n,_.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function Ilt(n,a){let l=n.head.text;for(const u of n.templateSpans){const p=nI(u.expression,a);if(p===void 0)return;l+=p,l+=u.literal.text}return l}function klt(n){i(()=>wlt(n))}function wlt(n){uh(n),eI(n,n.name),nR(n),n.members.forEach(Dlt),MRe(n);const a=Ir(n),l=Al(a,n.kind);if(n===l){if(a.declarations&&a.declarations.length>1){const p=T1(n);Ue(a.declarations,g=>{ob(g)&&T1(g)!==p&&Ke(ka(g),_.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;Ue(a.declarations,p=>{if(p.kind!==263)return!1;const g=p;if(!g.members.length)return!1;const x=g.members[0];x.initializer||(u?Ke(x.name,_.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function Dlt(n){Ni(n.name)&&Ke(n,_.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&ga(n.initializer)}function Rlt(n){const a=n.declarations;if(a){for(const l of a)if((l.kind===260||l.kind===259&&p_(l.body))&&!(l.flags&16777216))return l}}function Nlt(n,a){const l=Mm(n),u=Mm(a);return Qm(l)?Qm(u):Qm(u)?!1:l===u}function Olt(n){n.body&&(go(n.body),Yp(n)||_v(n)),i(a);function a(){var l,u;const p=Yp(n),g=n.flags&16777216;p&&!g&&Ke(n.name,_.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=Mu(n),R=x?_.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;if(B4(n,R))return;uh(n)||!g&&n.name.kind===10&&En(n.name,_.Only_ambient_modules_can_use_quoted_names),He(n.name)&&eI(n,n.name),nR(n);const M=Ir(n);if(M.flags&512&&!g&&OX(n,w1(Y))){if(H_(Y)&&!Zn(n).externalModuleIndicator&&Ke(n.name,_.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,jt),((l=M.declarations)==null?void 0:l.length)>1){const J=Rlt(M);J&&(Zn(n)!==Zn(J)?Ke(n.name,_.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<J.pos&&Ke(n.name,_.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const $=Al(M,260);$&&Nlt(n,$)&&(Jr(n).flags|=2048)}if(Y.verbatimModuleSyntax&&n.parent.kind===308&&(de===1||n.parent.impliedNodeFormat===1)){const J=(u=n.modifiers)==null?void 0:u.find($=>$.kind===93);J&&Ke(J,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(b1(n)){if((p||Ir(n).flags&33554432)&&n.body)for(const $ of n.body.statements)sse($,p)}else Qm(n.parent)?p?Ke(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Uc(V_(n.name))&&Ke(n.name,_.Ambient_module_declaration_cannot_specify_relative_module_name):p?Ke(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ke(n.name,_.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function sse(n,a){switch(n.kind){case 240:for(const u of n.declarationList.declarations)sse(u,a);break;case 274:case 275:Fc(n,_.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:Fc(n,_.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:const l=n.name;if(Xa(l)){for(const u of l.elements)sse(u,a);break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function Plt(n){switch(n.kind){case 79:return n;case 163:do n=n.left;while(n.kind!==79);return n;case 208:do{if(bh(n.expression)&&!Ni(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function lse(n){const a=QA(n);if(!a||Cl(a))return!1;if(!Vo(a))return Ke(a,_.String_literal_expected),!1;const l=n.parent.kind===265&&Mu(n.parent.parent);if(n.parent.kind!==308&&!l)return Ke(a,n.kind===275?_.Export_declarations_are_not_permitted_in_a_namespace:_.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Uc(a.text)&&!Qd(n))return Ke(n,_.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!su(n)&&n.assertClause){let u=!1;for(const p of n.assertClause.elements)Vo(p.value)||(u=!0,Ke(p.value,_.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function fj(n){var a,l,u,p,g;let x=Ir(n);const R=nc(x);if(R!==an){if(x=as(x.exportSymbol||x),fr(n)&&!(R.flags&111551)&&!g1(n)){const $=sx(n)?n.propertyName||n.name:gu(n)?n.name:n;if(D.assert(n.kind!==277),n.kind===278){const ge=Ke($,_.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Ne=(l=(a=Zn(n).symbol)==null?void 0:a.exports)==null?void 0:l.get((n.propertyName||n.name).escapedText);if(Ne===R){const De=(u=Ne.declarations)==null?void 0:u.find(GA);De&&Ko(ge,Nr(De,_._0_is_automatically_exported_here,ta(Ne.escapedName)))}}else{D.assert(n.kind!==257);const ge=nr(n,Im(zc,su)),Ne=(g=ge&&((p=UN(ge))==null?void 0:p.text))!=null?g:"...",De=ta(He($)?$.escapedText:x.escapedName);Ke($,_._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,De,`import("${Ne}").${De}`)}return}const M=uu(R),J=(x.flags&1160127?111551:0)|(x.flags&788968?788968:0)|(x.flags&1920?1920:0);if(M&J){const $=n.kind===278?_.Export_declaration_conflicts_with_exported_declaration_of_0:_.Import_declaration_conflicts_with_local_declaration_of_0;Ke(n,$,S(x))}if(H_(Y)&&!g1(n)&&!(n.flags&16777216)){const $=Rd(x),ge=!(M&111551);if(ge||$)switch(n.kind){case 270:case 273:case 268:{if(Y.preserveValueImports||Y.verbatimModuleSyntax){D.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Ne=Y.verbatimModuleSyntax&&YA(n)?_.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ge?Y.verbatimModuleSyntax?_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Y.verbatimModuleSyntax?_._0_resolves_to_a_type_only_declaration_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_preserveValueImports_and_isolatedModules_are_both_enabled,De=Mr(n.kind===273&&n.propertyName||n.name);_S(Ke(n,Ne,De),ge?void 0:$,De)}ge&&n.kind===268&&Bd(n,1)&&Ke(n,_.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,jt);break}case 278:if(Y.verbatimModuleSyntax||Zn($)!==Zn(n)){const Ne=Mr(n.propertyName||n.name),De=ge?Ke(n,_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,jt):Ke(n,_._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Ne,jt);_S(De,ge?void 0:$,Ne);break}}Y.verbatimModuleSyntax&&n.kind!==268&&!fr(n)&&(de===1||Zn(n).impliedNodeFormat===1)&&Ke(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Ld(n)){const $=GRe(x,n);BRe($)&&$.declarations&&Rg(n,$.declarations,$.escapedName)}}}function BRe(n){return!!n.declarations&&Yn(n.declarations,a=>!!(gp(a)&268435456))}function GRe(n,a){if(!(n.flags&2097152))return n;const l=nc(n);if(l===an)return l;for(;n.flags&2097152;){const u=ioe(n);if(u){if(u===l)break;if(u.declarations&&Ae(u.declarations))if(BRe(u)){Rg(a,u.declarations,u.escapedName);break}else{if(n===l)break;n=u}}else break}return l}function _j(n){eI(n,n.name),fj(n),n.kind===273&&Mr(n.propertyName||n.name)==="default"&&W_(Y)&&de!==4&&(de<5||Zn(n).impliedNodeFormat===1)&&pc(n,131072)}function URe(n){var a;if(n.assertClause){const l=IY(n),u=t2(n.assertClause,l?En:void 0);if(l&&u)return iO()||En(n.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),vl(Y)!==3&&vl(Y)!==99?En(n.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((de===199&&n.moduleSpecifier&&By(n.moduleSpecifier))!==99&&de!==99)return En(n.assertClause,de===199?_.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:_.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(zc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return En(n.assertClause,_.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return En(n.assertClause,_.resolution_mode_can_only_be_set_for_type_only_imports)}}function Mlt(n){if(!B4(n,fr(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!uh(n)&&Q3(n)&&Fc(n,_.An_import_declaration_cannot_have_modifiers),lse(n)){const a=n.importClause;a&&!kut(a)&&(a.name&&_j(a),a.namedBindings&&(a.namedBindings.kind===271?(_j(a.namedBindings),de!==4&&(de<5||Zn(n).impliedNodeFormat===1)&&W_(Y)&&pc(n,65536)):du(n,n.moduleSpecifier)&&Ue(a.namedBindings.elements,_j)))}URe(n)}}function Flt(n){if(!B4(n,fr(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(uh(n),YA(n)||lse(n)))if(_j(n),Yr(n,1)&&fE(n),n.moduleReference.kind!==280){const a=nc(Ir(n));if(a!==an){const l=uu(a);if(l&111551){const u=Lf(n.moduleReference);Nl(u,112575).flags&1920||Ke(u,_.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,ws(u))}l&788968&&tI(n.name,_.Import_name_cannot_be_0)}n.isTypeOnly&&En(n,_.An_import_alias_cannot_use_import_type)}else de>=5&&Zn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&16777216)&&En(n,_.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 Blt(n){if(!B4(n,fr(n)?_.An_export_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_namespace_or_module)){if(!uh(n)&&Jfe(n)&&Fc(n,_.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&K_(n.exportClause)&&Ae(n.exportClause.elements)&&P===0&&pc(n,4194304),Glt(n),!n.moduleSpecifier||lse(n))if(n.exportClause&&!kh(n.exportClause)){Ue(n.exportClause.elements,zlt);const a=n.parent.kind===265&&Mu(n.parent.parent),l=!a&&n.parent.kind===265&&!n.moduleSpecifier&&n.flags&16777216;n.parent.kind!==308&&!a&&!l&&Ke(n,_.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=du(n,n.moduleSpecifier);a&&mE(a)?Ke(n.moduleSpecifier,_.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,S(a)):n.exportClause&&fj(n.exportClause),de!==4&&(de<5||Zn(n).impliedNodeFormat===1)&&(n.exportClause?W_(Y)&&pc(n,65536):pc(n,32768))}URe(n)}}function Glt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===276?gNe(n.exportClause):!1}function B4(n,a){const l=n.parent.kind===308||n.parent.kind===265||n.parent.kind===264;return l||Fc(n,a),!l}function Ult(n){return V3(n,a=>!!Ir(a).isReferenced)}function Vlt(n){return V3(n,a=>!!Wi(Ir(a)).constEnumReferenced)}function jlt(n){return zc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Ult(n.importClause)&&!vj(n.importClause,!0)&&!Vlt(n.importClause)}function Hlt(n){return su(n)&&zm(n.moduleReference)&&!n.isTypeOnly&&Ir(n).isReferenced&&!vj(n,!1)&&!Wi(Ir(n)).constEnumReferenced}function Wlt(n){for(const a of n.statements)(jlt(a)||Hlt(a))&&Ke(a,_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function zlt(n){if(fj(n),z_(Y)&&CE(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)W_(Y)&&de!==4&&(de<5||Zn(n).impliedNodeFormat===1)&&Mr(n.propertyName||n.name)==="default"&&pc(n,131072);else{const a=n.propertyName||n.name,l=_l(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Fe||l===st||l.declarations&&Qm(LE(l.declarations[0]))))Ke(a,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Mr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&fE(n);const u=l&&(l.flags&2097152?nc(l):l);(!u||uu(u)&111551)&&Ql(n.propertyName||n.name)}}}function qlt(n){const a=n.isExportEquals?_.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(B4(n,a))return;const l=n.parent.kind===308?n.parent:n.parent.parent;if(l.kind===264&&!Mu(l)){n.isExportEquals?Ke(n,_.An_export_assignment_cannot_be_used_in_a_namespace):Ke(n,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!uh(n)&&Q3(n)&&Fc(n,_.An_export_assignment_cannot_have_modifiers);const u=Zc(n);u&&od(Ql(n.expression),fi(u),n.expression);const p=!n.isExportEquals&&!(n.flags&16777216)&&Y.verbatimModuleSyntax&&(de===1||Zn(n).impliedNodeFormat===1);if(n.expression.kind===79){const g=n.expression,x=Op(Nl(g,67108863,!0,!0,n));x?(NV(x,g),uu(x)&111551?(Ql(g),!p&&Y.verbatimModuleSyntax&&Rd(x,111551)&&Ke(g,n.isExportEquals?_.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_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Mr(g))):!p&&Y.verbatimModuleSyntax&&Ke(g,n.isExportEquals?_.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Mr(g))):Ql(g),z_(Y)&&CE(g,!0)}else Ql(n.expression);p&&Ke(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),VRe(l),n.flags&16777216&&!zl(n.expression)&&En(n.expression,_.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(de>=5&&(n.flags&16777216&&Zn(n).impliedNodeFormat===99||!(n.flags&16777216)&&Zn(n).impliedNodeFormat!==1)?En(n,_.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):de===4&&!(n.flags&16777216)&&En(n,_.Export_assignment_is_not_supported_when_module_flag_is_system))}function Jlt(n){return af(n.exports,(a,l)=>l!=="export=")}function VRe(n){const a=Ir(n),l=Wi(a);if(!l.exportsChecked){const u=a.exports.get("export=");if(u&&Jlt(a)){const g=md(u)||u.valueDeclaration;g&&!Qd(g)&&!fr(g)&&Ke(g,_.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const p=jh(a);p&&p.forEach(({declarations:g,flags:x},R)=>{if(R==="__export"||x&1920)return;const M=Gc(g,_M(Mge,pM(id)));if(!(x&524288&&M<=2)&&M>1&&!pj(g))for(const J of g)Nge(J)&&$o.add(Nr(J,_.Cannot_redeclare_exported_variable_0,ta(R)))}),l.exportsChecked=!0}}function pj(n){return n&&n.length>1&&n.every(a=>fr(a)&&ll(a)&&(hT(a.expression)||bh(a.expression)))}function go(n){if(n){const a=G;G=n,I=0,Klt(n),G=a}}function Klt(n){zN(n)&&Ue(n.jsDoc,({comment:l,tags:u})=>{jRe(l),Ue(u,p=>{jRe(p.comment),fr(n)&&go(p)})});const a=n.kind;if(o)switch(a){case 264:case 260:case 261:case 259:o.throwIfCancellationRequested()}switch(a>=240&&a<=256&&WN(n)&&n.flowNode&&!c4(n.flowNode)&&lm(Y.allowUnreachableCode===!1,n,_.Unreachable_code_detected),a){case 165:return jDe(n);case 166:return HDe(n);case 169:return qDe(n);case 168:return Rot(n);case 182:case 181:case 176:case 177:case 178:return tR(n);case 171:case 170:return Not(n);case 172:return Oot(n);case 173:return Pot(n);case 174:case 175:return KDe(n);case 180:return Joe(n);case 179:return Iot(n);case 183:return Vot(n);case 184:return jot(n);case 185:return Hot(n);case 186:return Wot(n);case 189:case 190:return zot(n);case 193:case 187:case 188:return go(n.type);case 194:return Xot(n);case 195:return Yot(n);case 191:return $ot(n);case 192:return Qot(n);case 200:return Zot(n);case 202:return est(n);case 199:return tst(n);case 331:return vst(n);case 332:return yst(n);case 349:case 341:case 343:return ust(n);case 348:return dst(n);case 347:return fst(n);case 327:case 328:case 329:return pst(n);case 344:return mst(n);case 351:return hst(n);case 320:gst(n);case 318:case 317:case 315:case 316:case 325:HRe(n),Ma(n,go);return;case 321:Xlt(n);return;case 312:return go(n.type);case 336:case 338:case 337:return bst(n);case 353:return _st(n);case 196:return qot(n);case 197:return Jot(n);case 259:return cst(n);case 238:case 265:return sj(n);case 240:return Fst(n);case 241:return Bst(n);case 242:return Gst(n);case 243:return jst(n);case 244:return Hst(n);case 245:return Wst(n);case 246:return qst(n);case 247:return zst(n);case 248:case 249:return elt(n);case 250:return tlt(n);case 251:return nlt(n);case 252:return rlt(n);case 253:return ilt(n);case 254:return alt(n);case 255:return olt(n);case 257:return Qoe(n);case 205:return Mst(n);case 260:return plt(n);case 261:return xlt(n);case 262:return Alt(n);case 263:return klt(n);case 264:return Olt(n);case 269:return Mlt(n);case 268:return Flt(n);case 275:return Blt(n);case 274:return qlt(n);case 239:case 256:eg(n);return;case 279:return Fot(n)}}function jRe(n){Va(n)&&Ue(n,a=>{dx(a)&&go(a)})}function HRe(n){if(!fr(n))if(d5(n)||OC(n)){const a=yo(d5(n)?53:57),l=n.postfix?_._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,u=n.type,p=fi(u);En(n,l,a,ke(OC(n)&&!(p===gt||p===Rt)?Qr(Fn([p,We],n.postfix?void 0:Sn)):p))}else En(n,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Xlt(n){HRe(n),go(n.type);const{parent:a}=n;if(Ba(a)&&PC(a.parent)){zo(a.parent.parameters)!==a&&Ke(n,_.A_rest_parameter_must_be_last_in_a_parameter_list);return}OT(a)||Ke(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=n.parent.parent;if(!am(l)){Ke(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const u=qN(l);if(!u)return;const p=$0(l);(!p||zo(p.parameters).symbol!==u)&&Ke(n,_.A_rest_parameter_must_be_last_in_a_parameter_list)}function Ylt(n){const a=fi(n.type),{parent:l}=n,u=n.parent.parent;if(OT(n.parent)&&am(u)){const p=$0(u),g=cK(u.parent.parent);if(p||g){const x=tl(g?u.parent.parent.typeExpression.parameters:p.parameters),R=qN(u);if(!x||R&&x.symbol===R&&yh(x))return Iu(a)}}return Ba(l)&&PC(l.parent)?Iu(a):Io(a)}function rI(n){const a=Zn(n),l=Jr(a);l.flags&1?D.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(n))}function $lt(n){const a=Jr(n);a.deferredNodes&&a.deferredNodes.forEach(Qlt),a.deferredNodes=void 0}function Qlt(n){var a,l;(a=bi)==null||a.push(bi.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const u=G;switch(G=n,I=0,n.kind){case 210:case 211:case 212:case 167:case 283:cA(n);break;case 215:case 216:case 171:case 170:zat(n);break;case 174:case 175:KDe(n);break;case 228:_lt(n);break;case 165:Lot(n);break;case 282:iit(n);break;case 281:oit(n);break}G=u,(l=bi)==null||l.pop()}function Zlt(n){var a,l;(a=bi)==null||a.push(bi.Phase.Check,"checkSourceFile",{path:n.path},!0),al("beforeCheck"),ect(n),al("afterCheck"),Jf("Check","beforeCheck","afterCheck"),(l=bi)==null||l.pop()}function WRe(n,a){if(a)return!1;switch(n){case 0:return!!Y.noUnusedLocals;case 1:return!!Y.noUnusedParameters;default:return D.assertNever(n)}}function zRe(n){return bn.get(n.path)||rt}function ect(n){const a=Jr(n);if(!(a.flags&1)){if(wk(n,Y,e))return;xut(n),Fi(iE),Fi(r0),Fi(yb),Fi(i0),Fi(cS),Ue(n.statements,go),go(n.endOfFileToken),$lt(n),of(n)&&_v(n),i(()=>{!n.isDeclarationFile&&(Y.noUnusedLocals||Y.noUnusedParameters)&&oRe(zRe(n),(l,u,p)=>{!bN(l)&&WRe(u,!!(l.flags&16777216))&&$o.add(p)}),n.isDeclarationFile||xst()}),Y.importsNotUsedAsValues===2&&!n.isDeclarationFile&&Zl(n)&&Wlt(n),of(n)&&VRe(n),iE.length&&(Ue(iE,Lst),Fi(iE)),r0.length&&(Ue(r0,Ist),Fi(r0)),yb.length&&(Ue(yb,Rst),Fi(yb)),i0.length&&(Ue(i0,Ost),Fi(i0)),a.flags|=1}}function qRe(n,a){try{return o=a,tct(n)}finally{o=void 0}}function cse(){for(const n of r)n();r=[]}function use(n){cse();const a=i;i=l=>l(),Zlt(n),i=a}function tct(n){if(n){cse();const a=$o.getGlobalDiagnostics(),l=a.length;use(n);const u=$o.getDiagnostics(n.fileName),p=$o.getGlobalDiagnostics();if(p!==a){const g=mce(a,p,Ck);return ba(g,u)}else if(l===0&&p.length>0)return ba(p,u);return u}return Ue(e.getSourceFiles(),use),$o.getDiagnostics()}function nct(){return cse(),$o.getGlobalDiagnostics()}function rct(n,a){if(n.flags&33554432)return[];const l=so();let u=!1;return p(),l.delete("this"),Tie(l);function p(){for(;n;){switch(Nm(n)&&n.locals&&!Qm(n)&&x(n.locals,a),n.kind){case 308:if(!Zl(n))break;case 264:R(Ir(n).exports,a&2623475);break;case 263:x(Ir(n).exports,a&8);break;case 228:n.name&&g(n.symbol,a);case 260:case 261:u||x(nv(Ir(n)),a&788968);break;case 215:n.name&&g(n.symbol,a);break}ife(n)&&g(Ct,a),u=Ja(n),n=n.parent}x(ze,a)}function g(M,J){if(Tk(M)&J){const $=M.escapedName;l.has($)||l.set($,M)}}function x(M,J){J&&M.forEach($=>{g($,J)})}function R(M,J){J&&M.forEach($=>{!Al($,278)&&!Al($,277)&&g($,J)})}}function ict(n){return n.kind===79&&yC(n.parent)&&ka(n.parent)===n}function JRe(n){for(;n.parent.kind===163;)n=n.parent;return n.parent.kind===180}function act(n){for(;n.parent.kind===208;)n=n.parent;return n.parent.kind===230}function KRe(n,a){let l,u=Ac(n);for(;u&&!(l=a(u));)u=Ac(u);return l}function oct(n){return!!nr(n,a=>ql(a)&&p_(a.body)||to(a)?!0:di(a)||Qs(a)?"quit":!1)}function dse(n,a){return!!KRe(n,l=>l===a)}function sct(n){for(;n.parent.kind===163;)n=n.parent;if(n.parent.kind===268)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===274)return n.parent.expression===n?n.parent:void 0}function mj(n){return sct(n)!==void 0}function lct(n){switch(Ll(n.parent.parent)){case 1:case 3:return Xd(n.parent);case 4:case 2:case 5:return Ir(n.parent.parent)}}function cct(n){let a=n.parent;for(;Cd(a);)n=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===n)return a}function XRe(n){if(mg(n))return Xd(n.parent);if(fr(n)&&n.parent.kind===208&&n.parent===n.parent.parent.left&&!Ni(n)&&!sb(n)){const a=lct(n);if(a)return a}if(n.parent.kind===274&&zl(n)){const a=Nl(n,2998271,!0);if(a&&a!==an)return a}else if(nf(n)&&mj(n)){const a=Q0(n,268);return D.assert(a!==void 0),Np(n,!0)}if(nf(n)){const a=cct(n);if(a){fi(a);const l=Jr(n).resolvedSymbol;return l===an?void 0:l}}for(;t_e(n);)n=n.parent;if(act(n)){let a=0;n.parent.kind===230?(a=vh(n)?788968:111551,cO(n.parent)&&(a|=111551)):a=1920,a|=2097152;const l=zl(n)?Nl(n,a):void 0;if(l)return l}if(n.parent.kind===344)return qN(n.parent);if(n.parent.kind===165&&n.parent.parent.kind===348){D.assert(!fr(n));const a=Efe(n.parent);return a&&a.symbol}if(_g(n)){if(Cl(n))return;const a=nr(n,Im(dx,ew,sb)),l=a?901119:111551;if(n.kind===79){if(rk(n)&&zL(n)){const p=ooe(n.parent);return p===an?void 0:p}const u=Nl(n,l,!1,!0,$0(n));if(!u&&a){const p=nr(n,Im(di,id));if(p)return G4(n,!1,Ir(p))}if(u&&a){const p=yx(n);if(p&&B1(p)&&p===u.valueDeclaration)return Nl(n,l,!0,!0,Zn(p))||u}return u}else{if(Ni(n))return HV(n);if(n.kind===208||n.kind===163){const u=Jr(n);if(u.resolvedSymbol)return u.resolvedSymbol;if(n.kind===208){if(Pwe(n,0),!u.resolvedSymbol){const p=Ql(n.expression),g=Eie(p,$g(n.name));if(g.length&&p.members){const R=up(p).members.get("__index");if(g===Lu(p))u.resolvedSymbol=R;else if(R){const M=Wi(R),J=ia(g,ge=>ge.declaration),$=Vt(J,ms).join(",");if(M.filteredIndexSymbolCache||(M.filteredIndexSymbolCache=new Map),M.filteredIndexSymbolCache.has($))u.resolvedSymbol=M.filteredIndexSymbolCache.get($);else{const ge=ts(131072,"__index");ge.declarations=ia(g,Ne=>Ne.declaration),ge.parent=p.aliasSymbol?p.aliasSymbol:p.symbol?p.symbol:R_(ge.declarations[0].parent),M.filteredIndexSymbolCache.set($,ge),u.resolvedSymbol=M.filteredIndexSymbolCache.get($)}}}}}else Mwe(n,0);return!u.resolvedSymbol&&a&&Cd(n)?G4(n):u.resolvedSymbol}else if(sb(n))return G4(n)}}else if(JRe(n)){const a=n.parent.kind===180?788968:1920,l=Nl(n,a,!1,!0);return l&&l!==an?l:zU(n)}if(n.parent.kind===179)return Nl(n,1)}function G4(n,a,l){if(nf(n)){let x=Nl(n,901119,a,!0,$0(n));if(!x&&He(n)&&l&&(x=as(Kd(mf(l),n.escapedText,901119))),x)return x}const u=He(n)?l:G4(n.left,a,l),p=He(n)?n.escapedText:n.right.escapedText;if(u){const g=u.flags&111551&&co(ar(u),"prototype"),x=g?ar(g):Us(u);return co(x,p)}}function R_(n,a){if(qi(n))return Zl(n)?as(n.symbol):void 0;const{parent:l}=n,u=l.parent;if(!(n.flags&33554432)){if(Oge(n)){const p=Ir(l);return sx(n.parent)&&n.parent.propertyName===n?ioe(p):p}else if(XN(n))return Ir(l.parent);if(n.kind===79){if(mj(n))return XRe(n);if(l.kind===205&&u.kind===203&&n===l.propertyName){const p=RS(u),g=co(p,n.escapedText);if(g)return g}else if(Xk(l)&&l.name===n)return l.keywordToken===103&&Mr(n)==="target"?Doe(l).symbol:l.keywordToken===100&&Mr(n)==="meta"?iIe().members.get("meta"):void 0}switch(n.kind){case 79:case 80:case 208:case 163:if(!Tx(n))return XRe(n);case 108:const p=Sd(n,!1,!1);if(Ka(p)){const R=Fp(p);if(R.thisParameter)return R.thisParameter}if(N3(n))return ga(n).symbol;case 194:return nV(n).symbol;case 106:return ga(n).symbol;case 135:const g=n.parent;return g&&g.kind===173?g.parent.symbol:void 0;case 10:case 14:if(X0(n.parent.parent)&&ik(n.parent.parent)===n||(n.parent.kind===269||n.parent.kind===275)&&n.parent.moduleSpecifier===n||fr(n)&&vl(Y)!==100&&xd(n.parent,!1)||sf(n.parent)||ab(n.parent)&&K0(n.parent.parent)&&n.parent.parent.argument===n.parent)return du(n,n,a);if(no(l)&&px(l)&&l.arguments[1]===n)return Ir(l);case 8:const x=cl(l)?l.argumentExpression===n?Du(l.expression):void 0:ab(l)&&Ux(u)?fi(u.objectType):void 0;return x&&co(x,sl(n.text));case 88:case 98:case 38:case 84:return Xd(n.parent);case 202:return K0(n)?R_(n.argument.literal,a):void 0;case 93:return Gl(n.parent)?D.checkDefined(n.parent.symbol):void 0;case 100:case 103:return Xk(n.parent)?yDe(n.parent).symbol:void 0;case 233:return ga(n).symbol;default:return}}}function uct(n){if(He(n)&&Fr(n.parent)&&n.parent.name===n){const a=$g(n),l=Du(n.parent.expression),u=l.flags&1048576?l.types:[l];return ma(u,p=>lr(Lu(p),g=>K2(a,g.keyType)))}}function dct(n){if(n&&n.kind===300)return Nl(n.name,2208703)}function fct(n){return dd(n)?n.parent.parent.moduleSpecifier?Pf(n.parent.parent,n):Nl(n.propertyName||n.name,2998271):Nl(n,2998271)}function RS(n){if(qi(n)&&!Zl(n)||n.flags&33554432)return Ce;const a=Rq(n),l=a&&qu(Ir(a.class));if(vh(n)){const u=fi(n);return l?Uf(u,l.thisType):u}if(_g(n))return YRe(n);if(l&&!a.isImplements){const u=Yc(Po(l));return u?Uf(u,l.thisType):Ce}if(yC(n)){const u=Ir(n);return Us(u)}if(ict(n)){const u=R_(n);return u?Us(u):Ce}if(vu(n)){const u=Ir(n);return u?ar(u):Ce}if(Oge(n)){const u=R_(n);return u?ar(u):Ce}if(Xa(n))return rs(n.parent,!0,0)||Ce;if(mj(n)){const u=R_(n);if(u){const p=Us(u);return ns(p)?ar(u):p}}return Xk(n.parent)&&n.parent.keywordToken===n.kind?yDe(n.parent):Ce}function hj(n){if(D.assert(n.kind===207||n.kind===206),n.parent.kind===247){const p=M4(n.parent);return qE(n,p||Ce)}if(n.parent.kind===223){const p=Du(n.parent.right);return qE(n,p||Ce)}if(n.parent.kind===299){const p=ao(n.parent.parent,Ls),g=hj(p)||Ce,x=jA(p.properties,n.parent);return RDe(p,g,x)}const a=ao(n.parent,Gu),l=hj(a)||Ce,u=pv(65,l,We,n.parent)||Ce;return NDe(a,l,a.elements.indexOf(n),u)}function _ct(n){const a=hj(ao(n.parent.parent,qI));return a&&co(a,n.escapedText)}function YRe(n){return yk(n)&&(n=n.parent),yd(Du(n))}function $Re(n){const a=Xd(n.parent);return Ja(n)?ar(a):Us(a)}function QRe(n){const a=n.name;switch(a.kind){case 79:return jf(Mr(a));case 8:case 10:return jf(a.text);case 164:const l=ny(a);return Mc(l,12288)?l:ue;default:return D.fail("Unsupported property name.")}}function fse(n){n=Ku(n);const a=so(hs(n)),l=za(n,0).length?dc:za(n,1).length?_d:void 0;return l&&Ue(hs(l),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),Jy(a)}function gj(n){return za(n,0).length!==0||za(n,1).length!==0}function ZRe(n){const a=pct(n);return a?ma(a,ZRe):[n]}function pct(n){if(Il(n)&6)return ia(Wi(n).containingType.types,a=>co(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:u}}=n;return a?[a,l]:u?[u]:ZE(mct(n))}}function mct(n){let a,l=n;for(;l=Wi(l).target;)a=l;return a}function hct(n){if(xl(n))return!1;const a=Ea(n,He);if(!a)return!1;const l=a.parent;return l?!((Fr(l)||qc(l))&&l.name===a)&&U4(a)===Ct:!1}function gct(n){let a=du(n.parent,n);if(!a||ZI(a))return!0;const l=mE(a);a=hd(a);const u=Wi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=l?!!(a.flags&111551):af(jh(a),p)),u.exportsSomeValue;function p(g){return g=Yl(g),g&&!!(uu(g)&111551)}}function yct(n){return mN(n.parent)&&n===n.parent.name}function vct(n,a){var l;const u=Ea(n,He);if(u){let p=U4(u,yct(u));if(p){if(p.flags&1048576){const x=as(p.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;p=x}const g=gd(p);if(g){if(g.flags&512&&((l=g.valueDeclaration)==null?void 0:l.kind)===308){const x=g.valueDeclaration,R=Zn(u);return x!==R?void 0:x}return nr(u.parent,x=>mN(x)&&Ir(x)===g)}}}}function bct(n){const a=xpe(n);if(a)return a;const l=Ea(n,He);if(l){const u=Nct(l);if(jy(u,111551)&&!Rd(u,111551))return md(u)}}function Ect(n){return n.valueDeclaration&&ps(n.valueDeclaration)&&RA(n.valueDeclaration).parent.kind===295}function eNe(n){if(n.flags&418&&n.valueDeclaration&&!qi(n.valueDeclaration)){const a=Wi(n);if(a.isDeclarationWithCollidingName===void 0){const l=Mm(n.valueDeclaration);if(Mde(l)||Ect(n)){const u=Jr(n.valueDeclaration);if(_l(l.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){const p=u.flags&32768,g=Iv(l,!1),x=l.kind===238&&Iv(l.parent,!1);a.isDeclarationWithCollidingName=!qde(l)&&(!p||!g&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Tct(n){if(!xl(n)){const a=Ea(n,He);if(a){const l=U4(a);if(l&&eNe(l))return l.valueDeclaration}}}function Sct(n){const a=Ea(n,vu);if(a){const l=Ir(a);if(l)return eNe(l)}return!1}function tNe(n){switch(D.assert(!Y.verbatimModuleSyntax),n.kind){case 268:return yj(Ir(n));case 270:case 271:case 273:case 278:const a=Ir(n);return!!a&&yj(a)&&!Rd(a,111551);case 275:const l=n.exportClause;return!!l&&(kh(l)||kt(l.elements,tNe));case 274:return n.expression&&n.expression.kind===79?yj(Ir(n)):!0}return!1}function xct(n){const a=Ea(n,su);return a===void 0||a.parent.kind!==308||!YA(a)?!1:yj(Ir(a))&&a.moduleReference&&!Cl(a.moduleReference)}function yj(n){var a;if(!n)return!1;const l=Op(nc(n));return l===an?!0:!!(((a=uu(l))!=null?a:-1)&111551)&&(w1(Y)||!cR(l))}function cR(n){return Goe(n)||!!n.constEnumOnlyModule}function vj(n,a){if(D.assert(!Y.verbatimModuleSyntax),Mg(n)){const l=Ir(n),u=l&&Wi(l);if(u!=null&&u.referenced)return!0;const p=Wi(l).aliasTarget;if(p&&Fu(n)&1&&uu(p)&111551&&(w1(Y)||!cR(p)))return!0}return a?!!Ma(n,l=>vj(l,a)):!1}function nNe(n){if(p_(n.body)){if(kv(n)||gy(n))return!1;const a=Ir(n),l=Gb(a);return l.length>1||l.length===1&&l[0].declaration!==n}return!1}function rNe(n){return!!W&&!AD(n)&&!am(n)&&!!n.initializer&&!Yr(n,16476)}function Act(n){return W&&AD(n)&&!n.initializer&&Yr(n,16476)}function Cct(n){const a=Ea(n,yc);if(!a)return!1;const l=Ir(a);return!l||!(l.flags&16)?!1:!!af(mf(l),u=>u.flags&111551&&u.valueDeclaration&&Fr(u.valueDeclaration))}function Lct(n){const a=Ea(n,yc);if(!a)return rt;const l=Ir(a);return l&&hs(ar(l))||rt}function pA(n){var a;const l=n.id||0;return l<0||l>=gb.length?0:((a=gb[l])==null?void 0:a.flags)||0}function bj(n){return MRe(n.parent),Jr(n).enumMemberValue}function iNe(n){switch(n.kind){case 302:case 208:case 209:return!0}return!1}function _se(n){if(n.kind===302)return bj(n);const a=Jr(n).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(T1(l.parent))return bj(l)}}function pse(n){return!!(n.flags&524288)&&za(n,0).length>0}function Ict(n,a){var l;const u=Ea(n,nf);if(!u||a&&(a=Ea(a),!a))return 0;let p=!1;if(Cd(u)){const J=Nl(Lf(u),111551,!0,!0,a);p=!!((l=J==null?void 0:J.declarations)!=null&&l.every(g1))}const g=Nl(u,111551,!0,!0,a),x=g&&g.flags&2097152?nc(g):g;p||(p=!!(g&&Rd(g,111551)));const R=Nl(u,788968,!0,!1,a);if(x&&x===R){const J=Pie(!1);if(J&&x===J)return 9;const $=ar(x);if($&&x0($))return p?10:1}if(!R)return p?11:0;const M=Us(R);return ns(M)?p?11:0:M.flags&3?11:Mc(M,245760)?2:Mc(M,528)?6:Mc(M,296)?3:Mc(M,2112)?4:Mc(M,402653316)?5:Mo(M)?7:Mc(M,12288)?8:pse(M)?10:Hf(M)?7:11}function kct(n,a,l,u,p){const g=Ea(n,tfe);if(!g)return N.createToken(131);const x=Ir(g);let R=x&&!(x.flags&133120)?Kb(ar(x)):Ce;return R.flags&8192&&R.symbol===x&&(l|=1048576),p&&(R=ey(R)),Ye.typeToTypeNode(R,a,l|1024,u)}function wct(n,a,l,u){const p=Ea(n,Ka);if(!p)return N.createToken(131);const g=Fp(p);return Ye.typeToTypeNode(ys(g),a,l|1024,u)}function Dct(n,a,l,u){const p=Ea(n,vt);if(!p)return N.createToken(131);const g=Zd(YRe(p));return Ye.typeToTypeNode(g,a,l|1024,u)}function Rct(n){return ze.has(sl(n))}function U4(n,a){const l=Jr(n).resolvedSymbol;if(l)return l;let u=n;if(a){const p=n.parent;vu(p)&&n===p.name&&(u=LE(p))}return _l(u,n.escapedText,3257279,void 0,void 0,!0)}function Nct(n){const a=Jr(n).resolvedSymbol;return a&&a!==an?a:_l(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Oct(n){if(!xl(n)){const a=Ea(n,He);if(a){const l=U4(a);if(l)return Op(l).valueDeclaration}}}function Pct(n){return b3(n)||Ki(n)&&fg(n)?zb(ar(Ir(n))):!1}function Mct(n,a,l){const u=n.flags&1056?Ye.symbolToExpression(n.symbol,111551,a,void 0,l):n===Pe?N.createTrue():n===it&&N.createFalse();if(u)return u;const p=n.value;return typeof p=="object"?N.createBigIntLiteral(p):typeof p=="number"?N.createNumericLiteral(p):N.createStringLiteral(p)}function Fct(n,a){const l=ar(Ir(n));return Mct(l,n,a)}function aNe(n){return n?(Tb(n),Zn(n).localJsxFactory||wg):wg}function mse(n){if(n){const a=Zn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),u=Va(l)?l[0]:l;if(u)return a.localJsxFragmentFactory=Qx(u.arguments.factory,P),a.localJsxFragmentFactory}}if(Y.jsxFragmentFactory)return Qx(Y.jsxFragmentFactory,P)}function Bct(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:M},J,$)=>{if(!(M!=null&&M.resolvedFileName))return;const ge=e.getSourceFile(M.resolvedFileName);ge&&R(ge,J,$)})),{getReferencedExportContainer:vct,getReferencedImportDeclaration:bct,getReferencedDeclarationWithCollidingName:Tct,isDeclarationWithCollidingName:Sct,isValueAliasDeclaration:M=>{const J=Ea(M);return J?tNe(J):!0},hasGlobalName:Rct,isReferencedAliasDeclaration:(M,J)=>{const $=Ea(M);return $?vj($,J):!0},getNodeCheckFlags:M=>{const J=Ea(M);return J?pA(J):0},isTopLevelValueImportEqualsWithEntityName:xct,isDeclarationVisible:I_,isImplementationOfOverload:nNe,isRequiredInitializedParameter:rNe,isOptionalUninitializedParameterProperty:Act,isExpandoFunctionDeclaration:Cct,getPropertiesOfContainerFunction:Lct,createTypeOfDeclaration:kct,createReturnTypeOfSignatureDeclaration:wct,createTypeOfExpression:Dct,createLiteralConstValue:Fct,isSymbolAccessible:Ky,isEntityNameVisible:V2,getConstantValue:M=>{const J=Ea(M,iNe);return J?_se(J):void 0},collectLinkedAliases:CE,getReferencedValueDeclaration:Oct,getTypeReferenceSerializationKind:Ict,isOptionalParameter:AD,moduleExportsSomeValue:gct,isArgumentsLocalBinding:hct,getExternalModuleFileFromDeclaration:M=>{const J=Ea(M,Kde);return J&&hse(J)},getTypeReferenceDirectivesForEntityName:p,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Pct,isLateBound:M=>{const J=Ea(M,vu),$=J&&Ir(J);return!!($&&Il($)&4096)},getJsxFactoryEntity:aNe,getJsxFragmentFactoryEntity:mse,getAllAccessorDeclarations(M){M=Ea(M,$M);const J=M.kind===175?174:175,$=Al(Ir(M),J),ge=$&&$.pos<M.pos?$:M,Ne=$&&$.pos<M.pos?M:$,De=M.kind===175?M:$,_t=M.kind===174?M:$;return{firstAccessor:ge,secondAccessor:Ne,setAccessor:De,getAccessor:_t}},getSymbolOfExternalModuleSpecifier:M=>Uh(M,M,void 0),isBindingCapturedByNode:(M,J)=>{const $=Ea(M),ge=Ea(J);return!!$&&!!ge&&(Ki(ge)||ps(ge))&&mrt($,ge)},getDeclarationStatementsForSourceFile:(M,J,$,ge)=>{const Ne=Ea(M);D.assert(Ne&&Ne.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const De=Ir(M);return De?De.exports?Ye.symbolTableToDeclarationStatements(De.exports,M,J,$,ge):[]:M.locals?Ye.symbolTableToDeclarationStatements(M.locals,M,J,$,ge):[]},isImportRequiredByAugmentation:l};function l(M){const J=Zn(M);if(!J.symbol)return!1;const $=hse(M);if(!$||$===J)return!1;const ge=jh(J.symbol);for(const Ne of Ro(ge.values()))if(Ne.mergeId){const De=as(Ne);if(De.declarations){for(const _t of De.declarations)if(Zn(_t)===$)return!0}}return!1}function u(M){return M.parent&&M.parent.kind===230&&M.parent.parent&&M.parent.parent.kind===294}function p(M){if(!a)return;let J;M.parent.kind===164?J=1160127:(J=790504,(M.kind===79&&VL(M)||M.kind===208&&!u(M))&&(J=1160127));const $=Nl(M,J,!0);return $&&$!==an?g($,J):void 0}function g(M,J){if(!a||!x(M))return;let $;for(const ge of M.declarations)if(ge.symbol&&ge.symbol.flags&J){const Ne=Zn(ge),De=a.get(Ne.path);if(De)($||($=[])).push(De);else return}return $}function x(M){if(!M.declarations)return!1;let J=M;for(;;){const $=gd(J);if($)J=$;else break}if(J.valueDeclaration&&J.valueDeclaration.kind===308&&J.flags&512)return!1;for(const $ of M.declarations){const ge=Zn($);if(a.has(ge.path))return!0}return!1}function R(M,J,$){if(!a.has(M.path)){a.set(M.path,[J,$]);for(const{fileName:ge,resolutionMode:Ne}of M.referencedFiles){const De=LF(ge,M.fileName),_t=e.getSourceFile(De);_t&&R(_t,J,Ne||M.impliedNodeFormat)}}}}function hse(n){const a=n.kind===264?ai(n.name,Vo):QA(n),l=Uh(a,a,void 0);if(l)return Al(l,308)}function Gct(){for(const a of e.getSourceFiles())dge(a,Y);Dr=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!of(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const u of l.declarations)$o.add(Nr(u,_.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Pc(ze,a.locals)}a.jsGlobalAugmentations&&Pc(ze,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(ho=ba(ho,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,p)=>{ze.has(p)||ze.set(p,u)})}if(n)for(const a of n)for(const l of a)Yp(l.parent)&&fS(l);if(EL(ze,bb,_.Declaration_name_conflicts_with_built_in_global_identifier_0),Wi(Fe).type=Ze,Wi(Ct).type=lc("IArguments",0,!0),Wi(an).type=Ce,Wi(st).type=hf(16,st),Es=lc("Array",1,!0),Ya=lc("Object",0,!0),dl=lc("Function",0,!0),dc=me&&lc("CallableFunction",0,!0)||dl,_d=me&&lc("NewableFunction",0,!0)||dl,fl=lc("String",0,!0),qd=lc("Number",0,!0),Wl=lc("Boolean",0,!0),Nf=lc("RegExp",0,!0),Dt=Iu(we),Nn=Iu(yt),Nn===fa&&(Nn=Ns(void 0,te,rt,rt,rt)),ds=cIe("ReadonlyArray",1)||Es,Xi=ds?wD(ds,[we]):Dt,xe=cIe("ThisType",1),n)for(const a of n)for(const l of a)Yp(l.parent)||fS(l);Dr.forEach(({firstFile:a,secondFile:l,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:p,firstFileLocations:g,secondFileLocations:x},R)=>{const M=p?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0;for(const J of g)cu(J,M,R,x);for(const J of x)cu(J,M,R,g)});else{const p=Ro(u.keys()).join(", ");$o.add(Ko(Nr(a,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),Nr(l,_.Conflicts_are_in_this_file))),$o.add(Ko(Nr(l,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),Nr(a,_.Conflicts_are_in_this_file)))}}),Dr=void 0}function pc(n,a){if((c&a)!==a&&Y.importHelpers){const l=Zn(n);if(fx(l,Y)&&!(n.flags&16777216)){const u=Vct(l,n);if(u!==an){const p=a&~c;for(let g=1;g<=16777216;g<<=1)if(p&g)for(const x of Uct(g)){if(s.has(x))continue;s.add(x);const R=Kd(u.exports,sl(x),111551);R?g&524288?kt(Gb(R),M=>ef(M)>3)||Ke(n,_.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,rb,x,4):g&1048576?kt(Gb(R),M=>ef(M)>4)||Ke(n,_.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,rb,x,5):g&1024&&(kt(Gb(R),M=>ef(M)>2)||Ke(n,_.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,rb,x,3)):Ke(n,_.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,rb,x)}}c|=a}}}function Uct(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return re?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return D.fail("Unrecognized helper")}}function Vct(n,a){return f||(f=bc(n,rb,_.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||an),f}function uh(n){const a=Wct(n)||jct(n);if(a!==void 0)return a;if(Ba(n)&&I1(n))return Fc(n,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let l,u,p,g,x,R=0,M=!1,J=!1;for(const $ of n.modifiers)if(Bu($)){if(R3(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===174||n.kind===175)){const ge=ST(n.parent.members,n);if($f(ge.firstAccessor)&&n===ge.secondAccessor)return Fc(n,_.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===171&&!p_(n.body)?Fc(n,_.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Fc(n,_.Decorators_are_not_valid_here);if(R&-132098)return En($,_.Decorators_are_not_valid_here);if(J&&R&126975){D.assertIsDefined(x);const ge=Zn($);return Zb(ge)?!1:(Ko(Ke($,_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Nr(x,_.Decorator_used_before_export_here)),!0)}R|=131072,R&126975?R&1&&(M=!0):J=!0,x??(x=$)}else{if($.kind!==146){if(n.kind===168||n.kind===170)return En($,_._0_modifier_cannot_appear_on_a_type_member,yo($.kind));if(n.kind===178&&($.kind!==124||!di(n.parent)))return En($,_._0_modifier_cannot_appear_on_an_index_signature,yo($.kind))}if($.kind!==101&&$.kind!==145&&$.kind!==85&&n.kind===165)return En($,_._0_modifier_cannot_appear_on_a_type_parameter,yo($.kind));switch($.kind){case 85:if(n.kind!==263&&n.kind!==165)return En(n,_.A_class_member_cannot_have_the_0_keyword,yo(85));const ge=n.parent;if(n.kind===165&&!(Qs(ge)||di(ge)||Lh(ge)||zk(ge)||AC(ge)||qO(ge)||Ch(ge)))return En($,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,yo($.kind));break;case 161:if(R&16384)return En($,_._0_modifier_already_seen,"override");if(R&2)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(R&64)return En($,_._0_modifier_must_precede_1_modifier,"override","readonly");if(R&128)return En($,_._0_modifier_must_precede_1_modifier,"override","accessor");if(R&512)return En($,_._0_modifier_must_precede_1_modifier,"override","async");R|=16384,g=$;break;case 123:case 122:case 121:const Ne=gf(xx($.kind));if(R&28)return En($,_.Accessibility_modifier_already_seen);if(R&16384)return En($,_._0_modifier_must_precede_1_modifier,Ne,"override");if(R&32)return En($,_._0_modifier_must_precede_1_modifier,Ne,"static");if(R&128)return En($,_._0_modifier_must_precede_1_modifier,Ne,"accessor");if(R&64)return En($,_._0_modifier_must_precede_1_modifier,Ne,"readonly");if(R&512)return En($,_._0_modifier_must_precede_1_modifier,Ne,"async");if(n.parent.kind===265||n.parent.kind===308)return En($,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ne);if(R&256)return $.kind===121?En($,_._0_modifier_cannot_be_used_with_1_modifier,Ne,"abstract"):En($,_._0_modifier_must_precede_1_modifier,Ne,"abstract");if(Zu(n))return En($,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);R|=xx($.kind);break;case 124:if(R&32)return En($,_._0_modifier_already_seen,"static");if(R&64)return En($,_._0_modifier_must_precede_1_modifier,"static","readonly");if(R&512)return En($,_._0_modifier_must_precede_1_modifier,"static","async");if(R&128)return En($,_._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===265||n.parent.kind===308)return En($,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===166)return En($,_._0_modifier_cannot_appear_on_a_parameter,"static");if(R&256)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(R&16384)return En($,_._0_modifier_must_precede_1_modifier,"static","override");R|=32,l=$;break;case 127:if(R&128)return En($,_._0_modifier_already_seen,"accessor");if(R&64)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(R&2)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==169)return En($,_.accessor_modifier_can_only_appear_on_a_property_declaration);R|=128;break;case 146:if(R&64)return En($,_._0_modifier_already_seen,"readonly");if(n.kind!==169&&n.kind!==168&&n.kind!==178&&n.kind!==166)return En($,_.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(R&128)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");R|=64;break;case 93:if(Y.verbatimModuleSyntax&&!(n.flags&16777216)&&n.kind!==262&&n.kind!==261&&n.kind!==264&&n.parent.kind===308&&(de===1||Zn(n).impliedNodeFormat===1))return En($,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R&1)return En($,_._0_modifier_already_seen,"export");if(R&2)return En($,_._0_modifier_must_precede_1_modifier,"export","declare");if(R&256)return En($,_._0_modifier_must_precede_1_modifier,"export","abstract");if(R&512)return En($,_._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return En($,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===166)return En($,_._0_modifier_cannot_appear_on_a_parameter,"export");R|=1;break;case 88:const De=n.parent.kind===308?n.parent:n.parent.parent;if(De.kind===264&&!Mu(De))return En($,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(R&1){if(M)return En(x,_.Decorators_are_not_valid_here)}else return En($,_._0_modifier_must_precede_1_modifier,"export","default");R|=1024;break;case 136:if(R&2)return En($,_._0_modifier_already_seen,"declare");if(R&512)return En($,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(R&16384)return En($,_._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!to(n))return En($,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===166)return En($,_._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&16777216&&n.parent.kind===265)return En($,_.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Zu(n))return En($,_._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(R&128)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");R|=2,u=$;break;case 126:if(R&256)return En($,_._0_modifier_already_seen,"abstract");if(n.kind!==260&&n.kind!==182){if(n.kind!==171&&n.kind!==169&&n.kind!==174&&n.kind!==175)return En($,_.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===260&&Yr(n.parent,256)))return En($,_.Abstract_methods_can_only_appear_within_an_abstract_class);if(R&32)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(R&8)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(R&512&&p)return En(p,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(R&16384)return En($,_._0_modifier_must_precede_1_modifier,"abstract","override");if(R&128)return En($,_._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(gu(n)&&n.name.kind===80)return En($,_._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");R|=256;break;case 132:if(R&512)return En($,_._0_modifier_already_seen,"async");if(R&2||n.parent.flags&16777216)return En($,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===166)return En($,_._0_modifier_cannot_appear_on_a_parameter,"async");if(R&256)return En($,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");R|=512,p=$;break;case 101:case 145:const _t=$.kind===101?32768:65536,Bt=$.kind===101?"in":"out";if(n.kind!==165||!(id(n.parent)||di(n.parent)||nm(n.parent)))return En($,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Bt);if(R&_t)return En($,_._0_modifier_already_seen,Bt);if(_t&32768&&R&65536)return En($,_._0_modifier_must_precede_1_modifier,"in","out");R|=_t;break}}return n.kind===173?R&32?En(l,_._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):R&16384?En(g,_._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):R&512?En(p,_._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===269||n.kind===268)&&R&2?En(u,_.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===166&&R&16476&&Xa(n.name)?En(n,_.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===166&&R&16476&&n.dotDotDotToken?En(n,_.A_parameter_property_cannot_be_declared_using_a_rest_parameter):R&512?qct(n,p):!1}function jct(n){if(!n.modifiers)return!1;const a=Hct(n);return a&&Fc(a,_.Modifiers_cannot_appear_here)}function gse(n,a){const l=nn(n.modifiers,uo);return l&&l.kind!==a?l:void 0}function Hct(n){switch(n.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return nn(n.modifiers,uo);default:if(n.parent.kind===265||n.parent.kind===308)return;switch(n.kind){case 259:return gse(n,132);case 260:case 182:return gse(n,126);case 228:case 261:case 240:case 262:return nn(n.modifiers,uo);case 263:return gse(n,85);default:D.assertNever(n)}}}function Wct(n){const a=zct(n);return a&&Fc(a,_.Decorators_are_not_valid_here)}function zct(n){return LK(n)?nn(n.modifiers,Bu):void 0}function qct(n,a){switch(n.kind){case 171:case 259:case 215:case 216:return!1}return En(a,_._0_modifier_cannot_be_used_here,"async")}function NS(n,a=_.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?e1(n[0],n.end-1,1,a):!1}function oNe(n,a){if(n&&n.length===0){const l=n.pos-1,u=Jo(a.text,n.end)+1;return e1(a,l,u-l,_.Type_parameter_list_cannot_be_empty)}return!1}function Jct(n){let a=!1;const l=n.length;for(let u=0;u<l;u++){const p=n[u];if(p.dotDotDotToken){if(u!==l-1)return En(p.dotDotDotToken,_.A_rest_parameter_must_be_last_in_a_parameter_list);if(p.flags&16777216||NS(n,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),p.questionToken)return En(p.questionToken,_.A_rest_parameter_cannot_be_optional);if(p.initializer)return En(p.name,_.A_rest_parameter_cannot_have_an_initializer)}else if(AD(p)){if(a=!0,p.questionToken&&p.initializer)return En(p.name,_.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!p.initializer)return En(p.name,_.A_required_parameter_cannot_follow_an_optional_parameter)}}function Kct(n){return lr(n,a=>!!a.initializer||Xa(a.name)||yh(a))}function Xct(n){if(P>=3){const a=n.body&&lo(n.body)&&SK(n.body.statements);if(a){const l=Kct(n.parameters);if(Ae(l)){Ue(l,p=>{Ko(Ke(p,_.This_parameter_is_not_allowed_with_use_strict_directive),Nr(a,_.use_strict_directive_used_here))});const u=l.map((p,g)=>g===0?Nr(p,_.Non_simple_parameter_declared_here):Nr(p,_.and_here));return Ko(Ke(a,_.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function Ej(n){const a=Zn(n);return uh(n)||oNe(n.typeParameters,a)||Jct(n.parameters)||$ct(n,a)||Qs(n)&&Xct(n)}function Yct(n){const a=Zn(n);return nut(n)||oNe(n.typeParameters,a)}function $ct(n,a){if(!Js(n))return!1;n.typeParameters&&!(Ae(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Sc(a.fileName,[".mts",".cts"])&&En(n.typeParameters[0],_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=n,u=ol(a,l.pos).line,p=ol(a,l.end).line;return u!==p&&En(l,_.Line_terminator_not_permitted_before_arrow)}function Qct(n){const a=n.parameters[0];if(n.parameters.length!==1)return En(a?a.name:n,_.An_index_signature_must_have_exactly_one_parameter);if(NS(n.parameters,_.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return En(a.dotDotDotToken,_.An_index_signature_cannot_have_a_rest_parameter);if(Q3(a))return En(a.name,_.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return En(a.questionToken,_.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return En(a.name,_.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return En(a.name,_.An_index_signature_parameter_must_have_a_type_annotation);const l=fi(a.type);return Zh(l,u=>!!(u.flags&8576))||PL(l)?En(a.name,_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):lh(l,HU)?n.type?!1:En(n,_.An_index_signature_must_have_a_type_annotation):En(a.name,_.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Zct(n){return uh(n)||Qct(n)}function eut(n,a){if(a&&a.length===0){const l=Zn(n),u=a.pos-1,p=Jo(l.text,a.end)+1;return e1(l,u,p-u,_.Type_argument_list_cannot_be_empty)}return!1}function V4(n,a){return NS(a)||eut(n,a)}function tut(n){return n.questionDotToken||n.flags&32?En(n.template,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function sNe(n){const a=n.types;if(NS(a))return!0;if(a&&a.length===0){const l=yo(n.token);return e1(n,a.pos,0,_._0_list_cannot_be_empty,l)}return kt(a,lNe)}function lNe(n){return xy(n)&&Wk(n.expression)&&n.typeArguments?En(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):V4(n,n.typeArguments)}function nut(n){let a=!1,l=!1;if(!uh(n)&&n.heritageClauses)for(const u of n.heritageClauses){if(u.token===94){if(a)return Fc(u,_.extends_clause_already_seen);if(l)return Fc(u,_.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Fc(u.types[1],_.Classes_can_only_extend_a_single_class);a=!0}else{if(D.assert(u.token===117),l)return Fc(u,_.implements_clause_already_seen);l=!0}sNe(u)}}function rut(n){let a=!1;if(n.heritageClauses)for(const l of n.heritageClauses){if(l.token===94){if(a)return Fc(l,_.extends_clause_already_seen);a=!0}else return D.assert(l.token===117),Fc(l,_.Interface_declaration_cannot_have_implements_clause);sNe(l)}return!1}function Tj(n){if(n.kind!==164)return!1;const a=n;return a.expression.kind===223&&a.expression.operatorToken.kind===27?En(a.expression,_.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function yse(n){if(n.asteriskToken){if(D.assert(n.kind===259||n.kind===215||n.kind===171),n.flags&16777216)return En(n.asteriskToken,_.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return En(n.asteriskToken,_.An_overload_signature_cannot_be_declared_as_a_generator)}}function vse(n,a){return!!n&&En(n,a)}function cNe(n,a){return!!n&&En(n,a)}function iut(n,a){const l=new Map;for(const u of n.properties){if(u.kind===301){if(a){const x=js(u.expression);if(Gu(x)||Ls(x))return En(u.expression,_.A_rest_element_cannot_contain_a_binding_pattern)}continue}const p=u.name;if(p.kind===164&&Tj(p),u.kind===300&&!a&&u.objectAssignmentInitializer&&En(u.equalsToken,_.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),p.kind===80&&En(p,_.Private_identifiers_are_not_allowed_outside_class_bodies),X_(u)&&u.modifiers)for(const x of u.modifiers)uo(x)&&(x.kind!==132||u.kind!==171)&&En(x,_._0_modifier_cannot_be_used_here,xc(x));else if(dme(u)&&u.modifiers)for(const x of u.modifiers)uo(x)&&En(x,_._0_modifier_cannot_be_used_here,xc(x));let g;switch(u.kind){case 300:case 299:cNe(u.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context),vse(u.questionToken,_.An_object_member_cannot_be_declared_optional),p.kind===8&&Tse(p),g=4;break;case 171:g=8;break;case 174:g=1;break;case 175:g=2;break;default:throw D.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){const x=C1(p);if(x===void 0)continue;const R=l.get(x);if(!R)l.set(x,g);else if(g&8&&R&8)En(p,_.Duplicate_identifier_0,xc(p));else if(g&4&&R&4)En(p,_.An_object_literal_cannot_have_multiple_properties_with_the_same_name,xc(p));else if(g&3&&R&3)if(R!==3&&g!==R)l.set(x,g|R);else return En(p,_.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return En(p,_.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function aut(n){out(n.tagName),V4(n,n.typeArguments);const a=new Map;for(const l of n.attributes.properties){if(l.kind===290)continue;const{name:u,initializer:p}=l;if(!a.get(u.escapedText))a.set(u.escapedText,!0);else return En(u,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(p&&p.kind===291&&!p.expression)return En(p,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function out(n){if(Fr(n)){let l=n;do{const p=a(l.name);if(p)return p;l=l.expression}while(Fr(l));const u=a(l);if(u)return u}function a(l){if(He(l)&&Mr(l).indexOf(":")!==-1)return En(l,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function sut(n){if(n.expression&&iw(n.expression))return En(n.expression,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function uNe(n){if(eg(n))return!0;if(n.kind===247&&n.awaitModifier&&!(n.flags&32768)){const a=Zn(n);if(k3(n)){if(!Zb(a))switch(fx(a,Y)||$o.add(Nr(n.awaitModifier,_.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)),de){case 100:case 199:if(a.impliedNodeFormat===1){$o.add(Nr(n.awaitModifier,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(P>=4)break;default:$o.add(Nr(n.awaitModifier,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Zb(a)){const l=Nr(n.awaitModifier,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Cf(n);if(u&&u.kind!==173){D.assert((jc(u)&2)===0,"Enclosing function should never be an async function.");const p=Nr(u,_.Did_you_mean_to_mark_this_function_as_async);Ko(l,p)}return $o.add(l),!0}return!1}if(XO(n)&&!(n.flags&32768)&&He(n.initializer)&&n.initializer.escapedText==="async")return En(n.initializer,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===258){const a=n.initializer;if(!Ese(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const p=n.kind===246?_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Fc(a.declarations[1],p)}const u=l[0];if(u.initializer){const p=n.kind===246?_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return En(u.name,p)}if(u.type){const p=n.kind===246?_.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return En(u,p)}}}return!1}function lut(n){if(!(n.flags&16777216)&&n.parent.kind!==184&&n.parent.kind!==261){if(P<1)return En(n.name,_.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(P<2&&Ni(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Yr(n,256))return e1(n,n.end-1,1,_._0_expected,"{")}if(n.body){if(Yr(n,256))return En(n,_.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===184||n.parent.kind===261)return En(n.body,_.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return En(n.name,_.An_accessor_cannot_have_type_parameters);if(!cut(n))return En(n.name,n.kind===174?_.A_get_accessor_cannot_have_parameters:_.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===175){if(n.type)return En(n.name,_.A_set_accessor_cannot_have_a_return_type_annotation);const a=D.checkDefined(pk(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return En(a.dotDotDotToken,_.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return En(a.questionToken,_.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return En(n.name,_.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function cut(n){return bse(n)||n.parameters.length===(n.kind===174?0:1)}function bse(n){if(n.parameters.length===(n.kind===174?1:2))return L1(n)}function uut(n){if(n.operator===156){if(n.type.kind!==153)return En(n.type,_._0_expected,yo(153));let a=JN(n.parent);if(fr(a)&&OT(a)){const l=yx(a);l&&(a=tC(l)||l)}switch(a.kind){case 257:const l=a;if(l.name.kind!==79)return En(n,_.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!x3(l))return En(n,_.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return En(a.name,_.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!Ja(a)||!mk(a))return En(a.name,_.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!Yr(a,64))return En(a.name,_.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return En(n,_.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===146&&n.type.kind!==185&&n.type.kind!==186)return Fc(n,_.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,yo(153))}function iI(n,a){if(BQe(n))return En(n,a)}function dNe(n){if(Ej(n))return!0;if(n.kind===171){if(n.parent.kind===207){if(n.modifiers&&!(n.modifiers.length===1&&us(n.modifiers).kind===132))return Fc(n,_.Modifiers_cannot_appear_here);if(vse(n.questionToken,_.An_object_member_cannot_be_declared_optional))return!0;if(cNe(n.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return e1(n,n.end-1,1,_._0_expected,"{")}if(yse(n))return!0}if(di(n.parent)){if(P<2&&Ni(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&16777216)return iI(n.name,_.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===171&&!n.body)return iI(n.name,_.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===261)return iI(n.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===184)return iI(n.name,_.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 dut(n){let a=n;for(;a;){if(PA(a))return En(n,_.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===248&&!Iv(a.statement,!0)?En(n,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 252:if(n.kind===249&&!n.label)return!1;break;default:if(Iv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const l=n.kind===249?_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return En(n,l)}else{const l=n.kind===249?_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return En(n,l)}}function fut(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==zo(a))return En(n,_.A_rest_element_must_be_last_in_a_destructuring_pattern);if(NS(a,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return En(n.name,_.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return e1(n,n.initializer.pos-1,1,_.A_rest_element_cannot_have_an_initializer)}function fNe(n){return Xf(n)||n.kind===221&&n.operator===40&&n.operand.kind===8}function _ut(n){return n.kind===9||n.kind===221&&n.operator===40&&n.operand.kind===9}function put(n){if((Fr(n)||cl(n)&&fNe(n.argumentExpression))&&zl(n.expression))return!!(Ql(n).flags&1056)}function _Ne(n){const a=n.initializer;if(a){const l=!(fNe(a)||put(a)||a.kind===110||a.kind===95||_ut(a));if((b3(n)||Ki(n)&&fg(n))&&!n.type){if(l)return En(a,_.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return En(a,_.Initializers_are_not_allowed_in_ambient_contexts)}}function mut(n){if(n.parent.parent.kind!==246&&n.parent.parent.kind!==247){if(n.flags&16777216)_Ne(n);else if(!n.initializer){if(Xa(n.name)&&!Xa(n.parent))return En(n,_.A_destructuring_declaration_must_have_an_initializer);if(fg(n))return En(n,_.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==240||!n.type||n.initializer||n.flags&16777216)){const l=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,l)}return(de<5||Zn(n).impliedNodeFormat===1)&&de!==4&&!(n.parent.parent.flags&16777216)&&Yr(n.parent.parent,1)&&pNe(n.name),(ek(n)||fg(n))&&mNe(n.name)}function pNe(n){if(n.kind===79){if(Mr(n)==="__esModule")return yut("noEmit",n,_.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const l of a)if(!Rc(l))return pNe(l.name)}return!1}function mNe(n){if(n.kind===79){if(n.escapedText==="let")return En(n,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const l of a)Rc(l)||mNe(l.name)}return!1}function Ese(n){const a=n.declarations;return NS(n.declarations)?!0:n.declarations.length?!1:e1(n,a.pos,a.end-a.pos,_.Variable_declaration_list_cannot_be_empty)}function hNe(n){switch(n.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return hNe(n.parent)}return!0}function hut(n){if(!hNe(n.parent)){if(ek(n.declarationList))return En(n,_.let_declarations_can_only_be_declared_inside_a_block);if(fg(n.declarationList))return En(n,_.const_declarations_can_only_be_declared_inside_a_block)}}function gut(n){const a=n.name.escapedText;switch(n.keywordToken){case 103:if(a!=="target")return En(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,yo(n.keywordToken),"target");break;case 100:if(a!=="meta")return En(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,yo(n.keywordToken),"meta");break}}function Zb(n){return n.parseDiagnostics.length>0}function Fc(n,a,l,u,p){const g=Zn(n);if(!Zb(g)){const x=yy(g,n.pos);return $o.add(Dc(g,x.start,x.length,a,l,u,p)),!0}return!1}function e1(n,a,l,u,p,g,x){const R=Zn(n);return Zb(R)?!1:($o.add(Dc(R,a,l,u,p,g,x)),!0)}function yut(n,a,l,u,p,g){const x=Zn(a);return Zb(x)?!1:(a0(n,a,l,u,p,g),!0)}function En(n,a,l,u,p){const g=Zn(n);return Zb(g)?!1:($o.add(Nr(n,a,l,u,p)),!0)}function vut(n){const a=fr(n)?$3(n):void 0,l=n.typeParameters||a&&Yc(a);if(l){const u=l.pos===l.end?l.pos:Jo(Zn(n).text,l.pos);return e1(n,u,l.end-u,_.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function but(n){const a=n.type||vp(n);if(a)return En(a,_.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Eut(n){if(As(n.name)&&br(n.name.expression)&&n.name.expression.operatorToken.kind===101)return En(n.parent.members[0],_.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(Vo(n.name)&&n.name.text==="constructor")return En(n.name,_.Classes_may_not_have_a_field_named_constructor);if(iI(n.name,_.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(P<2&&Ni(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(P<2&&rf(n))return En(n.name,_.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(rf(n)&&vse(n.questionToken,_.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===261){if(iI(n.name,_.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(D.assertNode(n,If),n.initializer)return En(n.initializer,_.An_interface_property_cannot_have_an_initializer)}else if(cf(n.parent)){if(iI(n.name,_.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(D.assertNode(n,If),n.initializer)return En(n.initializer,_.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&16777216&&_Ne(n),to(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&16777216||Ja(n)||k1(n))){const a=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,a)}}function Tut(n){return n.kind===261||n.kind===262||n.kind===269||n.kind===268||n.kind===275||n.kind===274||n.kind===267||Yr(n,1027)?!1:Fc(n,_.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Sut(n){for(const a of n.statements)if((vu(a)||a.kind===240)&&Tut(a))return!0;return!1}function xut(n){return!!(n.flags&16777216)&&Sut(n)}function eg(n){if(n.flags&16777216){if(!Jr(n).hasReportedStatementInAmbientContext&&(Ka(n.parent)||J0(n.parent)))return Jr(n).hasReportedStatementInAmbientContext=Fc(n,_.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===238||n.parent.kind===265||n.parent.kind===308){const l=Jr(n.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=Fc(n,_.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Tse(n){if(n.numericLiteralFlags&32){let a;if(P>=1?a=_.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Wz(n,198)?a=_.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Wz(n,302)&&(a=_.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){const l=Gv(n.parent)&&n.parent.operator===40,u=(l?"-":"")+"0o"+n.text;return En(l?n.parent:n,a,u)}}return Aut(n),!1}function Aut(n){const a=xc(n).indexOf(".")!==-1,l=n.numericLiteralFlags&16;a||l||+n.text<=2**53-1||Fy(!1,Nr(n,_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Cut(n){return!!(!(ab(n.parent)||Gv(n.parent)&&ab(n.parent.parent))&&P<7&&En(n,_.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Lut(n,a,l,u,p){const g=Zn(n);if(!Zb(g)){const x=yy(g,n.pos);return $o.add(Dc(g,iu(x),0,a,l,u,p)),!0}return!1}function Iut(){return ls||(ls=[],ze.forEach((n,a)=>{oF.test(a)&&ls.push(n)})),ls}function kut(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?En(n,_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===272?gNe(n.namedBindings):!1}function gNe(n){return!!Ue(n.elements,a=>{if(a.isTypeOnly)return Fc(a,a.kind===273?_.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)})}function wut(n){if(Y.verbatimModuleSyntax&&de===1)return En(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(de===5)return En(n,_.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return En(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(de!==99&&de!==199&&de!==100&&(NS(a),a.length>1)){const u=a[1];return En(u,_.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return En(n,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const l=nn(a,Ih);return l?En(l,_.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Dut(n,a){const l=ti(n);if(l&20&&a.flags&1048576)return nn(a.types,u=>{if(u.flags&524288){const p=l&ti(u);if(p&4)return n.target===u.target;if(p&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Rut(n,a){if(ti(n)&128&&Zh(a,D0))return nn(a.types,l=>!D0(l))}function Nut(n,a){let l=0;if(za(n,l).length>0||(l=1,za(n,l).length>0))return nn(a.types,p=>za(p,l).length>0)}function Out(n,a){let l;if(!(n.flags&406978556)){let u=0;for(const p of a.types)if(!(p.flags&406978556)){const g=wo([vm(n),vm(p)]);if(g.flags&4194304)return p;if(fp(g)||g.flags&1048576){const x=g.flags&1048576?Gc(g.types,fp):1;x>=u&&(l=p,u=x)}}}return l}function Put(n){if(pl(n,67108864)){const a=_c(n,l=>!(l.flags&134348796));if(!(a.flags&131072))return a}return n}function yNe(n,a,l,u){if(a.flags&1048576&&n.flags&2621440){const p=Mke(a,n);if(p)return p;const g=hs(n);if(g){const x=Pke(g,a);if(x)return fae(a,Vt(x,R=>[()=>ar(R),R.escapedName]),l,void 0,u)}}}}function F7e(e){return!J0(e)}function Nge(e){return e.kind!==259&&e.kind!==171||!!e.body}function Oge(e){switch(e.parent.kind){case 273:case 278:return He(e);default:return mg(e)}}function Pge(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Eu(e){return!!(e.flags&1)}function PX(e){return!!(e.flags&2)}function B7e(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Go(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Go(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var oF,B8,MX,FX,BX,GX,sF,lF,cF,uF,Mge,G8,UX,kf,U8,G7e=C({"src/compiler/checker.ts"(){Oa(),NX(),d1(),oF=/^".+"$/,B8="(anonymous)",MX=1,FX=1,BX=1,GX=1,sF=(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))(sF||{}),lF=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),cF=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(cF||{}),uF=(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))(uF||{}),Mge=_M(Nge,F7e),G8=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),UX=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(kf||(kf={})),U8=class{constructor(e,t,r){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof U8;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,r){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,r)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var r;(r=this.inner)!=null&&r.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,r){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function lt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Va(o)?s=(i||W7e)(o):s=o,D.assertNode(s,r),s}function Jn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let c,f=-1,d=-1;i>0||o<s?c=e.hasTrailingComma&&i+o===s:(f=e.pos,d=e.end,c=e.hasTrailingComma);const y=Fge(e,t,r,i,o);if(y!==e){const h=N.createNodeArray(y,c);return Vm(h,f,d),h}return e}function VX(e,t,r,i,o){if(e===void 0)return e;const s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),Fge(e,t,r,i,o)}function Fge(e,t,r,i,o){let s;const c=e.length;(i>0||o<c)&&(s=[]);for(let f=0;f<o;f++){const d=e[f+i],y=d!==void 0?t?t(d):d:void 0;if((s!==void 0||y===void 0||y!==d)&&(s===void 0&&(s=e.slice(0,f),D.assertEachNode(s,r)),y))if(Va(y))for(const h of y)D.assertNode(h,r),s.push(h);else D.assertNode(y,r),s.push(y)}return s||(D.assertEachNode(e,r),e)}function dF(e,t,r,i,o,s=Jn){return r.startLexicalEnvironment(),e=s(e,t,wa,i),o&&(e=r.factory.ensureUseStrict(e)),N.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Kl(e,t,r,i=Jn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Ba),r.getLexicalEnvironmentFlags()&2&&es(r.getCompilerOptions())>=2&&(o=U7e(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function U7e(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=V7e(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?ht(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function V7e(e,t){return e.dotDotDotToken?e:Xa(e.name)?j7e(e,t):e.initializer?H7e(e,e.name,e.initializer,t):e}function j7e(e,t){const{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function H7e(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),or(ht(o.createBlock([o.createExpressionStatement(or(ht(o.createAssignment(or(o.cloneNode(t),96),or(r,96|vo(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function wf(e,t,r,i=lt){r.resumeLexicalEnvironment();const o=i(e,t,o3),s=r.endLexicalEnvironment();if(kt(s)){if(!o)return r.factory.createBlock(s);const c=r.factory.converters.convertToFunctionBlock(o),f=N.mergeLexicalEnvironment(c.statements,s);return r.factory.updateBlock(c,f)}return o}function E_(e,t,r,i=lt){r.startBlockScope();const o=i(e,t,wa,r.factory.liftToBlock);D.assert(o);const s=r.endBlockScope();return kt(s)?lo(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function V8(e,t,r=t){if(r===t||e.length<=1)return Jn(e,t,vt);let i=0;const o=e.length;return Jn(e,s=>{const c=i<o-1;return i++,c?r(s):t(s)},vt)}function Bn(e,t,r,i=Jn,o,s=lt){if(e===void 0)return;const c=Bge[e.kind];return c===void 0?e:c(e,t,r,i,s,o)}function W7e(e){return D.assert(e.length<=1,"Too many nodes written to output."),Am(e)}var Bge,z7e=C({"src/compiler/visitorPublic.ts"(){Oa(),Bge={163:function(t,r,i,o,s,c){return i.factory.updateQualifiedName(t,D.checkDefined(s(t.left,r,nf)),D.checkDefined(s(t.right,r,He)))},164:function(t,r,i,o,s,c){return i.factory.updateComputedPropertyName(t,D.checkDefined(s(t.expression,r,vt)))},165:function(t,r,i,o,s,c){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,uo),D.checkDefined(s(t.name,r,He)),s(t.constraint,r,Gi),s(t.default,r,Gi))},166:function(t,r,i,o,s,c){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,nl),c?s(t.dotDotDotToken,c,n5):t.dotDotDotToken,D.checkDefined(s(t.name,r,gh)),c?s(t.questionToken,c,Bv):t.questionToken,s(t.type,r,Gi),s(t.initializer,r,vt))},167:function(t,r,i,o,s,c){return i.factory.updateDecorator(t,D.checkDefined(s(t.expression,r,vt)))},168:function(t,r,i,o,s,c){return i.factory.updatePropertySignature(t,o(t.modifiers,r,uo),D.checkDefined(s(t.name,r,yl)),c?s(t.questionToken,c,Bv):t.questionToken,s(t.type,r,Gi))},169:function(t,r,i,o,s,c){var f,d;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,yl)),c?s((f=t.questionToken)!=null?f:t.exclamationToken,c,fme):(d=t.questionToken)!=null?d:t.exclamationToken,s(t.type,r,Gi),s(t.initializer,r,vt))},170:function(t,r,i,o,s,c){return i.factory.updateMethodSignature(t,o(t.modifiers,r,uo),D.checkDefined(s(t.name,r,yl)),c?s(t.questionToken,c,Bv):t.questionToken,o(t.typeParameters,r,Bl),o(t.parameters,r,Ba),s(t.type,r,Gi))},171:function(t,r,i,o,s,c){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,nl),c?s(t.asteriskToken,c,WO):t.asteriskToken,D.checkDefined(s(t.name,r,yl)),c?s(t.questionToken,c,Bv):t.questionToken,o(t.typeParameters,r,Bl),Kl(t.parameters,r,i,o),s(t.type,r,Gi),wf(t.body,r,i,s))},173:function(t,r,i,o,s,c){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,nl),Kl(t.parameters,r,i,o),wf(t.body,r,i,s))},174:function(t,r,i,o,s,c){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,yl)),Kl(t.parameters,r,i,o),s(t.type,r,Gi),wf(t.body,r,i,s))},175:function(t,r,i,o,s,c){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,yl)),Kl(t.parameters,r,i,o),wf(t.body,r,i,s))},172:function(t,r,i,o,s,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,wf(t.body,r,i,s))},176:function(t,r,i,o,s,c){return i.factory.updateCallSignature(t,o(t.typeParameters,r,Bl),o(t.parameters,r,Ba),s(t.type,r,Gi))},177:function(t,r,i,o,s,c){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,Bl),o(t.parameters,r,Ba),s(t.type,r,Gi))},178:function(t,r,i,o,s,c){return i.factory.updateIndexSignature(t,o(t.modifiers,r,nl),o(t.parameters,r,Ba),D.checkDefined(s(t.type,r,Gi)))},179:function(t,r,i,o,s,c){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,Npe),D.checkDefined(s(t.parameterName,r,_me)),s(t.type,r,Gi))},180:function(t,r,i,o,s,c){return i.factory.updateTypeReferenceNode(t,D.checkDefined(s(t.typeName,r,nf)),o(t.typeArguments,r,Gi))},181:function(t,r,i,o,s,c){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,Bl),o(t.parameters,r,Ba),D.checkDefined(s(t.type,r,Gi)))},182:function(t,r,i,o,s,c){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,uo),o(t.typeParameters,r,Bl),o(t.parameters,r,Ba),D.checkDefined(s(t.type,r,Gi)))},183:function(t,r,i,o,s,c){return i.factory.updateTypeQueryNode(t,D.checkDefined(s(t.exprName,r,nf)),o(t.typeArguments,r,Gi))},184:function(t,r,i,o,s,c){return i.factory.updateTypeLiteralNode(t,o(t.members,r,sT))},185:function(t,r,i,o,s,c){return i.factory.updateArrayTypeNode(t,D.checkDefined(s(t.elementType,r,Gi)))},186:function(t,r,i,o,s,c){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Gi))},187:function(t,r,i,o,s,c){return i.factory.updateOptionalTypeNode(t,D.checkDefined(s(t.type,r,Gi)))},188:function(t,r,i,o,s,c){return i.factory.updateRestTypeNode(t,D.checkDefined(s(t.type,r,Gi)))},189:function(t,r,i,o,s,c){return i.factory.updateUnionTypeNode(t,o(t.types,r,Gi))},190:function(t,r,i,o,s,c){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Gi))},191:function(t,r,i,o,s,c){return i.factory.updateConditionalTypeNode(t,D.checkDefined(s(t.checkType,r,Gi)),D.checkDefined(s(t.extendsType,r,Gi)),D.checkDefined(s(t.trueType,r,Gi)),D.checkDefined(s(t.falseType,r,Gi)))},192:function(t,r,i,o,s,c){return i.factory.updateInferTypeNode(t,D.checkDefined(s(t.typeParameter,r,Bl)))},202:function(t,r,i,o,s,c){return i.factory.updateImportTypeNode(t,D.checkDefined(s(t.argument,r,Gi)),s(t.assertions,r,Wpe),s(t.qualifier,r,nf),o(t.typeArguments,r,Gi),t.isTypeOf)},298:function(t,r,i,o,s,c){return i.factory.updateImportTypeAssertionContainer(t,D.checkDefined(s(t.assertClause,r,u5)),t.multiLine)},199:function(t,r,i,o,s,c){return i.factory.updateNamedTupleMember(t,c?s(t.dotDotDotToken,c,n5):t.dotDotDotToken,D.checkDefined(s(t.name,r,He)),c?s(t.questionToken,c,Bv):t.questionToken,D.checkDefined(s(t.type,r,Gi)))},193:function(t,r,i,o,s,c){return i.factory.updateParenthesizedType(t,D.checkDefined(s(t.type,r,Gi)))},195:function(t,r,i,o,s,c){return i.factory.updateTypeOperatorNode(t,D.checkDefined(s(t.type,r,Gi)))},196:function(t,r,i,o,s,c){return i.factory.updateIndexedAccessTypeNode(t,D.checkDefined(s(t.objectType,r,Gi)),D.checkDefined(s(t.indexType,r,Gi)))},197:function(t,r,i,o,s,c){return i.factory.updateMappedTypeNode(t,c?s(t.readonlyToken,c,pme):t.readonlyToken,D.checkDefined(s(t.typeParameter,r,Bl)),s(t.nameType,r,Gi),c?s(t.questionToken,c,mme):t.questionToken,s(t.type,r,Gi),o(t.members,r,sT))},198:function(t,r,i,o,s,c){return i.factory.updateLiteralTypeNode(t,D.checkDefined(s(t.literal,r,vde)))},200:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralType(t,D.checkDefined(s(t.head,r,xC)),o(t.templateSpans,r,Gpe))},201:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralTypeSpan(t,D.checkDefined(s(t.type,r,Gi)),D.checkDefined(s(t.literal,r,n3)))},203:function(t,r,i,o,s,c){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,ps))},204:function(t,r,i,o,s,c){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,i3))},205:function(t,r,i,o,s,c){return i.factory.updateBindingElement(t,c?s(t.dotDotDotToken,c,n5):t.dotDotDotToken,s(t.propertyName,r,yl),D.checkDefined(s(t.name,r,gh)),s(t.initializer,r,vt))},206:function(t,r,i,o,s,c){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,vt))},207:function(t,r,i,o,s,c){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,hy))},208:function(t,r,i,o,s,c){return QM(t)?i.factory.updatePropertyAccessChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,r5):t.questionDotToken,D.checkDefined(s(t.name,r,lg))):i.factory.updatePropertyAccessExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.name,r,lg)))},209:function(t,r,i,o,s,c){return QW(t)?i.factory.updateElementAccessChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,r5):t.questionDotToken,D.checkDefined(s(t.argumentExpression,r,vt))):i.factory.updateElementAccessExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.argumentExpression,r,vt)))},210:function(t,r,i,o,s,c){return aT(t)?i.factory.updateCallChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,r5):t.questionDotToken,o(t.typeArguments,r,Gi),o(t.arguments,r,vt)):i.factory.updateCallExpression(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi),o(t.arguments,r,vt))},211:function(t,r,i,o,s,c){return i.factory.updateNewExpression(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi),o(t.arguments,r,vt))},212:function(t,r,i,o,s,c){return i.factory.updateTaggedTemplateExpression(t,D.checkDefined(s(t.tag,r,vt)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.template,r,FA)))},213:function(t,r,i,o,s,c){return i.factory.updateTypeAssertion(t,D.checkDefined(s(t.type,r,Gi)),D.checkDefined(s(t.expression,r,vt)))},214:function(t,r,i,o,s,c){return i.factory.updateParenthesizedExpression(t,D.checkDefined(s(t.expression,r,vt)))},215:function(t,r,i,o,s,c){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,uo),c?s(t.asteriskToken,c,WO):t.asteriskToken,s(t.name,r,He),o(t.typeParameters,r,Bl),Kl(t.parameters,r,i,o),s(t.type,r,Gi),wf(t.body,r,i,s))},216:function(t,r,i,o,s,c){return i.factory.updateArrowFunction(t,o(t.modifiers,r,uo),o(t.typeParameters,r,Bl),Kl(t.parameters,r,i,o),s(t.type,r,Gi),c?D.checkDefined(s(t.equalsGreaterThanToken,c,Dpe)):t.equalsGreaterThanToken,wf(t.body,r,i,s))},217:function(t,r,i,o,s,c){return i.factory.updateDeleteExpression(t,D.checkDefined(s(t.expression,r,vt)))},218:function(t,r,i,o,s,c){return i.factory.updateTypeOfExpression(t,D.checkDefined(s(t.expression,r,vt)))},219:function(t,r,i,o,s,c){return i.factory.updateVoidExpression(t,D.checkDefined(s(t.expression,r,vt)))},220:function(t,r,i,o,s,c){return i.factory.updateAwaitExpression(t,D.checkDefined(s(t.expression,r,vt)))},221:function(t,r,i,o,s,c){return i.factory.updatePrefixUnaryExpression(t,D.checkDefined(s(t.operand,r,vt)))},222:function(t,r,i,o,s,c){return i.factory.updatePostfixUnaryExpression(t,D.checkDefined(s(t.operand,r,vt)))},223:function(t,r,i,o,s,c){return i.factory.updateBinaryExpression(t,D.checkDefined(s(t.left,r,vt)),c?D.checkDefined(s(t.operatorToken,c,gme)):t.operatorToken,D.checkDefined(s(t.right,r,vt)))},224:function(t,r,i,o,s,c){return i.factory.updateConditionalExpression(t,D.checkDefined(s(t.condition,r,vt)),c?D.checkDefined(s(t.questionToken,c,Bv)):t.questionToken,D.checkDefined(s(t.whenTrue,r,vt)),c?D.checkDefined(s(t.colonToken,c,wpe)):t.colonToken,D.checkDefined(s(t.whenFalse,r,vt)))},225:function(t,r,i,o,s,c){return i.factory.updateTemplateExpression(t,D.checkDefined(s(t.head,r,xC)),o(t.templateSpans,r,$k))},226:function(t,r,i,o,s,c){return i.factory.updateYieldExpression(t,c?s(t.asteriskToken,c,WO):t.asteriskToken,s(t.expression,r,vt))},227:function(t,r,i,o,s,c){return i.factory.updateSpreadElement(t,D.checkDefined(s(t.expression,r,vt)))},228:function(t,r,i,o,s,c){return i.factory.updateClassExpression(t,o(t.modifiers,r,nl),s(t.name,r,He),o(t.typeParameters,r,Bl),o(t.heritageClauses,r,Vd),o(t.members,r,Vc))},230:function(t,r,i,o,s,c){return i.factory.updateExpressionWithTypeArguments(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi))},231:function(t,r,i,o,s,c){return i.factory.updateAsExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.type,r,Gi)))},235:function(t,r,i,o,s,c){return i.factory.updateSatisfiesExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.type,r,Gi)))},232:function(t,r,i,o,s,c){return yu(t)?i.factory.updateNonNullChain(t,D.checkDefined(s(t.expression,r,vt))):i.factory.updateNonNullExpression(t,D.checkDefined(s(t.expression,r,vt)))},233:function(t,r,i,o,s,c){return i.factory.updateMetaProperty(t,D.checkDefined(s(t.name,r,He)))},236:function(t,r,i,o,s,c){return i.factory.updateTemplateSpan(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.literal,r,n3)))},238:function(t,r,i,o,s,c){return i.factory.updateBlock(t,o(t.statements,r,wa))},240:function(t,r,i,o,s,c){return i.factory.updateVariableStatement(t,o(t.modifiers,r,nl),D.checkDefined(s(t.declarationList,r,Vu)))},241:function(t,r,i,o,s,c){return i.factory.updateExpressionStatement(t,D.checkDefined(s(t.expression,r,vt)))},242:function(t,r,i,o,s,c){return i.factory.updateIfStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.thenStatement,r,wa,i.factory.liftToBlock)),s(t.elseStatement,r,wa,i.factory.liftToBlock))},243:function(t,r,i,o,s,c){return i.factory.updateDoStatement(t,E_(t.statement,r,i,s),D.checkDefined(s(t.expression,r,vt)))},244:function(t,r,i,o,s,c){return i.factory.updateWhileStatement(t,D.checkDefined(s(t.expression,r,vt)),E_(t.statement,r,i,s))},245:function(t,r,i,o,s,c){return i.factory.updateForStatement(t,s(t.initializer,r,Xp),s(t.condition,r,vt),s(t.incrementor,r,vt),E_(t.statement,r,i,s))},246:function(t,r,i,o,s,c){return i.factory.updateForInStatement(t,D.checkDefined(s(t.initializer,r,Xp)),D.checkDefined(s(t.expression,r,vt)),E_(t.statement,r,i,s))},247:function(t,r,i,o,s,c){return i.factory.updateForOfStatement(t,c?s(t.awaitModifier,c,QJ):t.awaitModifier,D.checkDefined(s(t.initializer,r,Xp)),D.checkDefined(s(t.expression,r,vt)),E_(t.statement,r,i,s))},248:function(t,r,i,o,s,c){return i.factory.updateContinueStatement(t,s(t.label,r,He))},249:function(t,r,i,o,s,c){return i.factory.updateBreakStatement(t,s(t.label,r,He))},250:function(t,r,i,o,s,c){return i.factory.updateReturnStatement(t,s(t.expression,r,vt))},251:function(t,r,i,o,s,c){return i.factory.updateWithStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.statement,r,wa,i.factory.liftToBlock)))},252:function(t,r,i,o,s,c){return i.factory.updateSwitchStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.caseBlock,r,QO)))},253:function(t,r,i,o,s,c){return i.factory.updateLabeledStatement(t,D.checkDefined(s(t.label,r,He)),D.checkDefined(s(t.statement,r,wa,i.factory.liftToBlock)))},254:function(t,r,i,o,s,c){return i.factory.updateThrowStatement(t,D.checkDefined(s(t.expression,r,vt)))},255:function(t,r,i,o,s,c){return i.factory.updateTryStatement(t,D.checkDefined(s(t.tryBlock,r,lo)),s(t.catchClause,r,NC),s(t.finallyBlock,r,lo))},257:function(t,r,i,o,s,c){return i.factory.updateVariableDeclaration(t,D.checkDefined(s(t.name,r,gh)),c?s(t.exclamationToken,c,zO):t.exclamationToken,s(t.type,r,Gi),s(t.initializer,r,vt))},258:function(t,r,i,o,s,c){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,Ki))},259:function(t,r,i,o,s,c){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,uo),c?s(t.asteriskToken,c,WO):t.asteriskToken,s(t.name,r,He),o(t.typeParameters,r,Bl),Kl(t.parameters,r,i,o),s(t.type,r,Gi),wf(t.body,r,i,s))},260:function(t,r,i,o,s,c){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,nl),s(t.name,r,He),o(t.typeParameters,r,Bl),o(t.heritageClauses,r,Vd),o(t.members,r,Vc))},261:function(t,r,i,o,s,c){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,He)),o(t.typeParameters,r,Bl),o(t.heritageClauses,r,Vd),o(t.members,r,sT))},262:function(t,r,i,o,s,c){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,He)),o(t.typeParameters,r,Bl),D.checkDefined(s(t.type,r,Gi)))},263:function(t,r,i,o,s,c){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,He)),o(t.members,r,B1))},264:function(t,r,i,o,s,c){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,nl),D.checkDefined(s(t.name,r,hme)),s(t.body,r,Tde))},265:function(t,r,i,o,s,c){return i.factory.updateModuleBlock(t,o(t.statements,r,wa))},266:function(t,r,i,o,s,c){return i.factory.updateCaseBlock(t,o(t.clauses,r,mz))},267:function(t,r,i,o,s,c){return i.factory.updateNamespaceExportDeclaration(t,D.checkDefined(s(t.name,r,He)))},268:function(t,r,i,o,s,c){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,nl),t.isTypeOnly,D.checkDefined(s(t.name,r,He)),D.checkDefined(s(t.moduleReference,r,Ade)))},269:function(t,r,i,o,s,c){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,nl),s(t.importClause,r,Wm),D.checkDefined(s(t.moduleSpecifier,r,vt)),s(t.assertClause,r,u5))},296:function(t,r,i,o,s,c){return i.factory.updateAssertClause(t,o(t.elements,r,zpe),t.multiLine)},297:function(t,r,i,o,s,c){return i.factory.updateAssertEntry(t,D.checkDefined(s(t.name,r,lde)),D.checkDefined(s(t.value,r,vt)))},270:function(t,r,i,o,s,c){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,He),s(t.namedBindings,r,fz))},271:function(t,r,i,o,s,c){return i.factory.updateNamespaceImport(t,D.checkDefined(s(t.name,r,He)))},277:function(t,r,i,o,s,c){return i.factory.updateNamespaceExport(t,D.checkDefined(s(t.name,r,He)))},272:function(t,r,i,o,s,c){return i.factory.updateNamedImports(t,o(t.elements,r,Ld))},273:function(t,r,i,o,s,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,He),D.checkDefined(s(t.name,r,He)))},274:function(t,r,i,o,s,c){return i.factory.updateExportAssignment(t,o(t.modifiers,r,nl),D.checkDefined(s(t.expression,r,vt)))},275:function(t,r,i,o,s,c){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,nl),t.isTypeOnly,s(t.exportClause,r,ez),s(t.moduleSpecifier,r,vt),s(t.assertClause,r,u5))},276:function(t,r,i,o,s,c){return i.factory.updateNamedExports(t,o(t.elements,r,dd))},278:function(t,r,i,o,s,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,He),D.checkDefined(s(t.name,r,He)))},280:function(t,r,i,o,s,c){return i.factory.updateExternalModuleReference(t,D.checkDefined(s(t.expression,r,vt)))},281:function(t,r,i,o,s,c){return i.factory.updateJsxElement(t,D.checkDefined(s(t.openingElement,r,wh)),o(t.children,r,gN),D.checkDefined(s(t.closingElement,r,zx)))},282:function(t,r,i,o,s,c){return i.factory.updateJsxSelfClosingElement(t,D.checkDefined(s(t.tagName,r,JI)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.attributes,r,F1)))},283:function(t,r,i,o,s,c){return i.factory.updateJsxOpeningElement(t,D.checkDefined(s(t.tagName,r,JI)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.attributes,r,F1)))},284:function(t,r,i,o,s,c){return i.factory.updateJsxClosingElement(t,D.checkDefined(s(t.tagName,r,JI)))},285:function(t,r,i,o,s,c){return i.factory.updateJsxFragment(t,D.checkDefined(s(t.openingFragment,r,Jx)),o(t.children,r,gN),D.checkDefined(s(t.closingFragment,r,qpe)))},288:function(t,r,i,o,s,c){return i.factory.updateJsxAttribute(t,D.checkDefined(s(t.name,r,He)),s(t.initializer,r,Cde))},289:function(t,r,i,o,s,c){return i.factory.updateJsxAttributes(t,o(t.properties,r,s3))},290:function(t,r,i,o,s,c){return i.factory.updateJsxSpreadAttribute(t,D.checkDefined(s(t.expression,r,vt)))},291:function(t,r,i,o,s,c){return i.factory.updateJsxExpression(t,s(t.expression,r,vt))},292:function(t,r,i,o,s,c){return i.factory.updateCaseClause(t,D.checkDefined(s(t.expression,r,vt)),o(t.statements,r,wa))},293:function(t,r,i,o,s,c){return i.factory.updateDefaultClause(t,o(t.statements,r,wa))},294:function(t,r,i,o,s,c){return i.factory.updateHeritageClause(t,o(t.types,r,xy))},295:function(t,r,i,o,s,c){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,Ki),D.checkDefined(s(t.block,r,lo)))},299:function(t,r,i,o,s,c){return i.factory.updatePropertyAssignment(t,D.checkDefined(s(t.name,r,yl)),D.checkDefined(s(t.initializer,r,vt)))},300:function(t,r,i,o,s,c){return i.factory.updateShorthandPropertyAssignment(t,D.checkDefined(s(t.name,r,He)),s(t.objectAssignmentInitializer,r,vt))},301:function(t,r,i,o,s,c){return i.factory.updateSpreadAssignment(t,D.checkDefined(s(t.expression,r,vt)))},302:function(t,r,i,o,s,c){return i.factory.updateEnumMember(t,D.checkDefined(s(t.name,r,yl)),s(t.initializer,r,vt))},308:function(t,r,i,o,s,c){return i.factory.updateSourceFile(t,dF(t.statements,r,i))},356:function(t,r,i,o,s,c){return i.factory.updatePartiallyEmittedExpression(t,D.checkDefined(s(t.expression,r,vt)))},357:function(t,r,i,o,s,c){return i.factory.updateCommaListExpression(t,o(t.elements,r,vt))}}}});function Gge(e,t,r,i,o){var{enter:s,exit:c}=o.extendedDiagnostics?bM("Source Map","beforeSourcemap","afterSourcemap"):EM,f=[],d=[],y=new Map,h,E=[],A,L=[],I="",O=0,k=0,G=0,V=0,H=0,te=0,X=!1,Y=0,P=0,de=0,re=0,ye=0,ae=0,W=!1,ce=!1,me=!1;return{getSources:()=>f,addSource:ve,setSourceContent:Se,addName:ee,addMapping:Ge,appendSourceMap:qe,toJSON:Fe,toString:()=>JSON.stringify(Fe())};function ve(Ct){s();const Et=ax(i,Ct,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let jt=y.get(Et);return jt===void 0&&(jt=d.length,d.push(Et),f.push(Ct),y.set(Et,jt)),c(),jt}function Se(Ct,Et){if(s(),Et!==null){for(h||(h=[]);h.length<Ct;)h.push(null);h[Ct]=Et}c()}function ee(Ct){s(),A||(A=new Map);let Et=A.get(Ct);return Et===void 0&&(Et=E.length,E.push(Ct),A.set(Ct,Et)),c(),Et}function Qe(Ct,Et){return!W||Y!==Ct||P!==Et}function je(Ct,Et,jt){return Ct!==void 0&&Et!==void 0&&jt!==void 0&&de===Ct&&(re>Et||re===Et&&ye>jt)}function Ge(Ct,Et,jt,tt,at,sn){D.assert(Ct>=Y,"generatedLine cannot backtrack"),D.assert(Et>=0,"generatedCharacter cannot be negative"),D.assert(jt===void 0||jt>=0,"sourceIndex cannot be negative"),D.assert(tt===void 0||tt>=0,"sourceLine cannot be negative"),D.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),s(),(Qe(Ct,Et)||je(jt,tt,at))&&(Ye(),Y=Ct,P=Et,ce=!1,me=!1,W=!0),jt!==void 0&&tt!==void 0&&at!==void 0&&(de=jt,re=tt,ye=at,ce=!0,sn!==void 0&&(ae=sn,me=!0)),c()}function qe(Ct,Et,jt,tt,at,sn){D.assert(Ct>=Y,"generatedLine cannot backtrack"),D.assert(Et>=0,"generatedCharacter cannot be negative"),s();const Qt=[];let On;const jn=HX(jt.mappings);for(const In of jn){if(sn&&(In.generatedLine>sn.line||In.generatedLine===sn.line&&In.generatedCharacter>sn.character))break;if(at&&(In.generatedLine<at.line||at.line===In.generatedLine&&In.generatedCharacter<at.character))continue;let Zt,_r,Ii,$i;if(In.sourceIndex!==void 0){if(Zt=Qt[In.sourceIndex],Zt===void 0){const Wt=jt.sources[In.sourceIndex],dn=jt.sourceRoot?Bi(jt.sourceRoot,Wt):Wt,rr=Bi(hi(tt),dn);Qt[In.sourceIndex]=Zt=ve(rr),jt.sourcesContent&&typeof jt.sourcesContent[In.sourceIndex]=="string"&&Se(Zt,jt.sourcesContent[In.sourceIndex])}_r=In.sourceLine,Ii=In.sourceCharacter,jt.names&&In.nameIndex!==void 0&&(On||(On=[]),$i=On[In.nameIndex],$i===void 0&&(On[In.nameIndex]=$i=ee(jt.names[In.nameIndex])))}const Qi=In.generatedLine-(at?at.line:0),Or=Qi+Ct,At=at&&at.line===In.generatedLine?In.generatedCharacter-at.character:In.generatedCharacter,vn=Qi===0?At+Et:At;Ge(Or,vn,Zt,_r,Ii,$i)}c()}function Oe(){return!X||O!==Y||k!==P||G!==de||V!==re||H!==ye||te!==ae}function Me(Ct){L.push(Ct),L.length>=1024&&ze()}function Ye(){if(!(!W||!Oe())){if(s(),O<Y){do Me(59),O++;while(O<Y);k=0}else D.assertEqual(O,Y,"generatedLine cannot backtrack"),X&&Me(44);st(P-k),k=P,ce&&(st(de-G),G=de,st(re-V),V=re,st(ye-H),H=ye,me&&(st(ae-te),te=ae)),X=!0,c()}}function ze(){L.length>0&&(I+=String.fromCharCode.apply(void 0,L),L.length=0)}function Fe(){return Ye(),ze(),{version:3,file:t,sourceRoot:r,sources:d,names:E,mappings:I,sourcesContent:h}}function st(Ct){Ct<0?Ct=(-Ct<<1)+1:Ct=Ct<<1;do{let Et=Ct&31;Ct=Ct>>5,Ct>0&&(Et=Et|32),Me(K7e(Et))}while(Ct>0)}}function Uge(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Vge(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=fF.exec(r);if(i)return NR(i[1]);if(!r.match(_F))break}}function q7e(e){return typeof e=="string"||e===null}function jge(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Va(e.sources)&&Yn(e.sources,Ha)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Va(e.sourcesContent)&&Yn(e.sourcesContent,q7e))&&(e.names===void 0||e.names===null||Va(e.names)&&Yn(e.names,Ha))}function jX(e){try{const t=JSON.parse(e);if(jge(t))return t}catch{}}function HX(e){let t=!1,r=0,i=0,o=0,s=0,c=0,f=0,d=0,y;return{get pos(){return r},get error(){return y},get state(){return h(!0,!0)},next(){for(;!t&&r<e.length;){const G=e.charCodeAt(r);if(G===59){i++,o=0,r++;continue}if(G===44){r++;continue}let V=!1,H=!1;if(o+=k(),I())return E();if(o<0)return L("Invalid generatedCharacter found");if(!O()){if(V=!0,s+=k(),I())return E();if(s<0)return L("Invalid sourceIndex found");if(O())return L("Unsupported Format: No entries after sourceIndex");if(c+=k(),I())return E();if(c<0)return L("Invalid sourceLine found");if(O())return L("Unsupported Format: No entries after sourceLine");if(f+=k(),I())return E();if(f<0)return L("Invalid sourceCharacter found");if(!O()){if(H=!0,d+=k(),I())return E();if(d<0)return L("Invalid nameIndex found");if(!O())return L("Unsupported Error Format: Entries after nameIndex")}}return{value:h(V,H),done:t}}return E()},[Symbol.iterator](){return this}};function h(G,V){return{generatedLine:i,generatedCharacter:o,sourceIndex:G?s:void 0,sourceLine:G?c:void 0,sourceCharacter:G?f:void 0,nameIndex:V?d:void 0}}function E(){return t=!0,{value:void 0,done:!0}}function A(G){y===void 0&&(y=G)}function L(G){return A(G),E()}function I(){return y!==void 0}function O(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function k(){let G=!0,V=0,H=0;for(;G;r++){if(r>=e.length)return A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const te=X7e(e.charCodeAt(r));if(te===-1)return A("Invalid character in VLQ"),-1;G=(te&32)!==0,H=H|(te&31)<<V,V+=5}return H&1?(H=H>>1,H=-H):H=H>>1,H}}function J7e(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 Hge(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function K7e(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:D.fail(`${e}: not a base64 value`)}function X7e(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 Wge(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function zge(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Y7e(e,t){return D.assert(e.sourceIndex===t.sourceIndex),Ws(e.sourcePosition,t.sourcePosition)}function $7e(e,t){return Ws(e.generatedPosition,t.generatedPosition)}function Q7e(e){return e.sourcePosition}function Z7e(e){return e.generatedPosition}function qge(e,t,r){const i=hi(r),o=t.sourceRoot?Pa(t.sourceRoot,i):i,s=Pa(t.file,i),c=e.getSourceFileLike(s),f=t.sources.map(V=>Pa(V,o)),d=new Map(f.map((V,H)=>[e.getCanonicalFileName(V),H]));let y,h,E;return{getSourcePosition:G,getGeneratedPosition:k};function A(V){const H=c!==void 0?ZR(c,V.generatedLine,V.generatedCharacter,!0):-1;let te,X;if(Hge(V)){const Y=e.getSourceFileLike(f[V.sourceIndex]);te=t.sources[V.sourceIndex],X=Y!==void 0?ZR(Y,V.sourceLine,V.sourceCharacter,!0):-1}return{generatedPosition:H,source:te,sourceIndex:V.sourceIndex,sourcePosition:X,nameIndex:V.nameIndex}}function L(){if(y===void 0){const V=HX(t.mappings),H=Ro(V,A);V.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${V.error}`),y=rt):y=H}return y}function I(V){if(E===void 0){const H=[];for(const te of L()){if(!Wge(te))continue;let X=H[te.sourceIndex];X||(H[te.sourceIndex]=X=[]),X.push(te)}E=H.map(te=>AR(te,Y7e,zge))}return E[V]}function O(){if(h===void 0){const V=[];for(const H of L())V.push(H);h=AR(V,$7e,zge)}return h}function k(V){const H=d.get(e.getCanonicalFileName(V.fileName));if(H===void 0)return V;const te=I(H);if(!kt(te))return V;let X=XS(te,V.pos,Q7e,Ws);X<0&&(X=~X);const Y=te[X];return Y===void 0||Y.sourceIndex!==H?V:{fileName:s,pos:Y.generatedPosition}}function G(V){const H=O();if(!kt(H))return V;let te=XS(H,V.pos,Z7e,Ws);te<0&&(te=~te);const X=H[te];return X===void 0||!Wge(X)?V:{fileName:f[X.sourceIndex],pos:X.sourcePosition}}}var WX,fF,_F,pF,e5e=C({"src/compiler/sourcemap.ts"(){Oa(),d1(),WX=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,fF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,_F=/^\s*(\/\/[@#] .*)?$/,pF={getSourcePosition:ml,getGeneratedPosition:ml}}});function wl(e){return e=Sl(e),e?ms(e):0}function t5e(e){return!e||!Ay(e)?!1:kt(e.elements,Jge)}function Jge(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Y_(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),o.prepends)}}function Kge(e){return!!ZA(e)}function mF(e){if(ZA(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Ay(t))return!1;let r=0;for(const i of t.elements)Jge(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&hx(e)}function zX(e){return!mF(e)&&(hx(e)||!!e.importClause&&Ay(e.importClause.namedBindings)&&t5e(e.importClause.namedBindings))}function qX(e,t,r,i){const o=[],s=__(),c=[],f=new Map;let d,y=!1,h,E=!1,A=!1,L=!1;for(const k of t.statements)switch(k.kind){case 269:o.push(k),!A&&mF(k)&&(A=!0),!L&&zX(k)&&(L=!0);break;case 268:k.moduleReference.kind===280&&o.push(k);break;case 275:if(k.moduleSpecifier)if(!k.exportClause)o.push(k),E=!0;else if(o.push(k),K_(k.exportClause))O(k);else{const G=k.exportClause.name;f.get(Mr(G))||(hw(c,wl(k),G),f.set(Mr(G),!0),d=Fn(d,G)),A=!0}else O(k);break;case 274:k.isExportEquals&&!h&&(h=k);break;case 240:if(Yr(k,1))for(const G of k.declarationList.declarations)d=Xge(G,f,d);break;case 259:if(Yr(k,1))if(Yr(k,1024))y||(hw(c,wl(k),e.factory.getDeclarationName(k)),y=!0);else{const G=k.name;f.get(Mr(G))||(hw(c,wl(k),G),f.set(Mr(G),!0),d=Fn(d,G))}break;case 260:if(Yr(k,1))if(Yr(k,1024))y||(hw(c,wl(k),e.factory.getDeclarationName(k)),y=!0);else{const G=k.name;G&&!f.get(Mr(G))&&(hw(c,wl(k),G),f.set(Mr(G),!0),d=Fn(d,G))}break}const I=xK(e.factory,e.getEmitHelperFactory(),t,i,E,A,L);return I&&o.unshift(I),{externalImports:o,exportSpecifiers:s,exportEquals:h,hasExportStarsToExportValues:E,exportedBindings:c,exportedNames:d,externalHelpersImportDeclaration:I};function O(k){for(const G of ao(k.exportClause,K_).elements)if(!f.get(Mr(G.name))){const V=G.propertyName||G.name;k.moduleSpecifier||s.add(Mr(V),G);const H=r.getReferencedImportDeclaration(V)||r.getReferencedValueDeclaration(V);H&&hw(c,wl(H),G.name),f.set(Mr(G.name),!0),d=Fn(d,G.name)}}}function Xge(e,t,r){if(Xa(e.name))for(const i of e.name.elements)Rc(i)||(r=Xge(i,t,r));else if(!xl(e.name)){const i=Mr(e.name);t.get(i)||(t.set(i,!0),r=Fn(r,e.name))}return r}function hw(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function H1(e){return xs(e)||e.kind===8||Ad(e.kind)||He(e)}function om(e){return!He(e)&&H1(e)}function j8(e){return e>=64&&e<=78}function gw(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function JX(e){if(!ou(e))return;const t=js(e.expression);return zA(t)?t:void 0}function hF(e,t){for(let r=t;r<e.length;r+=1){const i=e[r];if(JX(i))return r}return-1}function KX(e,t,r){return lr(e.members,i=>r5e(i,t,r))}function n5e(e){return i5e(e)||kl(e)}function gF(e){return lr(e.members,n5e)}function r5e(e,t,r){return to(e)&&(!!e.initializer||!t)&&gc(e)===r}function i5e(e){return to(e)&&gc(e)}function H8(e){return e.kind===169&&e.initializer!==void 0}function Yge(e){return!Ja(e)&&(MA(e)||rf(e))&&Ni(e.name)}function XX(e){let t;if(e){const r=e.parameters,i=r.length>0&&I1(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let c=0;c<s;c++){const f=r[c+o];(t||$f(f))&&(t||(t=new Array(s)),t[c]=xv(f))}}return t}function YX(e){const t=xv(e),r=XX(Th(e));if(!(!kt(t)&&!kt(r)))return{decorators:t,parameters:r}}function yF(e,t,r){switch(e.kind){case 174:case 175:return r?a5e(e,t):$ge(e);case 171:return $ge(e);case 169:return o5e(e);default:return}}function a5e(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=ST(t.members,e),c=$f(r)?r:i&&$f(i)?i:void 0;if(!c||e!==c)return;const f=xv(c),d=XX(s);if(!(!kt(f)&&!kt(d)))return{decorators:f,parameters:d,getDecorators:o&&xv(o),setDecorators:s&&xv(s)}}function $ge(e){if(!e.body)return;const t=xv(e),r=XX(e);if(!(!kt(t)&&!kt(r)))return{decorators:t,parameters:r}}function o5e(e){const t=xv(e);if(kt(t))return{decorators:t}}function Qge(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function Zge(e){return{data:e}}function $X(e,t){var r,i;return lx(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(S5(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function UT(e,t,r){var i,o;lx(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(S5(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function eye(e,t){return Qge(e,r=>$X(r.privateEnv,t))}var s5e=C({"src/compiler/transformers/utilities.ts"(){Oa()}});function VT(e,t,r,i,o,s){let c=e,f;if(by(e))for(f=e.right;n_e(e.left)||Nq(e.left);)if(by(f))c=e=f,f=e.right;else return D.checkDefined(lt(f,t,vt));let d;const y={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:A=>m5e(r.factory,A),createObjectBindingOrAssignmentPattern:A=>g5e(r.factory,A),createArrayBindingOrAssignmentElement:v5e,visitor:t};if(f&&(f=lt(f,t,vt),D.assert(f),He(f)&&QX(e,f.escapedText)||ZX(e)?f=jT(y,f,!1,c):o?f=jT(y,f,!0,c):Zs(e)&&(c=f)),KC(y,e,f,c,by(e)),f&&o){if(!kt(d))return f;d.push(f)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function h(A){d=Fn(d,A)}function E(A,L,I,O){D.assertNode(A,s?He:vt);const k=s?s(A,L,I):ht(r.factory.createAssignment(D.checkDefined(lt(A,t,vt)),L),I);k.original=O,h(k)}}function QX(e,t){const r=jv(e);return dN(r)?l5e(r,t):He(r)?r.escapedText===t:!1}function l5e(e,t){const r=GC(e);for(const i of r)if(QX(i,t))return!0;return!1}function ZX(e){const t=E5(e);if(t&&As(t)&&!oT(t.expression))return!0;const r=jv(e);return!!r&&dN(r)&&c5e(r)}function c5e(e){return!!Ue(GC(e),ZX)}function W1(e,t,r,i,o,s=!1,c){let f;const d=[],y=[],h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:E,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:L=>p5e(r.factory,L),createObjectBindingOrAssignmentPattern:L=>h5e(r.factory,L),createArrayBindingOrAssignmentElement:L=>y5e(r.factory,L),visitor:t};if(Ki(e)){let L=s8(e);L&&(He(L)&&QX(e,L.escapedText)||ZX(e))&&(L=jT(h,D.checkDefined(lt(L,h.visitor,vt)),!1,L),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,L))}if(KC(h,e,o,e,c),f){const L=r.factory.createTempVariable(void 0);if(s){const I=r.factory.inlineExpressions(f);f=void 0,A(L,I,void 0,void 0)}else{r.hoistVariableDeclaration(L);const I=zo(d);I.pendingExpressions=Fn(I.pendingExpressions,r.factory.createAssignment(L,I.value)),Ti(I.pendingExpressions,f),I.value=L}}for(const{pendingExpressions:L,name:I,value:O,location:k,original:G}of d){const V=r.factory.createVariableDeclaration(I,void 0,void 0,L?r.factory.inlineExpressions(Fn(L,O)):O);V.original=G,ht(V,k),y.push(V)}return y;function E(L){f=Fn(f,L)}function A(L,I,O,k){D.assertNode(L,gh),f&&(I=r.factory.inlineExpressions(Fn(f,I)),f=void 0),d.push({pendingExpressions:f,name:L,value:I,location:O,original:k})}}function KC(e,t,r,i,o){const s=jv(t);if(!o){const c=lt(s8(t),e.visitor,vt);c?r?(r=f5e(e,r,c,i),!om(c)&&dN(s)&&(r=jT(e,r,!0,i))):r=c:r||(r=e.context.factory.createVoidZero())}lz(s)?u5e(e,t,s,r,i):cz(s)?d5e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function u5e(e,t,r,i,o){const s=GC(r),c=s.length;if(c!==1){const y=!uN(t)||c!==0;i=jT(e,i,y,o)}let f,d;for(let y=0;y<c;y++){const h=s[y];if(b5(h)){if(y===c-1){f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);const E=e.context.getEmitHelperFactory().createRestHelper(i,s,d,r);KC(e,h,E,h)}}else{const E=AK(h);if(e.level>=1&&!(h.transformFlags&98304)&&!(jv(h).transformFlags&98304)&&!As(E))f=Fn(f,lt(h,e.visitor,_de));else{f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);const A=_5e(e,i,E);As(E)&&(d=Fn(d,A.argumentExpression)),KC(e,h,A,h)}}}f&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r)}function d5e(e,t,r,i,o){const s=GC(r),c=s.length;if(e.level<1&&e.downlevelIteration)i=jT(e,ht(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&b5(s[c-1])?void 0:c),o),!1,o);else if(c!==1&&(e.level<1||c===0)||Yn(s,Rc)){const y=!uN(t)||c!==0;i=jT(e,i,y,o)}let f,d;for(let y=0;y<c;y++){const h=s[y];if(e.level>=1)if(h.transformFlags&65536||e.hasTransformedPriorElement&&!tye(h)){e.hasTransformedPriorElement=!0;const E=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(E),d=Fn(d,[E,h]),f=Fn(f,e.createArrayBindingOrAssignmentElement(E))}else f=Fn(f,h);else{if(Rc(h))continue;if(b5(h)){if(y===c-1){const E=e.context.factory.createArraySliceCall(i,y);KC(e,h,E,h)}}else{const E=e.context.factory.createElementAccessExpression(i,y);KC(e,h,E,h)}}}if(f&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(f),i,o,r),d)for(const[y,h]of d)KC(e,h,y,h)}function tye(e){const t=jv(e);if(!t||Rc(t))return!0;const r=E5(e);if(r&&!U_(r))return!1;const i=s8(e);return i&&!om(i)?!1:dN(t)?Yn(GC(t),tye):He(t)}function f5e(e,t,r,i){return t=jT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function _5e(e,t,r){if(As(r)){const i=jT(e,D.checkDefined(lt(r.expression,e.visitor,vt)),!1,r);return e.context.factory.createElementAccessExpression(t,i)}else if(Xf(r)){const i=N.cloneNode(r);return e.context.factory.createElementAccessExpression(t,i)}else{const i=e.context.factory.createIdentifier(Mr(r));return e.context.factory.createPropertyAccessExpression(t,i)}}function jT(e,t,r,i){if(He(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(ht(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function p5e(e,t){return D.assertEachNode(t,i3),e.createArrayBindingPattern(t)}function m5e(e,t){return D.assertEachNode(t,_N),e.createArrayLiteralExpression(Vt(t,e.converters.convertToArrayAssignmentElement))}function h5e(e,t){return D.assertEachNode(t,ps),e.createObjectBindingPattern(t)}function g5e(e,t){return D.assertEachNode(t,fN),e.createObjectLiteralExpression(Vt(t,e.converters.convertToObjectAssignmentElement))}function y5e(e,t){return e.createBindingElement(void 0,void 0,t)}function v5e(e){return e}var eY,b5e=C({"src/compiler/transformers/destructuring.ts"(){Oa(),eY=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(eY||{})}});function tY(e,t,r,i,o,s){const c=lt(t.tag,r,vt);D.assert(c);const f=[void 0],d=[],y=[],h=t.template;if(s===0&&!mq(h))return Bn(t,r,e);if(Ox(h))d.push(nY(h)),y.push(rY(h,i));else{d.push(nY(h.head)),y.push(rY(h.head,i));for(const A of h.templateSpans)d.push(nY(A.literal)),y.push(rY(A.literal,i)),f.push(D.checkDefined(lt(A.expression,r,vt)))}const E=e.getEmitHelperFactory().createTemplateObjectHelper(N.createArrayLiteralExpression(d),N.createArrayLiteralExpression(y));if(Zl(i)){const A=N.createUniqueName("templateObject");o(A),f[0]=N.createLogicalOr(A,N.createAssignment(A,E))}else f[0]=E;return N.createCallExpression(c,void 0,f)}function nY(e){return e.templateFlags?N.createVoidZero():N.createStringLiteral(e.text)}function rY(e,t){let r=e.rawText;if(r===void 0){D.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=v1(t,e);const i=e.kind===14||e.kind===17;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,` `),ht(N.createStringLiteral(r),e)}var iY,E5e=C({"src/compiler/transformers/taggedTemplate.ts"(){Oa(),iY=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(iY||{})}});function nye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getEmitResolver(),d=e.getCompilerOptions(),y=es(d),h=au(d),E=!!d.experimentalDecorators,A=d.emitDecoratorMetadata?aye(e):void 0,L=e.onEmitNode,I=e.onSubstituteNode;e.onEmitNode=Kc,e.onSubstituteNode=Ds,e.enableSubstitution(208),e.enableSubstitution(209);let O,k,G,V,H,te,X,Y;return P;function P(Q){return Q.kind===309?de(Q):re(Q)}function de(Q){return t.createBundle(Q.sourceFiles.map(re),ia(Q.prepends,ot=>ot.kind===311?OJ(ot,"js"):ot))}function re(Q){if(Q.isDeclarationFile)return Q;O=Q;const ot=ye(Q,st);return Ty(ot,e.readEmitHelpers()),O=void 0,ot}function ye(Q,ot){const xt=V,mn=H,Dr=te;ae(Q);const Pr=ot(Q);return V!==xt&&(H=mn),V=xt,te=Dr,Pr}function ae(Q){switch(Q.kind){case 308:case 266:case 265:case 238:V=Q,H=void 0;break;case 260:case 259:if(Yr(Q,2))break;Q.name?Re(Q):D.assert(Q.kind===260||Yr(Q,1024));break}}function W(Q){return ye(Q,ce)}function ce(Q){return Q.transformFlags&1?Fe(Q):Q}function me(Q){return ye(Q,ve)}function ve(Q){switch(Q.kind){case 269:case 268:case 274:case 275:return Se(Q);default:return ce(Q)}}function Se(Q){if(Ea(Q)!==Q)return Q.transformFlags&1?Bn(Q,W,e):Q;switch(Q.kind){case 269:return oi(Q);case 268:return _i(Q);case 274:return mo(Q);case 275:return To(Q);default:D.fail("Unhandled ellided statement")}}function ee(Q){return ye(Q,Qe)}function Qe(Q){if(!(Q.kind===275||Q.kind===269||Q.kind===270||Q.kind===268&&Q.moduleReference.kind===280))return Q.transformFlags&1||Yr(Q,1)?Fe(Q):Q}function je(Q){return ot=>ye(ot,xt=>Ge(xt,Q))}function Ge(Q,ot){switch(Q.kind){case 173:return Pi(Q);case 169:return cr(Q,ot);case 174:return Ar(Q,ot);case 175:return Hr(Q,ot);case 171:return an(Q,ot);case 172:return Bn(Q,W,e);case 237:return Q;case 178:return;default:return D.failBadSyntaxKind(Q)}}function qe(Q){return ot=>ye(ot,xt=>Oe(xt,Q))}function Oe(Q,ot){switch(Q.kind){case 299:case 300:case 301:return W(Q);case 174:return Ar(Q,ot);case 175:return Hr(Q,ot);case 171:return an(Q,ot);default:return D.failBadSyntaxKind(Q)}}function Me(Q){return Bu(Q)?void 0:W(Q)}function Ye(Q){return uo(Q)?void 0:W(Q)}function ze(Q){if(!Bu(Q)&&!(xx(Q.kind)&117086)&&!(k&&Q.kind===93))return Q}function Fe(Q){if(wa(Q)&&Yr(Q,2))return t.createNotEmittedStatement(Q);switch(Q.kind){case 93:case 88:return k?void 0:Q;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return t.createNotEmittedStatement(Q);case 267:return;case 261:return t.createNotEmittedStatement(Q);case 260:return at(Q);case 228:return Qt(Q);case 294:return Wt(Q);case 230:return dn(Q);case 207:return Ct(Q);case 173:case 169:case 171:case 174:case 175:case 172:return D.fail("Class and object literal elements must be visited with their respective visitors");case 259:return we(Q);case 215:return yt(Q);case 216:return Nt(Q);case 166:return Ce(Q);case 214:return he(Q);case 213:case 231:return j(Q);case 235:return Ze(Q);case 210:return Xe(Q);case 211:return Ut(Q);case 212:return cn(Q);case 232:return We(Q);case 263:return mt(Q);case 240:return pt(Q);case 257:return ie(Q);case 264:return ft(Q);case 268:return _i(Q);case 282:return Sn(Q);case 283:return Er(Q);default:return Bn(Q,W,e)}}function st(Q){const ot=v_(d,"alwaysStrict")&&!(Zl(Q)&&h>=5)&&!m_(Q);return t.updateSourceFile(Q,dF(Q.statements,me,e,0,ot))}function Ct(Q){return t.updateObjectLiteralExpression(Q,Jn(Q.properties,qe(Q),hy))}function Et(Q){let ot=0;kt(KX(Q,!0,!0))&&(ot|=1);const xt=$p(Q);return xt&&bu(xt.expression).kind!==104&&(ot|=64),S1(E,Q)&&(ot|=2),nk(E,Q)&&(ot|=4),ua(Q)?ot|=8:ec(Q)?ot|=32:fa(Q)&&(ot|=16),ot}function jt(Q){return!!(Q.transformFlags&8192)}function tt(Q){return $f(Q)||kt(Q.typeParameters)||kt(Q.heritageClauses,jt)||kt(Q.members,jt)}function at(Q){var ot;const xt=Et(Q),mn=y<=1&&!!(xt&7);if(!tt(Q)&&!S1(E,Q)&&!ua(Q))return t.updateClassDeclaration(Q,Jn(Q.modifiers,ze,uo),Q.name,void 0,Jn(Q.heritageClauses,W,Vd),Jn(Q.members,je(Q),Vc));mn&&e.startLexicalEnvironment();const Dr=mn||xt&8||xt&2&&E||xt&1;let Pr=Dr?Jn(Q.modifiers,Ye,nl):Jn(Q.modifiers,W,nl);xt&2&&(Pr=jn(Pr,Q));const ls=Dr&&!Q.name||xt&4||xt&1?(ot=Q.name)!=null?ot:t.getGeneratedNameForNode(Q):Q.name,ho=t.updateClassDeclaration(Q,Pr,ls,void 0,Jn(Q.heritageClauses,W,Vd),On(Q));let jo=vo(Q);xt&1&&(jo|=64),or(ho,jo);let Ya;if(mn){const dl=[ho],dc=Pq(Jo(O.text,Q.members.end),19),_d=t.getInternalName(Q),Es=t.createPartiallyEmittedExpression(_d);mC(Es,dc.end),or(Es,3072);const ds=t.createReturnStatement(Es);Rk(ds,dc.pos),or(ds,3840),dl.push(ds),Pm(dl,e.endLexicalEnvironment());const fl=t.createImmediatelyInvokedArrowFunction(dl);MO(fl,1);const qd=xt&16?t.createModifiersFromModifierFlags(1):void 0,Wl=t.createVariableStatement(qd,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(Q,!1,!1),void 0,void 0,fl)],1));Wr(Wl,Q),Wc(Wl,Q),_s(Wl,Pv(Q)),ju(Wl),Ya=Wl}else Ya=ho;if(Dr){if(xt&8)return sn(Ya,rl(Q));if(xt&32)return sn(Ya,t.createExportDefault(t.getLocalName(Q,!1,!0)));if(xt&16&&!mn)return sn(Ya,t.createExternalModuleExport(t.getLocalName(Q,!1,!0)))}return Ya}function sn(Q,ot){return tm(Q,8388608),[Q,ot,t.createEndOfDeclarationMarker(Q)]}function Qt(Q){let ot=Jn(Q.modifiers,Ye,nl);return S1(E,Q)&&(ot=jn(ot,Q)),t.updateClassExpression(Q,ot,Q.name,void 0,Jn(Q.heritageClauses,W,Vd),On(Q))}function On(Q){const ot=Jn(Q.members,je(Q),Vc);let xt;const mn=Th(Q),Dr=mn&&lr(mn.parameters,Pr=>tf(Pr,mn));if(Dr)for(const Pr of Dr){const Ta=t.createPropertyDeclaration(void 0,Pr.name,void 0,void 0,void 0);Wr(Ta,Pr),xt=Fn(xt,Ta)}return xt?(xt=Ti(xt,ot),ht(t.createNodeArray(xt),Q.members)):ot}function jn(Q,ot){const xt=Zt(ot,ot);if(kt(xt)){const mn=[];Ti(mn,mM(Q,IK)),Ti(mn,lr(Q,Bu)),Ti(mn,xt),Ti(mn,lr(Fce(Q,IK),uo)),Q=ht(t.createNodeArray(mn),Q)}return Q}function In(Q,ot,xt){if(di(xt)&&Jz(E,ot,xt)){const mn=Zt(ot,xt);if(kt(mn)){const Dr=[];Ti(Dr,lr(Q,Bu)),Ti(Dr,mn),Ti(Dr,lr(Q,uo)),Q=ht(t.createNodeArray(Dr),Q)}}return Q}function Zt(Q,ot){if(E)return rye?Ii(Q,ot):_r(Q,ot)}function _r(Q,ot){if(A){let xt;if($i(Q)){const mn=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Q));xt=Fn(xt,t.createDecorator(mn))}if(Or(Q)){const mn=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:ot},Q,ot));xt=Fn(xt,t.createDecorator(mn))}if(Qi(Q)){const mn=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Q));xt=Fn(xt,t.createDecorator(mn))}return xt}}function Ii(Q,ot){if(A){let xt;if($i(Q)){const mn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),A.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Q)));xt=Fn(xt,mn)}if(Or(Q)){const mn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),A.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:ot},Q,ot)));xt=Fn(xt,mn)}if(Qi(Q)){const mn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),A.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Q)));xt=Fn(xt,mn)}if(xt){const mn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(xt,!0));return[t.createDecorator(mn)]}}}function $i(Q){const ot=Q.kind;return ot===171||ot===174||ot===175||ot===169}function Qi(Q){return Q.kind===171}function Or(Q){switch(Q.kind){case 260:case 228:return Th(Q)!==void 0;case 171:case 174:case 175:return!0}return!1}function At(Q,ot){const xt=Q.name;return Ni(xt)?t.createIdentifier(""):As(xt)?ot&&!om(xt.expression)?t.getGeneratedNameForNode(xt):xt.expression:He(xt)?t.createStringLiteral(Mr(xt)):t.cloneNode(xt)}function vn(Q){const ot=Q.name;if(As(ot)&&(!gc(Q)&&te||$f(Q)&&E)){const xt=lt(ot.expression,W,vt);D.assert(xt);const mn=F_(xt);if(!om(mn)){const Dr=t.getGeneratedNameForNode(ot);return c(Dr),t.updateComputedPropertyName(ot,t.createAssignment(Dr,xt))}}return D.checkDefined(lt(ot,W,yl))}function Wt(Q){if(Q.token!==117)return Bn(Q,W,e)}function dn(Q){return t.updateExpressionWithTypeArguments(Q,D.checkDefined(lt(Q.expression,W,Td)),void 0)}function rr(Q){return!Cl(Q.body)}function cr(Q,ot){const xt=Q.flags&16777216||Yr(Q,256);if(xt&&!(E&&$f(Q)))return;let mn=di(ot)?xt?Jn(Q.modifiers,Ye,nl):Jn(Q.modifiers,W,nl):Jn(Q.modifiers,Me,nl);return mn=In(mn,Q,ot),xt?t.updatePropertyDeclaration(Q,ba(mn,t.createModifiersFromModifierFlags(2)),D.checkDefined(lt(Q.name,W,yl)),void 0,void 0,void 0):t.updatePropertyDeclaration(Q,mn,vn(Q),void 0,void 0,lt(Q.initializer,W,vt))}function Pi(Q){if(rr(Q))return t.updateConstructorDeclaration(Q,void 0,Kl(Q.parameters,W,e),gi(Q.body,Q))}function gi(Q,ot){const xt=ot&&lr(ot.parameters,jo=>tf(jo,ot));if(!kt(xt))return wf(Q,W,e);let mn=[];o();const Dr=t.copyPrologue(Q.statements,mn,!1,W),Pr=hF(Q.statements,Dr);Pr>=0&&Ti(mn,Jn(Q.statements,W,wa,Dr,Pr+1-Dr));const Ta=ia(xt,Rn);Pr>=0?Ti(mn,Ta):mn=[...mn.slice(0,Dr),...Ta,...mn.slice(Dr)];const ls=Pr>=0?Pr+1:Dr;Ti(mn,Jn(Q.statements,W,wa,ls)),mn=t.mergeLexicalEnvironment(mn,s());const ho=t.createBlock(ht(t.createNodeArray(mn),Q.statements),!0);return ht(ho,Q),Wr(ho,Q),ho}function Rn(Q){const ot=Q.name;if(!He(ot))return;const xt=Uo(ht(t.cloneNode(ot),ot),ot.parent);or(xt,3168);const mn=Uo(ht(t.cloneNode(ot),ot),ot.parent);return or(mn,3072),ju(PO(ht(Wr(t.createExpressionStatement(t.createAssignment(ht(t.createPropertyAccessExpression(t.createThis(),xt),Q.name),mn)),Q),nb(Q,-1))))}function an(Q,ot){if(!(Q.transformFlags&1))return Q;if(!rr(Q))return;let xt=di(ot)?Jn(Q.modifiers,W,nl):Jn(Q.modifiers,Me,nl);return xt=In(xt,Q,ot),t.updateMethodDeclaration(Q,xt,Q.asteriskToken,vn(Q),void 0,void 0,Kl(Q.parameters,W,e),void 0,wf(Q.body,W,e))}function Pn(Q){return!(Cl(Q.body)&&Yr(Q,256))}function Ar(Q,ot){if(!(Q.transformFlags&1))return Q;if(!Pn(Q))return;let xt=di(ot)?Jn(Q.modifiers,W,nl):Jn(Q.modifiers,Me,nl);return xt=In(xt,Q,ot),t.updateGetAccessorDeclaration(Q,xt,vn(Q),Kl(Q.parameters,W,e),void 0,wf(Q.body,W,e)||t.createBlock([]))}function Hr(Q,ot){if(!(Q.transformFlags&1))return Q;if(!Pn(Q))return;let xt=di(ot)?Jn(Q.modifiers,W,nl):Jn(Q.modifiers,Me,nl);return xt=In(xt,Q,ot),t.updateSetAccessorDeclaration(Q,xt,vn(Q),Kl(Q.parameters,W,e),wf(Q.body,W,e)||t.createBlock([]))}function we(Q){if(!rr(Q))return t.createNotEmittedStatement(Q);const ot=t.updateFunctionDeclaration(Q,Jn(Q.modifiers,ze,uo),Q.asteriskToken,Q.name,void 0,Kl(Q.parameters,W,e),void 0,wf(Q.body,W,e)||t.createBlock([]));if(ua(Q)){const xt=[ot];return Ul(xt,Q),xt}return ot}function yt(Q){return rr(Q)?t.updateFunctionExpression(Q,Jn(Q.modifiers,ze,uo),Q.asteriskToken,Q.name,void 0,Kl(Q.parameters,W,e),void 0,wf(Q.body,W,e)||t.createBlock([])):t.createOmittedExpression()}function Nt(Q){return t.updateArrowFunction(Q,Jn(Q.modifiers,ze,uo),void 0,Kl(Q.parameters,W,e),void 0,Q.equalsGreaterThanToken,wf(Q.body,W,e))}function Ce(Q){if(I1(Q))return;const ot=t.updateParameterDeclaration(Q,Jn(Q.modifiers,xt=>Bu(xt)?W(xt):void 0,nl),Q.dotDotDotToken,D.checkDefined(lt(Q.name,W,gh)),void 0,void 0,lt(Q.initializer,W,vt));return ot!==Q&&(Wc(ot,Q),ht(ot,Zp(Q)),_s(ot,Zp(Q)),or(ot.name,64)),ot}function pt(Q){if(ua(Q)){const ot=Ek(Q.declarationList);return ot.length===0?void 0:ht(t.createExpressionStatement(t.inlineExpressions(Vt(ot,pe))),Q)}else return Bn(Q,W,e)}function pe(Q){const ot=Q.name;return Xa(ot)?VT(Q,W,e,0,!1,Vl):ht(t.createAssignment(Co(ot),D.checkDefined(lt(Q.initializer,W,vt))),Q)}function ie(Q){const ot=t.updateVariableDeclaration(Q,D.checkDefined(lt(Q.name,W,gh)),void 0,void 0,lt(Q.initializer,W,vt));return Q.type&&Epe(ot.name,Q.type),ot}function he(Q){const ot=bu(Q.expression,-7);if(lT(ot)){const xt=lt(Q.expression,W,vt);return D.assert(xt),t.createPartiallyEmittedExpression(xt,Q)}return Bn(Q,W,e)}function j(Q){const ot=lt(Q.expression,W,vt);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function We(Q){const ot=lt(Q.expression,W,Td);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function Ze(Q){const ot=lt(Q.expression,W,vt);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Q)}function Xe(Q){return t.updateCallExpression(Q,D.checkDefined(lt(Q.expression,W,vt)),void 0,Jn(Q.arguments,W,vt))}function Ut(Q){return t.updateNewExpression(Q,D.checkDefined(lt(Q.expression,W,vt)),void 0,Jn(Q.arguments,W,vt))}function cn(Q){return t.updateTaggedTemplateExpression(Q,D.checkDefined(lt(Q.tag,W,vt)),void 0,D.checkDefined(lt(Q.template,W,FA)))}function Sn(Q){return t.updateJsxSelfClosingElement(Q,D.checkDefined(lt(Q.tagName,W,JI)),void 0,D.checkDefined(lt(Q.attributes,W,F1)))}function Er(Q){return t.updateJsxOpeningElement(Q,D.checkDefined(lt(Q.tagName,W,JI)),void 0,D.checkDefined(lt(Q.attributes,W,F1)))}function ue(Q){return!T1(Q)||w1(d)}function mt(Q){if(!ue(Q))return t.createNotEmittedStatement(Q);const ot=[];let xt=4;const mn=gt(ot,Q);mn&&(h!==4||V!==O)&&(xt|=1024);const Dr=La(Q),Pr=Xo(Q),Ta=Yr(Q,1)?t.getExternalModuleOrNamespaceExportName(G,Q,!1,!0):t.getLocalName(Q,!1,!0);let ls=t.createLogicalOr(Ta,t.createAssignment(Ta,t.createObjectLiteralExpression()));if(Z(Q)){const jo=t.getLocalName(Q,!1,!0);ls=t.createAssignment(jo,ls)}const ho=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,zt(Q,Pr)),void 0,[ls]));return Wr(ho,Q),mn&&(O1(ho,void 0),TC(ho,void 0)),ht(ho,Q),tm(ho,xt),ot.push(ho),ot.push(t.createEndOfDeclarationMarker(Q)),ot}function zt(Q,ot){const xt=G;G=ot;const mn=[];i();const Dr=Vt(Q.members,it);return Pm(mn,s()),Ti(mn,Dr),G=xt,t.createBlock(ht(t.createNodeArray(mn),Q.members),!0)}function it(Q){const ot=At(Q,!1),xt=K(Q),mn=t.createAssignment(t.createElementAccessExpression(G,ot),xt),Dr=xt.kind===10?mn:t.createAssignment(t.createElementAccessExpression(G,mn),ot);return ht(t.createExpressionStatement(ht(Dr,Q)),Q)}function K(Q){const ot=f.getConstantValue(Q);return ot!==void 0?typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot):(jl(),Q.initializer?D.checkDefined(lt(Q.initializer,W,vt)):t.createVoidZero())}function Pe(Q){const ot=Ea(Q,Jl);return ot?OX(ot,w1(d)):!0}function Z(Q){return ua(Q)||wn(Q)&&h!==5&&h!==6&&h!==7&&h!==99&&h!==4}function Re(Q){H||(H=new Map);const ot=Rt(Q);H.has(ot)||H.set(ot,Q)}function q(Q){if(H){const ot=Rt(Q);return H.get(ot)===Q}return!0}function Rt(Q){return D.assertNode(Q.name,He),Q.name.escapedText}function gt(Q,ot){const xt=t.createVariableStatement(Jn(ot.modifiers,ze,uo),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(ot,!1,!0))],V.kind===308?0:1));if(Wr(xt,ot),Re(ot),q(ot))return ot.kind===263?_s(xt.declarationList,ot):_s(xt,ot),Wc(xt,ot),tm(xt,8390656),Q.push(xt),!0;{const mn=t.createMergeDeclarationMarker(xt);return or(mn,8391680),Q.push(mn),!1}}function ft(Q){if(!Pe(Q))return t.createNotEmittedStatement(Q);D.assertNode(Q.name,He,"A TypeScript namespace should have an Identifier name."),tu();const ot=[];let xt=4;const mn=gt(ot,Q);mn&&(h!==4||V!==O)&&(xt|=1024);const Dr=La(Q),Pr=Xo(Q),Ta=Yr(Q,1)?t.getExternalModuleOrNamespaceExportName(G,Q,!1,!0):t.getLocalName(Q,!1,!0);let ls=t.createLogicalOr(Ta,t.createAssignment(Ta,t.createObjectLiteralExpression()));if(Z(Q)){const jo=t.getLocalName(Q,!1,!0);ls=t.createAssignment(jo,ls)}const ho=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Dr)],void 0,_n(Q,Pr)),void 0,[ls]));return Wr(ho,Q),mn&&(O1(ho,void 0),TC(ho,void 0)),ht(ho,Q),tm(ho,xt),ot.push(ho),ot.push(t.createEndOfDeclarationMarker(Q)),ot}function _n(Q,ot){const xt=G,mn=k,Dr=H;G=ot,k=Q,H=void 0;const Pr=[];i();let Ta,ls;if(Q.body)if(Q.body.kind===265)ye(Q.body,jo=>Ti(Pr,Jn(jo.statements,ee,wa))),Ta=Q.body.statements,ls=Q.body;else{const jo=ft(Q.body);jo&&(Va(jo)?Ti(Pr,jo):Pr.push(jo));const Ya=$n(Q).body;Ta=nb(Ya.statements,-1)}Pm(Pr,s()),G=xt,k=mn,H=Dr;const ho=t.createBlock(ht(t.createNodeArray(Pr),Ta),!0);return ht(ho,ls),(!Q.body||Q.body.kind!==265)&&or(ho,vo(ho)|3072),ho}function $n(Q){if(Q.body.kind===264)return $n(Q.body)||Q.body}function oi(Q){if(!Q.importClause)return Q;if(Q.importClause.isTypeOnly)return;const ot=lt(Q.importClause,Ai,Wm);return ot||d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2?t.updateImportDeclaration(Q,void 0,ot,Q.moduleSpecifier,Q.assertClause):void 0}function Ai(Q){D.assert(!Q.isTypeOnly);const ot=Ht(Q)?Q.name:void 0,xt=lt(Q.namedBindings,Ci,fz);return ot||xt?t.updateImportClause(Q,!1,ot,xt):void 0}function Ci(Q){if(Q.kind===271)return Ht(Q)?Q:void 0;{const ot=d.verbatimModuleSyntax||d.preserveValueImports&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=Jn(Q.elements,ji,Ld);return ot||kt(xt)?t.updateNamedImports(Q,xt):void 0}}function ji(Q){return!Q.isTypeOnly&&Ht(Q)?Q:void 0}function mo(Q){return d.verbatimModuleSyntax||f.isValueAliasDeclaration(Q)?Bn(Q,W,e):void 0}function To(Q){if(Q.isTypeOnly)return;if(!Q.exportClause||kh(Q.exportClause))return Q;const ot=d.verbatimModuleSyntax||!!Q.moduleSpecifier&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=lt(Q.exportClause,mn=>Hi(mn,ot),ez);return xt?t.updateExportDeclaration(Q,void 0,Q.isTypeOnly,xt,Q.moduleSpecifier,Q.assertClause):void 0}function io(Q,ot){const xt=Jn(Q.elements,Xr,dd);return ot||kt(xt)?t.updateNamedExports(Q,xt):void 0}function ca(Q){return t.updateNamespaceExport(Q,D.checkDefined(lt(Q.name,W,He)))}function Hi(Q,ot){return kh(Q)?ca(Q):io(Q,ot)}function Xr(Q){return!Q.isTypeOnly&&(d.verbatimModuleSyntax||f.isValueAliasDeclaration(Q))?Q:void 0}function ss(Q){return Ht(Q)||!Zl(O)&&f.isTopLevelValueImportEqualsWithEntityName(Q)}function _i(Q){if(Q.isTypeOnly)return;if(X0(Q)){const xt=Ht(Q);return!xt&&d.importsNotUsedAsValues===1?Wr(ht(t.createImportDeclaration(void 0,void 0,Q.moduleReference.expression,void 0),Q),Q):xt?Bn(Q,W,e):void 0}if(!ss(Q))return;const ot=r8(t,Q.moduleReference);return or(ot,7168),fa(Q)||!ua(Q)?Wr(ht(t.createVariableStatement(Jn(Q.modifiers,ze,uo),t.createVariableDeclarationList([Wr(t.createVariableDeclaration(Q.name,void 0,void 0,ot),Q)])),Q),Q):Wr(Xl(Q.name,ot,Q),Q)}function ua(Q){return k!==void 0&&Yr(Q,1)}function wn(Q){return k===void 0&&Yr(Q,1)}function fa(Q){return wn(Q)&&!Yr(Q,1024)}function ec(Q){return wn(Q)&&Yr(Q,1024)}function rl(Q){const ot=t.createAssignment(t.getExternalModuleOrNamespaceExportName(G,Q,!1,!0),t.getLocalName(Q));_s(ot,g_(Q.name?Q.name.pos:Q.pos,Q.end));const xt=t.createExpressionStatement(ot);return _s(xt,g_(-1,Q.end)),xt}function Ul(Q,ot){Q.push(rl(ot))}function Xl(Q,ot,xt){return ht(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(G,Q,!1,!0),ot)),xt)}function Vl(Q,ot,xt){return ht(t.createAssignment(Co(Q),ot),xt)}function Co(Q){return t.getNamespaceMemberName(G,Q,!1,!0)}function La(Q){const ot=t.getGeneratedNameForNode(Q);return _s(ot,Q.name),ot}function Xo(Q){return t.getGeneratedNameForNode(Q)}function jl(){X&8||(X|=8,e.enableSubstitution(79))}function tu(){X&2||(X|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264))}function zd(Q){return Sl(Q).kind===264}function oc(Q){return Sl(Q).kind===263}function Kc(Q,ot,xt){const mn=Y,Dr=O;qi(ot)&&(O=ot),X&2&&zd(ot)&&(Y|=2),X&8&&oc(ot)&&(Y|=8),L(Q,ot,xt),Y=mn,O=Dr}function Ds(Q,ot){return ot=I(Q,ot),Q===1?el(ot):t_(ot)?hl(ot):ot}function hl(Q){if(X&2){const ot=Q.name,xt=rn(ot);if(xt){if(Q.objectAssignmentInitializer){const mn=t.createAssignment(xt,Q.objectAssignmentInitializer);return ht(t.createPropertyAssignment(ot,mn),Q)}return ht(t.createPropertyAssignment(ot,xt),Q)}}return Q}function el(Q){switch(Q.kind){case 79:return Ks(Q);case 208:return Hl(Q);case 209:return xu(Q)}return Q}function Ks(Q){return rn(Q)||Q}function rn(Q){if(X&Y&&!xl(Q)&&!Vv(Q)){const ot=f.getReferencedExportContainer(Q,!1);if(ot&&ot.kind!==308&&(Y&2&&ot.kind===264||Y&8&&ot.kind===263))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(ot),Q),Q)}}function Hl(Q){return fe(Q)}function xu(Q){return fe(Q)}function zu(Q){return Q.replace(/\*\//g,"*_/")}function fe(Q){const ot=It(Q);if(ot!==void 0){vpe(Q,ot);const xt=typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot);if(!d.removeComments){const mn=Sl(Q,ll);I7(xt,3,` ${zu(xc(mn))} `)}return xt}return Q}function It(Q){if(!H_(d))return Fr(Q)||cl(Q)?f.getConstantValue(Q):void 0}function Ht(Q){return d.verbatimModuleSyntax||fr(Q)||(d.preserveValueImports?f.isValueAliasDeclaration(Q):f.isReferencedAliasDeclaration(Q))}}var rye,T5e=C({"src/compiler/transformers/ts.ts"(){Oa(),rye=!1}});function iye(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:c,addBlockScopedVariable:f}=e,d=e.getEmitResolver(),y=e.getCompilerOptions(),h=es(y),E=yO(y),A=!!y.experimentalDecorators,L=!E,I=E&&h<9,O=L||I,k=h<9,G=h<99?-1:E?0:3,V=h<9,H=V&&h>=2,te=O||k||G===-1,X=e.onSubstituteNode;e.onSubstituteNode=Ks;const Y=e.onEmitNode;e.onEmitNode=el;let P=!1,de,re,ye,ae,W;const ce=new Map;let me,ve,Se=!1,ee=!1;return Y_(e,Qe);function Qe(fe){if(fe.isDeclarationFile||(W=void 0,P=!!(B_(fe)&32),!te&&!P))return fe;const It=Bn(fe,Ge,e);return Ty(It,e.readEmitHelpers()),It}function je(fe){switch(fe.kind){case 127:return cr()?void 0:fe;default:return ai(fe,uo)}}function Ge(fe){if(!(fe.transformFlags&16777216)&&!(fe.transformFlags&134234112))return fe;switch(fe.kind){case 127:return D.fail("Use `modifierVisitor` instead.");case 260:return ue(fe);case 228:return zt(fe,void 0);case 172:case 169:return D.fail("Use `classElementVisitor` instead.");case 299:return tt(fe);case 240:return at(fe);case 257:return Qt(fe);case 166:return On(fe);case 205:return jn(fe);case 274:return In(fe);case 80:return Et(fe);case 208:return an(fe);case 209:return Pn(fe);case 221:case 222:return Ar(fe,!1);case 223:return ie(fe,!1);case 214:return j(fe,!1,void 0);case 210:return Nt(fe);case 241:return we(fe);case 212:return Ce(fe);case 245:return Hr(fe);case 259:case 215:case 173:case 171:case 174:case 175:return Or(void 0,qe,fe);default:return qe(fe)}}function qe(fe){return Bn(fe,Ge,e)}function Oe(fe,It){switch(fe.kind){case 356:return We(fe,!1,It);case 214:return j(fe,!1,It);case 228:return zt(fe,It);default:return Ge(fe)}}function Me(fe){switch(fe.kind){case 221:case 222:return Ar(fe,!0);case 223:return ie(fe,!0);case 357:return he(fe,!0);case 214:return j(fe,!0,void 0);default:return Ge(fe)}}function Ye(fe){switch(fe.kind){case 294:return Bn(fe,Ye,e);case 230:return Sn(fe);default:return Ge(fe)}}function ze(fe){switch(fe.kind){case 207:case 206:return hl(fe);default:return Ge(fe)}}function Fe(fe){switch(fe.kind){case 173:return Ii(fe);case 174:case 175:case 171:return Or(void 0,Qi,fe);case 169:return Or(void 0,Pi,fe);case 172:return K(fe);case 164:return _r(fe);case 237:return fe;default:return nl(fe)?je(fe):Ge(fe)}}function st(fe){switch(fe.kind){case 164:return _r(fe);default:return Ge(fe)}}function Ct(fe){switch(fe.kind){case 169:return rr(fe);case 174:case 175:return Fe(fe);default:D.assertMissingNode(fe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Et(fe){return!k||wa(fe.parent)?fe:Wr(t.createIdentifier(""),fe)}function jt(fe){const It=Vl(fe.left);if(It){const Ht=lt(fe.right,Ge,vt);return Wr(r().createClassPrivateFieldInHelper(It.brandCheckIdentifier,Ht),fe)}return Bn(fe,Ge,e)}function tt(fe){if(Yf(fe,pe)){const{referencedName:It,name:Ht}=Ze(fe.name),Q=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updatePropertyAssignment(fe,Ht,Q)}return Bn(fe,Ge,e)}function at(fe){const It=ae;ae=[];const Ht=Bn(fe,Ge,e),Q=kt(ae)?[Ht,...ae]:Ht;return ae=It,Q}function sn(fe,It){const Ht=Sl(It,di);return Ht&&!Ht.name&&Yr(Ht,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(fe)}function Qt(fe){if(Yf(fe,pe)){const It=sn(fe.name,fe.initializer),Ht=lt(fe.name,Ge,gh),Q=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updateVariableDeclaration(fe,Ht,void 0,void 0,Q)}return Bn(fe,Ge,e)}function On(fe){if(Yf(fe,pe)){const It=sn(fe.name,fe.initializer),Ht=lt(fe.name,Ge,gh),Q=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updateParameterDeclaration(fe,void 0,void 0,Ht,void 0,void 0,Q)}return Bn(fe,Ge,e)}function jn(fe){if(Yf(fe,pe)){const It=sn(fe.name,fe.initializer),Ht=lt(fe.propertyName,Ge,yl),Q=lt(fe.name,Ge,gh),ot=lt(fe.initializer,xt=>Oe(xt,It),vt);return t.updateBindingElement(fe,void 0,Ht,Q,ot)}return Bn(fe,Ge,e)}function In(fe){if(Yf(fe,pe)){const It=t.createStringLiteral(fe.isExportEquals?"":"default"),Ht=Jn(fe.modifiers,je,uo),Q=lt(fe.expression,ot=>Oe(ot,It),vt);return t.updateExportAssignment(fe,Ht,Q)}return Bn(fe,Ge,e)}function Zt(fe){return kt(ye)&&(Ud(fe)?(ye.push(fe.expression),fe=t.updateParenthesizedExpression(fe,t.inlineExpressions(ye))):(ye.push(fe),fe=t.inlineExpressions(ye)),ye=void 0),fe}function _r(fe){const It=lt(fe.expression,Ge,vt);return t.updateComputedPropertyName(fe,Zt(It))}function Ii(fe){return me?Re(fe,me):qe(fe)}function $i(fe){return!!(k||gc(fe)&&B_(fe)&32)}function Qi(fe){if(D.assert(!$f(fe)),!Zu(fe)||!$i(fe))return Bn(fe,Fe,e);const It=Vl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),!It.isValid)return fe;const Ht=At(fe);Ht&&Xr().push(t.createAssignment(Ht,t.createFunctionExpression(lr(fe.modifiers,Q=>uo(Q)&&!Px(Q)&&!Fpe(Q)),fe.asteriskToken,Ht,void 0,Kl(fe.parameters,Ge,e),void 0,wf(fe.body,Ge,e))))}function Or(fe,It,Ht){const Q=ve;ve=fe;const ot=It(Ht);return ve=Q,ot}function At(fe){D.assert(Ni(fe.name));const It=Vl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),It.kind==="m")return It.methodName;if(It.kind==="a"){if(kv(fe))return It.getterName;if(gy(fe))return It.setterName}}function vn(fe){const It=jm(fe),Ht=ib(fe),Q=fe.name;let ot=Q,xt=Q;if(As(Q)&&!om(Q.expression)){const ls=x5(Q);if(ls)ot=t.updateComputedPropertyName(Q,lt(Q.expression,Ge,vt)),xt=t.updateComputedPropertyName(Q,ls.left);else{const ho=t.createTempVariable(i);_s(ho,Q.expression);const jo=lt(Q.expression,Ge,vt),Ya=t.createAssignment(ho,jo);_s(Ya,Q.expression),ot=t.updateComputedPropertyName(Q,Ya),xt=t.updateComputedPropertyName(Q,ho)}}const mn=Jn(fe.modifiers,je,uo),Dr=kK(t,fe,mn,fe.initializer);Wr(Dr,fe),or(Dr,3072),_s(Dr,Ht);const Pr=bme(t,fe,mn,ot);Wr(Pr,fe),Wc(Pr,It),_s(Pr,Ht);const Ta=Eme(t,fe,mn,xt);return Wr(Ta,fe),or(Ta,3072),_s(Ta,Ht),VX([Dr,Pr,Ta],Ct,Vc)}function Wt(fe){if($i(fe)){const It=Vl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),!It.isValid)return fe;if(It.isStatic&&!k){const Ht=gt(fe,t.createThis());if(Ht)return t.createClassStaticBlockDeclaration(t.createBlock([Ht],!0))}return}if(L&&!Ja(fe)&&(W!=null&&W.data)&&W.data.facts&16)return t.updatePropertyDeclaration(fe,Jn(fe.modifiers,Ge,nl),fe.name,void 0,void 0,void 0);if(Yf(fe,pe)){const{referencedName:It,name:Ht}=Ze(fe.name);return t.updatePropertyDeclaration(fe,Jn(fe.modifiers,je,uo),Ht,void 0,void 0,lt(fe.initializer,Q=>Oe(Q,It),vt))}return t.updatePropertyDeclaration(fe,Jn(fe.modifiers,je,uo),lt(fe.name,st,yl),void 0,void 0,lt(fe.initializer,Ge,vt))}function dn(fe){if(O&&!rf(fe)){const It=mo(fe.name,!!fe.initializer||E,Yf(fe,pe));if(It&&Xr().push(...Tme(It)),Ja(fe)&&!k){const Ht=gt(fe,t.createThis());if(Ht){const Q=t.createClassStaticBlockDeclaration(t.createBlock([Ht]));return Wr(Q,fe),Wc(Q,fe),Wc(Ht,{pos:-1,end:-1}),O1(Ht,void 0),TC(Ht,void 0),Q}}return}return t.updatePropertyDeclaration(fe,Jn(fe.modifiers,je,uo),lt(fe.name,st,yl),void 0,void 0,lt(fe.initializer,Ge,vt))}function rr(fe){return D.assert(!$f(fe),"Decorators should already have been transformed and elided."),Zu(fe)?Wt(fe):dn(fe)}function cr(){return G===-1||G===3&&!!(W!=null&&W.data)&&!!(W.data.facts&16)}function Pi(fe){return rf(fe)&&(cr()||gc(fe)&&B_(fe)&32)?vn(fe):rr(fe)}function gi(fe,It){return Rn(fe,lt(It,Ge,vt))}function Rn(fe,It){switch(Wc(It,nb(It,-1)),fe.kind){case"a":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.getterName);case"m":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.methodName);case"f":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function an(fe){if(Ni(fe.name)){const It=Vl(fe.name);if(It)return ht(Wr(gi(It,fe.expression),fe),fe)}if(H&&ud(fe)&&He(fe.name)&&ve&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:Ht,facts:Q}=W.data;if(Q&1)return ji(fe);if(It&&Ht){const ot=t.createReflectGetCall(Ht,t.createStringLiteralFromNode(fe.name),It);return Wr(ot,fe.expression),ht(ot,fe.expression),ot}}return Bn(fe,Ge,e)}function Pn(fe){if(H&&ud(fe)&&ve&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:Ht,facts:Q}=W.data;if(Q&1)return ji(fe);if(It&&Ht){const ot=t.createReflectGetCall(Ht,lt(fe.argumentExpression,Ge,vt),It);return Wr(ot,fe.expression),ht(ot,fe.expression),ot}}return Bn(fe,Ge,e)}function Ar(fe,It){if(fe.operator===45||fe.operator===46){const Ht=js(fe.operand);if(OA(Ht)){let Q;if(Q=Vl(Ht.name)){const ot=lt(Ht.expression,Ge,vt),{readExpression:xt,initializeExpression:mn}=yt(ot);let Dr=gi(Q,xt);const Pr=Gv(fe)||It?void 0:t.createTempVariable(i);return Dr=h5(t,fe,Dr,i,Pr),Dr=Xe(Q,mn||xt,Dr,63),Wr(Dr,fe),ht(Dr,fe),Pr&&(Dr=t.createComma(Dr,Pr),ht(Dr,fe)),Dr}}else if(H&&ud(Ht)&&ve&&(W!=null&&W.data)){const{classConstructor:Q,superClassReference:ot,facts:xt}=W.data;if(xt&1){const mn=ji(Ht);return Gv(fe)?t.updatePrefixUnaryExpression(fe,mn):t.updatePostfixUnaryExpression(fe,mn)}if(Q&&ot){let mn,Dr;if(Fr(Ht)?He(Ht.name)&&(Dr=mn=t.createStringLiteralFromNode(Ht.name)):om(Ht.argumentExpression)?Dr=mn=Ht.argumentExpression:(Dr=t.createTempVariable(i),mn=t.createAssignment(Dr,lt(Ht.argumentExpression,Ge,vt))),mn&&Dr){let Pr=t.createReflectGetCall(ot,Dr,Q);ht(Pr,Ht);const Ta=It?void 0:t.createTempVariable(i);return Pr=h5(t,fe,Pr,i,Ta),Pr=t.createReflectSetCall(ot,mn,Pr,Q),Wr(Pr,fe),ht(Pr,fe),Ta&&(Pr=t.createComma(Pr,Ta),ht(Pr,fe)),Pr}}}}return Bn(fe,Ge,e)}function Hr(fe){return t.updateForStatement(fe,lt(fe.initializer,Me,Xp),lt(fe.condition,Ge,vt),lt(fe.incrementor,Me,vt),E_(fe.statement,Ge,e))}function we(fe){return t.updateExpressionStatement(fe,lt(fe.expression,Me,vt))}function yt(fe){const It=Zs(fe)?fe:t.cloneNode(fe);if(om(fe))return{readExpression:It,initializeExpression:void 0};const Ht=t.createTempVariable(i),Q=t.createAssignment(Ht,It);return{readExpression:Ht,initializeExpression:Q}}function Nt(fe){var It;if(OA(fe.expression)&&Vl(fe.expression.name)){const{thisArg:Ht,target:Q}=t.createCallBinding(fe.expression,i,h);return aT(fe)?t.updateCallChain(fe,t.createPropertyAccessChain(lt(Q,Ge,vt),fe.questionDotToken,"call"),void 0,void 0,[lt(Ht,Ge,vt),...Jn(fe.arguments,Ge,vt)]):t.updateCallExpression(fe,t.createPropertyAccessExpression(lt(Q,Ge,vt),"call"),void 0,[lt(Ht,Ge,vt),...Jn(fe.arguments,Ge,vt)])}if(H&&ud(fe.expression)&&ve&&((It=W==null?void 0:W.data)!=null&&It.classConstructor)){const Ht=t.createFunctionCallCall(lt(fe.expression,Ge,vt),W.data.classConstructor,Jn(fe.arguments,Ge,vt));return Wr(Ht,fe),ht(Ht,fe),Ht}return Bn(fe,Ge,e)}function Ce(fe){var It;if(OA(fe.tag)&&Vl(fe.tag.name)){const{thisArg:Ht,target:Q}=t.createCallBinding(fe.tag,i,h);return t.updateTaggedTemplateExpression(fe,t.createCallExpression(t.createPropertyAccessExpression(lt(Q,Ge,vt),"bind"),void 0,[lt(Ht,Ge,vt)]),void 0,lt(fe.template,Ge,FA))}if(H&&ud(fe.tag)&&ve&&((It=W==null?void 0:W.data)!=null&&It.classConstructor)){const Ht=t.createFunctionBindCall(lt(fe.tag,Ge,vt),W.data.classConstructor,[]);return Wr(Ht,fe),ht(Ht,fe),t.updateTaggedTemplateExpression(fe,Ht,void 0,lt(fe.template,Ge,FA))}return Bn(fe,Ge,e)}function pt(fe){if(W&&ce.set(Sl(fe),W),k){s();let It=Or(fe,Q=>Jn(Q,Ge,wa),fe.body.statements);It=t.mergeLexicalEnvironment(It,o());const Ht=t.createImmediatelyInvokedArrowFunction(It);return Wr(Ht,fe),ht(Ht,fe),tm(Ht,4),Ht}}function pe(fe){if(Uu(fe)&&!fe.name){const It=gF(fe),Ht=nn(It,kl);if(Ht){for(const ot of Ht.body.statements)if(ou(ot)&&Vk(ot.expression,"___setFunctionName"))return!1}return(k||!!B_(fe))&&kt(It,ot=>kl(ot)||Zu(ot)||O&&H8(ot))}return!1}function ie(fe,It){if(by(fe)){const Ht=ye;ye=void 0,fe=t.updateBinaryExpression(fe,lt(fe.left,ze,vt),fe.operatorToken,lt(fe.right,Ge,vt));const Q=kt(ye)?t.inlineExpressions(CR([...ye,fe])):fe;return ye=Ht,Q}if(nd(fe)){if(Yf(fe,pe)){const Ht=sn(fe.left,fe.right),Q=lt(fe.left,Ge,vt),ot=lt(fe.right,xt=>Oe(xt,Ht),vt);return t.updateBinaryExpression(fe,Q,fe.operatorToken,ot)}if(OA(fe.left)){const Ht=Vl(fe.left.name);if(Ht)return ht(Wr(Xe(Ht,fe.left.expression,fe.right,fe.operatorToken.kind),fe),fe)}else if(H&&ud(fe.left)&&ve&&(W!=null&&W.data)){const{classConstructor:Ht,superClassReference:Q,facts:ot}=W.data;if(ot&1)return t.updateBinaryExpression(fe,ji(fe.left),fe.operatorToken,lt(fe.right,Ge,vt));if(Ht&&Q){let xt=cl(fe.left)?lt(fe.left.argumentExpression,Ge,vt):He(fe.left.name)?t.createStringLiteralFromNode(fe.left.name):void 0;if(xt){let mn=lt(fe.right,Ge,vt);if(j8(fe.operatorToken.kind)){let Pr=xt;om(xt)||(Pr=t.createTempVariable(i),xt=t.createAssignment(Pr,xt));const Ta=t.createReflectGetCall(Q,Pr,Ht);Wr(Ta,fe.left),ht(Ta,fe.left),mn=t.createBinaryExpression(Ta,gw(fe.operatorToken.kind),mn),ht(mn,fe)}const Dr=It?void 0:t.createTempVariable(i);return Dr&&(mn=t.createAssignment(Dr,mn),ht(Dr,fe)),mn=t.createReflectSetCall(Q,xt,mn,Ht),Wr(mn,fe),ht(mn,fe),Dr&&(mn=t.createComma(mn,Dr),ht(mn,fe)),mn}}}}return L5e(fe)?jt(fe):Bn(fe,Ge,e)}function he(fe,It){const Ht=It?V8(fe.elements,Me):V8(fe.elements,Ge,Me);return t.updateCommaListExpression(fe,Ht)}function j(fe,It,Ht){const Q=It?Me:Ht?xt=>Oe(xt,Ht):Ge,ot=lt(fe.expression,Q,vt);return t.updateParenthesizedExpression(fe,ot)}function We(fe,It,Ht){const Q=It?Me:Ht?xt=>Oe(xt,Ht):Ge,ot=lt(fe.expression,Q,vt);return t.updatePartiallyEmittedExpression(fe,ot)}function Ze(fe){if(U_(fe)||Ni(fe)){const xt=t.createStringLiteralFromNode(fe),mn=lt(fe,Ge,yl);return{referencedName:xt,name:mn}}if(U_(fe.expression)&&!He(fe.expression)){const xt=t.createStringLiteralFromNode(fe.expression),mn=lt(fe,Ge,yl);return{referencedName:xt,name:mn}}const It=t.createTempVariable(i),Ht=r().createPropKeyHelper(lt(fe.expression,Ge,vt)),Q=t.createAssignment(It,Ht),ot=t.updateComputedPropertyName(fe,Zt(Q));return{referencedName:It,name:ot}}function Xe(fe,It,Ht,Q){if(It=lt(It,Ge,vt),Ht=lt(Ht,Ge,vt),j8(Q)){const{readExpression:ot,initializeExpression:xt}=yt(It);It=xt||ot,Ht=t.createBinaryExpression(Rn(fe,ot),gw(Q),Ht)}switch(Wc(It,nb(It,-1)),fe.kind){case"a":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,Ht,fe.kind,fe.setterName);case"m":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,Ht,fe.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,Ht,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function Ut(fe){return lr(fe.members,Yge)}function cn(fe){let It=0;const Ht=Sl(fe);Nc(Ht)&&S1(A,Ht)&&(It|=1);let Q=!1,ot=!1,xt=!1,mn=!1;for(const Pr of fe.members)Ja(Pr)?(Pr.name&&(Ni(Pr.name)||rf(Pr))&&k&&(It|=2),(to(Pr)||kl(Pr))&&(V&&Pr.transformFlags&16384&&(It|=8,It&1||(It|=2)),H&&Pr.transformFlags&134217728&&(It&1||(It|=6)))):k1(Sl(Pr))||(rf(Pr)?(mn=!0,xt||(xt=Zu(Pr))):Zu(Pr)?xt=!0:to(Pr)&&(Q=!0,ot||(ot=!!Pr.initializer)));return(I&&Q||L&&ot||k&&xt||k&&mn&&G===-1)&&(It|=16),It}function Sn(fe){var It;if((((It=W==null?void 0:W.data)==null?void 0:It.facts)||0)&4){const Q=t.createTempVariable(i,!0);return ca().superClassReference=Q,t.updateExpressionWithTypeArguments(fe,t.createAssignment(Q,lt(fe.expression,Ge,vt)),void 0)}return Bn(fe,Ge,e)}function Er(fe,It,Ht){const Q=me,ot=ye,xt=W;me=fe,ye=void 0,To();const mn=B_(fe)&32;if(k||mn){const Ta=ka(fe);Ta&&He(Ta)&&(Hi().data.className=Ta)}if(k){const Ta=Ut(fe);kt(Ta)&&(Hi().data.weakSetName=Ul("instances",Ta[0].name))}const Dr=cn(fe);Dr&&(ca().facts=Dr),Dr&8&&Ai();const Pr=Ht(fe,Dr,It);return io(),D.assert(W===xt),me=Q,ye=ot,Pr}function ue(fe){return Er(fe,void 0,mt)}function mt(fe,It){var Ht,Q;let ot;if(It&2){if(k&&((Ht=fe.emitNode)!=null&&Ht.classThis))ca().classConstructor=fe.emitNode.classThis,ot=t.createAssignment(fe.emitNode.classThis,t.getInternalName(fe));else{const ho=t.createTempVariable(i,!0);ca().classConstructor=t.cloneNode(ho),ot=t.createAssignment(ho,t.getInternalName(fe))}(Q=fe.emitNode)!=null&&Q.classThis&&(ca().classThis=fe.emitNode.classThis)}const xt=Jn(fe.modifiers,je,uo),mn=Jn(fe.heritageClauses,Ye,Vd),{members:Dr,prologue:Pr}=Pe(fe),Ta=t.updateClassDeclaration(fe,xt,fe.name,void 0,mn,Dr),ls=[];if(Pr&&ls.push(t.createExpressionStatement(Pr)),ls.push(Ta),ot&&Xr().unshift(ot),kt(ye)&&ls.push(t.createExpressionStatement(t.inlineExpressions(ye))),L||k||B_(fe)&32){const ho=gF(fe);kt(ho)&&Rt(ls,ho,t.getInternalName(fe))}return ls}function zt(fe,It){return Er(fe,It,it)}function it(fe,It,Ht){var Q,ot,xt,mn,Dr,Pr;const Ta=!!(It&1),ls=gF(fe),ho=d.getNodeCheckFlags(fe)&1048576;let jo;function Ya(){var Wl;if(k&&((Wl=fe.emitNode)!=null&&Wl.classThis))return ca().classConstructor=fe.emitNode.classThis;const Nf=d.getNodeCheckFlags(fe),xe=Nf&1048576,Dt=Nf&32768,Nn=t.createTempVariable(Dt?f:i,!!xe);return ca().classConstructor=t.cloneNode(Nn),Nn}(Q=fe.emitNode)!=null&&Q.classThis&&(ca().classThis=fe.emitNode.classThis),It&2&&(jo??(jo=Ya()));const dl=Jn(fe.modifiers,je,uo),dc=Jn(fe.heritageClauses,Ye,Vd),{members:_d,prologue:Es}=Pe(fe);let ds=t.updateClassExpression(fe,dl,fe.name,void 0,dc,_d);const fl=[];if(Es&&fl.push(Es),(k||B_(fe)&32)&&kt(ls,Wl=>kl(Wl)||Zu(Wl)||O&&H8(Wl))||kt(ye)||Ht)if(Ta){if(D.assertIsDefined(ae,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),kt(ye)&&Ti(ae,Vt(ye,t.createExpressionStatement)),Ht)if(k){const Wl=r().createSetFunctionNameHelper((xt=jo??((ot=fe.emitNode)==null?void 0:ot.classThis))!=null?xt:t.getInternalName(fe),Ht);ae.push(t.createExpressionStatement(Wl))}else{const Wl=r().createSetFunctionNameHelper(t.createThis(),Ht);ds=t.updateClassExpression(ds,ds.modifiers,ds.name,ds.typeParameters,ds.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(Wl)])),...ds.members])}kt(ls)&&Rt(ae,ls,(Dr=(mn=fe.emitNode)==null?void 0:mn.classThis)!=null?Dr:t.getInternalName(fe)),jo?fl.push(t.createAssignment(jo,ds)):k&&((Pr=fe.emitNode)!=null&&Pr.classThis)?fl.push(t.createAssignment(fe.emitNode.classThis,ds)):fl.push(ds)}else{if(jo??(jo=Ya()),ho){oi();const Wl=t.cloneNode(jo);Wl.emitNode.autoGenerate.flags&=-9,re[wl(fe)]=Wl}fl.push(t.createAssignment(jo,ds)),Ti(fl,ye),Ht&&fl.push(r().createSetFunctionNameHelper(jo,Ht)),Ti(fl,ft(ls,jo)),fl.push(t.cloneNode(jo))}else fl.push(ds);return fl.length>1&&(tm(ds,131072),fl.forEach(ju)),t.inlineExpressions(fl)}function K(fe){if(!k)return Bn(fe,Ge,e)}function Pe(fe){const It=!!(B_(fe)&32);if(k||P){for(const mn of fe.members)if(Zu(mn))if($i(mn))rl(mn,mn.name,ss);else{const Dr=Hi();UT(Dr,mn.name,{kind:"untransformed"})}if(k&&kt(Ut(fe))&&Z(),cr()){for(const mn of fe.members)if(rf(mn)){const Dr=t.getGeneratedPrivateNameForNode(mn.name,void 0,"_accessor_storage");if(k||It&&gc(mn))rl(mn,Dr,_i);else{const Pr=Hi();UT(Pr,Dr,{kind:"untransformed"})}}}}let Ht=Jn(fe.members,Fe,Vc),Q;kt(Ht,ql)||(Q=Re(void 0,fe));let ot,xt;if(!k&&kt(ye)){let mn=t.createExpressionStatement(t.inlineExpressions(ye));if(mn.transformFlags&134234112){const Pr=t.createTempVariable(i),Ta=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([mn]));ot=t.createAssignment(Pr,Ta),mn=t.createExpressionStatement(t.createCallExpression(Pr,void 0,[]))}const Dr=t.createBlock([mn]);xt=t.createClassStaticBlockDeclaration(Dr),ye=void 0}if(Q||xt){let mn;mn=Fn(mn,Q),mn=Fn(mn,xt),mn=Ti(mn,Ht),Ht=ht(t.createNodeArray(mn),fe.members)}return{members:Ht,prologue:ot}}function Z(){const{weakSetName:fe}=Hi().data;D.assert(fe,"weakSetName should be set in private identifier environment"),Xr().push(t.createAssignment(fe,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Re(fe,It){if(fe=lt(fe,Ge,ql),!(W!=null&&W.data)||!(W.data.facts&16))return fe;const Ht=$p(It),Q=!!(Ht&&bu(Ht.expression).kind!==104),ot=Kl(fe?fe.parameters:void 0,Ge,e),xt=q(It,fe,Q);return xt?fe?(D.assert(ot),t.updateConstructorDeclaration(fe,void 0,ot,xt)):ju(Wr(ht(t.createConstructorDeclaration(void 0,ot??[],xt),fe||It),fe)):fe}function q(fe,It,Ht){var Q,ot;const xt=KX(fe,!1,!1);let mn=xt;E||(mn=lr(mn,Es=>!!Es.initializer||Ni(Es.name)||Bm(Es)));const Dr=Ut(fe),Pr=kt(mn)||kt(Dr);if(!It&&!Pr)return wf(void 0,Ge,e);c();const Ta=!It&&Ht;let ls=0,ho=0,jo=-1,Ya=[];(Q=It==null?void 0:It.body)!=null&&Q.statements&&(ho=t.copyPrologue(It.body.statements,Ya,!1,Ge),jo=hF(It.body.statements,ho),jo>=0?(ls=jo+1,Ya=[...Ya.slice(0,ho),...Jn(It.body.statements,Ge,wa,ho,ls-ho),...Ya.slice(ho)]):ho>=0&&(ls=ho)),Ta&&Ya.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let dl=0;if(It!=null&&It.body){for(let Es=ls;Es<It.body.statements.length;Es++){const ds=It.body.statements[Es];if(tf(Sl(ds),It))dl++;else break}dl>0&&(ls+=dl)}const dc=t.createThis();if(Ci(Ya,Dr,dc),It){const Es=lr(xt,fl=>tf(Sl(fl),It)),ds=lr(mn,fl=>!tf(Sl(fl),It));Rt(Ya,Es,dc),Rt(Ya,ds,dc)}else Rt(Ya,mn,dc);if(It&&Ti(Ya,Jn(It.body.statements,Ge,wa,ls)),Ya=t.mergeLexicalEnvironment(Ya,o()),Ya.length===0&&!It)return;const _d=It!=null&&It.body&&It.body.statements.length>=Ya.length&&(ot=It.body.multiLine)!=null?ot:Ya.length>0;return ht(t.createBlock(ht(t.createNodeArray(Ya),It?It.body.statements:fe.members),_d),It?It.body:void 0)}function Rt(fe,It,Ht){for(const Q of It){if(Ja(Q)&&!k)continue;const ot=gt(Q,Ht);ot&&fe.push(ot)}}function gt(fe,It){const Ht=kl(fe)?pt(fe):_n(fe,It);if(!Ht)return;const Q=t.createExpressionStatement(Ht);Wr(Q,fe),tm(Q,vo(fe)&3072),Wc(Q,fe);const ot=Sl(fe);return Ba(ot)?(_s(Q,ot),PO(Q)):_s(Q,Zp(fe)),O1(Ht,void 0),TC(Ht,void 0),Bm(ot)&&tm(Q,3072),Q}function ft(fe,It){const Ht=[];for(const Q of fe){const ot=kl(Q)?pt(Q):_n(Q,It);ot&&(ju(ot),Wr(ot,Q),tm(ot,vo(Q)&3072),_s(ot,Zp(Q)),Wc(ot,Q),Ht.push(ot))}return Ht}function _n(fe,It){var Ht;const Q=ve,ot=$n(fe,It);return ot&&gc(fe)&&((Ht=W==null?void 0:W.data)!=null&&Ht.facts)&&(Wr(ot,fe),tm(ot,4),_s(ot,ib(fe.name)),ce.set(Sl(fe),W)),ve=Q,ot}function $n(fe,It){const Ht=!E;let Q;Yf(fe,pe)&&(U_(fe.name)||Ni(fe.name)?Q=t.createStringLiteralFromNode(fe.name):U_(fe.name.expression)&&!He(fe.name.expression)?Q=t.createStringLiteralFromNode(fe.name.expression):Q=t.getGeneratedNameForNode(fe.name));const ot=Bm(fe)?t.getGeneratedPrivateNameForNode(fe.name):As(fe.name)&&!om(fe.name.expression)?t.updateComputedPropertyName(fe.name,t.getGeneratedNameForNode(fe.name)):fe.name;gc(fe)&&(ve=fe);const xt=Q?Pr=>Oe(Pr,Q):Ge;if(Ni(ot)&&$i(fe)){const Pr=Vl(ot);if(Pr)return Pr.kind==="f"?Pr.isStatic?S5e(Pr.variableName,lt(fe.initializer,xt,vt)):x5e(It,lt(fe.initializer,xt,vt),Pr.brandCheckIdentifier):void 0;D.fail("Undeclared private name for property declaration.")}if((Ni(ot)||gc(fe))&&!fe.initializer)return;const mn=Sl(fe);if(Yr(mn,256))return;let Dr=lt(fe.initializer,xt,vt);if(tf(mn,mn.parent)&&He(ot)){const Pr=t.cloneNode(ot);Dr?(Ud(Dr)&&i8(Dr.expression)&&Vk(Dr.expression.left,"___runInitializers")&&Vx(Dr.expression.right)&&b_(Dr.expression.right.expression)&&(Dr=Dr.expression.left),Dr=t.inlineExpressions([Dr,Pr])):Dr=Pr,or(ot,3168),_s(Pr,mn.name),or(Pr,3072)}else Dr??(Dr=t.createVoidZero());if(Ht||Ni(ot)){const Pr=PT(t,It,ot,ot);return tm(Pr,1024),t.createAssignment(Pr,Dr)}else{const Pr=As(ot)?ot.expression:He(ot)?t.createStringLiteral(ta(ot.escapedText)):ot,Ta=t.createPropertyDescriptor({value:Dr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(It,Pr,Ta)}}function oi(){de&1||(de|=1,e.enableSubstitution(79),re=[])}function Ai(){de&2||(de|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164))}function Ci(fe,It,Ht){if(!k||!kt(It))return;const{weakSetName:Q}=Hi().data;D.assert(Q,"weakSetName should be set in private identifier environment"),fe.push(t.createExpressionStatement(A5e(Ht,Q)))}function ji(fe){return Fr(fe)?t.updatePropertyAccessExpression(fe,t.createVoidZero(),fe.name):t.updateElementAccessExpression(fe,t.createVoidZero(),lt(fe.argumentExpression,Ge,vt))}function mo(fe,It,Ht){if(As(fe)){const Q=x5(fe);let ot=lt(fe.expression,Ge,vt);const xt=F_(ot),mn=om(xt);if(!(!!Q||nd(xt)&&xl(xt.left))&&!mn&&It){const Pr=t.getGeneratedNameForNode(fe);return d.getNodeCheckFlags(fe)&32768?f(Pr):i(Pr),Ht&&(ot=r().createPropKeyHelper(ot)),t.createAssignment(Pr,ot)}return mn||He(xt)?void 0:ot}}function To(){W={previous:W,data:void 0}}function io(){W=W==null?void 0:W.previous}function ca(){var fe;return D.assert(W),(fe=W.data)!=null?fe:W.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Hi(){var fe;return D.assert(W),(fe=W.privateEnv)!=null?fe:W.privateEnv=Zge({className:void 0,weakSetName:void 0})}function Xr(){return ye??(ye=[])}function ss(fe,It,Ht,Q,ot,xt,mn){rf(fe)?ec(fe,It,Ht,Q,ot,xt):to(fe)?_i(fe,It,Ht,Q,ot,xt):ac(fe)?ua(fe,It,Ht,Q,ot,xt):q_(fe)?wn(fe,It,Ht,Q,ot,xt,mn):e_(fe)&&fa(fe,It,Ht,Q,ot,xt,mn)}function _i(fe,It,Ht,Q,ot,xt,mn){var Dr;if(ot){const Pr=D.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"),Ta=Xl(It);UT(Q,It,{kind:"f",isStatic:!0,brandCheckIdentifier:Pr,variableName:Ta,isValid:xt})}else{const Pr=Xl(It);UT(Q,It,{kind:"f",isStatic:!1,brandCheckIdentifier:Pr,isValid:xt}),Xr().push(t.createAssignment(Pr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ua(fe,It,Ht,Q,ot,xt,mn){var Dr;const Pr=Xl(It),Ta=ot?D.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");UT(Q,It,{kind:"m",methodName:Pr,brandCheckIdentifier:Ta,isStatic:ot,isValid:xt})}function wn(fe,It,Ht,Q,ot,xt,mn){var Dr;const Pr=Xl(It,"_get"),Ta=ot?D.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");(mn==null?void 0:mn.kind)==="a"&&mn.isStatic===ot&&!mn.getterName?mn.getterName=Pr:UT(Q,It,{kind:"a",getterName:Pr,setterName:void 0,brandCheckIdentifier:Ta,isStatic:ot,isValid:xt})}function fa(fe,It,Ht,Q,ot,xt,mn){var Dr;const Pr=Xl(It,"_set"),Ta=ot?D.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");(mn==null?void 0:mn.kind)==="a"&&mn.isStatic===ot&&!mn.setterName?mn.setterName=Pr:UT(Q,It,{kind:"a",getterName:void 0,setterName:Pr,brandCheckIdentifier:Ta,isStatic:ot,isValid:xt})}function ec(fe,It,Ht,Q,ot,xt,mn){var Dr;const Pr=Xl(It,"_get"),Ta=Xl(It,"_set"),ls=ot?D.checkDefined((Dr=Ht.classThis)!=null?Dr:Ht.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Q.data.weakSetName,"weakSetName should be set in private identifier environment");UT(Q,It,{kind:"a",getterName:Pr,setterName:Ta,brandCheckIdentifier:ls,isStatic:ot,isValid:xt})}function rl(fe,It,Ht){const Q=ca(),ot=Hi(),xt=$X(ot,It),mn=gc(fe),Dr=!C5e(It)&&xt===void 0;Ht(fe,It,Q,ot,mn,Dr,xt)}function Ul(fe,It,Ht){const{className:Q}=Hi().data,ot=Q?{prefix:"_",node:Q,suffix:"_"}:"_",xt=typeof fe=="object"?t.getGeneratedNameForNode(fe,24,ot,Ht):typeof fe=="string"?t.createUniqueName(fe,16,ot,Ht):t.createTempVariable(void 0,!0,ot,Ht);return d.getNodeCheckFlags(It)&32768?f(xt):i(xt),xt}function Xl(fe,It){var Ht;const Q=y3(fe);return Ul((Ht=Q==null?void 0:Q.substring(1))!=null?Ht:fe,fe,It)}function Vl(fe){const It=eye(W,fe);return(It==null?void 0:It.kind)==="untransformed"?void 0:It}function Co(fe){const It=t.getGeneratedNameForNode(fe),Ht=Vl(fe.name);if(!Ht)return Bn(fe,Ge,e);let Q=fe.expression;return(LN(fe)||ud(fe)||!H1(fe.expression))&&(Q=t.createTempVariable(i,!0),Xr().push(t.createBinaryExpression(Q,63,lt(fe.expression,Ge,vt)))),t.createAssignmentTargetWrapper(It,Xe(Ht,Q,It,63))}function La(fe){if(Ls(fe)||Gu(fe))return hl(fe);if(OA(fe))return Co(fe);if(H&&ud(fe)&&ve&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:Ht,facts:Q}=W.data;if(Q&1)return ji(fe);if(It&&Ht){const ot=cl(fe)?lt(fe.argumentExpression,Ge,vt):He(fe.name)?t.createStringLiteralFromNode(fe.name):void 0;if(ot){const xt=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(xt,t.createReflectSetCall(Ht,ot,xt,It))}}}return Bn(fe,Ge,e)}function Xo(fe){if(Yf(fe,pe)){const It=La(fe.left),Ht=sn(fe.left,fe.right),Q=lt(fe.right,ot=>Oe(ot,Ht),vt);return t.updateBinaryExpression(fe,It,fe.operatorToken,Q)}if(nd(fe,!0)){const It=La(fe.left),Ht=lt(fe.right,Ge,vt);return t.updateBinaryExpression(fe,It,fe.operatorToken,Ht)}return La(fe)}function jl(fe){if(Td(fe.expression)){const It=La(fe.expression);return t.updateSpreadElement(fe,It)}return Bn(fe,Ge,e)}function tu(fe){return D.assertNode(fe,_N),Ih(fe)?jl(fe):Rc(fe)?Bn(fe,Ge,e):Xo(fe)}function zd(fe){const It=lt(fe.name,Ge,yl);if(nd(fe.initializer,!0)){const Ht=Xo(fe.initializer);return t.updatePropertyAssignment(fe,It,Ht)}if(Td(fe.initializer)){const Ht=La(fe.initializer);return t.updatePropertyAssignment(fe,It,Ht)}return Bn(fe,Ge,e)}function oc(fe){if(Yf(fe,pe)){const It=sn(fe.name,fe.objectAssignmentInitializer),Ht=lt(fe.objectAssignmentInitializer,Q=>Oe(Q,It),vt);return t.updateShorthandPropertyAssignment(fe,fe.name,Ht)}return Bn(fe,Ge,e)}function Kc(fe){if(Td(fe.expression)){const It=La(fe.expression);return t.updateSpreadAssignment(fe,It)}return Bn(fe,Ge,e)}function Ds(fe){return D.assertNode(fe,fN),Kx(fe)?Kc(fe):t_(fe)?oc(fe):qc(fe)?zd(fe):Bn(fe,Ge,e)}function hl(fe){return Gu(fe)?t.updateArrayLiteralExpression(fe,Jn(fe.elements,tu,vt)):t.updateObjectLiteralExpression(fe,Jn(fe.properties,Ds,hy))}function el(fe,It,Ht){const Q=Sl(It),ot=ce.get(Q);if(ot){const xt=W,mn=ee;W=ot,ee=Se,Se=!kl(Q)||!(B_(Q)&32),Y(fe,It,Ht),Se=ee,ee=mn,W=xt;return}switch(It.kind){case 215:if(Js(Q)||vo(It)&524288)break;case 259:case 173:case 174:case 175:case 171:case 169:{const xt=W,mn=ee;W=void 0,ee=Se,Se=!1,Y(fe,It,Ht),Se=ee,ee=mn,W=xt;return}case 164:{const xt=W,mn=Se;W=W==null?void 0:W.previous,Se=ee,Y(fe,It,Ht),Se=mn,W=xt;return}}Y(fe,It,Ht)}function Ks(fe,It){return It=X(fe,It),fe===1?rn(It):It}function rn(fe){switch(fe.kind){case 79:return xu(fe);case 108:return Hl(fe)}return fe}function Hl(fe){if(de&2&&(W!=null&&W.data)){const{facts:It,classConstructor:Ht,classThis:Q}=W.data;if(It&1&&A)return t.createParenthesizedExpression(t.createVoidZero());const ot=Se?Q??Ht:Ht;if(ot)return ht(Wr(t.cloneNode(ot),fe),fe)}return fe}function xu(fe){return zu(fe)||fe}function zu(fe){if(de&1&&d.getNodeCheckFlags(fe)&2097152){const It=d.getReferencedValueDeclaration(fe);if(It){const Ht=re[It.id];if(Ht){const Q=t.cloneNode(Ht);return _s(Q,fe),Wc(Q,fe),Q}}}}}function S5e(e,t){return N.createAssignment(e,N.createObjectLiteralExpression([N.createPropertyAssignment("value",t||N.createVoidZero())]))}function x5e(e,t,r){return N.createCallExpression(N.createPropertyAccessExpression(r,"set"),void 0,[e,t||N.createVoidZero()])}function A5e(e,t){return N.createCallExpression(N.createPropertyAccessExpression(t,"add"),void 0,[e])}function C5e(e){return!lx(e)&&e.escapedText==="#constructor"}function L5e(e){return Ni(e.left)&&e.operatorToken.kind===101}var I5e=C({"src/compiler/transformers/classFields.ts"(){Oa()}});function aye(e){const{hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=es(i),s=v_(i,"strictNullChecks");let c,f;return{serializeTypeNode:(re,ye)=>d(re,I,ye),serializeTypeOfNode:(re,ye)=>d(re,h,ye),serializeParameterTypesOfNode:(re,ye,ae)=>d(re,E,ye,ae),serializeReturnTypeOfNode:(re,ye)=>d(re,L,ye)};function d(re,ye,ae,W){const ce=c,me=f;c=re.currentLexicalScope,f=re.currentNameScope;const ve=W===void 0?ye(ae):ye(ae,W);return c=ce,f=me,ve}function y(re){const ye=r.getAllAccessorDeclarations(re);return ye.setAccessor&&Bfe(ye.setAccessor)||ye.getAccessor&&vp(ye.getAccessor)}function h(re){switch(re.kind){case 169:case 166:return I(re.type);case 175:case 174:return I(y(re));case 260:case 228:case 171:return N.createIdentifier("Function");default:return N.createVoidZero()}}function E(re,ye){const ae=di(re)?Th(re):Ka(re)&&p_(re.body)?re:void 0,W=[];if(ae){const ce=A(ae,ye),me=ce.length;for(let ve=0;ve<me;ve++){const Se=ce[ve];ve===0&&He(Se.name)&&Se.name.escapedText==="this"||(Se.dotDotDotToken?W.push(I(zz(Se.type))):W.push(h(Se)))}}return N.createArrayLiteralExpression(W)}function A(re,ye){if(ye&&re.kind===174){const{setAccessor:ae}=ST(ye.members,re);if(ae)return ae.parameters}return re.parameters}function L(re){return Ka(re)&&re.type?I(re.type):oC(re)?N.createIdentifier("Promise"):N.createVoidZero()}function I(re){if(re===void 0)return N.createIdentifier("Object");switch(re=aq(re),re.kind){case 114:case 155:case 144:return N.createVoidZero();case 181:case 182:return N.createIdentifier("Function");case 185:case 186:return N.createIdentifier("Array");case 179:return re.assertsModifier?N.createVoidZero():N.createIdentifier("Boolean");case 134:return N.createIdentifier("Boolean");case 200:case 152:return N.createIdentifier("String");case 149:return N.createIdentifier("Object");case 198:return O(re.literal);case 148:return N.createIdentifier("Number");case 160:return de("BigInt",7);case 153:return de("Symbol",2);case 180:return V(re);case 190:return k(re.types,!0);case 189:return k(re.types,!1);case 191:return k([re.trueType,re.falseType],!1);case 195:if(re.operator===146)return I(re.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return I(re.type);default:return D.failBadSyntaxKind(re)}return N.createIdentifier("Object")}function O(re){switch(re.kind){case 10:case 14:return N.createIdentifier("String");case 221:{const ye=re.operand;switch(ye.kind){case 8:case 9:return O(ye);default:return D.failBadSyntaxKind(ye)}}case 8:return N.createIdentifier("Number");case 9:return de("BigInt",7);case 110:case 95:return N.createIdentifier("Boolean");case 104:return N.createVoidZero();default:return D.failBadSyntaxKind(re)}}function k(re,ye){let ae;for(let W of re){if(W=aq(W),W.kind===144){if(ye)return N.createVoidZero();continue}if(W.kind===157){if(!ye)return N.createIdentifier("Object");continue}if(W.kind===131)return N.createIdentifier("Object");if(!s&&(ab(W)&&W.literal.kind===104||W.kind===155))continue;const ce=I(W);if(He(ce)&&ce.escapedText==="Object")return ce;if(ae){if(!G(ae,ce))return N.createIdentifier("Object")}else ae=ce}return ae??N.createVoidZero()}function G(re,ye){return xl(re)?xl(ye):He(re)?He(ye)&&re.escapedText===ye.escapedText:Fr(re)?Fr(ye)&&G(re.expression,ye.expression)&&G(re.name,ye.name):Vx(re)?Vx(ye)&&b_(re.expression)&&re.expression.text==="0"&&b_(ye.expression)&&ye.expression.text==="0":Vo(re)?Vo(ye)&&re.text===ye.text:wC(re)?wC(ye)&&G(re.expression,ye.expression):Ud(re)?Ud(ye)&&G(re.expression,ye.expression):RC(re)?RC(ye)&&G(re.condition,ye.condition)&&G(re.whenTrue,ye.whenTrue)&&G(re.whenFalse,ye.whenFalse):br(re)?br(ye)&&re.operatorToken.kind===ye.operatorToken.kind&&G(re.left,ye.left)&&G(re.right,ye.right):!1}function V(re){const ye=r.getTypeReferenceSerializationKind(re.typeName,f??c);switch(ye){case 0:if(nr(re,ce=>ce.parent&&LC(ce.parent)&&(ce.parent.trueType===ce||ce.parent.falseType===ce)))return N.createIdentifier("Object");const ae=te(re.typeName),W=N.createTempVariable(t);return N.createConditionalExpression(N.createTypeCheck(N.createAssignment(W,ae),"function"),void 0,W,void 0,N.createIdentifier("Object"));case 1:return X(re.typeName);case 2:return N.createVoidZero();case 4:return de("BigInt",7);case 6:return N.createIdentifier("Boolean");case 3:return N.createIdentifier("Number");case 5:return N.createIdentifier("String");case 7:return N.createIdentifier("Array");case 8:return de("Symbol",2);case 10:return N.createIdentifier("Function");case 9:return N.createIdentifier("Promise");case 11:return N.createIdentifier("Object");default:return D.assertNever(ye)}}function H(re,ye){return N.createLogicalAnd(N.createStrictInequality(N.createTypeOfExpression(re),N.createStringLiteral("undefined")),ye)}function te(re){if(re.kind===79){const W=X(re);return H(W,W)}if(re.left.kind===79)return H(X(re.left),X(re));const ye=te(re.left),ae=N.createTempVariable(t);return N.createLogicalAnd(N.createLogicalAnd(ye.left,N.createStrictInequality(N.createAssignment(ae,ye.right),N.createVoidZero())),N.createPropertyAccessExpression(ae,re.right))}function X(re){switch(re.kind){case 79:const ye=Uo(ht(Jm.cloneNode(re),re),re.parent);return ye.original=void 0,Uo(ye,Ea(c)),ye;case 163:return Y(re)}}function Y(re){return N.createPropertyAccessExpression(X(re.left),re.right)}function P(re){return N.createConditionalExpression(N.createTypeCheck(N.createIdentifier(re),"function"),void 0,N.createIdentifier(re),void 0,N.createIdentifier("Object"))}function de(re,ye){return o<ye?P(re):N.createIdentifier(re)}}var k5e=C({"src/compiler/transformers/typeSerializer.ts"(){Oa()}});function oye(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=es(s),f=e.onSubstituteNode;e.onSubstituteNode=st;let d;return Y_(e,y);function y(tt){const at=Bn(tt,E,e);return Ty(at,e.readEmitHelpers()),at}function h(tt){return Bu(tt)?void 0:tt}function E(tt){if(!(tt.transformFlags&33554432))return tt;switch(tt.kind){case 167:return;case 260:return A(tt);case 228:return H(tt);case 173:return te(tt);case 171:return Y(tt);case 175:return de(tt);case 174:return P(tt);case 169:return re(tt);case 166:return ye(tt);default:return Bn(tt,E,e)}}function A(tt){if(!(S1(!0,tt)||nk(!0,tt)))return Bn(tt,E,e);const at=S1(!0,tt)?V(tt,tt.name):G(tt,tt.name);return at.length>1&&(at.push(t.createEndOfDeclarationMarker(tt)),or(at[0],vo(at[0])|8388608)),Cm(at)}function L(tt){return!!(tt.transformFlags&536870912)}function I(tt){return kt(tt,L)}function O(tt){for(const at of tt.members){if(!Yx(at))continue;const sn=yF(at,tt,!0);if(kt(sn==null?void 0:sn.decorators,L)||kt(sn==null?void 0:sn.parameters,I))return!0}return!1}function k(tt,at){let sn=[];return ce(sn,tt,!1),ce(sn,tt,!0),O(tt)&&(at=ht(t.createNodeArray([...at,t.createClassStaticBlockDeclaration(t.createBlock(sn,!0))]),at),sn=void 0),{decorationStatements:sn,members:at}}function G(tt,at){const sn=Jn(tt.modifiers,h,uo),Qt=Jn(tt.heritageClauses,E,Vd);let On=Jn(tt.members,E,Vc),jn=[];({members:On,decorationStatements:jn}=k(tt,On));const In=t.updateClassDeclaration(tt,sn,at,void 0,Qt,On);return Ti([In],jn)}function V(tt,at){const sn=Zp(tt),Qt=Ye(tt),On=c<=2?t.getInternalName(tt,!1,!0):t.getLocalName(tt,!1,!0),jn=Jn(tt.heritageClauses,E,Vd);let In=Jn(tt.members,E,Vc),Zt=[];({members:In,decorationStatements:Zt}=k(tt,In));const _r=t.createClassExpression(void 0,at&&xl(at)?void 0:at,void 0,jn,In);Wr(_r,tt),ht(_r,sn);const Ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(On,void 0,void 0,Qt?t.createAssignment(Qt,_r):_r)],1));Wr(Ii,tt),ht(Ii,sn),Wc(Ii,tt);const $i=[Ii];return Ti($i,Zt),Qe($i,tt),$i}function H(tt){return t.updateClassExpression(tt,Jn(tt.modifiers,h,uo),tt.name,void 0,Jn(tt.heritageClauses,E,Vd),Jn(tt.members,E,Vc))}function te(tt){return t.updateConstructorDeclaration(tt,Jn(tt.modifiers,h,uo),Jn(tt.parameters,E,Ba),lt(tt.body,E,lo))}function X(tt,at){return tt!==at&&(Wc(tt,at),_s(tt,Zp(at))),tt}function Y(tt){return X(t.updateMethodDeclaration(tt,Jn(tt.modifiers,h,uo),tt.asteriskToken,D.checkDefined(lt(tt.name,E,yl)),void 0,void 0,Jn(tt.parameters,E,Ba),void 0,lt(tt.body,E,lo)),tt)}function P(tt){return X(t.updateGetAccessorDeclaration(tt,Jn(tt.modifiers,h,uo),D.checkDefined(lt(tt.name,E,yl)),Jn(tt.parameters,E,Ba),void 0,lt(tt.body,E,lo)),tt)}function de(tt){return X(t.updateSetAccessorDeclaration(tt,Jn(tt.modifiers,h,uo),D.checkDefined(lt(tt.name,E,yl)),Jn(tt.parameters,E,Ba),lt(tt.body,E,lo)),tt)}function re(tt){if(!(tt.flags&16777216||Yr(tt,2)))return X(t.updatePropertyDeclaration(tt,Jn(tt.modifiers,h,uo),D.checkDefined(lt(tt.name,E,yl)),void 0,void 0,lt(tt.initializer,E,vt)),tt)}function ye(tt){const at=t.updateParameterDeclaration(tt,vme(t,tt.modifiers),tt.dotDotDotToken,D.checkDefined(lt(tt.name,E,gh)),void 0,void 0,lt(tt.initializer,E,vt));return at!==tt&&(Wc(at,tt),ht(at,Zp(tt)),_s(at,Zp(tt)),or(at.name,64)),at}function ae(tt){return Vk(tt.expression,"___metadata")}function W(tt){if(!tt)return;const{false:at,true:sn}=Ece(tt.decorators,ae),Qt=[];return Ti(Qt,Vt(at,Ge)),Ti(Qt,ma(tt.parameters,qe)),Ti(Qt,Vt(sn,Ge)),Qt}function ce(tt,at,sn){Ti(tt,Vt(Se(at,sn),Qt=>t.createExpressionStatement(Qt)))}function me(tt,at,sn){return kN(!0,tt,sn)&&at===Ja(tt)}function ve(tt,at){return lr(tt.members,sn=>me(sn,at,tt))}function Se(tt,at){const sn=ve(tt,at);let Qt;for(const On of sn)Qt=Fn(Qt,ee(tt,On));return Qt}function ee(tt,at){const sn=yF(at,tt,!0),Qt=W(sn);if(!Qt)return;const On=Fe(tt,at),jn=Oe(at,!Yr(at,2)),In=c>0?to(at)&&!Bm(at)?t.createVoidZero():t.createNull():void 0,Zt=r().createDecorateHelper(Qt,On,jn,In);return or(Zt,3072),_s(Zt,Zp(at)),Zt}function Qe(tt,at){const sn=je(at);sn&&tt.push(Wr(t.createExpressionStatement(sn),at))}function je(tt){const at=YX(tt),sn=W(at);if(!sn)return;const Qt=d&&d[wl(tt)],On=c<=2?t.getInternalName(tt,!1,!0):t.getLocalName(tt,!1,!0),jn=r().createDecorateHelper(sn,On),In=t.createAssignment(On,Qt?t.createAssignment(Qt,jn):jn);return or(In,3072),_s(In,Zp(tt)),In}function Ge(tt){return D.checkDefined(lt(tt.expression,E,vt))}function qe(tt,at){let sn;if(tt){sn=[];for(const Qt of tt){const On=r().createParamHelper(Ge(Qt),at);ht(On,Qt.expression),or(On,3072),sn.push(On)}}return sn}function Oe(tt,at){const sn=tt.name;return Ni(sn)?t.createIdentifier(""):As(sn)?at&&!om(sn.expression)?t.getGeneratedNameForNode(sn):sn.expression:He(sn)?t.createStringLiteral(Mr(sn)):t.cloneNode(sn)}function Me(){d||(e.enableSubstitution(79),d=[])}function Ye(tt){if(o.getNodeCheckFlags(tt)&1048576){Me();const at=t.createUniqueName(tt.name&&!xl(tt.name)?Mr(tt.name):"default");return d[wl(tt)]=at,i(at),at}}function ze(tt){return t.createPropertyAccessExpression(t.getDeclarationName(tt),"prototype")}function Fe(tt,at){return Ja(at)?t.getDeclarationName(tt):ze(tt)}function st(tt,at){return at=f(tt,at),tt===1?Ct(at):at}function Ct(tt){switch(tt.kind){case 79:return Et(tt)}return tt}function Et(tt){var at;return(at=jt(tt))!=null?at:tt}function jt(tt){if(d&&o.getNodeCheckFlags(tt)&2097152){const at=o.getReferencedValueDeclaration(tt);if(at){const sn=d[at.id];if(sn){const Qt=t.cloneNode(sn);return _s(Qt,tt),Wc(Qt,tt),Qt}}}}}var w5e=C({"src/compiler/transformers/legacyDecorators.ts"(){Oa()}});function sye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e;let c,f,d,y,h,E;return Y_(e,A);function A(ue){c=void 0,E=!1;const mt=Bn(ue,P,e);return Ty(mt,e.readEmitHelpers()),E&&(wx(mt,32),E=!1),mt}function L(){switch(f=void 0,d=void 0,y=void 0,c==null?void 0:c.kind){case"class":f=c.classInfo;break;case"class-element":f=c.next.classInfo,d=c.classThis,y=c.classSuper;break;case"name":const ue=c.next.next.next;(ue==null?void 0:ue.kind)==="class-element"&&(f=ue.next.classInfo,d=ue.classThis,y=ue.classSuper);break}}function I(ue){c={kind:"class",next:c,classInfo:ue,savedPendingExpressions:h},h=void 0,L()}function O(){D.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),h=c.savedPendingExpressions,c=c.next,L()}function k(ue){var mt,zt;D.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"class-element",next:c},(kl(ue)||to(ue)&&gc(ue))&&(c.classThis=(mt=c.next.classInfo)==null?void 0:mt.classThis,c.classSuper=(zt=c.next.classInfo)==null?void 0:zt.classSuper),L()}function G(){var ue;D.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),D.assert(((ue=c.next)==null?void 0:ue.kind)==="class","Incorrect value for top.next.kind.",()=>{var mt;return`Expected top.next.kind to be 'class' but got '${(mt=c.next)==null?void 0:mt.kind}' instead.`}),c=c.next,L()}function V(){D.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"name",next:c},L()}function H(){D.assert((c==null?void 0:c.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${c==null?void 0:c.kind}' instead.`),c=c.next,L()}function te(){(c==null?void 0:c.kind)==="other"?(D.assert(!h),c.depth++):(c={kind:"other",next:c,depth:0,savedPendingExpressions:h},h=void 0,L())}function X(){D.assert((c==null?void 0:c.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${c==null?void 0:c.kind}' instead.`),c.depth>0?(D.assert(!h),c.depth--):(h=c.savedPendingExpressions,c=c.next,L())}function Y(ue){return!!(ue.transformFlags&33554432)||!!d&&!!(ue.transformFlags&16384)||!!d&&!!y&&!!(ue.transformFlags&134217728)}function P(ue){if(!Y(ue))return ue;switch(ue.kind){case 167:return D.fail("Use `modifierVisitor` instead.");case 260:return Ge(ue);case 228:return qe(ue,void 0);case 173:case 169:case 172:return D.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return jn(ue);case 223:return Ii(ue,!1);case 299:return Wt(ue);case 257:return dn(ue);case 205:return rr(ue);case 274:return yt(ue);case 108:return tt(ue);case 245:return Zt(ue);case 241:return _r(ue);case 357:return Qi(ue,!1);case 214:return Nt(ue,!1,void 0);case 356:return Ce(ue,!1,void 0);case 210:return at(ue);case 212:return sn(ue);case 221:case 222:return $i(ue,!1);case 208:return Qt(ue);case 209:return On(ue);case 164:return vn(ue);case 171:case 175:case 174:case 215:case 259:{te();const mt=Bn(ue,de,e);return X(),mt}default:return Bn(ue,de,e)}}function de(ue){switch(ue.kind){case 167:return;default:return P(ue)}}function re(ue){switch(ue.kind){case 167:return;default:return ue}}function ye(ue){switch(ue.kind){case 173:return Me(ue);case 171:return Fe(ue);case 174:return st(ue);case 175:return Ct(ue);case 169:return jt(ue);case 172:return Et(ue);default:return P(ue)}}function ae(ue,mt){switch(ue.kind){case 356:return Ce(ue,!1,mt);case 214:return Nt(ue,!1,mt);case 228:return qe(ue,mt);default:return P(ue)}}function W(ue){switch(ue.kind){case 221:case 222:return $i(ue,!0);case 223:return Ii(ue,!0);case 357:return Qi(ue,!0);case 214:return Nt(ue,!0,void 0);default:return P(ue)}}function ce(ue){let mt=ue.name&&He(ue.name)&&!xl(ue.name)?Mr(ue.name):ue.name&&Ni(ue.name)&&!xl(ue.name)?Mr(ue.name).slice(1):ue.name&&Vo(ue.name)&&M_(ue.name.text,99)?ue.name.text:di(ue)?"class":"member";return kv(ue)&&(mt=`get_${mt}`),gy(ue)&&(mt=`set_${mt}`),ue.name&&Ni(ue.name)&&(mt=`private_${mt}`),Ja(ue)&&(mt=`static_${mt}`),"_"+mt}function me(ue,mt){return t.createUniqueName(`${ce(ue)}_${mt}`,24)}function ve(ue,mt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ue,void 0,void 0,mt)],1))}function Se(ue){let mt,zt,it=!1,K=!1,Pe=!1;for(const Z of ue.members)if(dde(Z)&&kN(!1,Z,ue)&&(gc(Z)?zt??(zt=t.createUniqueName("_staticExtraInitializers",16)):mt??(mt=t.createUniqueName("_instanceExtraInitializers",16))),kl(Z)?it=!0:to(Z)&&(gc(Z)?it||(it=!!Z.initializer||$f(Z)):K||(K=!Pz(Z))),(Zu(Z)||rf(Z))&&gc(Z)&&(Pe=!0),zt&&mt&&it&&K&&Pe)break;return{class:ue,instanceExtraInitializersName:mt,staticExtraInitializersName:zt,hasStaticInitializers:it,hasNonAmbientInstanceFields:K,hasStaticPrivateClassElements:Pe}}function ee(ue){for(const mt of ue.members)if((kl(mt)||to(mt)&&gc(mt))&&mt.transformFlags&134217728)return!0;return!1}function Qe(ue,mt){var zt,it,K,Pe,Z;i();const Re=(zt=ue.name)!=null?zt:t.getGeneratedNameForNode(ue),q=Se(ue),Rt=[];let gt,ft,_n,$n,oi=!1;const Ai=pe(YX(ue));if(Ai&&(q.classDecoratorsName=t.createUniqueName("_classDecorators",16),q.classDescriptorName=t.createUniqueName("_classDescriptor",16),q.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),q.classThis=t.createUniqueName("_classThis",16),Rt.push(ve(q.classDecoratorsName,t.createArrayLiteralExpression(Ai)),ve(q.classDescriptorName),ve(q.classExtraInitializersName,t.createArrayLiteralExpression()),ve(q.classThis)),q.hasStaticPrivateClassElements&&(oi=!0,E=!0)),Ai&&ee(ue)){const Hi=$N(ue.heritageClauses,94),Xr=Hi&&Yc(Hi.types),ss=Xr&<(Xr.expression,P,vt);if(ss){q.classSuper=t.createUniqueName("_classSuper",16);const _i=bu(ss),ua=Uu(_i)&&!_i.name||Bs(_i)&&!_i.name||Js(_i)?t.createComma(t.createNumericLiteral(0),ss):ss;Rt.push(ve(q.classSuper,ua));const wn=t.updateExpressionWithTypeArguments(Xr,q.classSuper,void 0),fa=t.updateHeritageClause(Hi,[wn]);$n=t.createNodeArray([fa])}}else $n=Jn(ue.heritageClauses,P,Vd);const Ci=(it=q.classThis)!=null?it:t.createThis();if(!((K=Sl(ue,di))!=null&&K.name)&&(Ai||!Vo(mt)||!Kz(mt))){const Hi=r().createSetFunctionNameHelper(t.createThis(),mt);gt=Fn(gt,t.createExpressionStatement(Hi))}I(q);let mo=Jn(ue.members,ye,Vc);if(h){let Hi;for(let Xr of h){Xr=lt(Xr,function _i(ua){if(!(ua.transformFlags&16384))return ua;switch(ua.kind){case 108:return Hi||(Hi=t.createUniqueName("_outerThis",16),Rt.unshift(ve(Hi,t.createThis()))),Hi;default:return Bn(ua,_i,e)}},vt);const ss=t.createExpressionStatement(Xr);gt=Fn(gt,ss)}h=void 0}if(O(),q.instanceExtraInitializersName&&!Th(ue)){const Hi=Oe(ue,q);if(Hi){const Xr=$p(ue),ss=!!(Xr&&bu(Xr.expression).kind!==104),_i=[];if(ss){const wn=t.createSpreadElement(t.createIdentifier("arguments")),fa=t.createCallExpression(t.createSuper(),void 0,[wn]);_i.push(t.createExpressionStatement(fa))}Ti(_i,Hi);const ua=t.createBlock(_i,!0);_n=t.createConstructorDeclaration(void 0,[],ua)}}if(q.staticExtraInitializersName&&Rt.push(ve(q.staticExtraInitializersName,t.createArrayLiteralExpression())),q.instanceExtraInitializersName&&Rt.push(ve(q.instanceExtraInitializersName,t.createArrayLiteralExpression())),q.memberInfos&&af(q.memberInfos,(Hi,Xr)=>{Ja(Xr)&&(Rt.push(ve(Hi.memberDecoratorsName)),Hi.memberInitializersName&&Rt.push(ve(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&Rt.push(ve(Hi.memberDescriptorName)))}),q.memberInfos&&af(q.memberInfos,(Hi,Xr)=>{Ja(Xr)||(Rt.push(ve(Hi.memberDecoratorsName)),Hi.memberInitializersName&&Rt.push(ve(Hi.memberInitializersName,t.createArrayLiteralExpression())),Hi.memberDescriptorName&&Rt.push(ve(Hi.memberDescriptorName)))}),gt=Ti(gt,q.staticNonFieldDecorationStatements),gt=Ti(gt,q.nonStaticNonFieldDecorationStatements),gt=Ti(gt,q.staticFieldDecorationStatements),gt=Ti(gt,q.nonStaticFieldDecorationStatements),q.classDescriptorName&&q.classDecoratorsName&&q.classExtraInitializersName&&q.classThis){gt??(gt=[]);const Hi=t.createPropertyAssignment("value",t.createThis()),Xr=t.createObjectLiteralExpression([Hi]),ss=t.createAssignment(q.classDescriptorName,Xr),_i=t.createPropertyAccessExpression(t.createThis(),"name"),ua=r().createESDecorateHelper(t.createNull(),ss,q.classDecoratorsName,{kind:"class",name:_i},t.createNull(),q.classExtraInitializersName),wn=t.createExpressionStatement(ua);_s(wn,Pv(ue)),gt.push(wn);const fa=t.createPropertyAccessExpression(q.classDescriptorName,"value"),ec=t.createAssignment(q.classThis,fa),rl=t.createAssignment(Re,ec);gt.push(t.createExpressionStatement(rl))}if(q.staticExtraInitializersName){const Hi=r().createRunInitializersHelper(Ci,q.staticExtraInitializersName),Xr=t.createExpressionStatement(Hi);_s(Xr,(Pe=ue.name)!=null?Pe:Pv(ue)),gt=Fn(gt,Xr)}if(q.classExtraInitializersName){const Hi=r().createRunInitializersHelper(Ci,q.classExtraInitializersName),Xr=t.createExpressionStatement(Hi);_s(Xr,(Z=ue.name)!=null?Z:Pv(ue)),ft=Fn(ft,Xr)}gt&&ft&&!q.hasStaticInitializers&&(Ti(gt,ft),ft=void 0);let To=mo;if(gt){const Hi=t.createBlock(gt,!0),Xr=t.createClassStaticBlockDeclaration(Hi);oi&&MO(Xr,32),To=[Xr,...To]}if(_n&&(To=[...To,_n]),ft){const Hi=t.createBlock(ft,!0),Xr=t.createClassStaticBlockDeclaration(Hi);To=[...To,Xr]}To!==mo&&(mo=ht(t.createNodeArray(To),mo));const io=o();let ca;if(Ai){ca=t.createClassExpression(void 0,void 0,void 0,$n,mo);const Hi=t.createVariableDeclaration(Re,void 0,void 0,ca),Xr=t.createVariableDeclarationList([Hi]),ss=q.classThis?t.createAssignment(Re,q.classThis):Re;Rt.push(t.createVariableStatement(void 0,Xr),t.createReturnStatement(ss))}else ca=t.createClassExpression(void 0,ue.name,void 0,$n,mo),Rt.push(t.createReturnStatement(ca));if(oi){wx(ca,32);for(const Hi of ca.members)(Zu(Hi)||rf(Hi))&&gc(Hi)&&wx(Hi,32)}return Wr(ca,ue),rd(ca).classThis=q.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Rt,io))}function je(ue){return S1(!1,ue)||nk(!1,ue)}function Ge(ue){var mt;if(je(ue))if(Yr(ue,1)&&Yr(ue,1024)){const zt=(mt=Sl(ue,di))!=null?mt:ue,it=zt.name?t.createStringLiteralFromNode(zt.name):t.createStringLiteral("default"),K=Qe(ue,it),Pe=t.createExportDefault(K);return Wr(Pe,ue),Wc(Pe,jm(ue)),_s(Pe,Pv(ue)),Pe}else{D.assertIsDefined(ue.name,"A class declaration that is not a default export must have a name.");const zt=Qe(ue,t.createStringLiteralFromNode(ue.name)),it=Jn(ue.modifiers,re,uo),K=t.createVariableDeclaration(ue.name,void 0,void 0,zt),Pe=t.createVariableDeclarationList([K],1),Z=t.createVariableStatement(it,Pe);return Wr(Z,ue),Wc(Z,jm(ue)),Z}else{const zt=Jn(ue.modifiers,re,uo),it=Jn(ue.heritageClauses,P,Vd);I(void 0);const K=Jn(ue.members,ye,Vc);return O(),t.updateClassDeclaration(ue,zt,ue.name,void 0,it,K)}}function qe(ue,mt){if(je(ue)){const zt=ue.name?t.createStringLiteralFromNode(ue.name):mt??t.createStringLiteral(""),it=Qe(ue,zt);return Wr(it,ue),it}else{const zt=Jn(ue.modifiers,re,uo),it=Jn(ue.heritageClauses,P,Vd);I(void 0);const K=Jn(ue.members,ye,Vc);return O(),t.updateClassExpression(ue,zt,ue.name,void 0,it,K)}}function Oe(ue,mt){if(mt.instanceExtraInitializersName&&!mt.hasNonAmbientInstanceFields){const zt=[];return zt.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),mt.instanceExtraInitializersName))),zt}}function Me(ue){k(ue);const mt=Jn(ue.modifiers,re,uo),zt=Jn(ue.parameters,P,Ba);let it;if(ue.body&&f){const K=Oe(f.class,f);if(K){const Pe=[],Z=t.copyPrologue(ue.body.statements,Pe,!1,P),Re=hF(ue.body.statements,Z),q=Re>=0?Re+1:void 0;Ti(Pe,Jn(ue.body.statements,P,wa,Z,q?q-Z:void 0)),Ti(Pe,K),Ti(Pe,Jn(ue.body.statements,P,wa,q)),it=t.createBlock(Pe,!0),Wr(it,ue.body),ht(it,ue.body)}}return it??(it=lt(ue.body,P,lo)),G(),t.updateConstructorDeclaration(ue,mt,zt,it)}function Ye(ue,mt){return ue!==mt&&(Wc(ue,mt),_s(ue,Pv(mt))),ue}function ze(ue,mt,zt,it){var K,Pe,Z,Re,q,Rt,gt,ft;let _n,$n,oi,Ai,Ci;if(!zt){const To=Jn(ue.modifiers,re,uo);return V(),mt?{referencedName:_n,name:$n}=Or(ue.name):$n=At(ue.name),H(),{modifiers:To,referencedName:_n,name:$n,initializersName:oi,descriptorName:Ci,thisArg:Ai}}const ji=pe(yF(ue,zt.class,!1)),mo=Jn(ue.modifiers,re,uo);if(ji){const To=me(ue,"decorators"),io=t.createArrayLiteralExpression(ji),ca=t.createAssignment(To,io),Hi={memberDecoratorsName:To};(K=zt.memberInfos)!=null||(zt.memberInfos=new Map),zt.memberInfos.set(ue,Hi),h??(h=[]),h.push(ca);const Xr=MA(ue)||rf(ue)?Ja(ue)?(Pe=zt.staticNonFieldDecorationStatements)!=null?Pe:zt.staticNonFieldDecorationStatements=[]:(Z=zt.nonStaticNonFieldDecorationStatements)!=null?Z:zt.nonStaticNonFieldDecorationStatements=[]:to(ue)&&!rf(ue)?Ja(ue)?(Re=zt.staticFieldDecorationStatements)!=null?Re:zt.staticFieldDecorationStatements=[]:(q=zt.nonStaticFieldDecorationStatements)!=null?q:zt.nonStaticFieldDecorationStatements=[]:D.fail(),ss=q_(ue)?"getter":e_(ue)?"setter":ac(ue)?"method":rf(ue)?"accessor":to(ue)?"field":D.fail();let _i;if(He(ue.name)||Ni(ue.name))_i={computed:!1,name:ue.name};else if(U_(ue.name))_i={computed:!0,name:t.createStringLiteralFromNode(ue.name)};else{const fa=ue.name.expression;U_(fa)&&!He(fa)?_i={computed:!0,name:t.createStringLiteralFromNode(fa)}:(V(),{referencedName:_n,name:$n}=Or(ue.name),_i={computed:!0,name:_n},H())}const ua={kind:ss,name:_i,static:Ja(ue),private:Ni(ue.name),access:{get:to(ue)||q_(ue)||ac(ue),set:to(ue)||e_(ue)}},wn=Ja(ue)?(Rt=zt.staticExtraInitializersName)!=null?Rt:zt.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(gt=zt.instanceExtraInitializersName)!=null?gt:zt.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(MA(ue)){let fa;Zu(ue)&&it&&(fa=it(ue,Jn(mo,Ul=>ai(Ul,jk),uo)),Hi.memberDescriptorName=Ci=me(ue,"descriptor"),fa=t.createAssignment(Ci,fa));const ec=r().createESDecorateHelper(t.createThis(),fa??t.createNull(),To,ua,t.createNull(),wn),rl=t.createExpressionStatement(ec);_s(rl,Pv(ue)),Xr.push(rl)}else if(to(ue)){oi=(ft=Hi.memberInitializersName)!=null?ft:Hi.memberInitializersName=me(ue,"initializers"),Ja(ue)&&(Ai=zt.classThis);let fa;Zu(ue)&&Bm(ue)&&it&&(fa=it(ue,void 0),Hi.memberDescriptorName=Ci=me(ue,"descriptor"),fa=t.createAssignment(Ci,fa));const ec=r().createESDecorateHelper(rf(ue)?t.createThis():t.createNull(),fa??t.createNull(),To,ua,oi,wn),rl=t.createExpressionStatement(ec);_s(rl,Pv(ue)),Xr.push(rl)}}return $n===void 0&&(V(),mt?{referencedName:_n,name:$n}=Or(ue.name):$n=At(ue.name),H()),!kt(mo)&&(ac(ue)||to(ue))&&or($n,1024),{modifiers:mo,referencedName:_n,name:$n,initializersName:oi,descriptorName:Ci,thisArg:Ai}}function Fe(ue){k(ue);const{modifiers:mt,name:zt,descriptorName:it}=ze(ue,!1,f,j);if(it)return G(),Ye(Ut(mt,zt,it),ue);{const K=Jn(ue.parameters,P,Ba),Pe=lt(ue.body,P,lo);return G(),Ye(t.updateMethodDeclaration(ue,mt,ue.asteriskToken,zt,void 0,void 0,K,void 0,Pe),ue)}}function st(ue){k(ue);const{modifiers:mt,name:zt,descriptorName:it}=ze(ue,!1,f,We);if(it)return G(),Ye(cn(mt,zt,it),ue);{const K=Jn(ue.parameters,P,Ba),Pe=lt(ue.body,P,lo);return G(),Ye(t.updateGetAccessorDeclaration(ue,mt,zt,K,void 0,Pe),ue)}}function Ct(ue){k(ue);const{modifiers:mt,name:zt,descriptorName:it}=ze(ue,!1,f,Ze);if(it)return G(),Ye(Sn(mt,zt,it),ue);{const K=Jn(ue.parameters,P,Ba),Pe=lt(ue.body,P,lo);return G(),Ye(t.updateSetAccessorDeclaration(ue,mt,zt,K,Pe),ue)}}function Et(ue){k(ue),f&&(f.hasStaticInitializers=!0);const mt=Bn(ue,P,e);return G(),mt}function jt(ue){k(ue),D.assert(!Pz(ue),"Not yet implemented.");const mt=Yf(ue,In),{modifiers:zt,name:it,referencedName:K,initializersName:Pe,descriptorName:Z,thisArg:Re}=ze(ue,mt,f,Bm(ue)?Xe:void 0);i();let q=K?lt(ue.initializer,gt=>ae(gt,K),vt):lt(ue.initializer,P,vt);Pe&&(q=r().createRunInitializersHelper(Re??t.createThis(),Pe,q??t.createVoidZero())),!Ja(ue)&&(f!=null&&f.instanceExtraInitializersName)&&!(f!=null&&f.hasInjectedInstanceInitializers)&&(f.hasInjectedInstanceInitializers=!0,q??(q=t.createVoidZero()),q=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),q))),Ja(ue)&&f&&q&&(f.hasStaticInitializers=!0);const Rt=o();if(kt(Rt)&&(q=t.createImmediatelyInvokedArrowFunction([...Rt,t.createReturnStatement(q)])),G(),Bm(ue)&&Z){const gt=jm(ue),ft=ib(ue),_n=ue.name;let $n=_n,oi=_n;if(As(_n)&&!om(_n.expression)){const To=x5(_n);if(To)$n=t.updateComputedPropertyName(_n,lt(_n.expression,P,vt)),oi=t.updateComputedPropertyName(_n,To.left);else{const io=t.createTempVariable(s);_s(io,_n.expression);const ca=lt(_n.expression,P,vt),Hi=t.createAssignment(io,ca);_s(Hi,_n.expression),$n=t.updateComputedPropertyName(_n,Hi),oi=t.updateComputedPropertyName(_n,io)}}const Ai=Jn(zt,To=>To.kind!==127?To:void 0,uo),Ci=kK(t,ue,Ai,q);Wr(Ci,ue),or(Ci,3072),_s(Ci,ft),_s(Ci.name,ue.name);const ji=cn(Ai,$n,Z);Wr(ji,ue),Wc(ji,gt),_s(ji,ft);const mo=Sn(Ai,oi,Z);return Wr(mo,ue),or(mo,3072),_s(mo,ft),[Ci,ji,mo]}return Ye(t.updatePropertyDeclaration(ue,zt,it,void 0,void 0,q),ue)}function tt(ue){return d??ue}function at(ue){if(ud(ue.expression)&&d){const mt=lt(ue.expression,P,vt),zt=Jn(ue.arguments,P,vt),it=t.createFunctionCallCall(mt,d,zt);return Wr(it,ue),ht(it,ue),it}return Bn(ue,P,e)}function sn(ue){if(ud(ue.tag)&&d){const mt=lt(ue.tag,P,vt),zt=t.createFunctionBindCall(mt,d,[]);Wr(zt,ue),ht(zt,ue);const it=lt(ue.template,P,FA);return t.updateTaggedTemplateExpression(ue,zt,void 0,it)}return Bn(ue,P,e)}function Qt(ue){if(ud(ue)&&He(ue.name)&&d&&y){const mt=t.createStringLiteralFromNode(ue.name),zt=t.createReflectGetCall(y,mt,d);return Wr(zt,ue.expression),ht(zt,ue.expression),zt}return Bn(ue,P,e)}function On(ue){if(ud(ue)&&d&&y){const mt=lt(ue.argumentExpression,P,vt),zt=t.createReflectGetCall(y,mt,d);return Wr(zt,ue.expression),ht(zt,ue.expression),zt}return Bn(ue,P,e)}function jn(ue){let mt;if(Yf(ue,In)){const zt=Er(ue.name,ue.initializer),it=lt(ue.name,P,gh),K=lt(ue.initializer,Pe=>ae(Pe,zt),vt);mt=t.updateParameterDeclaration(ue,void 0,void 0,it,void 0,void 0,K)}else mt=t.updateParameterDeclaration(ue,void 0,ue.dotDotDotToken,lt(ue.name,P,gh),void 0,void 0,lt(ue.initializer,P,vt));return mt!==ue&&(Wc(mt,ue),ht(mt,Zp(ue)),_s(mt,Zp(ue)),or(mt.name,64)),mt}function In(ue){return Uu(ue)&&!ue.name&&je(ue)}function Zt(ue){return t.updateForStatement(ue,lt(ue.initializer,W,Xp),lt(ue.condition,P,vt),lt(ue.incrementor,W,vt),E_(ue.statement,P,e))}function _r(ue){return Bn(ue,W,e)}function Ii(ue,mt){if(by(ue)){const zt=we(ue.left),it=lt(ue.right,P,vt);return t.updateBinaryExpression(ue,zt,ue.operatorToken,it)}if(nd(ue)){if(Yf(ue,In)){const zt=Er(ue.left,ue.right),it=lt(ue.left,P,vt),K=lt(ue.right,Pe=>ae(Pe,zt),vt);return t.updateBinaryExpression(ue,it,ue.operatorToken,K)}if(ud(ue.left)&&d&&y){let zt=cl(ue.left)?lt(ue.left.argumentExpression,P,vt):He(ue.left.name)?t.createStringLiteralFromNode(ue.left.name):void 0;if(zt){let it=lt(ue.right,P,vt);if(j8(ue.operatorToken.kind)){let Pe=zt;om(zt)||(Pe=t.createTempVariable(s),zt=t.createAssignment(Pe,zt));const Z=t.createReflectGetCall(y,Pe,d);Wr(Z,ue.left),ht(Z,ue.left),it=t.createBinaryExpression(Z,gw(ue.operatorToken.kind),it),ht(it,ue)}const K=mt?void 0:t.createTempVariable(s);return K&&(it=t.createAssignment(K,it),ht(K,ue)),it=t.createReflectSetCall(y,zt,it,d),Wr(it,ue),ht(it,ue),K&&(it=t.createComma(it,K),ht(it,ue)),it}}}if(ue.operatorToken.kind===27){const zt=lt(ue.left,W,vt),it=lt(ue.right,mt?W:P,vt);return t.updateBinaryExpression(ue,zt,ue.operatorToken,it)}return Bn(ue,P,e)}function $i(ue,mt){if(ue.operator===45||ue.operator===46){const zt=js(ue.operand);if(ud(zt)&&d&&y){let it=cl(zt)?lt(zt.argumentExpression,P,vt):He(zt.name)?t.createStringLiteralFromNode(zt.name):void 0;if(it){let K=it;om(it)||(K=t.createTempVariable(s),it=t.createAssignment(K,it));let Pe=t.createReflectGetCall(y,K,d);Wr(Pe,ue),ht(Pe,ue);const Z=mt?void 0:t.createTempVariable(s);return Pe=h5(t,ue,Pe,s,Z),Pe=t.createReflectSetCall(y,it,Pe,d),Wr(Pe,ue),ht(Pe,ue),Z&&(Pe=t.createComma(Pe,Z),ht(Pe,ue)),Pe}}}return Bn(ue,P,e)}function Qi(ue,mt){const zt=mt?V8(ue.elements,W):V8(ue.elements,P,W);return t.updateCommaListExpression(ue,zt)}function Or(ue){if(U_(ue)||Ni(ue)){const Pe=t.createStringLiteralFromNode(ue),Z=lt(ue,P,yl);return{referencedName:Pe,name:Z}}if(U_(ue.expression)&&!He(ue.expression)){const Pe=t.createStringLiteralFromNode(ue.expression),Z=lt(ue,P,yl);return{referencedName:Pe,name:Z}}const mt=t.getGeneratedNameForNode(ue);s(mt);const zt=r().createPropKeyHelper(lt(ue.expression,P,vt)),it=t.createAssignment(mt,zt),K=t.updateComputedPropertyName(ue,pt(it));return{referencedName:mt,name:K}}function At(ue){return As(ue)?vn(ue):lt(ue,P,yl)}function vn(ue){let mt=lt(ue.expression,P,vt);return om(mt)||(mt=pt(mt)),t.updateComputedPropertyName(ue,mt)}function Wt(ue){if(Yf(ue,In)){const{referencedName:mt,name:zt}=Or(ue.name),it=lt(ue.initializer,K=>ae(K,mt),vt);return t.updatePropertyAssignment(ue,zt,it)}return Bn(ue,P,e)}function dn(ue){if(Yf(ue,In)){const mt=Er(ue.name,ue.initializer),zt=lt(ue.name,P,gh),it=lt(ue.initializer,K=>ae(K,mt),vt);return t.updateVariableDeclaration(ue,zt,void 0,void 0,it)}return Bn(ue,P,e)}function rr(ue){if(Yf(ue,In)){const mt=Er(ue.name,ue.initializer),zt=lt(ue.propertyName,P,yl),it=lt(ue.name,P,gh),K=lt(ue.initializer,Pe=>ae(Pe,mt),vt);return t.updateBindingElement(ue,void 0,zt,it,K)}return Bn(ue,P,e)}function cr(ue){if(Ls(ue)||Gu(ue))return we(ue);if(ud(ue)&&d&&y){const mt=cl(ue)?lt(ue.argumentExpression,P,vt):He(ue.name)?t.createStringLiteralFromNode(ue.name):void 0;if(mt){const zt=t.createTempVariable(void 0),it=t.createAssignmentTargetWrapper(zt,t.createReflectSetCall(y,mt,zt,d));return Wr(it,ue),ht(it,ue),it}}return Bn(ue,P,e)}function Pi(ue){if(nd(ue,!0)){const mt=cr(ue.left);let zt;if(Yf(ue,In)){const it=Er(ue.left,ue.right);zt=lt(ue.right,K=>ae(K,it),vt)}else zt=lt(ue.right,P,vt);return t.updateBinaryExpression(ue,mt,ue.operatorToken,zt)}else return cr(ue)}function gi(ue){if(Td(ue.expression)){const mt=cr(ue.expression);return t.updateSpreadElement(ue,mt)}return Bn(ue,P,e)}function Rn(ue){return D.assertNode(ue,_N),Ih(ue)?gi(ue):Rc(ue)?Bn(ue,P,e):Pi(ue)}function an(ue){const mt=lt(ue.name,P,yl);if(nd(ue.initializer,!0)){const zt=Pi(ue.initializer);return t.updatePropertyAssignment(ue,mt,zt)}if(Td(ue.initializer)){const zt=cr(ue.initializer);return t.updatePropertyAssignment(ue,mt,zt)}return Bn(ue,P,e)}function Pn(ue){if(Yf(ue,In)){const mt=Er(ue.name,ue.objectAssignmentInitializer),zt=lt(ue.name,P,He),it=lt(ue.objectAssignmentInitializer,K=>ae(K,mt),vt);return t.updateShorthandPropertyAssignment(ue,zt,it)}return Bn(ue,P,e)}function Ar(ue){if(Td(ue.expression)){const mt=cr(ue.expression);return t.updateSpreadAssignment(ue,mt)}return Bn(ue,P,e)}function Hr(ue){return D.assertNode(ue,fN),Kx(ue)?Ar(ue):t_(ue)?Pn(ue):qc(ue)?an(ue):Bn(ue,P,e)}function we(ue){if(Gu(ue)){const mt=Jn(ue.elements,Rn,vt);return t.updateArrayLiteralExpression(ue,mt)}else{const mt=Jn(ue.properties,Hr,hy);return t.updateObjectLiteralExpression(ue,mt)}}function yt(ue){if(Yf(ue,In)){const mt=t.createStringLiteral(ue.isExportEquals?"":"default"),zt=Jn(ue.modifiers,re,uo),it=lt(ue.expression,K=>ae(K,mt),vt);return t.updateExportAssignment(ue,zt,it)}return Bn(ue,P,e)}function Nt(ue,mt,zt){const it=mt?W:zt?Pe=>ae(Pe,zt):P,K=lt(ue.expression,it,vt);return t.updateParenthesizedExpression(ue,K)}function Ce(ue,mt,zt){const it=mt?W:zt?Pe=>ae(Pe,zt):P,K=lt(ue.expression,it,vt);return t.updatePartiallyEmittedExpression(ue,K)}function pt(ue){return kt(h)&&(Ud(ue)?(h.push(ue.expression),ue=t.updateParenthesizedExpression(ue,t.inlineExpressions(h))):(h.push(ue),ue=t.inlineExpressions(h)),h=void 0),ue}function pe(ue){if(!ue)return;const mt=[];return Ti(mt,Vt(ue.decorators,ie)),mt}function ie(ue){const mt=lt(ue.expression,P,vt);return or(mt,3072),mt}function he(ue,mt,zt,it,K,Pe,Z){const Re=t.createFunctionExpression(zt,it,void 0,void 0,Pe,void 0,Z??t.createBlock([]));Wr(Re,ue),_s(Re,Pv(ue)),or(Re,3072);const q=K==="get"||K==="set"?K:void 0,Rt=t.createStringLiteralFromNode(mt,void 0),gt=r().createSetFunctionNameHelper(Re,Rt,q),ft=t.createPropertyAssignment(t.createIdentifier(K),gt);return Wr(ft,ue),_s(ft,Pv(ue)),or(ft,3072),ft}function j(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,ue.asteriskToken,"value",Jn(ue.parameters,P,Ba),lt(ue.body,P,lo))])}function We(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"get",[],lt(ue.body,P,lo))])}function Ze(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"set",Jn(ue.parameters,P,Ba),lt(ue.body,P,lo))])}function Xe(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ue.name)))])),he(ue,ue.name,mt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ue.name)),t.createIdentifier("value")))]))])}function Ut(ue,mt,zt){return ue=Jn(ue,it=>Px(it)?it:void 0,uo),t.createGetAccessorDeclaration(ue,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(zt,t.createIdentifier("value")))]))}function cn(ue,mt,zt){return ue=Jn(ue,it=>Px(it)?it:void 0,uo),t.createGetAccessorDeclaration(ue,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(zt,t.createIdentifier("get")),t.createThis(),[]))]))}function Sn(ue,mt,zt){return ue=Jn(ue,it=>Px(it)?it:void 0,uo),t.createSetAccessorDeclaration(ue,mt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(zt,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Er(ue,mt){const zt=Sl(mt,di);return zt&&!zt.name&&Yr(zt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(ue)}}var D5e=C({"src/compiler/transformers/esDecorators.ts"(){Oa()}});function lye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),f=e.getCompilerOptions(),d=es(f);let y,h=0,E,A,L;const I=[];let O=0;const k=e.onEmitNode,G=e.onSubstituteNode;return e.onEmitNode=jn,e.onSubstituteNode=In,Y_(e,V);function V(At){if(At.isDeclarationFile)return At;H(1,!1),H(2,!Oz(At,f));const vn=Bn(At,re,e);return Ty(vn,e.readEmitHelpers()),vn}function H(At,vn){O=vn?O|At:O&~At}function te(At){return(O&At)!==0}function X(){return!te(1)}function Y(){return te(2)}function P(At,vn,Wt){const dn=At&~O;if(dn){H(dn,!0);const rr=vn(Wt);return H(dn,!1),rr}return vn(Wt)}function de(At){return Bn(At,re,e)}function re(At){if(!(At.transformFlags&256))return At;switch(At.kind){case 132:return;case 220:return Se(At);case 171:return P(3,Qe,At);case 259:return P(3,qe,At);case 215:return P(3,Oe,At);case 216:return P(1,Me,At);case 208:return A&&Fr(At)&&At.expression.kind===106&&A.add(At.name.escapedText),Bn(At,re,e);case 209:return A&&At.expression.kind===106&&(L=!0),Bn(At,re,e);case 174:return P(3,je,At);case 175:return P(3,Ge,At);case 173:return P(3,ee,At);case 260:case 228:return P(3,de,At);default:return Bn(At,re,e)}}function ye(At){if(Tfe(At))switch(At.kind){case 240:return W(At);case 245:return ve(At);case 246:return ce(At);case 247:return me(At);case 295:return ae(At);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return Bn(At,ye,e);default:return D.assertNever(At,"Unhandled node.")}return re(At)}function ae(At){const vn=new Set;Ye(At.variableDeclaration,vn);let Wt;if(vn.forEach((dn,rr)=>{E.has(rr)&&(Wt||(Wt=new Set(E)),Wt.delete(rr))}),Wt){const dn=E;E=Wt;const rr=Bn(At,ye,e);return E=dn,rr}else return Bn(At,ye,e)}function W(At){if(ze(At.declarationList)){const vn=Fe(At.declarationList,!1);return vn?t.createExpressionStatement(vn):void 0}return Bn(At,re,e)}function ce(At){return t.updateForInStatement(At,ze(At.initializer)?Fe(At.initializer,!0):D.checkDefined(lt(At.initializer,re,Xp)),D.checkDefined(lt(At.expression,re,vt)),E_(At.statement,ye,e))}function me(At){return t.updateForOfStatement(At,lt(At.awaitModifier,re,QJ),ze(At.initializer)?Fe(At.initializer,!0):D.checkDefined(lt(At.initializer,re,Xp)),D.checkDefined(lt(At.expression,re,vt)),E_(At.statement,ye,e))}function ve(At){const vn=At.initializer;return t.updateForStatement(At,ze(vn)?Fe(vn,!1):lt(At.initializer,re,Xp),lt(At.condition,re,vt),lt(At.incrementor,re,vt),E_(At.statement,ye,e))}function Se(At){return X()?Bn(At,re,e):Wr(ht(t.createYieldExpression(void 0,lt(At.expression,re,vt)),At),At)}function ee(At){return t.updateConstructorDeclaration(At,Jn(At.modifiers,re,uo),Kl(At.parameters,re,e),tt(At))}function Qe(At){return t.updateMethodDeclaration(At,Jn(At.modifiers,re,nl),At.asteriskToken,At.name,void 0,void 0,Kl(At.parameters,re,e),void 0,jc(At)&2?at(At):tt(At))}function je(At){return t.updateGetAccessorDeclaration(At,Jn(At.modifiers,re,nl),At.name,Kl(At.parameters,re,e),void 0,tt(At))}function Ge(At){return t.updateSetAccessorDeclaration(At,Jn(At.modifiers,re,nl),At.name,Kl(At.parameters,re,e),tt(At))}function qe(At){return t.updateFunctionDeclaration(At,Jn(At.modifiers,re,nl),At.asteriskToken,At.name,void 0,Kl(At.parameters,re,e),void 0,jc(At)&2?at(At):wf(At.body,re,e))}function Oe(At){return t.updateFunctionExpression(At,Jn(At.modifiers,re,uo),At.asteriskToken,At.name,void 0,Kl(At.parameters,re,e),void 0,jc(At)&2?at(At):wf(At.body,re,e))}function Me(At){return t.updateArrowFunction(At,Jn(At.modifiers,re,uo),void 0,Kl(At.parameters,re,e),void 0,At.equalsGreaterThanToken,jc(At)&2?at(At):wf(At.body,re,e))}function Ye({name:At},vn){if(He(At))vn.add(At.escapedText);else for(const Wt of At.elements)Rc(Wt)||Ye(Wt,vn)}function ze(At){return!!At&&Vu(At)&&!(At.flags&3)&&At.declarations.some(jt)}function Fe(At,vn){st(At);const Wt=Ek(At);return Wt.length===0?vn?lt(t.converters.convertToAssignmentElementTarget(At.declarations[0].name),re,vt):void 0:t.inlineExpressions(Vt(Wt,Et))}function st(At){Ue(At.declarations,Ct)}function Ct({name:At}){if(He(At))s(At);else for(const vn of At.elements)Rc(vn)||Ct(vn)}function Et(At){const vn=_s(t.createAssignment(t.converters.convertToAssignmentElementTarget(At.name),At.initializer),At);return D.checkDefined(lt(vn,re,vt))}function jt({name:At}){if(He(At))return E.has(At.escapedText);for(const vn of At.elements)if(!Rc(vn)&&jt(vn))return!0;return!1}function tt(At){D.assertIsDefined(At.body);const vn=A,Wt=L;A=new Set,L=!1;let dn=wf(At.body,re,e);const rr=Sl(At,Qs);if(d>=2&&c.getNodeCheckFlags(At)&384&&(jc(rr)&3)!==3){if(On(),A.size){const Pi=vF(t,c,At,A);I[ms(Pi)]=!0;const gi=dn.statements.slice();Pm(gi,[Pi]),dn=t.updateBlock(dn,gi)}L&&(c.getNodeCheckFlags(At)&256?Dx(dn,HO):c.getNodeCheckFlags(At)&128&&Dx(dn,jO))}return A=vn,L=Wt,dn}function at(At){i();const Wt=Sl(At,Ka).type,dn=d<2?Qt(Wt):void 0,rr=At.kind===216,cr=(c.getNodeCheckFlags(At)&512)!==0,Pi=E;E=new Set;for(const Pn of At.parameters)Ye(Pn,E);const gi=A,Rn=L;rr||(A=new Set,L=!1);let an;if(rr){const Pn=r().createAwaiterHelper(Y(),cr,dn,sn(At.body)),Ar=o();if(kt(Ar)){const Hr=t.converters.convertToFunctionBlock(Pn);an=t.updateBlock(Hr,ht(t.createNodeArray(ba(Ar,Hr.statements)),Hr.statements))}else an=Pn}else{const Pn=[],Ar=t.copyPrologue(At.body.statements,Pn,!1,re);Pn.push(t.createReturnStatement(r().createAwaiterHelper(Y(),cr,dn,sn(At.body,Ar)))),Pm(Pn,o());const Hr=d>=2&&c.getNodeCheckFlags(At)&384;if(Hr&&(On(),A.size)){const yt=vF(t,c,At,A);I[ms(yt)]=!0,Pm(Pn,[yt])}const we=t.createBlock(Pn,!0);ht(we,At.body),Hr&&L&&(c.getNodeCheckFlags(At)&256?Dx(we,HO):c.getNodeCheckFlags(At)&128&&Dx(we,jO)),an=we}return E=Pi,rr||(A=gi,L=Rn),an}function sn(At,vn){return lo(At)?t.updateBlock(At,Jn(At.statements,ye,wa,vn)):t.converters.convertToFunctionBlock(D.checkDefined(lt(At,ye,o3)))}function Qt(At){const vn=At&&IN(At);if(vn&&nf(vn)){const Wt=c.getTypeReferenceSerializationKind(vn);if(Wt===1||Wt===0)return vn}}function On(){y&1||(y|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function jn(At,vn,Wt){if(y&1&&Qi(vn)){const dn=c.getNodeCheckFlags(vn)&384;if(dn!==h){const rr=h;h=dn,k(At,vn,Wt),h=rr;return}}else if(y&&I[ms(vn)]){const dn=h;h=0,k(At,vn,Wt),h=dn;return}k(At,vn,Wt)}function In(At,vn){return vn=G(At,vn),At===1&&h?Zt(vn):vn}function Zt(At){switch(At.kind){case 208:return _r(At);case 209:return Ii(At);case 210:return $i(At)}return At}function _r(At){return At.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),At.name),At):At}function Ii(At){return At.expression.kind===106?Or(At.argumentExpression,At):At}function $i(At){const vn=At.expression;if(ud(vn)){const Wt=Fr(vn)?_r(vn):Ii(vn);return t.createCallExpression(t.createPropertyAccessExpression(Wt,"call"),void 0,[t.createThis(),...At.arguments])}return At}function Qi(At){const vn=At.kind;return vn===260||vn===173||vn===171||vn===174||vn===175}function Or(At,vn){return h&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[At]),"value"),vn):ht(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[At]),vn)}}function vF(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((c,f)=>{const d=ta(f),y=[];y.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,or(e.createPropertyAccessExpression(or(e.createSuper(),8),d),8)))),o&&y.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(or(e.createPropertyAccessExpression(or(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(y)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var R5e=C({"src/compiler/transformers/es2017.ts"(){Oa()}});function cye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),f=e.getCompilerOptions(),d=es(f),y=e.onEmitNode;e.onEmitNode=Pn;const h=e.onSubstituteNode;e.onSubstituteNode=Ar;let E=!1,A,L,I,O=0,k=0,G,V,H,te;const X=[];return Y_(e,ye);function Y(pe,ie){return k!==(k&~pe|ie)}function P(pe,ie){const he=k;return k=(k&~pe|ie)&3,he}function de(pe){k=pe}function re(pe){V=Fn(V,t.createVariableDeclaration(pe))}function ye(pe){if(pe.isDeclarationFile)return pe;G=pe;const ie=ze(pe);return Ty(ie,e.readEmitHelpers()),G=void 0,V=void 0,ie}function ae(pe){return Se(pe,!1)}function W(pe){return Se(pe,!0)}function ce(pe){if(pe.kind!==132)return pe}function me(pe,ie,he,j){if(Y(he,j)){const We=P(he,j),Ze=pe(ie);return de(We),Ze}return pe(ie)}function ve(pe){return Bn(pe,ae,e)}function Se(pe,ie){if(!(pe.transformFlags&128))return pe;switch(pe.kind){case 220:return ee(pe);case 226:return Qe(pe);case 250:return je(pe);case 253:return Ge(pe);case 207:return Oe(pe);case 223:return st(pe,ie);case 357:return Ct(pe,ie);case 295:return Et(pe);case 240:return jt(pe);case 257:return tt(pe);case 243:case 244:case 246:return me(ve,pe,0,2);case 247:return On(pe,void 0);case 245:return me(sn,pe,0,2);case 219:return Qt(pe);case 173:return me(Or,pe,2,1);case 171:return me(Wt,pe,2,1);case 174:return me(At,pe,2,1);case 175:return me(vn,pe,2,1);case 259:return me(dn,pe,2,1);case 215:return me(cr,pe,2,1);case 216:return me(rr,pe,2,0);case 166:return $i(pe);case 241:return Me(pe);case 214:return Ye(pe,ie);case 212:return Fe(pe);case 208:return H&&Fr(pe)&&pe.expression.kind===106&&H.add(pe.name.escapedText),Bn(pe,ae,e);case 209:return H&&pe.expression.kind===106&&(te=!0),Bn(pe,ae,e);case 260:case 228:return me(ve,pe,2,1);default:return Bn(pe,ae,e)}}function ee(pe){return L&2&&L&1?Wr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(lt(pe.expression,ae,vt))),pe),pe):Bn(pe,ae,e)}function Qe(pe){if(L&2&&L&1){if(pe.asteriskToken){const ie=lt(D.checkDefined(pe.expression),ae,vt);return Wr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(pe,pe.asteriskToken,ht(r().createAsyncDelegatorHelper(ht(r().createAsyncValuesHelper(ie),ie)),ie)))),pe),pe)}return Wr(ht(t.createYieldExpression(void 0,Zt(pe.expression?lt(pe.expression,ae,vt):t.createVoidZero())),pe),pe)}return Bn(pe,ae,e)}function je(pe){return L&2&&L&1?t.updateReturnStatement(pe,Zt(pe.expression?lt(pe.expression,ae,vt):t.createVoidZero())):Bn(pe,ae,e)}function Ge(pe){if(L&2){const ie=qz(pe);return ie.kind===247&&ie.awaitModifier?On(ie,pe):t.restoreEnclosingLabel(lt(ie,ae,wa,t.liftToBlock),pe)}return Bn(pe,ae,e)}function qe(pe){let ie;const he=[];for(const j of pe)if(j.kind===301){ie&&(he.push(t.createObjectLiteralExpression(ie)),ie=void 0);const We=j.expression;he.push(lt(We,ae,vt))}else ie=Fn(ie,j.kind===299?t.createPropertyAssignment(j.name,lt(j.initializer,ae,vt)):lt(j,ae,hy));return ie&&he.push(t.createObjectLiteralExpression(ie)),he}function Oe(pe){if(pe.transformFlags&65536){const ie=qe(pe.properties);ie.length&&ie[0].kind!==207&&ie.unshift(t.createObjectLiteralExpression());let he=ie[0];if(ie.length>1){for(let j=1;j<ie.length;j++)he=r().createAssignHelper([he,ie[j]]);return he}else return r().createAssignHelper(ie)}return Bn(pe,ae,e)}function Me(pe){return Bn(pe,W,e)}function Ye(pe,ie){return Bn(pe,ie?W:ae,e)}function ze(pe){const ie=P(2,Oz(pe,f)?0:1);E=!1;const he=Bn(pe,ae,e),j=ba(he.statements,V&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(V))]),We=t.updateSourceFile(he,ht(t.createNodeArray(j),pe.statements));return de(ie),We}function Fe(pe){return tY(e,pe,ae,G,re,0)}function st(pe,ie){return by(pe)&&c8(pe.left)?VT(pe,ae,e,1,!ie):pe.operatorToken.kind===27?t.updateBinaryExpression(pe,lt(pe.left,W,vt),pe.operatorToken,lt(pe.right,ie?W:ae,vt)):Bn(pe,ae,e)}function Ct(pe,ie){if(ie)return Bn(pe,W,e);let he;for(let We=0;We<pe.elements.length;We++){const Ze=pe.elements[We],Xe=lt(Ze,We<pe.elements.length-1?W:ae,vt);(he||Xe!==Ze)&&(he||(he=pe.elements.slice(0,We)),he.push(Xe))}const j=he?ht(t.createNodeArray(he),pe.elements):pe.elements;return t.updateCommaListExpression(pe,j)}function Et(pe){if(pe.variableDeclaration&&Xa(pe.variableDeclaration.name)&&pe.variableDeclaration.name.transformFlags&65536){const ie=t.getGeneratedNameForNode(pe.variableDeclaration.name),he=t.updateVariableDeclaration(pe.variableDeclaration,pe.variableDeclaration.name,void 0,void 0,ie),j=W1(he,ae,e,1);let We=lt(pe.block,ae,lo);return kt(j)&&(We=t.updateBlock(We,[t.createVariableStatement(void 0,j),...We.statements])),t.updateCatchClause(pe,t.updateVariableDeclaration(pe.variableDeclaration,ie,void 0,void 0,void 0),We)}return Bn(pe,ae,e)}function jt(pe){if(Yr(pe,1)){const ie=E;E=!0;const he=Bn(pe,ae,e);return E=ie,he}return Bn(pe,ae,e)}function tt(pe){if(E){const ie=E;E=!1;const he=at(pe,!0);return E=ie,he}return at(pe,!1)}function at(pe,ie){return Xa(pe.name)&&pe.name.transformFlags&65536?W1(pe,ae,e,1,void 0,ie):Bn(pe,ae,e)}function sn(pe){return t.updateForStatement(pe,lt(pe.initializer,W,Xp),lt(pe.condition,ae,vt),lt(pe.incrementor,W,vt),E_(pe.statement,ae,e))}function Qt(pe){return Bn(pe,W,e)}function On(pe,ie){const he=P(0,2);(pe.initializer.transformFlags&65536||qI(pe.initializer)&&c8(pe.initializer))&&(pe=jn(pe));const j=pe.awaitModifier?_r(pe,ie,he):t.restoreEnclosingLabel(Bn(pe,ae,e),ie);return de(he),j}function jn(pe){const ie=js(pe.initializer);if(Vu(ie)||qI(ie)){let he,j;const We=t.createTempVariable(void 0),Ze=[bK(t,ie,We)];return lo(pe.statement)?(Ti(Ze,pe.statement.statements),he=pe.statement,j=pe.statement.statements):pe.statement&&(Fn(Ze,pe.statement),he=pe.statement,j=pe.statement),t.updateForOfStatement(pe,pe.awaitModifier,ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(We),pe.initializer)],1),pe.initializer),pe.expression,ht(t.createBlock(ht(t.createNodeArray(Ze),j),!0),he))}return pe}function In(pe,ie,he){const j=t.createTempVariable(s),We=t.createAssignment(j,ie),Ze=t.createExpressionStatement(We);_s(Ze,pe.expression);const Xe=t.createAssignment(he,t.createFalse()),Ut=t.createExpressionStatement(Xe);_s(Ut,pe.expression);const cn=t.createAssignment(he,t.createTrue()),Sn=t.createExpressionStatement(cn);_s(Ut,pe.expression);const Er=[],ue=bK(t,pe.initializer,j);Er.push(lt(ue,ae,wa));let mt,zt;const it=E_(pe.statement,ae,e);lo(it)?(Ti(Er,it.statements),mt=it,zt=it.statements):Er.push(it);const K=or(ht(t.createBlock(ht(t.createNodeArray(Er),zt),!0),mt),864);return t.createBlock([Ze,Ut,t.createTryStatement(K,void 0,t.createBlock([Sn]))])}function Zt(pe){return L&1?t.createYieldExpression(void 0,r().createAwaitHelper(pe)):t.createAwaitExpression(pe)}function _r(pe,ie,he){const j=lt(pe.expression,ae,vt),We=He(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Ze=He(j)?t.getGeneratedNameForNode(We):t.createTempVariable(void 0),Xe=t.createTempVariable(void 0),Ut=t.createTempVariable(s),cn=t.createUniqueName("e"),Sn=t.getGeneratedNameForNode(cn),Er=t.createTempVariable(void 0),ue=ht(r().createAsyncValuesHelper(j),pe.expression),mt=t.createCallExpression(t.createPropertyAccessExpression(We,"next"),void 0,[]),zt=t.createPropertyAccessExpression(Ze,"done"),it=t.createPropertyAccessExpression(Ze,"value"),K=t.createFunctionCallCall(Er,We,[]);s(cn),s(Er);const Pe=he&2?t.inlineExpressions([t.createAssignment(cn,t.createVoidZero()),ue]):ue,Z=or(ht(t.createForStatement(or(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Xe,void 0,void 0,t.createTrue()),ht(t.createVariableDeclaration(We,void 0,void 0,Pe),pe.expression),t.createVariableDeclaration(Ze)]),pe.expression),4194304),t.inlineExpressions([t.createAssignment(Ze,Zt(mt)),t.createAssignment(Ut,zt),t.createLogicalNot(Ut)]),void 0,In(pe,it,Xe)),pe),512);return Wr(Z,pe),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Z,ie)]),t.createCatchClause(t.createVariableDeclaration(Sn),or(t.createBlock([t.createExpressionStatement(t.createAssignment(cn,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Sn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Xe),t.createLogicalNot(Ut)),t.createAssignment(Er,t.createPropertyAccessExpression(We,"return"))),t.createExpressionStatement(Zt(K))),1)]),void 0,or(t.createBlock([or(t.createIfStatement(cn,t.createThrowStatement(t.createPropertyAccessExpression(cn,"error"))),1)]),1))]))}function Ii(pe){return D.assertNode(pe,Ba),$i(pe)}function $i(pe){return I!=null&&I.has(pe)?t.updateParameterDeclaration(pe,void 0,pe.dotDotDotToken,Xa(pe.name)?t.getGeneratedNameForNode(pe):pe.name,void 0,void 0,void 0):pe.transformFlags&65536?t.updateParameterDeclaration(pe,void 0,pe.dotDotDotToken,t.getGeneratedNameForNode(pe),void 0,void 0,lt(pe.initializer,ae,vt)):Bn(pe,ae,e)}function Qi(pe){let ie;for(const he of pe.parameters)ie?ie.add(he):he.transformFlags&65536&&(ie=new Set);return ie}function Or(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateConstructorDeclaration(pe,pe.modifiers,Kl(pe.parameters,Ii,e),gi(pe));return L=ie,I=he,j}function At(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateGetAccessorDeclaration(pe,pe.modifiers,lt(pe.name,ae,yl),Kl(pe.parameters,Ii,e),void 0,gi(pe));return L=ie,I=he,j}function vn(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateSetAccessorDeclaration(pe,pe.modifiers,lt(pe.name,ae,yl),Kl(pe.parameters,Ii,e),gi(pe));return L=ie,I=he,j}function Wt(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateMethodDeclaration(pe,L&1?Jn(pe.modifiers,ce,nl):pe.modifiers,L&2?void 0:pe.asteriskToken,lt(pe.name,ae,yl),lt(void 0,ae,Bv),void 0,Kl(pe.parameters,Ii,e),void 0,L&2&&L&1?Pi(pe):gi(pe));return L=ie,I=he,j}function dn(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateFunctionDeclaration(pe,L&1?Jn(pe.modifiers,ce,uo):pe.modifiers,L&2?void 0:pe.asteriskToken,pe.name,void 0,Kl(pe.parameters,Ii,e),void 0,L&2&&L&1?Pi(pe):gi(pe));return L=ie,I=he,j}function rr(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateArrowFunction(pe,pe.modifiers,void 0,Kl(pe.parameters,Ii,e),void 0,pe.equalsGreaterThanToken,gi(pe));return L=ie,I=he,j}function cr(pe){const ie=L,he=I;L=jc(pe),I=Qi(pe);const j=t.updateFunctionExpression(pe,L&1?Jn(pe.modifiers,ce,uo):pe.modifiers,L&2?void 0:pe.asteriskToken,pe.name,void 0,Kl(pe.parameters,Ii,e),void 0,L&2&&L&1?Pi(pe):gi(pe));return L=ie,I=he,j}function Pi(pe){i();const ie=[],he=t.copyPrologue(pe.body.statements,ie,!1,ae);Rn(ie,pe);const j=H,We=te;H=new Set,te=!1;const Ze=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),pe.name&&t.getGeneratedNameForNode(pe.name),void 0,[],void 0,t.updateBlock(pe.body,dF(pe.body.statements,ae,e,he))),!!(k&1))),Xe=d>=2&&c.getNodeCheckFlags(pe)&384;if(Xe){an();const cn=vF(t,c,pe,H);X[ms(cn)]=!0,Pm(ie,[cn])}ie.push(Ze),Pm(ie,o());const Ut=t.updateBlock(pe.body,ie);return Xe&&te&&(c.getNodeCheckFlags(pe)&256?Dx(Ut,HO):c.getNodeCheckFlags(pe)&128&&Dx(Ut,jO)),H=j,te=We,Ut}function gi(pe){var ie;i();let he=0;const j=[],We=(ie=lt(pe.body,ae,o3))!=null?ie:t.createBlock([]);lo(We)&&(he=t.copyPrologue(We.statements,j,!1,ae)),Ti(j,Rn(void 0,pe));const Ze=o();if(he>0||kt(j)||kt(Ze)){const Xe=t.converters.convertToFunctionBlock(We,!0);return Pm(j,Ze),Ti(j,Xe.statements.slice(he)),t.updateBlock(Xe,ht(t.createNodeArray(j),Xe.statements))}return We}function Rn(pe,ie){let he=!1;for(const j of ie.parameters)if(he){if(Xa(j.name)){if(j.name.elements.length>0){const We=W1(j,ae,e,0,t.getGeneratedNameForNode(j));if(kt(We)){const Ze=t.createVariableDeclarationList(We),Xe=t.createVariableStatement(void 0,Ze);or(Xe,2097152),pe=Fn(pe,Xe)}}else if(j.initializer){const We=t.getGeneratedNameForNode(j),Ze=lt(j.initializer,ae,vt),Xe=t.createAssignment(We,Ze),Ut=t.createExpressionStatement(Xe);or(Ut,2097152),pe=Fn(pe,Ut)}}else if(j.initializer){const We=t.cloneNode(j.name);ht(We,j.name),or(We,96);const Ze=lt(j.initializer,ae,vt);tm(Ze,3168);const Xe=t.createAssignment(We,Ze);ht(Xe,j),or(Xe,3072);const Ut=t.createBlock([t.createExpressionStatement(Xe)]);ht(Ut,j),or(Ut,3905);const cn=t.createTypeCheck(t.cloneNode(j.name),"undefined"),Sn=t.createIfStatement(cn,Ut);ju(Sn),ht(Sn,j),or(Sn,2101056),pe=Fn(pe,Sn)}}else if(j.transformFlags&65536){he=!0;const We=W1(j,ae,e,1,t.getGeneratedNameForNode(j),!1,!0);if(kt(We)){const Ze=t.createVariableDeclarationList(We),Xe=t.createVariableStatement(void 0,Ze);or(Xe,2097152),pe=Fn(pe,Xe)}}return pe}function an(){A&1||(A|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function Pn(pe,ie,he){if(A&1&&Ce(ie)){const j=c.getNodeCheckFlags(ie)&384;if(j!==O){const We=O;O=j,y(pe,ie,he),O=We;return}}else if(A&&X[ms(ie)]){const j=O;O=0,y(pe,ie,he),O=j;return}y(pe,ie,he)}function Ar(pe,ie){return ie=h(pe,ie),pe===1&&O?Hr(ie):ie}function Hr(pe){switch(pe.kind){case 208:return we(pe);case 209:return yt(pe);case 210:return Nt(pe)}return pe}function we(pe){return pe.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),pe.name),pe):pe}function yt(pe){return pe.expression.kind===106?pt(pe.argumentExpression,pe):pe}function Nt(pe){const ie=pe.expression;if(ud(ie)){const he=Fr(ie)?we(ie):yt(ie);return t.createCallExpression(t.createPropertyAccessExpression(he,"call"),void 0,[t.createThis(),...pe.arguments])}return pe}function Ce(pe){const ie=pe.kind;return ie===260||ie===173||ie===171||ie===174||ie===175}function pt(pe,ie){return O&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[pe]),"value"),ie):ht(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[pe]),ie)}}var N5e=C({"src/compiler/transformers/es2018.ts"(){Oa()}});function uye(e){const t=e.factory;return Y_(e,r);function r(s){return s.isDeclarationFile?s:Bn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 295:return o(s);default:return Bn(s,i,e)}}function o(s){return s.variableDeclaration?Bn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),lt(s.block,i,lo))}}var O5e=C({"src/compiler/transformers/es2019.ts"(){Oa()}});function dye(e){const{factory:t,hoistVariableDeclaration:r}=e;return Y_(e,i);function i(I){return I.isDeclarationFile?I:Bn(I,o,e)}function o(I){if(!(I.transformFlags&32))return I;switch(I.kind){case 210:{const O=d(I,!1);return D.assertNotNode(O,Hx),O}case 208:case 209:if(yu(I)){const O=h(I,!1,!1);return D.assertNotNode(O,Hx),O}return Bn(I,o,e);case 223:return I.operatorToken.kind===60?A(I):Bn(I,o,e);case 217:return L(I);default:return Bn(I,o,e)}}function s(I){D.assertNotNode(I,e3);const O=[I];for(;!I.questionDotToken&&!kT(I);)I=ao(F_(I.expression),yu),D.assertNotNode(I,e3),O.unshift(I);return{expression:I.expression,chain:O}}function c(I,O,k){const G=y(I.expression,O,k);return Hx(G)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(I,G.expression),G.thisArg):t.updateParenthesizedExpression(I,G)}function f(I,O,k){if(yu(I))return h(I,O,k);let G=lt(I.expression,o,vt);D.assertNotNode(G,Hx);let V;return O&&(H1(G)?V=G:(V=t.createTempVariable(r),G=t.createAssignment(V,G))),G=I.kind===208?t.updatePropertyAccessExpression(I,G,lt(I.name,o,He)):t.updateElementAccessExpression(I,G,lt(I.argumentExpression,o,vt)),V?t.createSyntheticReferenceExpression(G,V):G}function d(I,O){if(yu(I))return h(I,O,!1);if(Ud(I.expression)&&yu(js(I.expression))){const k=c(I.expression,!0,!1),G=Jn(I.arguments,o,vt);return Hx(k)?ht(t.createFunctionCallCall(k.expression,k.thisArg,G),I):t.updateCallExpression(I,k,void 0,G)}return Bn(I,o,e)}function y(I,O,k){switch(I.kind){case 214:return c(I,O,k);case 208:case 209:return f(I,O,k);case 210:return d(I,O);default:return lt(I,o,vt)}}function h(I,O,k){const{expression:G,chain:V}=s(I),H=y(F_(G),aT(V[0]),!1);let te=Hx(H)?H.thisArg:void 0,X=Hx(H)?H.expression:H,Y=t.restoreOuterExpressions(G,X,8);H1(X)||(X=t.createTempVariable(r),Y=t.createAssignment(X,Y));let P=X,de;for(let ye=0;ye<V.length;ye++){const ae=V[ye];switch(ae.kind){case 208:case 209:ye===V.length-1&&O&&(H1(P)?de=P:(de=t.createTempVariable(r),P=t.createAssignment(de,P))),P=ae.kind===208?t.createPropertyAccessExpression(P,lt(ae.name,o,He)):t.createElementAccessExpression(P,lt(ae.argumentExpression,o,vt));break;case 210:ye===0&&te?(xl(te)||(te=t.cloneNode(te),tm(te,3072)),P=t.createFunctionCallCall(P,te.kind===106?t.createThis():te,Jn(ae.arguments,o,vt))):P=t.createCallExpression(P,void 0,Jn(ae.arguments,o,vt));break}Wr(P,ae)}const re=k?t.createConditionalExpression(E(Y,X,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(P)):t.createConditionalExpression(E(Y,X,!0),void 0,t.createVoidZero(),void 0,P);return ht(re,I),de?t.createSyntheticReferenceExpression(re,de):re}function E(I,O,k){return t.createBinaryExpression(t.createBinaryExpression(I,t.createToken(k?36:37),t.createNull()),t.createToken(k?56:55),t.createBinaryExpression(O,t.createToken(k?36:37),t.createVoidZero()))}function A(I){let O=lt(I.left,o,vt),k=O;return H1(O)||(k=t.createTempVariable(r),O=t.createAssignment(k,O)),ht(t.createConditionalExpression(E(O,k),void 0,k,void 0,lt(I.right,o,vt)),I)}function L(I){return yu(js(I.expression))?Wr(y(I.expression,!1,!0),I):t.updateDeleteExpression(I,lt(I.expression,o,vt))}}var P5e=C({"src/compiler/transformers/es2020.ts"(){Oa()}});function fye(e){const{hoistVariableDeclaration:t,factory:r}=e;return Y_(e,i);function i(c){return c.isDeclarationFile?c:Bn(c,o,e)}function o(c){return c.transformFlags&16?wq(c)?s(c):Bn(c,o,e):c}function s(c){const f=c.operatorToken,d=gw(f.kind);let y=js(lt(c.left,o,Td)),h=y;const E=js(lt(c.right,o,vt));if(ll(y)){const A=H1(y.expression),L=A?y.expression:r.createTempVariable(t),I=A?y.expression:r.createAssignment(L,y.expression);if(Fr(y))h=r.createPropertyAccessExpression(L,y.name),y=r.createPropertyAccessExpression(I,y.name);else{const O=H1(y.argumentExpression),k=O?y.argumentExpression:r.createTempVariable(t);h=r.createElementAccessExpression(L,k),y=r.createElementAccessExpression(I,O?y.argumentExpression:r.createAssignment(k,y.argumentExpression))}}return r.createBinaryExpression(y,d,r.createParenthesizedExpression(r.createAssignment(h,E)))}}var M5e=C({"src/compiler/transformers/es2021.ts"(){Oa()}});function _ye(e){return Y_(e,t);function t(i){return i.isDeclarationFile?i:Bn(i,r,e)}function r(i){if(!(i.transformFlags&4))return i;switch(i.kind){default:return Bn(i,r,e)}}}var F5e=C({"src/compiler/transformers/esnext.ts"(){Oa()}});function pye(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return Y_(e,E);function c(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Fe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Fe,s.filenameDeclaration.name}function f(Fe){return i.jsx===5?"jsxDEV":Fe?"jsxs":"jsx"}function d(Fe){const st=f(Fe);return h(st)}function y(){return h("Fragment")}function h(Fe){var st,Ct;const Et=Fe==="createElement"?s.importSpecifier:u7(s.importSpecifier,i),jt=(Ct=(st=s.utilizedImplicitRuntimeImports)==null?void 0:st.get(Et))==null?void 0:Ct.get(Fe);if(jt)return jt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let tt=s.utilizedImplicitRuntimeImports.get(Et);tt||(tt=new Map,s.utilizedImplicitRuntimeImports.set(Et,tt));const at=t.createUniqueName(`_${Fe}`,112),sn=t.createImportSpecifier(!1,t.createIdentifier(Fe),at);return Spe(at,sn),tt.set(Fe,sn),at}function E(Fe){if(Fe.isDeclarationFile)return Fe;o=Fe,s={},s.importSpecifier=c7(i,Fe);let st=Bn(Fe,A,e);Ty(st,e.readEmitHelpers());let Ct=st.statements;if(s.filenameDeclaration&&(Ct=y1(Ct.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Et,jt]of Ro(s.utilizedImplicitRuntimeImports.entries()))if(Zl(Fe)){const tt=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ro(jt.values()))),t.createStringLiteral(Et),void 0);Fv(tt,!1),Ct=y1(Ct.slice(),tt)}else if(of(Fe)){const tt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ro(jt.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Et)]))],2));Fv(tt,!1),Ct=y1(Ct.slice(),tt)}}return Ct!==st.statements&&(st=t.updateSourceFile(st,Ct)),s=void 0,st}function A(Fe){return Fe.transformFlags&2?L(Fe):Fe}function L(Fe){switch(Fe.kind){case 281:return G(Fe,!1);case 282:return V(Fe,!1);case 285:return H(Fe,!1);case 291:return ze(Fe);default:return Bn(Fe,A,e)}}function I(Fe){switch(Fe.kind){case 11:return Qe(Fe);case 291:return ze(Fe);case 281:return G(Fe,!0);case 282:return V(Fe,!0);case 285:return H(Fe,!0);default:return D.failBadSyntaxKind(Fe)}}function O(Fe){let st=!1;for(const Ct of Fe.attributes.properties)if(RT(Ct))st=!0;else if(st&&im(Ct)&&Ct.name.escapedText==="key")return!0;return!1}function k(Fe){return s.importSpecifier===void 0||O(Fe)}function G(Fe,st){return(k(Fe.openingElement)?de:Y)(Fe.openingElement,Fe.children,st,Fe)}function V(Fe,st){return(k(Fe)?de:Y)(Fe,void 0,st,Fe)}function H(Fe,st){return(s.importSpecifier===void 0?ye:re)(Fe.openingFragment,Fe.children,st,Fe)}function te(Fe){const st=X(Fe);return st&&t.createObjectLiteralExpression([st])}function X(Fe){const st=nO(Fe);if(Ae(st)===1&&!st[0].dotDotDotToken){const Et=I(st[0]);return Et&&t.createPropertyAssignment("children",Et)}const Ct=ia(Fe,I);return Ae(Ct)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ct)):void 0}function Y(Fe,st,Ct,Et){const jt=Me(Fe),tt=st&&st.length?X(st):void 0,at=nn(Fe.attributes.properties,On=>!!On.name&&He(On.name)&&On.name.escapedText==="key"),sn=at?lr(Fe.attributes.properties,On=>On!==at):Fe.attributes.properties,Qt=Ae(sn)?W(sn,tt):t.createObjectLiteralExpression(tt?[tt]:rt);return P(jt,Qt,at,st||rt,Ct,Et)}function P(Fe,st,Ct,Et,jt,tt){var at;const sn=nO(Et),Qt=Ae(sn)>1||!!((at=sn[0])!=null&&at.dotDotDotToken),On=[Fe,st];if(Ct&&On.push(ee(Ct.initializer)),i.jsx===5){const In=Sl(o);if(In&&qi(In)){Ct===void 0&&On.push(t.createVoidZero()),On.push(Qt?t.createTrue():t.createFalse());const Zt=ol(In,tt.pos);On.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Zt.character+1))])),On.push(t.createThis())}}const jn=ht(t.createCallExpression(d(Qt),void 0,On),tt);return jt&&ju(jn),jn}function de(Fe,st,Ct,Et){const jt=Me(Fe),tt=Fe.attributes.properties,at=Ae(tt)?W(tt):t.createNull(),sn=s.importSpecifier===void 0?vK(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Fe):h("createElement"),Qt=tme(t,sn,jt,at,ia(st,I),Et);return Ct&&ju(Qt),Qt}function re(Fe,st,Ct,Et){let jt;if(st&&st.length){const tt=te(st);tt&&(jt=tt)}return P(y(),jt||t.createObjectLiteralExpression([]),void 0,st,Ct,Et)}function ye(Fe,st,Ct,Et){const jt=nme(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,ia(st,I),Fe,Et);return Ct&&ju(jt),jt}function ae(Fe){return t.createSpreadAssignment(D.checkDefined(lt(Fe.expression,A,vt)))}function W(Fe,st){const Ct=es(i);return Ct&&Ct>=5?t.createObjectLiteralExpression(ce(Fe,st)):me(Fe,st)}function ce(Fe,st){const Ct=is(iM(Fe,RT,(Et,jt)=>Vt(Et,tt=>jt?ae(tt):Se(tt))));return st&&Ct.push(st),Ct}function me(Fe,st){const Ct=is(iM(Fe,RT,(Et,jt)=>jt?Vt(Et,ve):t.createObjectLiteralExpression(Vt(Et,Se))));return RT(Fe[0])&&Ct.unshift(t.createObjectLiteralExpression()),st&&Ct.push(t.createObjectLiteralExpression([st])),Am(Ct)||r().createAssignHelper(Ct)}function ve(Fe){return D.checkDefined(lt(Fe.expression,A,vt))}function Se(Fe){const st=Ye(Fe),Ct=ee(Fe.initializer);return t.createPropertyAssignment(st,Ct)}function ee(Fe){if(Fe===void 0)return t.createTrue();if(Fe.kind===10){const st=Fe.singleQuote!==void 0?Fe.singleQuote:!F3(Fe,o),Ct=t.createStringLiteral(Oe(Fe.text)||Fe.text,st);return ht(Ct,Fe)}return Fe.kind===291?Fe.expression===void 0?t.createTrue():D.checkDefined(lt(Fe.expression,A,vt)):Cy(Fe)?G(Fe,!1):Wx(Fe)?V(Fe,!1):qx(Fe)?H(Fe,!1):D.failBadSyntaxKind(Fe)}function Qe(Fe){const st=je(Fe.text);return st===void 0?void 0:t.createStringLiteral(st)}function je(Fe){let st,Ct=0,Et=-1;for(let jt=0;jt<Fe.length;jt++){const tt=Fe.charCodeAt(jt);hu(tt)?(Ct!==-1&&Et!==-1&&(st=Ge(st,Fe.substr(Ct,Et-Ct+1))),Ct=-1):Dm(tt)||(Et=jt,Ct===-1&&(Ct=jt))}return Ct!==-1?Ge(st,Fe.substr(Ct)):st}function Ge(Fe,st){const Ct=qe(st);return Fe===void 0?Ct:Fe+" "+Ct}function qe(Fe){return Fe.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(st,Ct,Et,jt,tt,at,sn)=>{if(tt)return MI(parseInt(tt,10));if(at)return MI(parseInt(at,16));{const Qt=mye.get(sn);return Qt?MI(Qt):st}})}function Oe(Fe){const st=qe(Fe);return st===Fe?void 0:st}function Me(Fe){if(Fe.kind===281)return Me(Fe.openingElement);{const st=Fe.tagName;return He(st)&&dk(st.escapedText)?t.createStringLiteral(Mr(st)):r8(t,st)}}function Ye(Fe){const st=Fe.name,Ct=Mr(st);return/^[A-Za-z_]\w*$/.test(Ct)?st:t.createStringLiteral(Ct)}function ze(Fe){const st=lt(Fe.expression,A,vt);return Fe.dotDotDotToken?t.createSpreadElement(st):st}}var mye,B5e=C({"src/compiler/transformers/jsx.ts"(){Oa(),mye=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 hye(e){const{factory:t,hoistVariableDeclaration:r}=e;return Y_(e,i);function i(d){return d.isDeclarationFile?d:Bn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 223:return s(d);default:return Bn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 67:return c(d);case 42:return f(d);default:return Bn(d,o,e)}}function c(d){let y,h;const E=lt(d.left,o,vt),A=lt(d.right,o,vt);if(cl(E)){const L=t.createTempVariable(r),I=t.createTempVariable(r);y=ht(t.createElementAccessExpression(ht(t.createAssignment(L,E.expression),E.expression),ht(t.createAssignment(I,E.argumentExpression),E.argumentExpression)),E),h=ht(t.createElementAccessExpression(L,I),E)}else if(Fr(E)){const L=t.createTempVariable(r);y=ht(t.createPropertyAccessExpression(ht(t.createAssignment(L,E.expression),E.expression),E.name),E),h=ht(t.createPropertyAccessExpression(L,E.name),E)}else y=E,h=E;return ht(t.createAssignment(y,ht(t.createGlobalMethodCall("Math","pow",[h,A]),d)),d)}function f(d){const y=lt(d.left,o,vt),h=lt(d.right,o,vt);return ht(t.createGlobalMethodCall("Math","pow",[y,h]),d)}}var G5e=C({"src/compiler/transformers/es2016.ts"(){Oa()}});function gye(e,t){return{kind:e,expression:t}}function yye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),y=e.onSubstituteNode,h=e.onEmitNode;e.onEmitNode=_d,e.onSubstituteNode=fl;let E,A,L,I;function O(oe){I=Fn(I,t.createVariableDeclaration(oe))}let k,G;return Y_(e,V);function V(oe){if(oe.isDeclarationFile)return oe;E=oe,A=oe.text;const ut=ce(oe);return Ty(ut,e.readEmitHelpers()),E=void 0,A=void 0,I=void 0,L=0,ut}function H(oe,ut){const Mt=L;return L=(L&~oe|ut)&32767,Mt}function te(oe,ut,Mt){L=(L&~ut|Mt)&-32768|oe}function X(oe){return(L&8192)!==0&&oe.kind===250&&!oe.expression}function Y(oe){return oe.transformFlags&4194304&&(Ep(oe)||wT(oe)||Hpe(oe)||YO(oe)||QO(oe)||Zk(oe)||e8(oe)||$O(oe)||NC(oe)||M1(oe)||Iv(oe,!1)||lo(oe))}function P(oe){return(oe.transformFlags&1024)!==0||k!==void 0||L&8192&&Y(oe)||Iv(oe,!1)&&oi(oe)||(B_(oe)&1)!==0}function de(oe){return P(oe)?W(oe,!1):oe}function re(oe){return P(oe)?W(oe,!0):oe}function ye(oe){if(P(oe)){const ut=Sl(oe);if(to(ut)&&gc(ut)){const Mt=H(32670,16449),Pt=W(oe,!1);return te(Mt,98304,0),Pt}return W(oe,!1)}return oe}function ae(oe){return oe.kind===106?dl(!0):de(oe)}function W(oe,ut){switch(oe.kind){case 124:return;case 260:return Oe(oe);case 228:return Me(oe);case 166:return On(oe);case 259:return an(oe);case 216:return gi(oe);case 215:return Rn(oe);case 257:return Ze(oe);case 79:return Ge(oe);case 258:return ie(oe);case 252:return me(oe);case 266:return ve(oe);case 238:return Hr(oe,!1);case 249:case 248:return qe(oe);case 253:return cn(oe);case 243:case 244:return ue(oe,void 0);case 245:return mt(oe,void 0);case 246:return it(oe,void 0);case 247:return K(oe,void 0);case 241:return we(oe);case 207:return Rt(oe);case 295:return oc(oe);case 300:return el(oe);case 164:return Ks(oe);case 206:return Hl(oe);case 210:return xu(oe);case 211:return Ht(oe);case 214:return yt(oe,ut);case 223:return Nt(oe,ut);case 357:return Ce(oe,ut);case 14:case 15:case 16:case 17:return Ta(oe);case 10:return ls(oe);case 8:return ho(oe);case 212:return jo(oe);case 225:return Ya(oe);case 226:return rn(oe);case 227:return Pr(oe);case 106:return dl(!1);case 108:return Qe(oe);case 233:return dc(oe);case 171:return Ds(oe);case 174:case 175:return hl(oe);case 240:return pe(oe);case 250:return ee(oe);case 219:return je(oe);default:return Bn(oe,de,e)}}function ce(oe){const ut=H(8064,64),Mt=[],Pt=[];i();const un=t.copyPrologue(oe.statements,Mt,!1,de);return Ti(Pt,Jn(oe.statements,de,wa,un)),I&&Pt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(I))),t.mergeLexicalEnvironment(Mt,s()),Qi(Mt,oe),te(ut,0,0),t.updateSourceFile(oe,ht(t.createNodeArray(ba(Mt,Pt)),oe.statements))}function me(oe){if(k!==void 0){const ut=k.allowedNonLabeledJumps;k.allowedNonLabeledJumps|=2;const Mt=Bn(oe,de,e);return k.allowedNonLabeledJumps=ut,Mt}return Bn(oe,de,e)}function ve(oe){const ut=H(7104,0),Mt=Bn(oe,de,e);return te(ut,0,0),Mt}function Se(oe){return Wr(t.createReturnStatement(t.createUniqueName("_this",48)),oe)}function ee(oe){return k?(k.nonLocalJumps|=8,X(oe)&&(oe=Se(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?D.checkDefined(lt(oe.expression,de,vt)):t.createVoidZero())]))):X(oe)?Se(oe):Bn(oe,de,e)}function Qe(oe){return L&2&&!(L&16384)&&(L|=65536),k?L&2?(k.containsLexicalThis=!0,oe):k.thisName||(k.thisName=t.createUniqueName("this")):oe}function je(oe){return Bn(oe,re,e)}function Ge(oe){return k&&d.isArgumentsLocalBinding(oe)?k.argumentsName||(k.argumentsName=t.createUniqueName("arguments")):oe.flags&128?Wr(ht(t.createIdentifier(ta(oe.escapedText)),oe),oe):oe}function qe(oe){if(k){const ut=oe.kind===249?2:4;if(!(oe.label&&k.labels&&k.labels.get(Mr(oe.label))||!oe.label&&k.allowedNonLabeledJumps&ut)){let Pt;const un=oe.label;un?oe.kind===249?(Pt=`break-${un.escapedText}`,Vl(k,!0,Mr(un),Pt)):(Pt=`continue-${un.escapedText}`,Vl(k,!1,Mr(un),Pt)):oe.kind===249?(k.nonLocalJumps|=2,Pt="break"):(k.nonLocalJumps|=4,Pt="continue");let Vn=t.createStringLiteral(Pt);if(k.loopOutParameters.length){const Rr=k.loopOutParameters;let ni;for(let Mi=0;Mi<Rr.length;Mi++){const ja=ec(Rr[Mi],1);Mi===0?ni=ja:ni=t.createBinaryExpression(ni,27,ja)}Vn=t.createBinaryExpression(ni,27,Vn)}return t.createReturnStatement(Vn)}}return Bn(oe,de,e)}function Oe(oe){const ut=t.createVariableDeclaration(t.getLocalName(oe,!0),void 0,void 0,Ye(oe));Wr(ut,oe);const Mt=[],Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([ut]));if(Wr(Pt,oe),ht(Pt,oe),ju(Pt),Mt.push(Pt),Yr(oe,1)){const Vn=Yr(oe,1024)?t.createExportDefault(t.getLocalName(oe)):t.createExternalModuleExport(t.getLocalName(oe));Wr(Vn,Pt),Mt.push(Vn)}const un=vo(oe);return un&8388608||(Mt.push(t.createEndOfDeclarationMarker(oe)),or(Pt,un|8388608)),Cm(Mt)}function Me(oe){return Ye(oe)}function Ye(oe){oe.name&&Es();const ut=A1(oe),Mt=t.createFunctionExpression(void 0,void 0,void 0,void 0,ut?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,ze(oe,ut));or(Mt,vo(oe)&131072|1048576);const Pt=t.createPartiallyEmittedExpression(Mt);mC(Pt,oe.end),or(Pt,3072);const un=t.createPartiallyEmittedExpression(Pt);mC(un,Jo(A,oe.pos)),or(un,3072);const Vn=t.createParenthesizedExpression(t.createCallExpression(un,void 0,ut?[D.checkDefined(lt(ut.expression,de,vt))]:[]));return BO(Vn,3,"* @class "),Vn}function ze(oe,ut){const Mt=[],Pt=t.getInternalName(oe),un=W3(Pt)?t.getGeneratedNameForNode(Pt):Pt;i(),Fe(Mt,oe,ut),st(Mt,oe,un,ut),Wt(Mt,oe);const Vn=Pq(Jo(A,oe.members.end),19),Rr=t.createPartiallyEmittedExpression(un);mC(Rr,Vn.end),or(Rr,3072);const ni=t.createReturnStatement(Rr);Rk(ni,Vn.pos),or(ni,3840),Mt.push(ni),Pm(Mt,s());const Mi=t.createBlock(ht(t.createNodeArray(Mt),oe.members),!0);return or(Mi,3072),Mi}function Fe(oe,ut,Mt){Mt&&oe.push(ht(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(ut))),Mt))}function st(oe,ut,Mt,Pt){const un=k;k=void 0;const Vn=H(32662,73),Rr=Th(ut),ni=Lo(Rr,Pt!==void 0),Mi=t.createFunctionDeclaration(void 0,void 0,Mt,void 0,Ct(Rr,ni),void 0,jt(Rr,ut,Pt,ni));ht(Mi,Rr||ut),Pt&&or(Mi,16),oe.push(Mi),te(Vn,98304,0),k=un}function Ct(oe,ut){return Kl(oe&&!ut?oe.parameters:void 0,de,e)||[]}function Et(oe,ut){const Mt=[];o(),t.mergeLexicalEnvironment(Mt,s()),ut&&Mt.push(t.createReturnStatement(Qt()));const Pt=t.createNodeArray(Mt);ht(Pt,oe.members);const un=t.createBlock(Pt,!0);return ht(un,oe),or(un,3072),un}function jt(oe,ut,Mt,Pt){const un=!!Mt&&bu(Mt.expression).kind!==104;if(!oe)return Et(ut,un);const Vn=[],Rr=[];o();const ni=mM(oe.body.statements,yp),{superCall:Mi,superStatementIndex:ja}=tt(oe.body.statements,ni),Ho=ja===-1?ni.length:ja+1;let Ts=Ho;Pt||(Ts=t.copyStandardPrologue(oe.body.statements,Vn,Ts,!1)),Pt||(Ts=t.copyCustomPrologue(oe.body.statements,Rr,Ts,de,void 0));let Xs;if(Pt?Xs=Qt():Mi&&(Xs=fe(Mi)),Xs&&(L|=8192),In(Vn,oe),$i(Vn,oe,Pt),Ti(Rr,Jn(oe.body.statements,de,wa,Ts)),t.mergeLexicalEnvironment(Vn,s()),vn(Vn,oe,!1),un||Xs)if(Xs&&Ho===oe.body.statements.length&&!(oe.body.transformFlags&16384)){const ff=ao(ao(Xs,br).left,no),tc=t.createReturnStatement(Xs);Wc(tc,jm(ff)),or(ff,3072),Rr.push(tc)}else ja<=ni.length?At(Rr,oe,Xs||sn()):(At(Vn,oe,sn()),Xs&&Or(Rr,Xs)),at(oe.body)||Rr.push(t.createReturnStatement(t.createUniqueName("_this",48)));else Qi(Vn,oe);const pd=t.createBlock(ht(t.createNodeArray([...ni,...Vn,...ja<=ni.length?rt:Jn(oe.body.statements,de,wa,ni.length,ja-ni.length),...Rr]),oe.body.statements),!0);return ht(pd,oe.body),pd}function tt(oe,ut){for(let Mt=ut.length;Mt<oe.length;Mt+=1){const Pt=JX(oe[Mt]);if(Pt)return{superCall:Pt,superStatementIndex:Mt}}return{superStatementIndex:-1}}function at(oe){if(oe.kind===250)return!0;if(oe.kind===242){const ut=oe;if(ut.elseStatement)return at(ut.thenStatement)&&at(ut.elseStatement)}else if(oe.kind===238){const ut=tl(oe.statements);if(ut&&at(ut))return!0}return!1}function sn(){return or(t.createThis(),8)}function Qt(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),sn(),t.createIdentifier("arguments"))),sn())}function On(oe){if(!oe.dotDotDotToken)return Xa(oe.name)?Wr(ht(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?Wr(ht(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function jn(oe){return oe.initializer!==void 0||Xa(oe.name)}function In(oe,ut){if(!kt(ut.parameters,jn))return!1;let Mt=!1;for(const Pt of ut.parameters){const{name:un,initializer:Vn,dotDotDotToken:Rr}=Pt;Rr||(Xa(un)?Mt=Zt(oe,Pt,un,Vn)||Mt:Vn&&(_r(oe,Pt,un,Vn),Mt=!0))}return Mt}function Zt(oe,ut,Mt,Pt){return Mt.elements.length>0?(y1(oe,or(t.createVariableStatement(void 0,t.createVariableDeclarationList(W1(ut,de,e,0,t.getGeneratedNameForNode(ut)))),2097152)),!0):Pt?(y1(oe,or(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ut),D.checkDefined(lt(Pt,de,vt)))),2097152)),!0):!1}function _r(oe,ut,Mt,Pt){Pt=D.checkDefined(lt(Pt,de,vt));const un=t.createIfStatement(t.createTypeCheck(t.cloneNode(Mt),"undefined"),or(ht(t.createBlock([t.createExpressionStatement(or(ht(t.createAssignment(or(Uo(ht(t.cloneNode(Mt),Mt),Mt.parent),96),or(Pt,96|vo(Pt)|3072)),ut),3072))]),ut),3905));ju(un),ht(un,ut),or(un,2101056),y1(oe,un)}function Ii(oe,ut){return!!(oe&&oe.dotDotDotToken&&!ut)}function $i(oe,ut,Mt){const Pt=[],un=tl(ut.parameters);if(!Ii(un,Mt))return!1;const Vn=un.name.kind===79?Uo(ht(t.cloneNode(un.name),un.name),un.name.parent):t.createTempVariable(void 0);or(Vn,96);const Rr=un.name.kind===79?t.cloneNode(un.name):Vn,ni=ut.parameters.length-1,Mi=t.createLoopVariable();Pt.push(or(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Vn,void 0,void 0,t.createArrayLiteralExpression([]))])),un),2097152));const ja=t.createForStatement(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Mi,void 0,void 0,t.createNumericLiteral(ni))]),un),ht(t.createLessThan(Mi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),un),ht(t.createPostfixIncrement(Mi),un),t.createBlock([ju(ht(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Rr,ni===0?Mi:t.createSubtract(Mi,t.createNumericLiteral(ni))),t.createElementAccessExpression(t.createIdentifier("arguments"),Mi))),un))]));return or(ja,2097152),ju(ja),Pt.push(ja),un.name.kind!==79&&Pt.push(or(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList(W1(un,de,e,0,Rr))),un),2097152)),Az(oe,Pt),!0}function Qi(oe,ut){return L&65536&&ut.kind!==216?(At(oe,ut,t.createThis()),!0):!1}function Or(oe,ut){ds();const Mt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),63,ut));y1(oe,Mt),Wc(Mt,Sl(ut).parent)}function At(oe,ut,Mt){ds();const Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,Mt)]));or(Pt,2100224),_s(Pt,ut),y1(oe,Pt)}function vn(oe,ut,Mt){if(L&32768){let Pt;switch(ut.kind){case 216:return oe;case 171:case 174:case 175:Pt=t.createVoidZero();break;case 173:Pt=t.createPropertyAccessExpression(or(t.createThis(),8),"constructor");break;case 259:case 215:Pt=t.createConditionalExpression(t.createLogicalAnd(or(t.createThis(),8),t.createBinaryExpression(or(t.createThis(),8),102,t.getLocalName(ut))),void 0,t.createPropertyAccessExpression(or(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return D.failBadSyntaxKind(ut)}const un=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Pt)]));or(un,2100224),Mt&&(oe=oe.slice()),y1(oe,un)}return oe}function Wt(oe,ut){for(const Mt of ut.members)switch(Mt.kind){case 237:oe.push(dn(Mt));break;case 171:oe.push(rr(Xi(ut,Mt),Mt,ut));break;case 174:case 175:const Pt=ST(ut.members,Mt);Mt===Pt.firstAccessor&&oe.push(cr(Xi(ut,Mt),Pt,ut));break;case 173:case 172:break;default:D.failBadSyntaxKind(Mt,E&&E.fileName);break}}function dn(oe){return ht(t.createEmptyStatement(),oe)}function rr(oe,ut,Mt){const Pt=jm(ut),un=ib(ut),Vn=Pn(ut,ut,void 0,Mt),Rr=lt(ut.name,de,yl);D.assert(Rr);let ni;if(!Ni(Rr)&&yO(e.getCompilerOptions())){const ja=As(Rr)?Rr.expression:He(Rr)?t.createStringLiteral(ta(Rr.escapedText)):Rr;ni=t.createObjectDefinePropertyCall(oe,ja,t.createPropertyDescriptor({value:Vn,enumerable:!1,writable:!0,configurable:!0}))}else{const ja=PT(t,oe,Rr,ut.name);ni=t.createAssignment(ja,Vn)}or(Vn,3072),_s(Vn,un);const Mi=ht(t.createExpressionStatement(ni),ut);return Wr(Mi,ut),Wc(Mi,Pt),or(Mi,96),Mi}function cr(oe,ut,Mt){const Pt=t.createExpressionStatement(Pi(oe,ut,Mt,!1));return or(Pt,3072),_s(Pt,ib(ut.firstAccessor)),Pt}function Pi(oe,{firstAccessor:ut,getAccessor:Mt,setAccessor:Pt},un,Vn){const Rr=Uo(ht(t.cloneNode(oe),oe),oe.parent);or(Rr,3136),_s(Rr,ut.name);const ni=lt(ut.name,de,yl);if(D.assert(ni),Ni(ni))return D.failBadSyntaxKind(ni,"Encountered unhandled private identifier while transforming ES2015.");const Mi=EK(t,ni);or(Mi,3104),_s(Mi,ut.name);const ja=[];if(Mt){const Ts=Pn(Mt,void 0,void 0,un);_s(Ts,ib(Mt)),or(Ts,1024);const Xs=t.createPropertyAssignment("get",Ts);Wc(Xs,jm(Mt)),ja.push(Xs)}if(Pt){const Ts=Pn(Pt,void 0,void 0,un);_s(Ts,ib(Pt)),or(Ts,1024);const Xs=t.createPropertyAssignment("set",Ts);Wc(Xs,jm(Pt)),ja.push(Xs)}ja.push(t.createPropertyAssignment("enumerable",Mt||Pt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ho=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Rr,Mi,t.createObjectLiteralExpression(ja,!0)]);return Vn&&ju(Ho),Ho}function gi(oe){oe.transformFlags&16384&&!(L&16384)&&(L|=65536);const ut=k;k=void 0;const Mt=H(15232,66),Pt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Kl(oe.parameters,de,e),void 0,Ar(oe));return ht(Pt,oe),Wr(Pt,oe),or(Pt,16),te(Mt,0,0),k=ut,Pt}function Rn(oe){const ut=vo(oe)&524288?H(32662,69):H(32670,65),Mt=k;k=void 0;const Pt=Kl(oe.parameters,de,e),un=Ar(oe),Vn=L&32768?t.getLocalName(oe):oe.name;return te(ut,98304,0),k=Mt,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,Vn,void 0,Pt,void 0,un)}function an(oe){const ut=k;k=void 0;const Mt=H(32670,65),Pt=Kl(oe.parameters,de,e),un=Ar(oe),Vn=L&32768?t.getLocalName(oe):oe.name;return te(Mt,98304,0),k=ut,t.updateFunctionDeclaration(oe,Jn(oe.modifiers,de,uo),oe.asteriskToken,Vn,void 0,Pt,void 0,un)}function Pn(oe,ut,Mt,Pt){const un=k;k=void 0;const Vn=Pt&&di(Pt)&&!Ja(oe)?H(32670,73):H(32670,65),Rr=Kl(oe.parameters,de,e),ni=Ar(oe);return L&32768&&!Mt&&(oe.kind===259||oe.kind===215)&&(Mt=t.getGeneratedNameForNode(oe)),te(Vn,98304,0),k=un,Wr(ht(t.createFunctionExpression(void 0,oe.asteriskToken,Mt,void 0,Rr,void 0,ni),ut),oe)}function Ar(oe){let ut=!1,Mt=!1,Pt,un;const Vn=[],Rr=[],ni=oe.body;let Mi;if(o(),lo(ni)&&(Mi=t.copyStandardPrologue(ni.statements,Vn,0,!1),Mi=t.copyCustomPrologue(ni.statements,Rr,Mi,de,T3),Mi=t.copyCustomPrologue(ni.statements,Rr,Mi,de,S3)),ut=In(Rr,oe)||ut,ut=$i(Rr,oe,!1)||ut,lo(ni))Mi=t.copyCustomPrologue(ni.statements,Rr,Mi,de),Pt=ni.statements,Ti(Rr,Jn(ni.statements,de,wa,Mi)),!ut&&ni.multiLine&&(ut=!0);else{D.assert(oe.kind===216),Pt=e7(ni,-1);const Ho=oe.equalsGreaterThanToken;!Zs(Ho)&&!Zs(ni)&&(fO(Ho,ni,E)?Mt=!0:ut=!0);const Ts=lt(ni,de,vt),Xs=t.createReturnStatement(Ts);ht(Xs,ni),gpe(Xs,ni),or(Xs,2880),Rr.push(Xs),un=ni}if(t.mergeLexicalEnvironment(Vn,s()),vn(Vn,oe,!1),Qi(Vn,oe),kt(Vn)&&(ut=!0),Rr.unshift(...Vn),lo(ni)&&zp(Rr,ni.statements))return ni;const ja=t.createBlock(ht(t.createNodeArray(Rr),Pt),ut);return ht(ja,oe.body),!ut&&Mt&&or(ja,1),un&&hpe(ja,19,un),Wr(ja,oe.body),ja}function Hr(oe,ut){if(ut)return Bn(oe,de,e);const Mt=L&256?H(7104,512):H(6976,128),Pt=Bn(oe,de,e);return te(Mt,0,0),Pt}function we(oe){return Bn(oe,re,e)}function yt(oe,ut){return Bn(oe,ut?re:de,e)}function Nt(oe,ut){return by(oe)?VT(oe,de,e,0,!ut):oe.operatorToken.kind===27?t.updateBinaryExpression(oe,D.checkDefined(lt(oe.left,re,vt)),oe.operatorToken,D.checkDefined(lt(oe.right,ut?re:de,vt))):Bn(oe,de,e)}function Ce(oe,ut){if(ut)return Bn(oe,re,e);let Mt;for(let un=0;un<oe.elements.length;un++){const Vn=oe.elements[un],Rr=lt(Vn,un<oe.elements.length-1?re:de,vt);(Mt||Rr!==Vn)&&(Mt||(Mt=oe.elements.slice(0,un)),D.assert(Rr),Mt.push(Rr))}const Pt=Mt?ht(t.createNodeArray(Mt),oe.elements):oe.elements;return t.updateCommaListExpression(oe,Pt)}function pt(oe){return oe.declarationList.declarations.length===1&&!!oe.declarationList.declarations[0].initializer&&!!(B_(oe.declarationList.declarations[0].initializer)&1)}function pe(oe){const ut=H(0,Yr(oe,1)?32:0);let Mt;if(k&&!(oe.declarationList.flags&3)&&!pt(oe)){let Pt;for(const un of oe.declarationList.declarations)if(Ci(k,un),un.initializer){let Vn;Xa(un.name)?Vn=VT(un,de,e,0):(Vn=t.createBinaryExpression(un.name,63,D.checkDefined(lt(un.initializer,de,vt))),ht(Vn,un)),Pt=Fn(Pt,Vn)}Pt?Mt=ht(t.createExpressionStatement(t.inlineExpressions(Pt)),oe):Mt=void 0}else Mt=Bn(oe,de,e);return te(ut,0,0),Mt}function ie(oe){if(oe.flags&3||oe.transformFlags&524288){oe.flags&3&&Es();const ut=Jn(oe.declarations,oe.flags&1?We:Ze,Ki),Mt=t.createVariableDeclarationList(ut);return Wr(Mt,oe),ht(Mt,oe),Wc(Mt,oe),oe.transformFlags&524288&&(Xa(oe.declarations[0].name)||Xa(zo(oe.declarations).name))&&_s(Mt,he(ut)),Mt}return Bn(oe,de,e)}function he(oe){let ut=-1,Mt=-1;for(const Pt of oe)ut=ut===-1?Pt.pos:Pt.pos===-1?ut:Math.min(ut,Pt.pos),Mt=Math.max(Mt,Pt.end);return g_(ut,Mt)}function j(oe){const ut=d.getNodeCheckFlags(oe),Mt=ut&16384,Pt=ut&32768;return!((L&64)!==0||Mt&&Pt&&(L&512)!==0)&&(L&4096)===0&&(!d.isDeclarationWithCollidingName(oe)||Pt&&!Mt&&(L&6144)===0)}function We(oe){const ut=oe.name;return Xa(ut)?Ze(oe):!oe.initializer&&j(oe)?t.updateVariableDeclaration(oe,oe.name,void 0,void 0,t.createVoidZero()):Bn(oe,de,e)}function Ze(oe){const ut=H(32,0);let Mt;return Xa(oe.name)?Mt=W1(oe,de,e,0,void 0,(ut&32)!==0):Mt=Bn(oe,de,e),te(ut,0,0),Mt}function Xe(oe){k.labels.set(Mr(oe.label),!0)}function Ut(oe){k.labels.set(Mr(oe.label),!1)}function cn(oe){k&&!k.labels&&(k.labels=new Map);const ut=qz(oe,k&&Xe);return Iv(ut,!1)?Sn(ut,oe):t.restoreEnclosingLabel(D.checkDefined(lt(ut,de,wa,t.liftToBlock)),oe,k&&Ut)}function Sn(oe,ut){switch(oe.kind){case 243:case 244:return ue(oe,ut);case 245:return mt(oe,ut);case 246:return it(oe,ut);case 247:return K(oe,ut)}}function Er(oe,ut,Mt,Pt,un){const Vn=H(oe,ut),Rr=ji(Mt,Pt,Vn,un);return te(Vn,0,0),Rr}function ue(oe,ut){return Er(0,1280,oe,ut)}function mt(oe,ut){return Er(5056,3328,oe,ut)}function zt(oe){return t.updateForStatement(oe,lt(oe.initializer,re,Xp),lt(oe.condition,de,vt),lt(oe.incrementor,re,vt),D.checkDefined(lt(oe.statement,de,wa,t.liftToBlock)))}function it(oe,ut){return Er(3008,5376,oe,ut)}function K(oe,ut){return Er(3008,5376,oe,ut,f.downlevelIteration?q:Re)}function Pe(oe,ut,Mt){const Pt=[],un=oe.initializer;if(Vu(un)){oe.initializer.flags&3&&Es();const Vn=Yc(un.declarations);if(Vn&&Xa(Vn.name)){const Rr=W1(Vn,de,e,0,ut),ni=ht(t.createVariableDeclarationList(Rr),oe.initializer);Wr(ni,oe.initializer),_s(ni,g_(Rr[0].pos,zo(Rr).end)),Pt.push(t.createVariableStatement(void 0,ni))}else Pt.push(ht(t.createVariableStatement(void 0,Wr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Vn?Vn.name:t.createTempVariable(void 0),void 0,void 0,ut)]),nb(un,-1)),un)),e7(un,-1)))}else{const Vn=t.createAssignment(un,ut);by(Vn)?Pt.push(t.createExpressionStatement(Nt(Vn,!0))):(mC(Vn,un.end),Pt.push(ht(t.createExpressionStatement(D.checkDefined(lt(Vn,de,vt))),e7(un,-1))))}if(Mt)return Z(Ti(Pt,Mt));{const Vn=lt(oe.statement,de,wa,t.liftToBlock);return D.assert(Vn),lo(Vn)?t.updateBlock(Vn,ht(t.createNodeArray(ba(Pt,Vn.statements)),Vn.statements)):(Pt.push(Vn),Z(Pt))}}function Z(oe){return or(t.createBlock(t.createNodeArray(oe),!0),864)}function Re(oe,ut,Mt){const Pt=lt(oe.expression,de,vt);D.assert(Pt);const un=t.createLoopVariable(),Vn=He(Pt)?t.getGeneratedNameForNode(Pt):t.createTempVariable(void 0);or(Pt,96|vo(Pt));const Rr=ht(t.createForStatement(or(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(un,void 0,void 0,t.createNumericLiteral(0)),nb(oe.expression,-1)),ht(t.createVariableDeclaration(Vn,void 0,void 0,Pt),oe.expression)]),oe.expression),4194304),ht(t.createLessThan(un,t.createPropertyAccessExpression(Vn,"length")),oe.expression),ht(t.createPostfixIncrement(un),oe.expression),Pe(oe,t.createElementAccessExpression(Vn,un),Mt)),oe);return or(Rr,512),ht(Rr,oe),t.restoreEnclosingLabel(Rr,ut,k&&Ut)}function q(oe,ut,Mt,Pt){const un=lt(oe.expression,de,vt);D.assert(un);const Vn=He(un)?t.getGeneratedNameForNode(un):t.createTempVariable(void 0),Rr=He(un)?t.getGeneratedNameForNode(Vn):t.createTempVariable(void 0),ni=t.createUniqueName("e"),Mi=t.getGeneratedNameForNode(ni),ja=t.createTempVariable(void 0),Ho=ht(r().createValuesHelper(un),oe.expression),Ts=t.createCallExpression(t.createPropertyAccessExpression(Vn,"next"),void 0,[]);c(ni),c(ja);const Xs=Pt&1024?t.inlineExpressions([t.createAssignment(ni,t.createVoidZero()),Ho]):Ho,pd=or(ht(t.createForStatement(or(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(Vn,void 0,void 0,Xs),oe.expression),t.createVariableDeclaration(Rr,void 0,void 0,Ts)]),oe.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done")),t.createAssignment(Rr,Ts),Pe(oe,t.createPropertyAccessExpression(Rr,"value"),Mt)),oe),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(pd,ut,k&&Ut)]),t.createCatchClause(t.createVariableDeclaration(Mi),or(t.createBlock([t.createExpressionStatement(t.createAssignment(ni,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Mi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([or(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Rr,t.createLogicalNot(t.createPropertyAccessExpression(Rr,"done"))),t.createAssignment(ja,t.createPropertyAccessExpression(Vn,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ja,Vn,[]))),1)]),void 0,or(t.createBlock([or(t.createIfStatement(ni,t.createThrowStatement(t.createPropertyAccessExpression(ni,"error"))),1)]),1))]))}function Rt(oe){const ut=oe.properties;let Mt=-1,Pt=!1;for(let ni=0;ni<ut.length;ni++){const Mi=ut[ni];if(Mi.transformFlags&1048576&&L&4||(Pt=D.checkDefined(Mi.name).kind===164)){Mt=ni;break}}if(Mt<0)return Bn(oe,de,e);const un=t.createTempVariable(c),Vn=[],Rr=t.createAssignment(un,or(t.createObjectLiteralExpression(Jn(ut,de,hy,0,Mt),oe.multiLine),Pt?131072:0));return oe.multiLine&&ju(Rr),Vn.push(Rr),Xo(Vn,oe,un,Mt),Vn.push(oe.multiLine?ju(Uo(ht(t.cloneNode(un),un),un.parent)):un),t.inlineExpressions(Vn)}function gt(oe){return(d.getNodeCheckFlags(oe)&8192)!==0}function ft(oe){return DT(oe)&&!!oe.initializer&>(oe.initializer)}function _n(oe){return DT(oe)&&!!oe.condition&>(oe.condition)}function $n(oe){return DT(oe)&&!!oe.incrementor&>(oe.incrementor)}function oi(oe){return Ai(oe)||ft(oe)}function Ai(oe){return(d.getNodeCheckFlags(oe)&4096)!==0}function Ci(oe,ut){oe.hoistedLocalVariables||(oe.hoistedLocalVariables=[]),Mt(ut.name);function Mt(Pt){if(Pt.kind===79)oe.hoistedLocalVariables.push(Pt);else for(const un of Pt.elements)Rc(un)||Mt(un.name)}}function ji(oe,ut,Mt,Pt){if(!oi(oe)){let Ho;k&&(Ho=k.allowedNonLabeledJumps,k.allowedNonLabeledJumps=6);const Ts=Pt?Pt(oe,ut,void 0,Mt):t.restoreEnclosingLabel(DT(oe)?zt(oe):Bn(oe,de,e),ut,k&&Ut);return k&&(k.allowedNonLabeledJumps=Ho),Ts}const un=ss(oe),Vn=[],Rr=k;k=un;const ni=ft(oe)?wn(oe,un):void 0,Mi=Ai(oe)?fa(oe,un,Rr):void 0;k=Rr,ni&&Vn.push(ni.functionDeclaration),Mi&&Vn.push(Mi.functionDeclaration),_i(Vn,un,Rr),ni&&Vn.push(Ul(ni.functionName,ni.containsYield));let ja;if(Mi)if(Pt)ja=Pt(oe,ut,Mi.part,Mt);else{const Ho=mo(oe,ni,t.createBlock(Mi.part,!0));ja=t.restoreEnclosingLabel(Ho,ut,k&&Ut)}else{const Ho=mo(oe,ni,D.checkDefined(lt(oe.statement,de,wa,t.liftToBlock)));ja=t.restoreEnclosingLabel(Ho,ut,k&&Ut)}return Vn.push(ja),Vn}function mo(oe,ut,Mt){switch(oe.kind){case 245:return To(oe,ut,Mt);case 246:return ca(oe,Mt);case 247:return io(oe,Mt);case 243:return Hi(oe,Mt);case 244:return Xr(oe,Mt);default:return D.failBadSyntaxKind(oe,"IterationStatement expected")}}function To(oe,ut,Mt){const Pt=oe.condition&>(oe.condition),un=Pt||oe.incrementor&>(oe.incrementor);return t.updateForStatement(oe,lt(ut?ut.part:oe.initializer,re,Xp),lt(Pt?void 0:oe.condition,de,vt),lt(un?void 0:oe.incrementor,re,vt),Mt)}function io(oe,ut){return t.updateForOfStatement(oe,void 0,D.checkDefined(lt(oe.initializer,de,Xp)),D.checkDefined(lt(oe.expression,de,vt)),ut)}function ca(oe,ut){return t.updateForInStatement(oe,D.checkDefined(lt(oe.initializer,de,Xp)),D.checkDefined(lt(oe.expression,de,vt)),ut)}function Hi(oe,ut){return t.updateDoStatement(oe,ut,D.checkDefined(lt(oe.expression,de,vt)))}function Xr(oe,ut){return t.updateWhileStatement(oe,D.checkDefined(lt(oe.expression,de,vt)),ut)}function ss(oe){let ut;switch(oe.kind){case 245:case 246:case 247:const Vn=oe.initializer;Vn&&Vn.kind===258&&(ut=Vn);break}const Mt=[],Pt=[];if(ut&&gp(ut)&3){const Vn=ft(oe)||_n(oe)||$n(oe);for(const Rr of ut.declarations)La(oe,Rr,Mt,Pt,Vn)}const un={loopParameters:Mt,loopOutParameters:Pt};return k&&(k.argumentsName&&(un.argumentsName=k.argumentsName),k.thisName&&(un.thisName=k.thisName),k.hoistedLocalVariables&&(un.hoistedLocalVariables=k.hoistedLocalVariables)),un}function _i(oe,ut,Mt){let Pt;if(ut.argumentsName&&(Mt?Mt.argumentsName=ut.argumentsName:(Pt||(Pt=[])).push(t.createVariableDeclaration(ut.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),ut.thisName&&(Mt?Mt.thisName=ut.thisName:(Pt||(Pt=[])).push(t.createVariableDeclaration(ut.thisName,void 0,void 0,t.createIdentifier("this")))),ut.hoistedLocalVariables)if(Mt)Mt.hoistedLocalVariables=ut.hoistedLocalVariables;else{Pt||(Pt=[]);for(const un of ut.hoistedLocalVariables)Pt.push(t.createVariableDeclaration(un))}if(ut.loopOutParameters.length){Pt||(Pt=[]);for(const un of ut.loopOutParameters)Pt.push(t.createVariableDeclaration(un.outParamName))}ut.conditionVariable&&(Pt||(Pt=[]),Pt.push(t.createVariableDeclaration(ut.conditionVariable,void 0,void 0,t.createFalse()))),Pt&&oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Pt)))}function ua(oe){return t.createVariableDeclaration(oe.originalName,void 0,void 0,oe.outParamName)}function wn(oe,ut){const Mt=t.createUniqueName("_loop_init"),Pt=(oe.initializer.transformFlags&1048576)!==0;let un=0;ut.containsLexicalThis&&(un|=16),Pt&&L&4&&(un|=524288);const Vn=[];Vn.push(t.createVariableStatement(void 0,oe.initializer)),rl(ut.loopOutParameters,2,1,Vn);const Rr=t.createVariableStatement(void 0,or(t.createVariableDeclarationList([t.createVariableDeclaration(Mt,void 0,void 0,or(t.createFunctionExpression(void 0,Pt?t.createToken(41):void 0,void 0,void 0,void 0,void 0,D.checkDefined(lt(t.createBlock(Vn,!0),de,lo))),un))]),4194304)),ni=t.createVariableDeclarationList(Vt(ut.loopOutParameters,ua));return{functionName:Mt,containsYield:Pt,functionDeclaration:Rr,part:ni}}function fa(oe,ut,Mt){const Pt=t.createUniqueName("_loop");i();const un=lt(oe.statement,de,wa,t.liftToBlock),Vn=s(),Rr=[];(_n(oe)||$n(oe))&&(ut.conditionVariable=t.createUniqueName("inc"),oe.incrementor?Rr.push(t.createIfStatement(ut.conditionVariable,t.createExpressionStatement(D.checkDefined(lt(oe.incrementor,de,vt))),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))):Rr.push(t.createIfStatement(t.createLogicalNot(ut.conditionVariable),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))),_n(oe)&&Rr.push(t.createIfStatement(t.createPrefixUnaryExpression(53,D.checkDefined(lt(oe.condition,de,vt))),D.checkDefined(lt(t.createBreakStatement(),de,wa))))),D.assert(un),lo(un)?Ti(Rr,un.statements):Rr.push(un),rl(ut.loopOutParameters,1,1,Rr),Pm(Rr,Vn);const ni=t.createBlock(Rr,!0);lo(un)&&Wr(ni,un);const Mi=(oe.statement.transformFlags&1048576)!==0;let ja=1048576;ut.containsLexicalThis&&(ja|=16),Mi&&L&4&&(ja|=524288);const Ho=t.createVariableStatement(void 0,or(t.createVariableDeclarationList([t.createVariableDeclaration(Pt,void 0,void 0,or(t.createFunctionExpression(void 0,Mi?t.createToken(41):void 0,void 0,void 0,ut.loopParameters,void 0,ni),ja))]),4194304)),Ts=Xl(Pt,ut,Mt,Mi);return{functionName:Pt,containsYield:Mi,functionDeclaration:Ho,part:Ts}}function ec(oe,ut){const Mt=ut===0?oe.outParamName:oe.originalName,Pt=ut===0?oe.originalName:oe.outParamName;return t.createBinaryExpression(Pt,63,Mt)}function rl(oe,ut,Mt,Pt){for(const un of oe)un.flags&ut&&Pt.push(t.createExpressionStatement(ec(un,Mt)))}function Ul(oe,ut){const Mt=t.createCallExpression(oe,void 0,[]),Pt=ut?t.createYieldExpression(t.createToken(41),or(Mt,16777216)):Mt;return t.createExpressionStatement(Pt)}function Xl(oe,ut,Mt,Pt){const un=[],Vn=!(ut.nonLocalJumps&-5)&&!ut.labeledNonLocalBreaks&&!ut.labeledNonLocalContinues,Rr=t.createCallExpression(oe,void 0,Vt(ut.loopParameters,Mi=>Mi.name)),ni=Pt?t.createYieldExpression(t.createToken(41),or(Rr,16777216)):Rr;if(Vn)un.push(t.createExpressionStatement(ni)),rl(ut.loopOutParameters,1,0,un);else{const Mi=t.createUniqueName("state"),ja=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Mi,void 0,void 0,ni)]));if(un.push(ja),rl(ut.loopOutParameters,1,0,un),ut.nonLocalJumps&8){let Ho;Mt?(Mt.nonLocalJumps|=8,Ho=t.createReturnStatement(Mi)):Ho=t.createReturnStatement(t.createPropertyAccessExpression(Mi,"value")),un.push(t.createIfStatement(t.createTypeCheck(Mi,"object"),Ho))}if(ut.nonLocalJumps&2&&un.push(t.createIfStatement(t.createStrictEquality(Mi,t.createStringLiteral("break")),t.createBreakStatement())),ut.labeledNonLocalBreaks||ut.labeledNonLocalContinues){const Ho=[];Co(ut.labeledNonLocalBreaks,!0,Mi,Mt,Ho),Co(ut.labeledNonLocalContinues,!1,Mi,Mt,Ho),un.push(t.createSwitchStatement(Mi,t.createCaseBlock(Ho)))}}return un}function Vl(oe,ut,Mt,Pt){ut?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(Mt,Pt)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(Mt,Pt))}function Co(oe,ut,Mt,Pt,un){oe&&oe.forEach((Vn,Rr)=>{const ni=[];if(!Pt||Pt.labels&&Pt.labels.get(Rr)){const Mi=t.createIdentifier(Rr);ni.push(ut?t.createBreakStatement(Mi):t.createContinueStatement(Mi))}else Vl(Pt,ut,Rr,Vn),ni.push(t.createReturnStatement(Mt));un.push(t.createCaseClause(t.createStringLiteral(Vn),ni))})}function La(oe,ut,Mt,Pt,un){const Vn=ut.name;if(Xa(Vn))for(const Rr of Vn.elements)Rc(Rr)||La(oe,Rr,Mt,Pt,un);else{Mt.push(t.createParameterDeclaration(void 0,void 0,Vn));const Rr=d.getNodeCheckFlags(ut);if(Rr&262144||un){const ni=t.createUniqueName("out_"+Mr(Vn));let Mi=0;Rr&262144&&(Mi|=1),DT(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,ut)&&(Mi|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,ut)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,ut))&&(Mi|=1)),Pt.push({flags:Mi,originalName:Vn,outParamName:ni})}}}function Xo(oe,ut,Mt,Pt){const un=ut.properties,Vn=un.length;for(let Rr=Pt;Rr<Vn;Rr++){const ni=un[Rr];switch(ni.kind){case 174:case 175:const Mi=ST(ut.properties,ni);ni===Mi.firstAccessor&&oe.push(Pi(Mt,Mi,ut,!!ut.multiLine));break;case 171:oe.push(zd(ni,Mt,ut,ut.multiLine));break;case 299:oe.push(jl(ni,Mt,ut.multiLine));break;case 300:oe.push(tu(ni,Mt,ut.multiLine));break;default:D.failBadSyntaxKind(ut);break}}}function jl(oe,ut,Mt){const Pt=t.createAssignment(PT(t,ut,D.checkDefined(lt(oe.name,de,yl))),D.checkDefined(lt(oe.initializer,de,vt)));return ht(Pt,oe),Mt&&ju(Pt),Pt}function tu(oe,ut,Mt){const Pt=t.createAssignment(PT(t,ut,D.checkDefined(lt(oe.name,de,yl))),t.cloneNode(oe.name));return ht(Pt,oe),Mt&&ju(Pt),Pt}function zd(oe,ut,Mt,Pt){const un=t.createAssignment(PT(t,ut,D.checkDefined(lt(oe.name,de,yl))),Pn(oe,oe,void 0,Mt));return ht(un,oe),Pt&&ju(un),un}function oc(oe){const ut=H(7104,0);let Mt;if(D.assert(!!oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Xa(oe.variableDeclaration.name)){const Pt=t.createTempVariable(void 0),un=t.createVariableDeclaration(Pt);ht(un,oe.variableDeclaration);const Vn=W1(oe.variableDeclaration,de,e,0,Pt),Rr=t.createVariableDeclarationList(Vn);ht(Rr,oe.variableDeclaration);const ni=t.createVariableStatement(void 0,Rr);Mt=t.updateCatchClause(oe,un,Kc(oe.block,ni))}else Mt=Bn(oe,de,e);return te(ut,0,0),Mt}function Kc(oe,ut){const Mt=Jn(oe.statements,de,wa);return t.updateBlock(oe,[ut,...Mt])}function Ds(oe){D.assert(!As(oe.name));const ut=Pn(oe,nb(oe,-1),void 0,void 0);return or(ut,1024|vo(ut)),ht(t.createPropertyAssignment(oe.name,ut),oe)}function hl(oe){D.assert(!As(oe.name));const ut=k;k=void 0;const Mt=H(32670,65);let Pt;const un=Kl(oe.parameters,de,e),Vn=Ar(oe);return oe.kind===174?Pt=t.updateGetAccessorDeclaration(oe,oe.modifiers,oe.name,un,oe.type,Vn):Pt=t.updateSetAccessorDeclaration(oe,oe.modifiers,oe.name,un,Vn),te(Mt,98304,0),k=ut,Pt}function el(oe){return ht(t.createPropertyAssignment(oe.name,Ge(t.cloneNode(oe.name))),oe)}function Ks(oe){return Bn(oe,de,e)}function rn(oe){return Bn(oe,de,e)}function Hl(oe){return kt(oe.elements,Ih)?Q(oe.elements,!1,!!oe.multiLine,!!oe.elements.hasTrailingComma):Bn(oe,de,e)}function xu(oe){if(B_(oe)&1)return zu(oe);const ut=bu(oe.expression);return ut.kind===106||ud(ut)||kt(oe.arguments,Ih)?It(oe,!0):t.updateCallExpression(oe,D.checkDefined(lt(oe.expression,ae,vt)),void 0,Jn(oe.arguments,de,vt))}function zu(oe){const ut=ao(ao(bu(oe.expression),Js).body,lo),Mt=_f=>uc(_f)&&!!us(_f.declarationList.declarations).initializer,Pt=k;k=void 0;const un=Jn(ut.statements,ye,wa);k=Pt;const Vn=lr(un,Mt),Rr=lr(un,_f=>!Mt(_f)),Mi=ao(us(Vn),uc).declarationList.declarations[0],ja=bu(Mi.initializer);let Ho=ai(ja,nd);!Ho&&br(ja)&&ja.operatorToken.kind===27&&(Ho=ai(ja.left,nd));const Ts=ao(Ho?bu(Ho.right):ja,no),Xs=ao(bu(Ts.expression),Bs),pd=Xs.body.statements;let ff=0,tc=-1;const Jd=[];if(Ho){const _f=ai(pd[ff],ou);_f&&(Jd.push(_f),ff++),Jd.push(pd[ff]),ff++,Jd.push(t.createExpressionStatement(t.createAssignment(Ho.left,ao(Mi.name,He))))}for(;!Ep(uy(pd,tc));)tc--;Ti(Jd,pd,ff,tc),tc<-1&&Ti(Jd,pd,tc+1);const Au=ai(uy(pd,tc),Ep);for(const _f of Rr)Ep(_f)&&(Au!=null&&Au.expression)&&!He(Au.expression)?Jd.push(Au):Jd.push(_f);return Ti(Jd,Vn,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions(Mi.initializer,t.restoreOuterExpressions(Ho&&Ho.right,t.updateCallExpression(Ts,t.restoreOuterExpressions(Ts.expression,t.updateFunctionExpression(Xs,void 0,void 0,void 0,void 0,Xs.parameters,void 0,t.updateBlock(Xs.body,Jd))),void 0,Ts.arguments))))}function fe(oe){return It(oe,!1)}function It(oe,ut){if(oe.transformFlags&32768||oe.expression.kind===106||ud(bu(oe.expression))){const{target:Mt,thisArg:Pt}=t.createCallBinding(oe.expression,c);oe.expression.kind===106&&or(Pt,8);let un;if(oe.transformFlags&32768?un=t.createFunctionApplyCall(D.checkDefined(lt(Mt,ae,vt)),oe.expression.kind===106?Pt:D.checkDefined(lt(Pt,de,vt)),Q(oe.arguments,!0,!1,!1)):un=ht(t.createFunctionCallCall(D.checkDefined(lt(Mt,ae,vt)),oe.expression.kind===106?Pt:D.checkDefined(lt(Pt,de,vt)),Jn(oe.arguments,de,vt)),oe),oe.expression.kind===106){const Vn=t.createLogicalOr(un,sn());un=ut?t.createAssignment(t.createUniqueName("_this",48),Vn):Vn}return Wr(un,oe)}return Bn(oe,de,e)}function Ht(oe){if(kt(oe.arguments,Ih)){const{target:ut,thisArg:Mt}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(D.checkDefined(lt(ut,de,vt)),Mt,Q(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return Bn(oe,de,e)}function Q(oe,ut,Mt,Pt){const un=oe.length,Vn=is(iM(oe,ot,(ja,Ho,Ts,Xs)=>Ho(ja,Mt,Pt&&Xs===un)));if(Vn.length===1){const ja=Vn[0];if(ut&&!f.downlevelIteration||lJ(ja.expression)||Vk(ja.expression,"___spreadArray"))return ja.expression}const Rr=r(),ni=Vn[0].kind!==0;let Mi=ni?t.createArrayLiteralExpression():Vn[0].expression;for(let ja=ni?0:1;ja<Vn.length;ja++){const Ho=Vn[ja];Mi=Rr.createSpreadArrayHelper(Mi,Ho.expression,Ho.kind===1&&!ut)}return Mi}function ot(oe){return Ih(oe)?xt:Dr}function xt(oe){return Vt(oe,mn)}function mn(oe){D.assertNode(oe,Ih);let ut=lt(oe.expression,de,vt);D.assert(ut);const Mt=Vk(ut,"___read");let Pt=Mt||lJ(ut)?2:1;return f.downlevelIteration&&Pt===1&&!Gu(ut)&&!Mt&&(ut=r().createReadHelper(ut,void 0),Pt=2),gye(Pt,ut)}function Dr(oe,ut,Mt){const Pt=t.createArrayLiteralExpression(Jn(t.createNodeArray(oe,Mt),de,vt),ut);return gye(0,Pt)}function Pr(oe){return lt(oe.expression,de,vt)}function Ta(oe){return ht(t.createStringLiteral(oe.text),oe)}function ls(oe){return oe.hasExtendedUnicodeEscape?ht(t.createStringLiteral(oe.text),oe):oe}function ho(oe){return oe.numericLiteralFlags&384?ht(t.createNumericLiteral(oe.text),oe):oe}function jo(oe){return tY(e,oe,de,E,O,1)}function Ya(oe){let ut=t.createStringLiteral(oe.head.text);for(const Mt of oe.templateSpans){const Pt=[D.checkDefined(lt(Mt.expression,de,vt))];Mt.literal.text.length>0&&Pt.push(t.createStringLiteral(Mt.literal.text)),ut=t.createCallExpression(t.createPropertyAccessExpression(ut,"concat"),void 0,Pt)}return ht(ut,oe)}function dl(oe){return L&8&&!oe?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function dc(oe){return oe.keywordToken===103&&oe.name.escapedText==="target"?(L|=32768,t.createUniqueName("_newTarget",48)):oe}function _d(oe,ut,Mt){if(G&1&&Ka(ut)){const Pt=H(32670,vo(ut)&16?81:65);h(oe,ut,Mt),te(Pt,0,0);return}h(oe,ut,Mt)}function Es(){G&2||(G|=2,e.enableSubstitution(79))}function ds(){G&1||(G|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function fl(oe,ut){return ut=y(oe,ut),oe===1?Nf(ut):He(ut)?qd(ut):ut}function qd(oe){if(G&2&&!TK(oe)){const ut=Ea(oe,He);if(ut&&Wl(ut))return ht(t.getGeneratedNameForNode(ut),oe)}return oe}function Wl(oe){switch(oe.parent.kind){case 205:case 260:case 263:case 257:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Nf(oe){switch(oe.kind){case 79:return xe(oe);case 108:return Nn(oe)}return oe}function xe(oe){if(G&2&&!TK(oe)){const ut=d.getReferencedDeclarationWithCollidingName(oe);if(ut&&!(di(ut)&&Dt(ut,oe)))return ht(t.getGeneratedNameForNode(ka(ut)),oe)}return oe}function Dt(oe,ut){let Mt=Ea(ut);if(!Mt||Mt===oe||Mt.end<=oe.pos||Mt.pos>=oe.end)return!1;const Pt=Mm(oe);for(;Mt;){if(Mt===Pt||Mt===oe)return!1;if(Vc(Mt)&&Mt.parent===oe)return!0;Mt=Mt.parent}return!1}function Nn(oe){return G&1&&L&16?ht(t.createUniqueName("_this",48),oe):oe}function Xi(oe,ut){return Ja(ut)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function Lo(oe,ut){if(!oe||!ut||kt(oe.parameters))return!1;const Mt=Yc(oe.body.statements);if(!Mt||!Zs(Mt)||Mt.kind!==241)return!1;const Pt=Mt.expression;if(!Zs(Pt)||Pt.kind!==210)return!1;const un=Pt.expression;if(!Zs(un)||un.kind!==106)return!1;const Vn=Am(Pt.arguments);if(!Vn||!Zs(Vn)||Vn.kind!==227)return!1;const Rr=Vn.expression;return He(Rr)&&Rr.escapedText==="arguments"}}var U5e=C({"src/compiler/transformers/es2015.ts"(){Oa()}});function vye(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=f,e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=d,e.enableSubstitution(208),e.enableSubstitution(299),Y_(e,c);function c(A){return A}function f(A,L,I){switch(L.kind){case 283:case 284:case 282:const O=L.tagName;o[wl(O)]=!0;break}i(A,L,I)}function d(A,L){return L.id&&o&&o[L.id]?s(A,L):(L=s(A,L),Fr(L)?y(L):qc(L)?h(L):L)}function y(A){if(Ni(A.name))return A;const L=E(A.name);return L?ht(t.createElementAccessExpression(A.expression,L),A):A}function h(A){const L=He(A.name)&&E(A.name);return L?t.updatePropertyAssignment(A,L,A.initializer):A}function E(A){const L=q0(A);if(L!==void 0&&L>=81&&L<=116)return ht(t.createStringLiteralFromNode(A),A)}}var V5e=C({"src/compiler/transformers/es5.ts"(){Oa()}});function j5e(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 bye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=es(f),y=e.getEmitResolver(),h=e.onSubstituteNode;e.onSubstituteNode=K;let E,A,L,I,O,k,G,V,H,te,X=1,Y,P,de,re,ye=0,ae=0,W,ce,me,ve,Se,ee,Qe,je;return Y_(e,Ge);function Ge(xe){if(xe.isDeclarationFile||!(xe.transformFlags&2048))return xe;const Dt=Bn(xe,qe,e);return Ty(Dt,e.readEmitHelpers()),Dt}function qe(xe){const Dt=xe.transformFlags;return I?Oe(xe):L?Me(xe):Qs(xe)&&xe.asteriskToken?ze(xe):Dt&2048?Bn(xe,qe,e):xe}function Oe(xe){switch(xe.kind){case 243:return Ar(xe);case 244:return we(xe);case 252:return cn(xe);case 253:return Er(xe);default:return Me(xe)}}function Me(xe){switch(xe.kind){case 259:return Fe(xe);case 215:return st(xe);case 174:case 175:return Ct(xe);case 240:return jt(xe);case 245:return Nt(xe);case 246:return pt(xe);case 249:return j(xe);case 248:return ie(xe);case 250:return Ze(xe);default:return xe.transformFlags&1048576?Ye(xe):xe.transformFlags&4196352?Bn(xe,qe,e):xe}}function Ye(xe){switch(xe.kind){case 223:return tt(xe);case 357:return On(xe);case 224:return In(xe);case 226:return Zt(xe);case 206:return _r(xe);case 207:return $i(xe);case 209:return Qi(xe);case 210:return Or(xe);case 211:return At(xe);default:return Bn(xe,qe,e)}}function ze(xe){switch(xe.kind){case 259:return Fe(xe);case 215:return st(xe);default:return D.failBadSyntaxKind(xe)}}function Fe(xe){if(xe.asteriskToken)xe=Wr(ht(t.createFunctionDeclaration(xe.modifiers,void 0,xe.name,void 0,Kl(xe.parameters,qe,e),void 0,Et(xe.body)),xe),xe);else{const Dt=L,Nn=I;L=!1,I=!1,xe=Bn(xe,qe,e),L=Dt,I=Nn}if(L){s(xe);return}else return xe}function st(xe){if(xe.asteriskToken)xe=Wr(ht(t.createFunctionExpression(void 0,void 0,xe.name,void 0,Kl(xe.parameters,qe,e),void 0,Et(xe.body)),xe),xe);else{const Dt=L,Nn=I;L=!1,I=!1,xe=Bn(xe,qe,e),L=Dt,I=Nn}return xe}function Ct(xe){const Dt=L,Nn=I;return L=!1,I=!1,xe=Bn(xe,qe,e),L=Dt,I=Nn,xe}function Et(xe){const Dt=[],Nn=L,Xi=I,Lo=O,oe=k,ut=G,Mt=V,Pt=H,un=te,Vn=X,Rr=Y,ni=P,Mi=de,ja=re;L=!0,I=!1,O=void 0,k=void 0,G=void 0,V=void 0,H=void 0,te=void 0,X=1,Y=void 0,P=void 0,de=void 0,re=t.createTempVariable(void 0),i();const Ho=t.copyPrologue(xe.statements,Dt,!1,qe);vn(xe.statements,Ho);const Ts=Q();return Pm(Dt,o()),Dt.push(t.createReturnStatement(Ts)),L=Nn,I=Xi,O=Lo,k=oe,G=ut,V=Mt,H=Pt,te=un,X=Vn,Y=Rr,P=ni,de=Mi,re=ja,ht(t.createBlock(Dt,xe.multiLine),xe)}function jt(xe){if(xe.transformFlags&1048576){gi(xe.declarationList);return}else{if(vo(xe)&2097152)return xe;for(const Nn of xe.declarationList.declarations)c(Nn.name);const Dt=Ek(xe.declarationList);return Dt.length===0?void 0:_s(t.createExpressionStatement(t.inlineExpressions(Vt(Dt,Rn))),xe)}}function tt(xe){const Dt=fq(xe);switch(Dt){case 0:return sn(xe);case 1:return at(xe);default:return D.assertNever(Dt)}}function at(xe){const{left:Dt,right:Nn}=xe;if(zt(Nn)){let Xi;switch(Dt.kind){case 208:Xi=t.updatePropertyAccessExpression(Dt,Re(D.checkDefined(lt(Dt.expression,qe,Td))),Dt.name);break;case 209:Xi=t.updateElementAccessExpression(Dt,Re(D.checkDefined(lt(Dt.expression,qe,Td))),Re(D.checkDefined(lt(Dt.argumentExpression,qe,vt))));break;default:Xi=D.checkDefined(lt(Dt,qe,vt));break}const Lo=xe.operatorToken.kind;return j8(Lo)?ht(t.createAssignment(Xi,ht(t.createBinaryExpression(Re(Xi),gw(Lo),D.checkDefined(lt(Nn,qe,vt))),xe)),xe):t.updateBinaryExpression(xe,Xi,xe.operatorToken,D.checkDefined(lt(Nn,qe,vt)))}return Bn(xe,qe,e)}function sn(xe){return zt(xe.right)?Zfe(xe.operatorToken.kind)?jn(xe):xe.operatorToken.kind===27?Qt(xe):t.updateBinaryExpression(xe,Re(D.checkDefined(lt(xe.left,qe,vt))),xe.operatorToken,D.checkDefined(lt(xe.right,qe,vt))):Bn(xe,qe,e)}function Qt(xe){let Dt=[];return Nn(xe.left),Nn(xe.right),t.inlineExpressions(Dt);function Nn(Xi){br(Xi)&&Xi.operatorToken.kind===27?(Nn(Xi.left),Nn(Xi.right)):(zt(Xi)&&Dt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Dt))]),Dt=[]),Dt.push(D.checkDefined(lt(Xi,qe,vt))))}}function On(xe){let Dt=[];for(const Nn of xe.elements)br(Nn)&&Nn.operatorToken.kind===27?Dt.push(Qt(Nn)):(zt(Nn)&&Dt.length>0&&(Ht(1,[t.createExpressionStatement(t.inlineExpressions(Dt))]),Dt=[]),Dt.push(D.checkDefined(lt(Nn,qe,vt))));return t.inlineExpressions(Dt)}function jn(xe){const Dt=Rt(),Nn=q();return hl(Nn,D.checkDefined(lt(xe.left,qe,vt)),xe.left),xe.operatorToken.kind===55?rn(Dt,Nn,xe.left):Ks(Dt,Nn,xe.left),hl(Nn,D.checkDefined(lt(xe.right,qe,vt)),xe.right),gt(Dt),Nn}function In(xe){if(zt(xe.whenTrue)||zt(xe.whenFalse)){const Dt=Rt(),Nn=Rt(),Xi=q();return rn(Dt,D.checkDefined(lt(xe.condition,qe,vt)),xe.condition),hl(Xi,D.checkDefined(lt(xe.whenTrue,qe,vt)),xe.whenTrue),el(Nn),gt(Dt),hl(Xi,D.checkDefined(lt(xe.whenFalse,qe,vt)),xe.whenFalse),gt(Nn),Xi}return Bn(xe,qe,e)}function Zt(xe){const Dt=Rt(),Nn=lt(xe.expression,qe,vt);if(xe.asteriskToken){const Xi=vo(xe.expression)&16777216?Nn:ht(r().createValuesHelper(Nn),xe);Hl(Xi,xe)}else xu(Nn,xe);return gt(Dt),oc(xe)}function _r(xe){return Ii(xe.elements,void 0,void 0,xe.multiLine)}function Ii(xe,Dt,Nn,Xi){const Lo=it(xe);let oe;if(Lo>0){oe=q();const Pt=Jn(xe,qe,vt,0,Lo);hl(oe,t.createArrayLiteralExpression(Dt?[Dt,...Pt]:Pt)),Dt=void 0}const ut=Nu(xe,Mt,[],Lo);return oe?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(ut,Xi)]):ht(t.createArrayLiteralExpression(Dt?[Dt,...ut]:ut,Xi),Nn);function Mt(Pt,un){if(zt(un)&&Pt.length>0){const Vn=oe!==void 0;oe||(oe=q()),hl(oe,Vn?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(Pt,Xi)]):t.createArrayLiteralExpression(Dt?[Dt,...Pt]:Pt,Xi)),Dt=void 0,Pt=[]}return Pt.push(D.checkDefined(lt(un,qe,vt))),Pt}}function $i(xe){const Dt=xe.properties,Nn=xe.multiLine,Xi=it(Dt),Lo=q();hl(Lo,t.createObjectLiteralExpression(Jn(Dt,qe,hy,0,Xi),Nn));const oe=Nu(Dt,ut,[],Xi);return oe.push(Nn?ju(Uo(ht(t.cloneNode(Lo),Lo),Lo.parent)):Lo),t.inlineExpressions(oe);function ut(Mt,Pt){zt(Pt)&&Mt.length>0&&(Ds(t.createExpressionStatement(t.inlineExpressions(Mt))),Mt=[]);const un=rme(t,xe,Pt,Lo),Vn=lt(un,qe,vt);return Vn&&(Nn&&ju(Vn),Mt.push(Vn)),Mt}}function Qi(xe){return zt(xe.argumentExpression)?t.updateElementAccessExpression(xe,Re(D.checkDefined(lt(xe.expression,qe,Td))),D.checkDefined(lt(xe.argumentExpression,qe,vt))):Bn(xe,qe,e)}function Or(xe){if(!sf(xe)&&Ue(xe.arguments,zt)){const{target:Dt,thisArg:Nn}=t.createCallBinding(xe.expression,c,d,!0);return Wr(ht(t.createFunctionApplyCall(Re(D.checkDefined(lt(Dt,qe,Td))),Nn,Ii(xe.arguments)),xe),xe)}return Bn(xe,qe,e)}function At(xe){if(Ue(xe.arguments,zt)){const{target:Dt,thisArg:Nn}=t.createCallBinding(t.createPropertyAccessExpression(xe.expression,"bind"),c);return Wr(ht(t.createNewExpression(t.createFunctionApplyCall(Re(D.checkDefined(lt(Dt,qe,vt))),Nn,Ii(xe.arguments,t.createVoidZero())),void 0,[]),xe),xe)}return Bn(xe,qe,e)}function vn(xe,Dt=0){const Nn=xe.length;for(let Xi=Dt;Xi<Nn;Xi++)dn(xe[Xi])}function Wt(xe){lo(xe)?vn(xe.statements):dn(xe)}function dn(xe){const Dt=I;I||(I=zt(xe)),rr(xe),I=Dt}function rr(xe){switch(xe.kind){case 238:return cr(xe);case 241:return Pi(xe);case 242:return an(xe);case 243:return Pn(xe);case 244:return Hr(xe);case 245:return yt(xe);case 246:return Ce(xe);case 248:return pe(xe);case 249:return he(xe);case 250:return We(xe);case 251:return Xe(xe);case 252:return Ut(xe);case 253:return Sn(xe);case 254:return ue(xe);case 255:return mt(xe);default:return Ds(lt(xe,qe,wa))}}function cr(xe){zt(xe)?vn(xe.statements):Ds(lt(xe,qe,wa))}function Pi(xe){Ds(lt(xe,qe,wa))}function gi(xe){for(const oe of xe.declarations){const ut=t.cloneNode(oe.name);Wc(ut,oe.name),c(ut)}const Dt=Ek(xe),Nn=Dt.length;let Xi=0,Lo=[];for(;Xi<Nn;){for(let oe=Xi;oe<Nn;oe++){const ut=Dt[oe];if(zt(ut.initializer)&&Lo.length>0)break;Lo.push(Rn(ut))}Lo.length&&(Ds(t.createExpressionStatement(t.inlineExpressions(Lo))),Xi+=Lo.length,Lo=[])}}function Rn(xe){return _s(t.createAssignment(_s(t.cloneNode(xe.name),xe.name),D.checkDefined(lt(xe.initializer,qe,vt))),xe)}function an(xe){if(zt(xe))if(zt(xe.thenStatement)||zt(xe.elseStatement)){const Dt=Rt(),Nn=xe.elseStatement?Rt():void 0;rn(xe.elseStatement?Nn:Dt,D.checkDefined(lt(xe.expression,qe,vt)),xe.expression),Wt(xe.thenStatement),xe.elseStatement&&(el(Dt),gt(Nn),Wt(xe.elseStatement)),gt(Dt)}else Ds(lt(xe,qe,wa));else Ds(lt(xe,qe,wa))}function Pn(xe){if(zt(xe)){const Dt=Rt(),Nn=Rt();Hi(Dt),gt(Nn),Wt(xe.statement),gt(Dt),Ks(Nn,D.checkDefined(lt(xe.expression,qe,vt))),Xr()}else Ds(lt(xe,qe,wa))}function Ar(xe){return I?(ca(),xe=Bn(xe,qe,e),Xr(),xe):Bn(xe,qe,e)}function Hr(xe){if(zt(xe)){const Dt=Rt(),Nn=Hi(Dt);gt(Dt),rn(Nn,D.checkDefined(lt(xe.expression,qe,vt))),Wt(xe.statement),el(Dt),Xr()}else Ds(lt(xe,qe,wa))}function we(xe){return I?(ca(),xe=Bn(xe,qe,e),Xr(),xe):Bn(xe,qe,e)}function yt(xe){if(zt(xe)){const Dt=Rt(),Nn=Rt(),Xi=Hi(Nn);if(xe.initializer){const Lo=xe.initializer;Vu(Lo)?gi(Lo):Ds(ht(t.createExpressionStatement(D.checkDefined(lt(Lo,qe,vt))),Lo))}gt(Dt),xe.condition&&rn(Xi,D.checkDefined(lt(xe.condition,qe,vt))),Wt(xe.statement),gt(Nn),xe.incrementor&&Ds(ht(t.createExpressionStatement(D.checkDefined(lt(xe.incrementor,qe,vt))),xe.incrementor)),el(Dt),Xr()}else Ds(lt(xe,qe,wa))}function Nt(xe){I&&ca();const Dt=xe.initializer;if(Dt&&Vu(Dt)){for(const Xi of Dt.declarations)c(Xi.name);const Nn=Ek(Dt);xe=t.updateForStatement(xe,Nn.length>0?t.inlineExpressions(Vt(Nn,Rn)):void 0,lt(xe.condition,qe,vt),lt(xe.incrementor,qe,vt),E_(xe.statement,qe,e))}else xe=Bn(xe,qe,e);return I&&Xr(),xe}function Ce(xe){if(zt(xe)){const Dt=q(),Nn=q(),Xi=q(),Lo=t.createLoopVariable(),oe=xe.initializer;c(Lo),hl(Dt,D.checkDefined(lt(xe.expression,qe,vt))),hl(Nn,t.createArrayLiteralExpression()),Ds(t.createForInStatement(Xi,Dt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Nn,"push"),void 0,[Xi])))),hl(Lo,t.createNumericLiteral(0));const ut=Rt(),Mt=Rt(),Pt=Hi(Mt);gt(ut),rn(Pt,t.createLessThan(Lo,t.createPropertyAccessExpression(Nn,"length"))),hl(Xi,t.createElementAccessExpression(Nn,Lo)),rn(Mt,t.createBinaryExpression(Xi,101,Dt));let un;if(Vu(oe)){for(const Vn of oe.declarations)c(Vn.name);un=t.cloneNode(oe.declarations[0].name)}else un=D.checkDefined(lt(oe,qe,vt)),D.assert(Td(un));hl(un,Xi),Wt(xe.statement),gt(Mt),Ds(t.createExpressionStatement(t.createPostfixIncrement(Lo))),el(ut),Xr()}else Ds(lt(xe,qe,wa))}function pt(xe){I&&ca();const Dt=xe.initializer;if(Vu(Dt)){for(const Nn of Dt.declarations)c(Nn.name);xe=t.updateForInStatement(xe,Dt.declarations[0].name,D.checkDefined(lt(xe.expression,qe,vt)),D.checkDefined(lt(xe.statement,qe,wa,t.liftToBlock)))}else xe=Bn(xe,qe,e);return I&&Xr(),xe}function pe(xe){const Dt=La(xe.label?Mr(xe.label):void 0);Dt>0?el(Dt,xe):Ds(xe)}function ie(xe){if(I){const Dt=La(xe.label&&Mr(xe.label));if(Dt>0)return tu(Dt,xe)}return Bn(xe,qe,e)}function he(xe){const Dt=Co(xe.label?Mr(xe.label):void 0);Dt>0?el(Dt,xe):Ds(xe)}function j(xe){if(I){const Dt=Co(xe.label&&Mr(xe.label));if(Dt>0)return tu(Dt,xe)}return Bn(xe,qe,e)}function We(xe){zu(lt(xe.expression,qe,vt),xe)}function Ze(xe){return zd(lt(xe.expression,qe,vt),xe)}function Xe(xe){zt(xe)?(Ai(Re(D.checkDefined(lt(xe.expression,qe,vt)))),Wt(xe.statement),Ci()):Ds(lt(xe,qe,wa))}function Ut(xe){if(zt(xe.caseBlock)){const Dt=xe.caseBlock,Nn=Dt.clauses.length,Xi=_i(),Lo=Re(D.checkDefined(lt(xe.expression,qe,vt))),oe=[];let ut=-1;for(let un=0;un<Nn;un++){const Vn=Dt.clauses[un];oe.push(Rt()),Vn.kind===293&&ut===-1&&(ut=un)}let Mt=0,Pt=[];for(;Mt<Nn;){let un=0;for(let Vn=Mt;Vn<Nn;Vn++){const Rr=Dt.clauses[Vn];if(Rr.kind===292){if(zt(Rr.expression)&&Pt.length>0)break;Pt.push(t.createCaseClause(D.checkDefined(lt(Rr.expression,qe,vt)),[tu(oe[Vn],Rr.expression)]))}else un++}Pt.length&&(Ds(t.createSwitchStatement(Lo,t.createCaseBlock(Pt))),Mt+=Pt.length,Pt=[]),un>0&&(Mt+=un,un=0)}ut>=0?el(oe[ut]):el(Xi);for(let un=0;un<Nn;un++)gt(oe[un]),vn(Dt.clauses[un].statements);ua()}else Ds(lt(xe,qe,wa))}function cn(xe){return I&&ss(),xe=Bn(xe,qe,e),I&&ua(),xe}function Sn(xe){zt(xe)?(fa(Mr(xe.label)),Wt(xe.statement),ec()):Ds(lt(xe,qe,wa))}function Er(xe){return I&&wn(Mr(xe.label)),xe=Bn(xe,qe,e),I&&ec(),xe}function ue(xe){var Dt;fe(D.checkDefined(lt((Dt=xe.expression)!=null?Dt:t.createVoidZero(),qe,vt)),xe)}function mt(xe){zt(xe)?(ji(),Wt(xe.tryBlock),xe.catchClause&&(mo(xe.catchClause.variableDeclaration),Wt(xe.catchClause.block)),xe.finallyBlock&&(To(),Wt(xe.finallyBlock)),io()):Ds(Bn(xe,qe,e))}function zt(xe){return!!xe&&(xe.transformFlags&1048576)!==0}function it(xe){const Dt=xe.length;for(let Nn=0;Nn<Dt;Nn++)if(zt(xe[Nn]))return Nn;return-1}function K(xe,Dt){return Dt=h(xe,Dt),xe===1?Pe(Dt):Dt}function Pe(xe){return He(xe)?Z(xe):xe}function Z(xe){if(!xl(xe)&&E&&E.has(Mr(xe))){const Dt=Sl(xe);if(He(Dt)&&Dt.parent){const Nn=y.getReferencedValueDeclaration(Dt);if(Nn){const Xi=A[wl(Nn)];if(Xi){const Lo=Uo(ht(t.cloneNode(Xi),Xi),Xi.parent);return _s(Lo,xe),Wc(Lo,xe),Lo}}}}return xe}function Re(xe){if(xl(xe)||vo(xe)&8192)return xe;const Dt=t.createTempVariable(c);return hl(Dt,xe,xe),Dt}function q(xe){const Dt=xe?t.createUniqueName(xe):t.createTempVariable(void 0);return c(Dt),Dt}function Rt(){H||(H=[]);const xe=X;return X++,H[xe]=-1,xe}function gt(xe){D.assert(H!==void 0,"No labels were defined."),H[xe]=Y?Y.length:0}function ft(xe){O||(O=[],G=[],k=[],V=[]);const Dt=G.length;return G[Dt]=0,k[Dt]=Y?Y.length:0,O[Dt]=xe,V.push(xe),Dt}function _n(){const xe=$n();if(xe===void 0)return D.fail("beginBlock was never called.");const Dt=G.length;return G[Dt]=1,k[Dt]=Y?Y.length:0,O[Dt]=xe,V.pop(),xe}function $n(){return tl(V)}function oi(){const xe=$n();return xe&&xe.kind}function Ai(xe){const Dt=Rt(),Nn=Rt();gt(Dt),ft({kind:1,expression:xe,startLabel:Dt,endLabel:Nn})}function Ci(){D.assert(oi()===1);const xe=_n();gt(xe.endLabel)}function ji(){const xe=Rt(),Dt=Rt();return gt(xe),ft({kind:0,state:0,startLabel:xe,endLabel:Dt}),Kc(),Dt}function mo(xe){D.assert(oi()===0);let Dt;if(xl(xe.name))Dt=xe.name,c(xe.name);else{const oe=Mr(xe.name);Dt=q(oe),E||(E=new Map,A=[],e.enableSubstitution(79)),E.set(oe,!0),A[wl(xe)]=Dt}const Nn=$n();D.assert(Nn.state<1);const Xi=Nn.endLabel;el(Xi);const Lo=Rt();gt(Lo),Nn.state=1,Nn.catchVariable=Dt,Nn.catchLabel=Lo,hl(Dt,t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[])),Kc()}function To(){D.assert(oi()===0);const xe=$n();D.assert(xe.state<2);const Dt=xe.endLabel;el(Dt);const Nn=Rt();gt(Nn),xe.state=2,xe.finallyLabel=Nn}function io(){D.assert(oi()===0);const xe=_n();xe.state<2?el(xe.endLabel):It(),gt(xe.endLabel),Kc(),xe.state=3}function ca(){ft({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Hi(xe){const Dt=Rt();return ft({kind:3,isScript:!1,breakLabel:Dt,continueLabel:xe}),Dt}function Xr(){D.assert(oi()===3);const xe=_n(),Dt=xe.breakLabel;xe.isScript||gt(Dt)}function ss(){ft({kind:2,isScript:!0,breakLabel:-1})}function _i(){const xe=Rt();return ft({kind:2,isScript:!1,breakLabel:xe}),xe}function ua(){D.assert(oi()===2);const xe=_n(),Dt=xe.breakLabel;xe.isScript||gt(Dt)}function wn(xe){ft({kind:4,isScript:!0,labelText:xe,breakLabel:-1})}function fa(xe){const Dt=Rt();ft({kind:4,isScript:!1,labelText:xe,breakLabel:Dt})}function ec(){D.assert(oi()===4);const xe=_n();xe.isScript||gt(xe.breakLabel)}function rl(xe){return xe.kind===2||xe.kind===3}function Ul(xe){return xe.kind===4}function Xl(xe){return xe.kind===3}function Vl(xe,Dt){for(let Nn=Dt;Nn>=0;Nn--){const Xi=V[Nn];if(Ul(Xi)){if(Xi.labelText===xe)return!0}else break}return!1}function Co(xe){if(V)if(xe)for(let Dt=V.length-1;Dt>=0;Dt--){const Nn=V[Dt];if(Ul(Nn)&&Nn.labelText===xe)return Nn.breakLabel;if(rl(Nn)&&Vl(xe,Dt-1))return Nn.breakLabel}else for(let Dt=V.length-1;Dt>=0;Dt--){const Nn=V[Dt];if(rl(Nn))return Nn.breakLabel}return 0}function La(xe){if(V)if(xe)for(let Dt=V.length-1;Dt>=0;Dt--){const Nn=V[Dt];if(Xl(Nn)&&Vl(xe,Dt-1))return Nn.continueLabel}else for(let Dt=V.length-1;Dt>=0;Dt--){const Nn=V[Dt];if(Xl(Nn))return Nn.continueLabel}return 0}function Xo(xe){if(xe!==void 0&&xe>0){te===void 0&&(te=[]);const Dt=t.createNumericLiteral(-1);return te[xe]===void 0?te[xe]=[Dt]:te[xe].push(Dt),Dt}return t.createOmittedExpression()}function jl(xe){const Dt=t.createNumericLiteral(xe);return I7(Dt,3,j5e(xe)),Dt}function tu(xe,Dt){return D.assertLessThan(0,xe,"Invalid label"),ht(t.createReturnStatement(t.createArrayLiteralExpression([jl(3),Xo(xe)])),Dt)}function zd(xe,Dt){return ht(t.createReturnStatement(t.createArrayLiteralExpression(xe?[jl(2),xe]:[jl(2)])),Dt)}function oc(xe){return ht(t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[]),xe)}function Kc(){Ht(0)}function Ds(xe){xe?Ht(1,[xe]):Kc()}function hl(xe,Dt,Nn){Ht(2,[xe,Dt],Nn)}function el(xe,Dt){Ht(3,[xe],Dt)}function Ks(xe,Dt,Nn){Ht(4,[xe,Dt],Nn)}function rn(xe,Dt,Nn){Ht(5,[xe,Dt],Nn)}function Hl(xe,Dt){Ht(7,[xe],Dt)}function xu(xe,Dt){Ht(6,[xe],Dt)}function zu(xe,Dt){Ht(8,[xe],Dt)}function fe(xe,Dt){Ht(9,[xe],Dt)}function It(){Ht(10)}function Ht(xe,Dt,Nn){Y===void 0&&(Y=[],P=[],de=[]),H===void 0&>(Rt());const Xi=Y.length;Y[Xi]=xe,P[Xi]=Dt,de[Xi]=Nn}function Q(){ye=0,ae=0,W=void 0,ce=!1,me=!1,ve=void 0,Se=void 0,ee=void 0,Qe=void 0,je=void 0;const xe=ot();return r().createGeneratorHelper(or(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,re)],void 0,t.createBlock(xe,xe.length>0)),1048576))}function ot(){if(Y){for(let xe=0;xe<Y.length;xe++)jo(xe);mn(Y.length)}else mn(0);if(ve){const xe=t.createPropertyAccessExpression(re,"label"),Dt=t.createSwitchStatement(xe,t.createCaseBlock(ve));return[ju(Dt)]}return Se||[]}function xt(){Se&&(Pr(!ce),ce=!1,me=!1,ae++)}function mn(xe){Dr(xe)&&(Ta(xe),je=void 0,_d(void 0,void 0)),Se&&ve&&Pr(!1),ls()}function Dr(xe){if(!me)return!0;if(!H||!te)return!1;for(let Dt=0;Dt<H.length;Dt++)if(H[Dt]===xe&&te[Dt])return!0;return!1}function Pr(xe){if(ve||(ve=[]),Se){if(je)for(let Dt=je.length-1;Dt>=0;Dt--){const Nn=je[Dt];Se=[t.createWithStatement(Nn.expression,t.createBlock(Se))]}if(Qe){const{startLabel:Dt,catchLabel:Nn,finallyLabel:Xi,endLabel:Lo}=Qe;Se.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(re,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Xo(Dt),Xo(Nn),Xo(Xi),Xo(Lo)])]))),Qe=void 0}xe&&Se.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(re,"label"),t.createNumericLiteral(ae+1))))}ve.push(t.createCaseClause(t.createNumericLiteral(ae),Se||[])),Se=void 0}function Ta(xe){if(H)for(let Dt=0;Dt<H.length;Dt++)H[Dt]===xe&&(xt(),W===void 0&&(W=[]),W[ae]===void 0?W[ae]=[Dt]:W[ae].push(Dt))}function ls(){if(te!==void 0&&W!==void 0)for(let xe=0;xe<W.length;xe++){const Dt=W[xe];if(Dt!==void 0)for(const Nn of Dt){const Xi=te[Nn];if(Xi!==void 0)for(const Lo of Xi)Lo.text=String(xe)}}}function ho(xe){if(O)for(;ye<G.length&&k[ye]<=xe;ye++){const Dt=O[ye],Nn=G[ye];switch(Dt.kind){case 0:Nn===0?(ee||(ee=[]),Se||(Se=[]),ee.push(Qe),Qe=Dt):Nn===1&&(Qe=ee.pop());break;case 1:Nn===0?(je||(je=[]),je.push(Dt)):Nn===1&&je.pop();break}}}function jo(xe){if(Ta(xe),ho(xe),ce)return;ce=!1,me=!1;const Dt=Y[xe];if(Dt===0)return;if(Dt===10)return Nf();const Nn=P[xe];if(Dt===1)return Ya(Nn[0]);const Xi=de[xe];switch(Dt){case 2:return dl(Nn[0],Nn[1],Xi);case 3:return Es(Nn[0],Xi);case 4:return ds(Nn[0],Nn[1],Xi);case 5:return fl(Nn[0],Nn[1],Xi);case 6:return qd(Nn[0],Xi);case 7:return Wl(Nn[0],Xi);case 8:return _d(Nn[0],Xi);case 9:return dc(Nn[0],Xi)}}function Ya(xe){xe&&(Se?Se.push(xe):Se=[xe])}function dl(xe,Dt,Nn){Ya(ht(t.createExpressionStatement(t.createAssignment(xe,Dt)),Nn))}function dc(xe,Dt){ce=!0,me=!0,Ya(ht(t.createThrowStatement(xe),Dt))}function _d(xe,Dt){ce=!0,me=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression(xe?[jl(2),xe]:[jl(2)])),Dt),768))}function Es(xe,Dt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression([jl(3),Xo(xe)])),Dt),768))}function ds(xe,Dt,Nn){Ya(or(t.createIfStatement(Dt,or(ht(t.createReturnStatement(t.createArrayLiteralExpression([jl(3),Xo(xe)])),Nn),768)),1))}function fl(xe,Dt,Nn){Ya(or(t.createIfStatement(t.createLogicalNot(Dt),or(ht(t.createReturnStatement(t.createArrayLiteralExpression([jl(3),Xo(xe)])),Nn),768)),1))}function qd(xe,Dt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression(xe?[jl(4),xe]:[jl(4)])),Dt),768))}function Wl(xe,Dt){ce=!0,Ya(or(ht(t.createReturnStatement(t.createArrayLiteralExpression([jl(5),xe])),Dt),768))}function Nf(){ce=!0,Ya(t.createReturnStatement(t.createArrayLiteralExpression([jl(7)])))}}var H5e=C({"src/compiler/transformers/generators.ts"(){Oa()}});function aY(e){function t(ie){switch(ie){case 2:return P;case 3:return de;default:return Y}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),y=e.getEmitHost(),h=es(f),E=au(f),A=e.onSubstituteNode,L=e.onEmitNode;e.onSubstituteNode=Ar,e.onEmitNode=Pn,e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);const I=[],O=[];let k,G;const V=[];let H;return Y_(e,te);function te(ie){if(ie.isDeclarationFile||!(fx(ie,f)||ie.transformFlags&8388608||m_(ie)&&a7(f)&&qs(f)))return ie;k=ie,G=qX(e,ie,d,f),I[wl(ie)]=G;const j=t(E)(ie);return k=void 0,G=void 0,H=!1,j}function X(){return!!(!G.exportEquals&&Zl(k))}function Y(ie){o();const he=[],j=v_(f,"alwaysStrict")||!f.noImplicitUseStrict&&Zl(k),We=r.copyPrologue(ie.statements,he,j&&!m_(ie),ce);if(X()&&Fn(he,Pi()),Ae(G.exportedNames))for(let Ut=0;Ut<G.exportedNames.length;Ut+=50)Fn(he,r.createExpressionStatement(Nu(G.exportedNames.slice(Ut,Ut+50),(cn,Sn)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Mr(Sn))),cn),r.createVoidZero())));Fn(he,lt(G.externalHelpersImportDeclaration,ce,wa)),Ti(he,Jn(ie.statements,ce,wa,We)),W(he,!1),Pm(he,s());const Ze=r.updateSourceFile(ie,ht(r.createNodeArray(he),ie.statements));return Ty(Ze,e.readEmitHelpers()),Ze}function P(ie){const he=r.createIdentifier("define"),j=o8(r,ie,y,f),We=m_(ie)&&ie,{aliasedModuleNames:Ze,unaliasedModuleNames:Xe,importAliasNames:Ut}=re(ie,!0),cn=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(he,void 0,[...j?[j]:[],r.createArrayLiteralExpression(We?rt:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...Ze,...Xe]),We?We.statements.length?We.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"),...Ut],void 0,ae(ie))]))]),ie.statements));return Ty(cn,e.readEmitHelpers()),cn}function de(ie){const{aliasedModuleNames:he,unaliasedModuleNames:j,importAliasNames:We}=re(ie,!1),Ze=o8(r,ie,y,f),Xe=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ht(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),or(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...Ze?[Ze]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...he,...j]),r.createIdentifier("factory")]))])))],!0),void 0)),Ut=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Xe,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"),...We],void 0,ae(ie))]))]),ie.statements));return Ty(Ut,e.readEmitHelpers()),Ut}function re(ie,he){const j=[],We=[],Ze=[];for(const Xe of ie.amdDependencies)Xe.name?(j.push(r.createStringLiteral(Xe.path)),Ze.push(r.createParameterDeclaration(void 0,void 0,Xe.name))):We.push(r.createStringLiteral(Xe.path));for(const Xe of G.externalImports){const Ut=Xx(r,Xe,k,y,d,f),cn=BC(r,Xe,k);Ut&&(he&&cn?(or(cn,8),j.push(Ut),Ze.push(r.createParameterDeclaration(void 0,void 0,cn))):We.push(Ut))}return{aliasedModuleNames:j,unaliasedModuleNames:We,importAliasNames:Ze}}function ye(ie){if(su(ie)||eu(ie)||!Xx(r,ie,k,y,d,f))return;const he=BC(r,ie,k),j=Et(ie,he);if(j!==he)return r.createExpressionStatement(r.createAssignment(he,j))}function ae(ie){o();const he=[],j=r.copyPrologue(ie.statements,he,!f.noImplicitUseStrict,ce);X()&&Fn(he,Pi()),Ae(G.exportedNames)&&Fn(he,r.createExpressionStatement(Nu(G.exportedNames,(Ze,Xe)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Mr(Xe))),Ze),r.createVoidZero()))),Fn(he,lt(G.externalHelpersImportDeclaration,ce,wa)),E===2&&Ti(he,ia(G.externalImports,ye)),Ti(he,Jn(ie.statements,ce,wa,j)),W(he,!0),Pm(he,s());const We=r.createBlock(he,!0);return H&&Dx(We,Eye),We}function W(ie,he){if(G.exportEquals){const j=lt(G.exportEquals.expression,ve,vt);if(j)if(he){const We=r.createReturnStatement(j);ht(We,G.exportEquals),or(We,3840),ie.push(We)}else{const We=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),j));ht(We,G.exportEquals),or(We,3072),ie.push(We)}}}function ce(ie){switch(ie.kind){case 269:return jt(ie);case 268:return at(ie);case 275:return sn(ie);case 274:return Qt(ie);case 240:return In(ie);case 259:return On(ie);case 260:return jn(ie);case 358:return Ii(ie);case 359:return Qi(ie);default:return ve(ie)}}function me(ie,he){if(!(ie.transformFlags&276828160))return ie;switch(ie.kind){case 245:return je(ie);case 241:return Ge(ie);case 214:return qe(ie,he);case 356:return Oe(ie,he);case 210:if(sf(ie)&&k.impliedNodeFormat===void 0)return Ye(ie);break;case 223:if(by(ie))return Qe(ie,he);break;case 221:case 222:return Me(ie,he)}return Bn(ie,ve,e)}function ve(ie){return me(ie,!1)}function Se(ie){return me(ie,!0)}function ee(ie){if(Ls(ie))for(const he of ie.properties)switch(he.kind){case 299:if(ee(he.initializer))return!0;break;case 300:if(ee(he.name))return!0;break;case 301:if(ee(he.expression))return!0;break;case 171:case 174:case 175:return!1;default:D.assertNever(he,"Unhandled object member kind")}else if(Gu(ie)){for(const he of ie.elements)if(Ih(he)){if(ee(he.expression))return!0}else if(ee(he))return!0}else if(He(ie))return Ae(pe(ie))>(g5(ie)?1:0);return!1}function Qe(ie,he){return ee(ie.left)?VT(ie,ve,e,0,!he,Zt):Bn(ie,ve,e)}function je(ie){return r.updateForStatement(ie,lt(ie.initializer,Se,Xp),lt(ie.condition,ve,vt),lt(ie.incrementor,Se,vt),E_(ie.statement,ve,e))}function Ge(ie){return r.updateExpressionStatement(ie,lt(ie.expression,Se,vt))}function qe(ie,he){return r.updateParenthesizedExpression(ie,lt(ie.expression,he?Se:ve,vt))}function Oe(ie,he){return r.updatePartiallyEmittedExpression(ie,lt(ie.expression,he?Se:ve,vt))}function Me(ie,he){if((ie.operator===45||ie.operator===46)&&He(ie.operand)&&!xl(ie.operand)&&!Vv(ie.operand)&&!_O(ie.operand)){const j=pe(ie.operand);if(j){let We,Ze=lt(ie.operand,ve,vt);Gv(ie)?Ze=r.updatePrefixUnaryExpression(ie,Ze):(Ze=r.updatePostfixUnaryExpression(ie,Ze),he||(We=r.createTempVariable(c),Ze=r.createAssignment(We,Ze),ht(Ze,ie)),Ze=r.createComma(Ze,r.cloneNode(ie.operand)),ht(Ze,ie));for(const Xe of j)V[ms(Ze)]=!0,Ze=Rn(Xe,Ze),ht(Ze,ie);return We&&(V[ms(Ze)]=!0,Ze=r.createComma(Ze,We),ht(Ze,ie)),Ze}}return Bn(ie,ve,e)}function Ye(ie){if(E===0&&h>=7)return Bn(ie,ve,e);const he=Xx(r,ie,k,y,d,f),j=lt(Yc(ie.arguments),ve,vt),We=he&&(!j||!Vo(j)||j.text!==he.text)?he:j,Ze=!!(ie.transformFlags&16384);switch(f.module){case 2:return Fe(We,Ze);case 3:return ze(We??r.createVoidZero(),Ze);case 1:default:return st(We)}}function ze(ie,he){if(H=!0,H1(ie)){const j=xl(ie)?ie:Vo(ie)?r.createStringLiteralFromNode(ie):or(ht(r.cloneNode(ie),ie),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,st(ie),void 0,Fe(j,he))}else{const j=r.createTempVariable(c);return r.createComma(r.createAssignment(j,ie),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,st(j,!0),void 0,Fe(j,he)))}}function Fe(ie,he){const j=r.createUniqueName("resolve"),We=r.createUniqueName("reject"),Ze=[r.createParameterDeclaration(void 0,void 0,j),r.createParameterDeclaration(void 0,void 0,We)],Xe=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([ie||r.createOmittedExpression()]),j,We]))]);let Ut;h>=2?Ut=r.createArrowFunction(void 0,void 0,Ze,void 0,void 0,Xe):(Ut=r.createFunctionExpression(void 0,void 0,void 0,void 0,Ze,void 0,Xe),he&&or(Ut,16));const cn=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Ut]);return W_(f)?r.createCallExpression(r.createPropertyAccessExpression(cn,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):cn}function st(ie,he){const j=ie&&!om(ie)&&!he,We=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,j?h>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(ie,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[ie])]:[]);let Ze=r.createCallExpression(r.createIdentifier("require"),void 0,j?[r.createIdentifier("s")]:ie?[ie]:[]);W_(f)&&(Ze=i().createImportStarHelper(Ze));const Xe=j?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Ut;return h>=2?Ut=r.createArrowFunction(void 0,void 0,Xe,void 0,void 0,Ze):Ut=r.createFunctionExpression(void 0,void 0,void 0,void 0,Xe,void 0,r.createBlock([r.createReturnStatement(Ze)])),r.createCallExpression(r.createPropertyAccessExpression(We,"then"),void 0,[Ut])}function Ct(ie,he){return!W_(f)||B_(ie)&2?he:Kge(ie)?i().createImportStarHelper(he):he}function Et(ie,he){return!W_(f)||B_(ie)&2?he:mF(ie)?i().createImportStarHelper(he):zX(ie)?i().createImportDefaultHelper(he):he}function jt(ie){let he;const j=ZA(ie);if(E!==2)if(ie.importClause){const We=[];j&&!hx(ie)?We.push(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,Et(ie,tt(ie)))):(We.push(r.createVariableDeclaration(r.getGeneratedNameForNode(ie),void 0,void 0,Et(ie,tt(ie)))),j&&hx(ie)&&We.push(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,r.getGeneratedNameForNode(ie)))),he=Fn(he,Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList(We,h>=2?2:0)),ie),ie))}else return Wr(ht(r.createExpressionStatement(tt(ie)),ie),ie);else j&&hx(ie)&&(he=Fn(he,r.createVariableStatement(void 0,r.createVariableDeclarationList([Wr(ht(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,r.getGeneratedNameForNode(ie)),ie),ie)],h>=2?2:0))));if($i(ie)){const We=wl(ie);O[We]=Or(O[We],ie)}else he=Or(he,ie);return Cm(he)}function tt(ie){const he=Xx(r,ie,k,y,d,f),j=[];return he&&j.push(he),r.createCallExpression(r.createIdentifier("require"),void 0,j)}function at(ie){D.assert(X0(ie),"import= for internal module references should be handled in an earlier transformer.");let he;if(E!==2?Yr(ie,1)?he=Fn(he,Wr(ht(r.createExpressionStatement(Rn(ie.name,tt(ie))),ie),ie)):he=Fn(he,Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ie.name),void 0,void 0,tt(ie))],h>=2?2:0)),ie),ie)):Yr(ie,1)&&(he=Fn(he,Wr(ht(r.createExpressionStatement(Rn(r.getExportName(ie),r.getLocalName(ie))),ie),ie))),$i(ie)){const j=wl(ie);O[j]=At(O[j],ie)}else he=At(he,ie);return Cm(he)}function sn(ie){if(!ie.moduleSpecifier)return;const he=r.getGeneratedNameForNode(ie);if(ie.exportClause&&K_(ie.exportClause)){const j=[];E!==2&&j.push(Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(he,void 0,void 0,tt(ie))])),ie),ie));for(const We of ie.exportClause.elements)if(h===0)j.push(Wr(ht(r.createExpressionStatement(i().createCreateBindingHelper(he,r.createStringLiteralFromNode(We.propertyName||We.name),We.propertyName?r.createStringLiteralFromNode(We.name):void 0)),We),We));else{const Ze=!!W_(f)&&!(B_(ie)&2)&&Mr(We.propertyName||We.name)==="default",Xe=r.createPropertyAccessExpression(Ze?i().createImportDefaultHelper(he):he,We.propertyName||We.name);j.push(Wr(ht(r.createExpressionStatement(Rn(r.getExportName(We),Xe,void 0,!0)),We),We))}return Cm(j)}else if(ie.exportClause){const j=[];return j.push(Wr(ht(r.createExpressionStatement(Rn(r.cloneNode(ie.exportClause.name),Ct(ie,E!==2?tt(ie):m3(ie)?he:r.createIdentifier(Mr(ie.exportClause.name))))),ie),ie)),Cm(j)}else return Wr(ht(r.createExpressionStatement(i().createExportStarHelper(E!==2?tt(ie):he)),ie),ie)}function Qt(ie){if(ie.isExportEquals)return;let he;const j=ie.original;if(j&&$i(j)){const We=wl(ie);O[We]=cr(O[We],r.createIdentifier("default"),lt(ie.expression,ve,vt),ie,!0)}else he=cr(he,r.createIdentifier("default"),lt(ie.expression,ve,vt),ie,!0);return Cm(he)}function On(ie){let he;if(Yr(ie,1)?he=Fn(he,Wr(ht(r.createFunctionDeclaration(Jn(ie.modifiers,an,uo),ie.asteriskToken,r.getDeclarationName(ie,!0,!0),void 0,Jn(ie.parameters,ve,Ba),void 0,Bn(ie.body,ve,e)),ie),ie)):he=Fn(he,Bn(ie,ve,e)),$i(ie)){const j=wl(ie);O[j]=dn(O[j],ie)}else he=dn(he,ie);return Cm(he)}function jn(ie){let he;if(Yr(ie,1)?he=Fn(he,Wr(ht(r.createClassDeclaration(Jn(ie.modifiers,an,nl),r.getDeclarationName(ie,!0,!0),void 0,Jn(ie.heritageClauses,ve,Vd),Jn(ie.members,ve,Vc)),ie),ie)):he=Fn(he,Bn(ie,ve,e)),$i(ie)){const j=wl(ie);O[j]=dn(O[j],ie)}else he=dn(he,ie);return Cm(he)}function In(ie){let he,j,We;if(Yr(ie,1)){let Ze,Xe=!1;for(const Ut of ie.declarationList.declarations)if(He(Ut.name)&&Vv(Ut.name))if(Ze||(Ze=Jn(ie.modifiers,an,uo)),Ut.initializer){const cn=r.updateVariableDeclaration(Ut,Ut.name,void 0,void 0,Rn(Ut.name,lt(Ut.initializer,ve,vt)));j=Fn(j,cn)}else j=Fn(j,Ut);else if(Ut.initializer)if(!Xa(Ut.name)&&(Js(Ut.initializer)||Bs(Ut.initializer)||Uu(Ut.initializer))){const cn=r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),Ut.name),Ut.name),r.createIdentifier(V_(Ut.name))),Sn=r.createVariableDeclaration(Ut.name,Ut.exclamationToken,Ut.type,lt(Ut.initializer,ve,vt));j=Fn(j,Sn),We=Fn(We,cn),Xe=!0}else We=Fn(We,_r(Ut));if(j&&(he=Fn(he,r.updateVariableStatement(ie,Ze,r.updateVariableDeclarationList(ie.declarationList,j)))),We){const Ut=Wr(ht(r.createExpressionStatement(r.inlineExpressions(We)),ie),ie);Xe&&PO(Ut),he=Fn(he,Ut)}}else he=Fn(he,Bn(ie,ve,e));if($i(ie)){const Ze=wl(ie);O[Ze]=vn(O[Ze],ie)}else he=vn(he,ie);return Cm(he)}function Zt(ie,he,j){const We=pe(ie);if(We){let Ze=g5(ie)?he:r.createAssignment(ie,he);for(const Xe of We)or(Ze,8),Ze=Rn(Xe,Ze,j);return Ze}return r.createAssignment(ie,he)}function _r(ie){return Xa(ie.name)?VT(lt(ie,ve,Fq),ve,e,0,!1,Zt):r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),ie.name),ie.name),ie.initializer?lt(ie.initializer,ve,vt):r.createVoidZero())}function Ii(ie){if($i(ie)&&ie.original.kind===240){const he=wl(ie);O[he]=vn(O[he],ie.original)}return ie}function $i(ie){return(vo(ie)&8388608)!==0}function Qi(ie){const he=wl(ie),j=O[he];return j?(delete O[he],Fn(j,ie)):ie}function Or(ie,he){if(G.exportEquals)return ie;const j=he.importClause;if(!j)return ie;j.name&&(ie=rr(ie,j));const We=j.namedBindings;if(We)switch(We.kind){case 271:ie=rr(ie,We);break;case 272:for(const Ze of We.elements)ie=rr(ie,Ze,!0);break}return ie}function At(ie,he){return G.exportEquals?ie:rr(ie,he)}function vn(ie,he){if(G.exportEquals)return ie;for(const j of he.declarationList.declarations)ie=Wt(ie,j);return ie}function Wt(ie,he){if(G.exportEquals)return ie;if(Xa(he.name))for(const j of he.name.elements)Rc(j)||(ie=Wt(ie,j));else xl(he.name)||(ie=rr(ie,he));return ie}function dn(ie,he){if(G.exportEquals)return ie;if(Yr(he,1)){const j=Yr(he,1024)?r.createIdentifier("default"):r.getDeclarationName(he);ie=cr(ie,j,r.getLocalName(he),he)}return he.name&&(ie=rr(ie,he)),ie}function rr(ie,he,j){const We=r.getDeclarationName(he),Ze=G.exportSpecifiers.get(Mr(We));if(Ze)for(const Xe of Ze)ie=cr(ie,Xe.name,We,Xe.name,void 0,j);return ie}function cr(ie,he,j,We,Ze,Xe){return ie=Fn(ie,gi(he,j,We,Ze,Xe)),ie}function Pi(){let ie;return h===0?ie=r.createExpressionStatement(Rn(r.createIdentifier("__esModule"),r.createTrue())):ie=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),or(ie,2097152),ie}function gi(ie,he,j,We,Ze){const Xe=ht(r.createExpressionStatement(Rn(ie,he,void 0,Ze)),j);return ju(Xe),We||or(Xe,3072),Xe}function Rn(ie,he,j,We){return ht(We&&h!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(ie),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(he)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),he),j)}function an(ie){switch(ie.kind){case 93:case 88:return}return ie}function Pn(ie,he,j){he.kind===308?(k=he,G=I[wl(k)],L(ie,he,j),k=void 0,G=void 0):L(ie,he,j)}function Ar(ie,he){return he=A(ie,he),he.id&&V[he.id]?he:ie===1?we(he):t_(he)?Hr(he):he}function Hr(ie){const he=ie.name,j=Ce(he);if(j!==he){if(ie.objectAssignmentInitializer){const We=r.createAssignment(j,ie.objectAssignmentInitializer);return ht(r.createPropertyAssignment(he,We),ie)}return ht(r.createPropertyAssignment(he,j),ie)}return ie}function we(ie){switch(ie.kind){case 79:return Ce(ie);case 210:return yt(ie);case 212:return Nt(ie);case 223:return pt(ie)}return ie}function yt(ie){if(He(ie.expression)){const he=Ce(ie.expression);if(V[ms(he)]=!0,!He(he)&&!(vo(ie.expression)&8192))return wx(r.updateCallExpression(ie,he,void 0,ie.arguments),16)}return ie}function Nt(ie){if(He(ie.tag)){const he=Ce(ie.tag);if(V[ms(he)]=!0,!He(he)&&!(vo(ie.tag)&8192))return wx(r.updateTaggedTemplateExpression(ie,he,void 0,ie.template),16)}return ie}function Ce(ie){var he,j;if(vo(ie)&8192){const We=a8(k);return We?r.createPropertyAccessExpression(We,ie):ie}else if(!(xl(ie)&&!(ie.emitNode.autoGenerate.flags&64))&&!Vv(ie)){const We=d.getReferencedExportContainer(ie,g5(ie));if(We&&We.kind===308)return ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ie);const Ze=d.getReferencedImportDeclaration(ie);if(Ze){if(Wm(Ze))return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(Ze.parent),r.createIdentifier("default")),ie);if(Ld(Ze)){const Xe=Ze.propertyName||Ze.name;return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((j=(he=Ze.parent)==null?void 0:he.parent)==null?void 0:j.parent)||Ze),r.cloneNode(Xe)),ie)}}}return ie}function pt(ie){if(vy(ie.operatorToken.kind)&&He(ie.left)&&!xl(ie.left)&&!Vv(ie.left)&&!_O(ie.left)){const he=pe(ie.left);if(he){let j=ie;for(const We of he)V[ms(j)]=!0,j=Rn(We,j,ie);return j}}return ie}function pe(ie){if(!xl(ie)){const he=d.getReferencedImportDeclaration(ie)||d.getReferencedValueDeclaration(ie);if(he)return G&&G.exportedBindings[wl(he)]}}}var Eye,W5e=C({"src/compiler/transformers/module/module.ts"(){Oa(),Eye={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Tye(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),f=e.getEmitHost(),d=e.onSubstituteNode,y=e.onEmitNode;e.onSubstituteNode=Ze,e.onEmitNode=We,e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const h=[],E=[],A=[],L=[],I=[];let O,k,G,V,H,te,X;return Y_(e,Y);function Y(K){if(K.isDeclarationFile||!(fx(K,s)||K.transformFlags&8388608))return K;const Pe=wl(K);O=K,te=K,k=h[Pe]=qX(e,K,c,s),G=t.createUniqueName("exports"),A[Pe]=G,V=I[Pe]=t.createUniqueName("context");const Z=P(k.externalImports),Re=de(K,Z),q=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,G),t.createParameterDeclaration(void 0,void 0,V)],void 0,Re),Rt=o8(t,K,f,s),gt=t.createArrayLiteralExpression(Vt(Z,_n=>_n.name)),ft=or(t.updateSourceFile(K,ht(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,Rt?[Rt,gt,q]:[gt,q]))]),K.statements)),2048);return qs(s)||bpe(ft,Re,_n=>!_n.scoped),X&&(L[Pe]=X,X=void 0),O=void 0,k=void 0,G=void 0,V=void 0,H=void 0,te=void 0,ft}function P(K){const Pe=new Map,Z=[];for(const Re of K){const q=Xx(t,Re,O,f,c,s);if(q){const Rt=q.text,gt=Pe.get(Rt);gt!==void 0?Z[gt].externalImports.push(Re):(Pe.set(Rt,Z.length),Z.push({name:q,externalImports:[Re]}))}}return Z}function de(K,Pe){const Z=[];r();const Re=v_(s,"alwaysStrict")||!s.noImplicitUseStrict&&Zl(O),q=t.copyPrologue(K.statements,Z,Re,W);Z.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(V,t.createPropertyAccessExpression(V,"id")))]))),lt(k.externalHelpersImportDeclaration,W,wa);const Rt=Jn(K.statements,W,wa,q);Ti(Z,H),Pm(Z,i());const gt=re(Z),ft=K.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,_n=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ae(gt,Pe)),t.createPropertyAssignment("execute",t.createFunctionExpression(ft,void 0,void 0,void 0,[],void 0,t.createBlock(Rt,!0)))],!0);return Z.push(t.createReturnStatement(_n)),t.createBlock(Z,!0)}function re(K){if(!k.hasExportStarsToExportValues)return;if(!k.exportedNames&&k.exportSpecifiers.size===0){let q=!1;for(const Rt of k.externalImports)if(Rt.kind===275&&Rt.exportClause){q=!0;break}if(!q){const Rt=ye(void 0);return K.push(Rt),Rt.name}}const Pe=[];if(k.exportedNames)for(const q of k.exportedNames)q.escapedText!=="default"&&Pe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(q),t.createTrue()));const Z=t.createUniqueName("exportedNames");K.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Z,void 0,void 0,t.createObjectLiteralExpression(Pe,!0))])));const Re=ye(Z);return K.push(Re),Re.name}function ye(K){const Pe=t.createUniqueName("exportStar"),Z=t.createIdentifier("m"),Re=t.createIdentifier("n"),q=t.createIdentifier("exports");let Rt=t.createStrictInequality(Re,t.createStringLiteral("default"));return K&&(Rt=t.createLogicalAnd(Rt,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(K,"hasOwnProperty"),void 0,[Re])))),t.createFunctionDeclaration(void 0,void 0,Pe,void 0,[t.createParameterDeclaration(void 0,void 0,Z)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(q,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Re)]),Z,t.createBlock([or(t.createIfStatement(Rt,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(q,Re),t.createElementAccessExpression(Z,Re)))),1)])),t.createExpressionStatement(t.createCallExpression(G,void 0,[q]))],!0))}function ae(K,Pe){const Z=[];for(const Re of Pe){const q=Ue(Re.externalImports,ft=>BC(t,ft,O)),Rt=q?t.getGeneratedNameForNode(q):t.createUniqueName(""),gt=[];for(const ft of Re.externalImports){const _n=BC(t,ft,O);switch(ft.kind){case 269:if(!ft.importClause)break;case 268:D.assert(_n!==void 0),gt.push(t.createExpressionStatement(t.createAssignment(_n,Rt))),Yr(ft,1)&>.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createStringLiteral(Mr(_n)),Rt])));break;case 275:if(D.assert(_n!==void 0),ft.exportClause)if(K_(ft.exportClause)){const $n=[];for(const oi of ft.exportClause.elements)$n.push(t.createPropertyAssignment(t.createStringLiteral(Mr(oi.name)),t.createElementAccessExpression(Rt,t.createStringLiteral(Mr(oi.propertyName||oi.name)))));gt.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createObjectLiteralExpression($n,!0)])))}else gt.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createStringLiteral(Mr(ft.exportClause.name)),Rt])));else gt.push(t.createExpressionStatement(t.createCallExpression(K,void 0,[Rt])));break}}Z.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Rt)],void 0,t.createBlock(gt,!0)))}return t.createArrayLiteralExpression(Z,!0)}function W(K){switch(K.kind){case 269:return ce(K);case 268:return ve(K);case 275:return me(K);case 274:return Se(K);default:return Zt(K)}}function ce(K){let Pe;if(K.importClause&&o(BC(t,K,O)),st(K)){const Z=wl(K);E[Z]=Et(E[Z],K)}else Pe=Et(Pe,K);return Cm(Pe)}function me(K){D.assertIsDefined(K)}function ve(K){D.assert(X0(K),"import= for internal module references should be handled in an earlier transformer.");let Pe;if(o(BC(t,K,O)),st(K)){const Z=wl(K);E[Z]=jt(E[Z],K)}else Pe=jt(Pe,K);return Cm(Pe)}function Se(K){if(K.isExportEquals)return;const Pe=lt(K.expression,Hr,vt),Z=K.original;if(Z&&st(Z)){const Re=wl(K);E[Re]=On(E[Re],t.createIdentifier("default"),Pe,!0)}else return jn(t.createIdentifier("default"),Pe,!0)}function ee(K){if(Yr(K,1)?H=Fn(H,t.updateFunctionDeclaration(K,Jn(K.modifiers,j,nl),K.asteriskToken,t.getDeclarationName(K,!0,!0),void 0,Jn(K.parameters,Hr,Ba),void 0,lt(K.body,Hr,lo))):H=Fn(H,Bn(K,Hr,e)),st(K)){const Pe=wl(K);E[Pe]=sn(E[Pe],K)}else H=sn(H,K)}function Qe(K){let Pe;const Z=t.getLocalName(K);if(o(Z),Pe=Fn(Pe,ht(t.createExpressionStatement(t.createAssignment(Z,ht(t.createClassExpression(Jn(K.modifiers,j,nl),K.name,void 0,Jn(K.heritageClauses,Hr,Vd),Jn(K.members,Hr,Vc)),K))),K)),st(K)){const Re=wl(K);E[Re]=sn(E[Re],K)}else Pe=sn(Pe,K);return Cm(Pe)}function je(K){if(!qe(K.declarationList))return lt(K,Hr,wa);let Pe;const Z=Yr(K,1),Re=st(K);for(const Rt of K.declarationList.declarations)Rt.initializer?Pe=Fn(Pe,Oe(Rt,Z&&!Re)):Ge(Rt);let q;if(Pe&&(q=Fn(q,ht(t.createExpressionStatement(t.inlineExpressions(Pe)),K))),Re){const Rt=wl(K);E[Rt]=tt(E[Rt],K,Z)}else q=tt(q,K,!1);return Cm(q)}function Ge(K){if(Xa(K.name))for(const Pe of K.name.elements)Rc(Pe)||Ge(Pe);else o(t.cloneNode(K.name))}function qe(K){return(vo(K)&4194304)===0&&(te.kind===308||(Sl(K).flags&3)===0)}function Oe(K,Pe){const Z=Pe?Me:Ye;return Xa(K.name)?VT(K,Hr,e,0,!1,Z):K.initializer?Z(K.name,lt(K.initializer,Hr,vt)):K.name}function Me(K,Pe,Z){return ze(K,Pe,Z,!0)}function Ye(K,Pe,Z){return ze(K,Pe,Z,!1)}function ze(K,Pe,Z,Re){return o(t.cloneNode(K)),Re?In(K,zt(ht(t.createAssignment(K,Pe),Z))):zt(ht(t.createAssignment(K,Pe),Z))}function Fe(K){if(st(K)&&K.original.kind===240){const Pe=wl(K),Z=Yr(K.original,1);E[Pe]=tt(E[Pe],K.original,Z)}return K}function st(K){return(vo(K)&8388608)!==0}function Ct(K){const Pe=wl(K),Z=E[Pe];if(Z)return delete E[Pe],Fn(Z,K);{const Re=Sl(K);if(mN(Re))return Fn(Qt(Z,Re),K)}return K}function Et(K,Pe){if(k.exportEquals)return K;const Z=Pe.importClause;if(!Z)return K;Z.name&&(K=Qt(K,Z));const Re=Z.namedBindings;if(Re)switch(Re.kind){case 271:K=Qt(K,Re);break;case 272:for(const q of Re.elements)K=Qt(K,q);break}return K}function jt(K,Pe){return k.exportEquals?K:Qt(K,Pe)}function tt(K,Pe,Z){if(k.exportEquals)return K;for(const Re of Pe.declarationList.declarations)(Re.initializer||Z)&&(K=at(K,Re,Z));return K}function at(K,Pe,Z){if(k.exportEquals)return K;if(Xa(Pe.name))for(const Re of Pe.name.elements)Rc(Re)||(K=at(K,Re,Z));else if(!xl(Pe.name)){let Re;Z&&(K=On(K,Pe.name,t.getLocalName(Pe)),Re=Mr(Pe.name)),K=Qt(K,Pe,Re)}return K}function sn(K,Pe){if(k.exportEquals)return K;let Z;if(Yr(Pe,1)){const Re=Yr(Pe,1024)?t.createStringLiteral("default"):Pe.name;K=On(K,Re,t.getLocalName(Pe)),Z=V_(Re)}return Pe.name&&(K=Qt(K,Pe,Z)),K}function Qt(K,Pe,Z){if(k.exportEquals)return K;const Re=t.getDeclarationName(Pe),q=k.exportSpecifiers.get(Mr(Re));if(q)for(const Rt of q)Rt.name.escapedText!==Z&&(K=On(K,Rt.name,Re));return K}function On(K,Pe,Z,Re){return K=Fn(K,jn(Pe,Z,Re)),K}function jn(K,Pe,Z){const Re=t.createExpressionStatement(In(K,Pe));return ju(Re),Z||or(Re,3072),Re}function In(K,Pe){const Z=He(K)?t.createStringLiteralFromNode(K):K;return or(Pe,vo(Pe)|3072),Wc(t.createCallExpression(G,void 0,[Z,Pe]),Pe)}function Zt(K){switch(K.kind){case 240:return je(K);case 259:return ee(K);case 260:return Qe(K);case 245:return _r(K,!0);case 246:return Ii(K);case 247:return $i(K);case 243:return At(K);case 244:return vn(K);case 253:return Wt(K);case 251:return dn(K);case 252:return rr(K);case 266:return cr(K);case 292:return Pi(K);case 293:return gi(K);case 255:return Rn(K);case 295:return an(K);case 238:return Pn(K);case 358:return Fe(K);case 359:return Ct(K);default:return Hr(K)}}function _r(K,Pe){const Z=te;return te=K,K=t.updateForStatement(K,lt(K.initializer,Pe?Or:we,Xp),lt(K.condition,Hr,vt),lt(K.incrementor,we,vt),E_(K.statement,Pe?Zt:Hr,e)),te=Z,K}function Ii(K){const Pe=te;return te=K,K=t.updateForInStatement(K,Or(K.initializer),lt(K.expression,Hr,vt),E_(K.statement,Zt,e)),te=Pe,K}function $i(K){const Pe=te;return te=K,K=t.updateForOfStatement(K,K.awaitModifier,Or(K.initializer),lt(K.expression,Hr,vt),E_(K.statement,Zt,e)),te=Pe,K}function Qi(K){return Vu(K)&&qe(K)}function Or(K){if(Qi(K)){let Pe;for(const Z of K.declarations)Pe=Fn(Pe,Oe(Z,!1)),Z.initializer||Ge(Z);return Pe?t.inlineExpressions(Pe):t.createOmittedExpression()}else return lt(K,we,Xp)}function At(K){return t.updateDoStatement(K,E_(K.statement,Zt,e),lt(K.expression,Hr,vt))}function vn(K){return t.updateWhileStatement(K,lt(K.expression,Hr,vt),E_(K.statement,Zt,e))}function Wt(K){return t.updateLabeledStatement(K,K.label,D.checkDefined(lt(K.statement,Zt,wa,t.liftToBlock)))}function dn(K){return t.updateWithStatement(K,lt(K.expression,Hr,vt),D.checkDefined(lt(K.statement,Zt,wa,t.liftToBlock)))}function rr(K){return t.updateSwitchStatement(K,lt(K.expression,Hr,vt),D.checkDefined(lt(K.caseBlock,Zt,QO)))}function cr(K){const Pe=te;return te=K,K=t.updateCaseBlock(K,Jn(K.clauses,Zt,mz)),te=Pe,K}function Pi(K){return t.updateCaseClause(K,lt(K.expression,Hr,vt),Jn(K.statements,Zt,wa))}function gi(K){return Bn(K,Zt,e)}function Rn(K){return Bn(K,Zt,e)}function an(K){const Pe=te;return te=K,K=t.updateCatchClause(K,K.variableDeclaration,D.checkDefined(lt(K.block,Zt,lo))),te=Pe,K}function Pn(K){const Pe=te;return te=K,K=Bn(K,Zt,e),te=Pe,K}function Ar(K,Pe){if(!(K.transformFlags&276828160))return K;switch(K.kind){case 245:return _r(K,!1);case 241:return yt(K);case 214:return Nt(K,Pe);case 356:return Ce(K,Pe);case 223:if(by(K))return pe(K,Pe);break;case 210:if(sf(K))return pt(K);break;case 221:case 222:return he(K,Pe)}return Bn(K,Hr,e)}function Hr(K){return Ar(K,!1)}function we(K){return Ar(K,!0)}function yt(K){return t.updateExpressionStatement(K,lt(K.expression,we,vt))}function Nt(K,Pe){return t.updateParenthesizedExpression(K,lt(K.expression,Pe?we:Hr,vt))}function Ce(K,Pe){return t.updatePartiallyEmittedExpression(K,lt(K.expression,Pe?we:Hr,vt))}function pt(K){const Pe=Xx(t,K,O,f,c,s),Z=lt(Yc(K.arguments),Hr,vt),Re=Pe&&(!Z||!Vo(Z)||Z.text!==Pe.text)?Pe:Z;return t.createCallExpression(t.createPropertyAccessExpression(V,t.createIdentifier("import")),void 0,Re?[Re]:[])}function pe(K,Pe){return ie(K.left)?VT(K,Hr,e,0,!Pe):Bn(K,Hr,e)}function ie(K){if(nd(K,!0))return ie(K.left);if(Ih(K))return ie(K.expression);if(Ls(K))return kt(K.properties,ie);if(Gu(K))return kt(K.elements,ie);if(t_(K))return ie(K.name);if(qc(K))return ie(K.initializer);if(He(K)){const Pe=c.getReferencedExportContainer(K);return Pe!==void 0&&Pe.kind===308}else return!1}function he(K,Pe){if((K.operator===45||K.operator===46)&&He(K.operand)&&!xl(K.operand)&&!Vv(K.operand)&&!_O(K.operand)){const Z=mt(K.operand);if(Z){let Re,q=lt(K.operand,Hr,vt);Gv(K)?q=t.updatePrefixUnaryExpression(K,q):(q=t.updatePostfixUnaryExpression(K,q),Pe||(Re=t.createTempVariable(o),q=t.createAssignment(Re,q),ht(q,K)),q=t.createComma(q,t.cloneNode(K.operand)),ht(q,K));for(const Rt of Z)q=In(Rt,zt(q));return Re&&(q=t.createComma(q,Re),ht(q,K)),q}}return Bn(K,Hr,e)}function j(K){switch(K.kind){case 93:case 88:return}return K}function We(K,Pe,Z){if(Pe.kind===308){const Re=wl(Pe);O=Pe,k=h[Re],G=A[Re],X=L[Re],V=I[Re],X&&delete L[Re],y(K,Pe,Z),O=void 0,k=void 0,G=void 0,V=void 0,X=void 0}else y(K,Pe,Z)}function Ze(K,Pe){return Pe=d(K,Pe),it(Pe)?Pe:K===1?cn(Pe):K===4?Xe(Pe):Pe}function Xe(K){switch(K.kind){case 300:return Ut(K)}return K}function Ut(K){var Pe,Z;const Re=K.name;if(!xl(Re)&&!Vv(Re)){const q=c.getReferencedImportDeclaration(Re);if(q){if(Wm(q))return ht(t.createPropertyAssignment(t.cloneNode(Re),t.createPropertyAccessExpression(t.getGeneratedNameForNode(q.parent),t.createIdentifier("default"))),K);if(Ld(q))return ht(t.createPropertyAssignment(t.cloneNode(Re),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Z=(Pe=q.parent)==null?void 0:Pe.parent)==null?void 0:Z.parent)||q),t.cloneNode(q.propertyName||q.name))),K)}}return K}function cn(K){switch(K.kind){case 79:return Sn(K);case 223:return Er(K);case 233:return ue(K)}return K}function Sn(K){var Pe,Z;if(vo(K)&8192){const Re=a8(O);return Re?t.createPropertyAccessExpression(Re,K):K}if(!xl(K)&&!Vv(K)){const Re=c.getReferencedImportDeclaration(K);if(Re){if(Wm(Re))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Re.parent),t.createIdentifier("default")),K);if(Ld(Re))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Z=(Pe=Re.parent)==null?void 0:Pe.parent)==null?void 0:Z.parent)||Re),t.cloneNode(Re.propertyName||Re.name)),K)}}return K}function Er(K){if(vy(K.operatorToken.kind)&&He(K.left)&&!xl(K.left)&&!Vv(K.left)&&!_O(K.left)){const Pe=mt(K.left);if(Pe){let Z=K;for(const Re of Pe)Z=In(Re,zt(Z));return Z}}return K}function ue(K){return qA(K)?t.createPropertyAccessExpression(V,t.createIdentifier("meta")):K}function mt(K){let Pe;if(!xl(K)){const Z=c.getReferencedImportDeclaration(K)||c.getReferencedValueDeclaration(K);if(Z){const Re=c.getReferencedExportContainer(K,!1);Re&&Re.kind===308&&(Pe=Fn(Pe,t.getDeclarationName(Z))),Pe=Ti(Pe,k&&k.exportedBindings[wl(Z)])}}return Pe}function zt(K){return X===void 0&&(X=[]),X[ms(K)]=!0,K}function it(K){return X&&K.id&&X[K.id]}}var z5e=C({"src/compiler/transformers/module/system.ts"(){Oa()}});function oY(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),c=es(s),f=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=te,e.onSubstituteNode=X,e.enableEmitNotification(308),e.enableSubstitution(79);let y,h,E;return Y_(e,A);function A(P){if(P.isDeclarationFile)return P;if(Zl(P)||H_(s)){h=P,E=void 0;let de=L(P);return h=void 0,E&&(de=t.updateSourceFile(de,ht(t.createNodeArray(Az(de.statements.slice(),E)),de.statements))),!Zl(P)||kt(de.statements,pN)?de:t.updateSourceFile(de,ht(t.createNodeArray([...de.statements,n8(t)]),de.statements))}return P}function L(P){const de=xK(t,r(),P,s);if(de){const re=[],ye=t.copyPrologue(P.statements,re);return Fn(re,de),Ti(re,Jn(P.statements,I,wa,ye)),t.updateSourceFile(P,ht(t.createNodeArray(re),P.statements))}else return Bn(P,I,e)}function I(P){switch(P.kind){case 268:return au(s)>=100?k(P):void 0;case 274:return V(P);case 275:return H(P)}return P}function O(P){const de=Xx(t,P,D.checkDefined(h),i,o,s),re=[];if(de&&re.push(de),!E){const ae=t.createUniqueName("_createRequire",48),W=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ae)])),t.createStringLiteral("module")),ce=t.createUniqueName("__require",48),me=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ce,void 0,void 0,t.createCallExpression(t.cloneNode(ae),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));E=[W,me]}const ye=E[1].declarationList.declarations[0].name;return D.assertNode(ye,He),t.createCallExpression(t.cloneNode(ye),void 0,re)}function k(P){D.assert(X0(P),"import= for internal module references should be handled in an earlier transformer.");let de;return de=Fn(de,Wr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(P.name),void 0,void 0,O(P))],c>=2?2:0)),P),P)),de=G(de,P),Cm(de)}function G(P,de){return Yr(de,1)&&(P=Fn(P,t.createExportDeclaration(void 0,de.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Mr(de.name))])))),P}function V(P){return P.isExportEquals?void 0:P}function H(P){if(s.module!==void 0&&s.module>5||!P.exportClause||!kh(P.exportClause)||!P.moduleSpecifier)return P;const de=P.exportClause.name,re=t.getGeneratedNameForNode(de),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(re)),P.moduleSpecifier,P.assertClause);Wr(ye,P.exportClause);const ae=m3(P)?t.createExportDefault(re):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,re,de)]));return Wr(ae,P),[ye,ae]}function te(P,de,re){qi(de)?((Zl(de)||H_(s))&&s.importHelpers&&(y=new Map),f(P,de,re),y=void 0):f(P,de,re)}function X(P,de){return de=d(P,de),y&&He(de)&&vo(de)&8192?Y(de):de}function Y(P){const de=Mr(P);let re=y.get(de);return re||y.set(de,re=t.createUniqueName(de,48)),re}}var q5e=C({"src/compiler/transformers/module/esnextAnd2015.ts"(){Oa()}});function Sye(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=oY(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const c=aY(e),f=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=h,e.onEmitNode=E,e.enableSubstitution(308),e.enableEmitNotification(308);let y;return I;function h(k,G){return qi(G)?(y=G,t(k,G)):y?y.impliedNodeFormat===99?o(k,G):f(k,G):t(k,G)}function E(k,G,V){return qi(G)&&(y=G),y?y.impliedNodeFormat===99?s(k,G,V):d(k,G,V):r(k,G,V)}function A(k){return k.impliedNodeFormat===99?i:c}function L(k){if(k.isDeclarationFile)return k;y=k;const G=A(k)(k);return y=void 0,D.assert(qi(G)),G}function I(k){return k.kind===308?L(k):O(k)}function O(k){return e.factory.createBundle(Vt(k.sourceFiles,L),k.prepends)}}var J5e=C({"src/compiler/transformers/module/node.ts"(){Oa()}});function bF(e){return Ki(e)||to(e)||If(e)||ps(e)||gy(e)||kv(e)||qO(e)||AC(e)||ac(e)||Ch(e)||yc(e)||Ba(e)||Bl(e)||xy(e)||su(e)||nm(e)||ql(e)||Mx(e)||Fr(e)||h_(e)}function xye(e){if(gy(e)||kv(e))return t;return Ch(e)||ac(e)?i:Iy(e);function t(s){const c=r(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function r(s){return Ja(e)?s.errorModuleName?s.accessibility===2?_.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:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.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:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.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}function i(s){const c=o(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function o(s){return Ja(e)?s.errorModuleName?s.accessibility===2?_.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:_.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.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:_.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.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}}function Iy(e){if(Ki(e)||to(e)||If(e)||Fr(e)||ps(e)||ql(e))return r;return gy(e)||kv(e)?i:qO(e)||AC(e)||ac(e)||Ch(e)||yc(e)||Mx(e)?o:Ba(e)?tf(e,e.parent)&&Yr(e.parent,8)?r:s:Bl(e)?f:xy(e)?d:su(e)?y:nm(e)||h_(e)?h:D.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${D.formatSyntaxKind(e.kind)}`);function t(E){if(e.kind===257||e.kind===205)return E.errorModuleName?E.accessibility===2?_.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:_.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===169||e.kind===208||e.kind===168||e.kind===166&&Yr(e.parent,8))return Ja(e)?E.errorModuleName?E.accessibility===2?_.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:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260||e.kind===166?E.errorModuleName?E.accessibility===2?_.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:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:E.errorModuleName?_.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}function r(E){const A=t(E);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function i(E){let A;return e.kind===175?Ja(e)?A=E.errorModuleName?_.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:A=E.errorModuleName?_.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:Ja(e)?A=E.errorModuleName?E.accessibility===2?_.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:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:A=E.errorModuleName?E.accessibility===2?_.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:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:e.name,typeName:e.name}}function o(E){let A;switch(e.kind){case 177:A=E.errorModuleName?_.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;break;case 176:A=E.errorModuleName?_.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;break;case 178:A=E.errorModuleName?_.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;break;case 171:case 170:Ja(e)?A=E.errorModuleName?E.accessibility===2?_.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:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===260?A=E.errorModuleName?E.accessibility===2?_.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:_.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:A=E.errorModuleName?_.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;break;case 259:A=E.errorModuleName?E.accessibility===2?_.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:_.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return D.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function s(E){const A=c(E);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function c(E){switch(e.parent.kind){case 173:return E.errorModuleName?E.accessibility===2?_.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:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return E.errorModuleName?_.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;case 176:return E.errorModuleName?_.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;case 178:return E.errorModuleName?_.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;case 171:case 170:return Ja(e.parent)?E.errorModuleName?E.accessibility===2?_.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:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?E.errorModuleName?E.accessibility===2?_.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:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:E.errorModuleName?_.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;case 259:case 181:return E.errorModuleName?E.accessibility===2?_.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:_.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return E.errorModuleName?E.accessibility===2?_.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return D.fail(`Unknown parent for parameter: ${D.formatSyntaxKind(e.parent.kind)}`)}}function f(){let E;switch(e.parent.kind){case 260:E=_.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:E=_.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:E=_.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:E=_.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:E=_.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:Ja(e.parent)?E=_.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?E=_.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:E=_.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:E=_.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:E=_.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:E=_.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return D.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:E,errorNode:e,typeName:e.name}}function d(){let E;return Nc(e.parent.parent)?E=Vd(e.parent)&&e.parent.token===117?_.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_.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:E=_.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e,typeName:ka(e.parent.parent)}}function y(){return{diagnosticMessage:_.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function h(E){return{diagnosticMessage:E.errorModuleName?_.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:h_(e)?D.checkDefined(e.typeExpression):e.type,typeName:h_(e)?ka(e):e.name}}}var K5e=C({"src/compiler/transformers/declarations/diagnostics.ts"(){Oa()}});function Aye(e,t,r){const i=e.getCompilerOptions();return z8(t,e,N,i,r?[r]:lr(e.getSourceFiles(),Yz),[lY],!1).diagnostics}function Cye(e,t){const r=t.text.substring(e.pos,e.end);return pu(r,"@internal")}function sY(e,t){const r=Ea(e);if(r&&r.kind===166){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,c=t.text,f=s?ba(W0(c,Jo(c,s.end+1,!1,!0)),mh(c,e.pos)):W0(c,Jo(c,e.pos,!1,!0));return f&&f.length&&Cye(zo(f),t)}const i=r&&jz(r,t);return!!Ue(i,o=>Cye(o,t))}function lY(e){const t=()=>D.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,c=!1,f=!1,d,y,h,E,A,L;const{factory:I}=e,O=e.getEmitHost(),k={trackSymbol:ve,reportInaccessibleThisError:Ge,reportInaccessibleUniqueSymbolError:Qe,reportCyclicStructureError:je,reportPrivateInBaseOfClassExpression:Se,reportLikelyUnsafeImportRequiredError:qe,reportTruncationError:Oe,moduleResolverHost:O,trackReferencedAmbientModule:W,trackExternalModuleSymbolOfImportTypeNode:me,reportNonlocalAugmentation:Me,reportNonSerializableProperty:Ye,reportImportTypeNodeResolutionModeOverride:ze};let G,V,H,te,X,Y;const P=e.getEmitResolver(),de=e.getCompilerOptions(),{noResolve:re,stripInternal:ye}=de;return st;function ae(j){if(j){y=y||new Set;for(const We of j)y.add(We)}}function W(j,We){const Ze=P.getTypeReferenceDirectivesForSymbol(We,67108863);if(Ae(Ze))return ae(Ze);const Xe=Zn(j);te.set(wl(Xe),Xe)}function ce(j){if(j.accessibility===0){if(j&&j.aliasesToMakeVisible)if(!h)h=j.aliasesToMakeVisible;else for(const We of j.aliasesToMakeVisible)f_(h,We)}else{const We=r(j);if(We)return We.typeName?e.addDiagnostic(Nr(j.errorNode||We.errorNode,We.diagnosticMessage,xc(We.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Nr(j.errorNode||We.errorNode,We.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function me(j){o||(L||(L=[])).push(j)}function ve(j,We,Ze){if(j.flags&262144)return!1;const Xe=ce(P.isSymbolAccessible(j,We,Ze,!0));return ae(P.getTypeReferenceDirectivesForSymbol(j,Ze)),Xe}function Se(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ee(){return G?ws(G):V&&ka(V)?ws(ka(V)):V&&Gl(V)?V.isExportEquals?"export=":"default":"(Missing)"}function Qe(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ee(),"unique symbol"))}function je(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ee()))}function Ge(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ee(),"this"))}function qe(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ee(),j))}function Oe(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Me(j,We,Ze){var Xe;const Ut=(Xe=We.declarations)==null?void 0:Xe.find(Sn=>Zn(Sn)===j),cn=lr(Ze.declarations,Sn=>Zn(Sn)!==j);if(Ut&&cn)for(const Sn of cn)e.addDiagnostic(Ko(Nr(Sn,_.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Nr(Ut,_.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ye(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function ze(){!iO()&&(G||V)&&e.addDiagnostic(Nr(G||V,_.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Fe(j,We){const Ze=r;r=Ut=>Ut.errorNode&&bF(Ut.errorNode)?Iy(Ut.errorNode)(Ut):{diagnosticMessage:Ut.errorModuleName?_.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ut.errorNode||j};const Xe=P.getDeclarationStatementsForSourceFile(j,z1,k,We);return r=Ze,Xe}function st(j){if(j.kind===308&&j.isDeclarationFile)return j;if(j.kind===309){o=!0,te=new Map,X=new Map;let zt=!1;const it=I.createBundle(Vt(j.sourceFiles,Z=>{if(Z.isDeclarationFile)return;if(zt=zt||Z.hasNoDefaultLib,H=Z,d=Z,h=void 0,A=!1,E=new Map,r=t,c=!1,f=!1,Ct(Z,te),Et(Z,X),of(Z)||m_(Z)){s=!1,i=!1;const q=td(Z)?I.createNodeArray(Fe(Z,!0)):Jn(Z.statements,gi,wa);return I.updateSourceFile(Z,[I.createModuleDeclaration([I.createModifier(136)],I.createStringLiteral(X3(e.getEmitHost(),Z)),I.createModuleBlock(ht(I.createNodeArray(rr(q)),Z.statements)))],!0,[],[],!1,[])}i=!0;const Re=td(Z)?I.createNodeArray(Fe(Z)):Jn(Z.statements,gi,wa);return I.updateSourceFile(Z,rr(Re),!0,[],[],!1,[])}),ia(j.prepends,Z=>{if(Z.kind===311){const Re=OJ(Z,"dts",ye);return zt=zt||!!Re.hasNoDefaultLib,Ct(Re,te),ae(Vt(Re.typeReferenceDirectives,q=>[q.fileName,q.resolutionMode])),Et(Re,X),Re}return Z}));it.syntheticFileReferences=[],it.syntheticTypeReferences=Er(),it.syntheticLibReferences=Sn(),it.hasNoDefaultLib=zt;const K=hi(Qc(bw(j,O,!0).declarationFilePath)),Pe=mt(it.syntheticFileReferences,K);return te.forEach(Pe),it}i=!0,c=!1,f=!1,d=j,H=j,r=t,o=!1,s=!1,A=!1,h=void 0,E=new Map,y=void 0,te=Ct(H,new Map),X=Et(H,new Map);const We=[],Ze=hi(Qc(bw(j,O,!0).declarationFilePath)),Xe=mt(We,Ze);let Ut;if(td(H))Ut=I.createNodeArray(Fe(j)),te.forEach(Xe),Y=lr(Ut,fT);else{const zt=Jn(j.statements,gi,wa);Ut=ht(I.createNodeArray(rr(zt)),j.statements),te.forEach(Xe),Y=lr(Ut,fT),Zl(j)&&(!s||c&&!f)&&(Ut=ht(I.createNodeArray([...Ut,n8(I)]),Ut))}const cn=I.updateSourceFile(j,Ut,!0,We,Er(),j.hasNoDefaultLib,Sn());return cn.exportedModulesFromDeclarationEmit=L,cn;function Sn(){return Ro(X.keys(),zt=>({fileName:zt,pos:-1,end:-1}))}function Er(){return y?ia(Ro(y.keys()),ue):[]}function ue([zt,it]){if(Y){for(const K of Y)if(su(K)&&zm(K.moduleReference)){const Pe=K.moduleReference.expression;if(xs(Pe)&&Pe.text===zt)return}else if(zc(K)&&Vo(K.moduleSpecifier)&&K.moduleSpecifier.text===zt)return}return{fileName:zt,pos:-1,end:-1,...it?{resolutionMode:it}:void 0}}function mt(zt,it){return K=>{let Pe;if(K.isDeclarationFile)Pe=K.fileName;else{if(o&&jr(j.sourceFiles,K))return;const Z=bw(K,O,!0);Pe=Z.declarationFilePath||Z.jsFilePath||K.fileName}if(Pe){const Z=rF(de,H,zs(it,O.getCurrentDirectory(),O.getCanonicalFileName),zs(Pe,O.getCurrentDirectory(),O.getCanonicalFileName),O);if(!Sf(Z)){ae([[Z,void 0]]);return}let Re=ax(it,Pe,O.getCurrentDirectory(),O.getCanonicalFileName,!1);if(xa(Re,"./")&&kA(Re)&&(Re=Re.substring(2)),xa(Re,"node_modules/")||Zx(Re))return;zt.push({pos:-1,end:-1,fileName:Re})}}}}function Ct(j,We){return re||!NT(j)&&td(j)||Ue(j.referencedFiles,Ze=>{const Xe=O.getSourceFileFromReference(j,Ze);Xe&&We.set(wl(Xe),Xe)}),We}function Et(j,We){return Ue(j.libReferenceDirectives,Ze=>{O.getLibFileFromReference(Ze)&&We.set(O_(Ze.fileName),!0)}),We}function jt(j){if(j.kind===79)return j;return j.kind===204?I.updateArrayBindingPattern(j,Jn(j.elements,We,i3)):I.updateObjectBindingPattern(j,Jn(j.elements,We,ps));function We(Ze){return Ze.kind===229?Ze:Ze.propertyName&&He(Ze.propertyName)&&He(Ze.name)&&!Ze.symbol.isReferenced&&!W3(Ze.propertyName)?I.updateBindingElement(Ze,Ze.dotDotDotToken,void 0,Ze.propertyName,at(Ze)?Ze.initializer:void 0):I.updateBindingElement(Ze,Ze.dotDotDotToken,Ze.propertyName,jt(Ze.name),at(Ze)?Ze.initializer:void 0)}}function tt(j,We,Ze){let Xe;A||(Xe=r,r=Iy(j));const Ut=I.updateParameterDeclaration(j,Y5e(j,We),j.dotDotDotToken,jt(j.name),P.isOptionalParameter(j)?j.questionToken||I.createToken(57):void 0,Qt(j,Ze||j.type,!0),sn(j));return A||(r=Xe),Ut}function at(j){return $5e(j)&&P.isLiteralConstDeclaration(Ea(j))}function sn(j){if(at(j))return P.createLiteralConstValue(Ea(j),k)}function Qt(j,We,Ze){if(!Ze&&Bd(j,8)||at(j))return;const Xe=j.kind===166&&(P.isRequiredInitializedParameter(j)||P.isOptionalUninitializedParameterProperty(j));if(We&&!Xe)return lt(We,cr,Gi);if(!Ea(j))return We?lt(We,cr,Gi):I.createKeywordTypeNode(131);if(j.kind===175)return I.createKeywordTypeNode(131);G=j.name;let Ut;if(A||(Ut=r,r=Iy(j)),j.kind===257||j.kind===205)return cn(P.createTypeOfDeclaration(j,d,z1,k));if(j.kind===166||j.kind===169||j.kind===168)return If(j)||!j.initializer?cn(P.createTypeOfDeclaration(j,d,z1,k,Xe)):cn(P.createTypeOfDeclaration(j,d,z1,k,Xe)||P.createTypeOfExpression(j.initializer,d,z1,k));return cn(P.createReturnTypeOfSignatureDeclaration(j,d,z1,k));function cn(Sn){return G=void 0,A||(r=Ut),Sn||I.createKeywordTypeNode(131)}}function On(j){switch(j=Ea(j),j.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!P.isDeclarationVisible(j);case 257:return!In(j);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function jn(j){var We;if(j.body)return!0;const Ze=(We=j.symbol.declarations)==null?void 0:We.filter(Xe=>yc(Xe)&&!Xe.body);return!Ze||Ze.indexOf(j)===Ze.length-1}function In(j){return Rc(j)?!1:Xa(j.name)?kt(j.name.elements,In):P.isDeclarationVisible(j)}function Zt(j,We,Ze){if(Bd(j,8))return I.createNodeArray();const Xe=Vt(We,Ut=>tt(Ut,Ze));return Xe?I.createNodeArray(Xe,We.hasTrailingComma):I.createNodeArray()}function _r(j,We){let Ze;if(!We){const Xe=L1(j);Xe&&(Ze=[tt(Xe)])}if(e_(j)){let Xe;if(!We){const Ut=pk(j);if(Ut){const cn=ie(j,P.getAllAccessorDeclarations(j));Xe=tt(Ut,void 0,cn)}}Xe||(Xe=I.createParameterDeclaration(void 0,void 0,"value")),Ze=Fn(Ze,Xe)}return I.createNodeArray(Ze||rt)}function Ii(j,We){return Bd(j,8)?void 0:Jn(We,cr,Bl)}function $i(j){return qi(j)||nm(j)||Jl(j)||Nc(j)||id(j)||Ka(j)||Mx(j)||Kk(j)}function Qi(j,We){const Ze=P.isEntityNameVisible(j,We);ce(Ze),ae(P.getTypeReferenceDirectivesForEntityName(j))}function Or(j,We){return xf(j)&&xf(We)&&(j.jsDoc=We.jsDoc),Wc(j,jm(We))}function At(j,We){if(We){if(s=s||j.kind!==264&&j.kind!==202,xs(We))if(o){const Ze=Nfe(e.getEmitHost(),P,j);if(Ze)return I.createStringLiteral(Ze)}else{const Ze=P.getSymbolOfExternalModuleSpecifier(We);Ze&&(L||(L=[])).push(Ze)}return We}}function vn(j){if(P.isDeclarationVisible(j))if(j.moduleReference.kind===280){const We=ik(j);return I.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,I.updateExternalModuleReference(j.moduleReference,At(j,We)))}else{const We=r;return r=Iy(j),Qi(j.moduleReference,d),r=We,j}}function Wt(j){if(!j.importClause)return I.updateImportDeclaration(j,j.modifiers,j.importClause,At(j,j.moduleSpecifier),dn(j.assertClause));const We=j.importClause&&j.importClause.name&&P.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return We&&I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,We,void 0),At(j,j.moduleSpecifier),dn(j.assertClause));if(j.importClause.namedBindings.kind===271){const Xe=P.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return We||Xe?I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,We,Xe),At(j,j.moduleSpecifier),dn(j.assertClause)):void 0}const Ze=ia(j.importClause.namedBindings.elements,Xe=>P.isDeclarationVisible(Xe)?Xe:void 0);if(Ze&&Ze.length||We)return I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,We,Ze&&Ze.length?I.updateNamedImports(j.importClause.namedBindings,Ze):void 0),At(j,j.moduleSpecifier),dn(j.assertClause));if(P.isImportRequiredByAugmentation(j))return I.updateImportDeclaration(j,j.modifiers,void 0,At(j,j.moduleSpecifier),dn(j.assertClause))}function dn(j){if(t2(j)!==void 0)return iO()||e.addDiagnostic(Nr(j,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),j}function rr(j){for(;Ae(h);){const Ze=h.shift();if(!g3(Ze))return D.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${D.formatSyntaxKind(Ze.kind)}`);const Xe=i;i=Ze.parent&&qi(Ze.parent)&&!(Zl(Ze.parent)&&o);const Ut=an(Ze);i=Xe,E.set(wl(Ze),Ut)}return Jn(j,We,wa);function We(Ze){if(g3(Ze)){const Xe=wl(Ze);if(E.has(Xe)){const Ut=E.get(Xe);return E.delete(Xe),Ut&&((Va(Ut)?kt(Ut,a3):a3(Ut))&&(c=!0),qi(Ze.parent)&&(Va(Ut)?kt(Ut,pN):pN(Ut))&&(s=!0)),Ut}}return Ze}}function cr(j){if(yt(j)||vu(j)&&(On(j)||Nv(j)&&!P.isLateBound(Ea(j)))||Ka(j)&&P.isImplementationOfOverload(j)||jpe(j))return;let We;$i(j)&&(We=d,d=j);const Ze=r,Xe=bF(j),Ut=A;let cn=(j.kind===184||j.kind===197)&&j.parent.kind!==262;if((ac(j)||Ch(j))&&Bd(j,8))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:Sn(I.createPropertyDeclaration(pt(j),j.name,void 0,void 0,void 0));if(Xe&&!A&&(r=Iy(j)),qk(j)&&Qi(j.exprName,d),cn&&(A=!0),Z5e(j))switch(j.kind){case 230:{(nf(j.expression)||zl(j.expression))&&Qi(j.expression,d);const Er=Bn(j,cr,e);return Sn(I.updateExpressionWithTypeArguments(Er,Er.expression,Er.typeArguments))}case 180:{Qi(j.typeName,d);const Er=Bn(j,cr,e);return Sn(I.updateTypeReferenceNode(Er,Er.typeName,Er.typeArguments))}case 177:return Sn(I.updateConstructSignature(j,Ii(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 173:{const Er=I.createConstructorDeclaration(pt(j),Zt(j,j.parameters,0),void 0);return Sn(Er)}case 171:{if(Ni(j.name))return Sn(void 0);const Er=I.createMethodDeclaration(pt(j),void 0,j.name,j.questionToken,Ii(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type),void 0);return Sn(Er)}case 174:{if(Ni(j.name))return Sn(void 0);const Er=ie(j,P.getAllAccessorDeclarations(j));return Sn(I.updateGetAccessorDeclaration(j,pt(j),j.name,_r(j,Bd(j,8)),Qt(j,Er),void 0))}case 175:return Ni(j.name)?Sn(void 0):Sn(I.updateSetAccessorDeclaration(j,pt(j),j.name,_r(j,Bd(j,8)),void 0));case 169:return Ni(j.name)?Sn(void 0):Sn(I.updatePropertyDeclaration(j,pt(j),j.name,j.questionToken,Qt(j,j.type),sn(j)));case 168:return Ni(j.name)?Sn(void 0):Sn(I.updatePropertySignature(j,pt(j),j.name,j.questionToken,Qt(j,j.type)));case 170:return Ni(j.name)?Sn(void 0):Sn(I.updateMethodSignature(j,pt(j),j.name,j.questionToken,Ii(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 176:return Sn(I.updateCallSignature(j,Ii(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 178:return Sn(I.updateIndexSignature(j,pt(j),Zt(j,j.parameters),lt(j.type,cr,Gi)||I.createKeywordTypeNode(131)));case 257:return Xa(j.name)?Ar(j.name):(cn=!0,A=!0,Sn(I.updateVariableDeclaration(j,j.name,void 0,Qt(j,j.type),sn(j))));case 165:return Pi(j)&&(j.default||j.constraint)?Sn(I.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):Sn(Bn(j,cr,e));case 191:{const Er=lt(j.checkType,cr,Gi),ue=lt(j.extendsType,cr,Gi),mt=d;d=j.trueType;const zt=lt(j.trueType,cr,Gi);d=mt;const it=lt(j.falseType,cr,Gi);return D.assert(Er),D.assert(ue),D.assert(zt),D.assert(it),Sn(I.updateConditionalTypeNode(j,Er,ue,zt,it))}case 181:return Sn(I.updateFunctionTypeNode(j,Jn(j.typeParameters,cr,Bl),Zt(j,j.parameters),D.checkDefined(lt(j.type,cr,Gi))));case 182:return Sn(I.updateConstructorTypeNode(j,pt(j),Jn(j.typeParameters,cr,Bl),Zt(j,j.parameters),D.checkDefined(lt(j.type,cr,Gi))));case 202:return K0(j)?Sn(I.updateImportTypeNode(j,I.updateLiteralTypeNode(j.argument,At(j,j.argument.literal)),j.assertions,j.qualifier,Jn(j.typeArguments,cr,Gi),j.isTypeOf)):Sn(j);default:D.assertNever(j,`Attempted to process unhandled node kind: ${D.formatSyntaxKind(j.kind)}`)}return CC(j)&&ol(H,j.pos).line===ol(H,j.end).line&&or(j,1),Sn(Bn(j,cr,e));function Sn(Er){return Er&&Xe&&Nv(j)&&we(j),$i(j)&&(d=We),Xe&&!A&&(r=Ze),cn&&(A=Ut),Er===j?Er:Er&&Wr(Or(Er,j),j)}}function Pi(j){return j.parent.kind===171&&Bd(j.parent,8)}function gi(j){if(!Q5e(j)||yt(j))return;switch(j.kind){case 275:return qi(j.parent)&&(s=!0),f=!0,I.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,At(j,j.moduleSpecifier),t2(j.assertClause)?j.assertClause:void 0);case 274:{if(qi(j.parent)&&(s=!0),f=!0,j.expression.kind===79)return j;{const Ze=I.createUniqueName("_default",16);r=()=>({diagnosticMessage:_.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),V=j;const Xe=I.createVariableDeclaration(Ze,void 0,P.createTypeOfExpression(j.expression,j,z1,k),void 0);V=void 0;const Ut=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([Xe],2));return Or(Ut,j),PO(j),[Ut,I.updateExportAssignment(j,j.modifiers,Ze)]}}}const We=an(j);return E.set(wl(j),We),j}function Rn(j){if(su(j)||Bd(j,1024)||!X_(j))return j;const We=I.createModifiersFromModifierFlags(Fu(j)&258046);return I.updateModifiers(j,We)}function an(j){if(h)for(;dM(h,j););if(yt(j))return;switch(j.kind){case 268:return vn(j);case 269:return Wt(j)}if(vu(j)&&On(j)||Ka(j)&&P.isImplementationOfOverload(j))return;let We;$i(j)&&(We=d,d=j);const Ze=bF(j),Xe=r;Ze&&(r=Iy(j));const Ut=i;switch(j.kind){case 262:{i=!1;const Sn=cn(I.updateTypeAliasDeclaration(j,pt(j),j.name,Jn(j.typeParameters,cr,Bl),D.checkDefined(lt(j.type,cr,Gi))));return i=Ut,Sn}case 261:return cn(I.updateInterfaceDeclaration(j,pt(j),j.name,Ii(j,j.typeParameters),he(j.heritageClauses),Jn(j.members,cr,sT)));case 259:{const Sn=cn(I.updateFunctionDeclaration(j,pt(j),void 0,j.name,Ii(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type),void 0));if(Sn&&P.isExpandoFunctionDeclaration(j)&&jn(j)){const Er=P.getPropertiesOfContainerFunction(j),ue=Jm.createModuleDeclaration(void 0,Sn.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);Uo(ue,d),ue.locals=so(Er),ue.symbol=Er[0].parent;const mt=[];let zt=ia(Er,q=>{if(!q.valueDeclaration||!Fr(q.valueDeclaration))return;r=Iy(q.valueDeclaration);const Rt=P.createTypeOfDeclaration(q.valueDeclaration,ue,z1,k);r=Xe;const gt=ta(q.escapedName),ft=vx(gt),_n=ft?I.getGeneratedNameForNode(q.valueDeclaration):I.createIdentifier(gt);ft&&mt.push([_n,gt]);const $n=I.createVariableDeclaration(_n,void 0,Rt,void 0);return I.createVariableStatement(ft?void 0:[I.createToken(93)],I.createVariableDeclarationList([$n]))});mt.length?zt.push(I.createExportDeclaration(void 0,!1,I.createNamedExports(Vt(mt,([q,Rt])=>I.createExportSpecifier(!1,q,Rt))))):zt=ia(zt,q=>I.updateModifiers(q,0));const it=I.createModuleDeclaration(pt(j),j.name,I.createModuleBlock(zt),16);if(!Bd(Sn,1024))return[Sn,it];const K=I.createModifiersFromModifierFlags(Fu(Sn)&-1026|2),Pe=I.updateFunctionDeclaration(Sn,K,void 0,Sn.name,Sn.typeParameters,Sn.parameters,Sn.type,void 0),Z=I.updateModuleDeclaration(it,K,it.name,it.body),Re=I.createExportAssignment(void 0,!1,it.name);return qi(j.parent)&&(s=!0),f=!0,[Pe,Z,Re]}else return Sn}case 264:{i=!1;const Sn=j.body;if(Sn&&Sn.kind===265){const Er=c,ue=f;f=!1,c=!1;const mt=Jn(Sn.statements,gi,wa);let zt=rr(mt);j.flags&16777216&&(c=!1),!Yp(j)&&!Ce(zt)&&!f&&(c?zt=I.createNodeArray([...zt,n8(I)]):zt=Jn(zt,Rn,wa));const it=I.updateModuleBlock(Sn,zt);i=Ut,c=Er,f=ue;const K=pt(j);return cn(I.updateModuleDeclaration(j,K,b1(j)?At(j,j.name):j.name,it))}else{i=Ut;const Er=pt(j);i=!1,lt(Sn,gi);const ue=wl(Sn),mt=E.get(ue);return E.delete(ue),cn(I.updateModuleDeclaration(j,Er,j.name,mt))}}case 260:{G=j.name,V=j;const Sn=I.createNodeArray(pt(j)),Er=Ii(j,j.typeParameters),ue=Th(j);let mt;if(ue){const Re=r;mt=CR(ma(ue.parameters,q=>{if(!Yr(q,16476)||yt(q))return;if(r=Iy(q),q.name.kind===79)return Or(I.createPropertyDeclaration(pt(q),q.name,q.questionToken,Qt(q,q.type),sn(q)),q);return Rt(q.name);function Rt(gt){let ft;for(const _n of gt.elements)Rc(_n)||(Xa(_n.name)&&(ft=ba(ft,Rt(_n.name))),ft=ft||[],ft.push(I.createPropertyDeclaration(pt(q),_n.name,void 0,Qt(_n,void 0),void 0)));return ft}})),r=Re}const it=kt(j.members,Re=>!!Re.name&&Ni(Re.name))?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,K=ba(ba(it,mt),Jn(j.members,cr,Vc)),Pe=I.createNodeArray(K),Z=$p(j);if(Z&&!zl(Z.expression)&&Z.expression.kind!==104){const Re=j.name?ta(j.name.escapedText):"default",q=I.createUniqueName(`${Re}_base`,16);r=()=>({diagnosticMessage:_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Z,typeName:j.name});const Rt=I.createVariableDeclaration(q,void 0,P.createTypeOfExpression(Z.expression,j,z1,k),void 0),gt=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([Rt],2)),ft=I.createNodeArray(Vt(j.heritageClauses,_n=>{if(_n.token===94){const $n=r;r=Iy(_n.types[0]);const oi=I.updateHeritageClause(_n,Vt(_n.types,Ai=>I.updateExpressionWithTypeArguments(Ai,q,Jn(Ai.typeArguments,cr,Gi))));return r=$n,oi}return I.updateHeritageClause(_n,Jn(I.createNodeArray(lr(_n.types,$n=>zl($n.expression)||$n.expression.kind===104)),cr,xy))}));return[gt,cn(I.updateClassDeclaration(j,Sn,j.name,Er,ft,Pe))]}else{const Re=he(j.heritageClauses);return cn(I.updateClassDeclaration(j,Sn,j.name,Er,Re,Pe))}}case 240:return cn(Pn(j));case 263:return cn(I.updateEnumDeclaration(j,I.createNodeArray(pt(j)),j.name,I.createNodeArray(ia(j.members,Sn=>{if(yt(Sn))return;const Er=P.getConstantValue(Sn);return Or(I.updateEnumMember(Sn,Sn.name,Er!==void 0?typeof Er=="string"?I.createStringLiteral(Er):I.createNumericLiteral(Er):void 0),Sn)}))))}return D.assertNever(j,`Unhandled top-level node in declaration emit: ${D.formatSyntaxKind(j.kind)}`);function cn(Sn){return $i(j)&&(d=We),Ze&&(r=Xe),j.kind===264&&(i=Ut),Sn===j?Sn:(V=void 0,G=void 0,Sn&&Wr(Or(Sn,j),j))}}function Pn(j){if(!Ue(j.declarationList.declarations,In))return;const We=Jn(j.declarationList.declarations,cr,Ki);if(Ae(We))return I.updateVariableStatement(j,I.createNodeArray(pt(j)),I.updateVariableDeclarationList(j.declarationList,We))}function Ar(j){return is(ia(j.elements,We=>Hr(We)))}function Hr(j){if(j.kind!==229&&j.name)return In(j)?Xa(j.name)?Ar(j.name):I.createVariableDeclaration(j.name,void 0,Qt(j,void 0),void 0):void 0}function we(j){let We;A||(We=r,r=xye(j)),G=j.name,D.assert(P.isLateBound(Ea(j)));const Xe=j.name.expression;Qi(Xe,d),A||(r=We),G=void 0}function yt(j){return!!ye&&!!j&&sY(j,H)}function Nt(j){return Gl(j)||eu(j)}function Ce(j){return kt(j,Nt)}function pt(j){const We=Fu(j),Ze=pe(j);return We===Ze?VX(j.modifiers,Xe=>ai(Xe,uo),uo):I.createModifiersFromModifierFlags(Ze)}function pe(j){let We=241147,Ze=i&&!X5e(j)?2:0;const Xe=j.parent.kind===308;return(!Xe||o&&Xe&&Zl(j.parent))&&(We^=2,Ze=0),Lye(j,We,Ze)}function ie(j,We){let Ze=cY(j);return!Ze&&j!==We.firstAccessor&&(Ze=cY(We.firstAccessor),r=Iy(We.firstAccessor)),!Ze&&We.secondAccessor&&j!==We.secondAccessor&&(Ze=cY(We.secondAccessor),r=Iy(We.secondAccessor)),Ze}function he(j){return I.createNodeArray(lr(Vt(j,We=>I.updateHeritageClause(We,Jn(I.createNodeArray(lr(We.types,Ze=>zl(Ze.expression)||We.token===94&&Ze.expression.kind===104)),cr,xy))),We=>We.types&&!!We.types.length))}}function X5e(e){return e.kind===261}function Y5e(e,t,r){return N.createModifiersFromModifierFlags(Lye(e,t,r))}function Lye(e,t=258043,r=0){let i=Fu(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function cY(e){if(e)return e.kind===174?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function $5e(e){switch(e.kind){case 169:case 168:return!Bd(e,8);case 166:case 257:return!0}return!1}function Q5e(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function Z5e(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}var z1,eFe=C({"src/compiler/transformers/declarations.ts"(){Oa(),NX(),z1=531469}});function tFe(e){switch(e){case 99:case 7:case 6:case 5:return oY;case 4:return Tye;case 100:case 199:return Sye;default:return aY}}function uY(e,t,r){return{scriptTransformers:nFe(e,t,r),declarationTransformers:rFe(t)}}function nFe(e,t,r){if(r)return rt;const i=es(e),o=au(e),s=yO(e),c=[];return Ti(c,t&&Vt(t.before,kye)),c.push(nye),e.experimentalDecorators?c.push(oye):(i<99||!s)&&c.push(sye),c.push(iye),Jq(e)&&c.push(pye),i<99&&c.push(_ye),i<8&&c.push(fye),i<7&&c.push(dye),i<6&&c.push(uye),i<5&&c.push(cye),i<4&&c.push(lye),i<3&&c.push(hye),i<2&&(c.push(yye),c.push(bye)),c.push(tFe(o)),i<1&&c.push(vye),Ti(c,t&&Vt(t.after,kye)),c}function rFe(e){const t=[];return t.push(lY),Ti(t,e&&Vt(e.afterDeclarations,aFe)),t}function iFe(e){return t=>sK(t)?e.transformBundle(t):e.transformSourceFile(t)}function Iye(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):iFe(i)}}function kye(e){return Iye(e,Y_)}function aFe(e){return Iye(e,(t,r)=>r)}function yw(e,t){return t}function W8(e,t,r){r(e,t)}function z8(e,t,r,i,o,s,c){var f,d;const y=new Array(361);let h,E,A,L=0,I=[],O=[],k=[],G=[],V=0,H=!1,te=[],X=0,Y,P,de=yw,re=W8,ye=0;const ae=[],W={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ed(()=>Ape(W)),startLexicalEnvironment:Fe,suspendLexicalEnvironment:st,resumeLexicalEnvironment:Ct,endLexicalEnvironment:Et,setLexicalEnvironmentFlags:jt,getLexicalEnvironmentFlags:tt,hoistVariableDeclaration:Me,hoistFunctionDeclaration:Ye,addInitializationStatement:ze,startBlockScope:at,endBlockScope:sn,addBlockScopedVariable:Qt,requestEmitHelper:On,readEmitHelpers:jn,enableSubstitution:ee,enableEmitNotification:Ge,isSubstitutionEnabled:Qe,isEmitNotificationEnabled:qe,get onSubstituteNode(){return de},set onSubstituteNode(Zt){D.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Zt!==void 0,"Value must not be 'undefined'"),de=Zt},get onEmitNode(){return re},set onEmitNode(Zt){D.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Zt!==void 0,"Value must not be 'undefined'"),re=Zt},addDiagnostic(Zt){ae.push(Zt)}};for(const Zt of o)UJ(Zn(Ea(Zt)));al("beforeTransform");const ce=s.map(Zt=>Zt(W)),me=Zt=>{for(const _r of ce)Zt=_r(Zt);return Zt};ye=1;const ve=[];for(const Zt of o)(f=bi)==null||f.push(bi.Phase.Emit,"transformNodes",Zt.kind===308?{path:Zt.path}:{kind:Zt.kind,pos:Zt.pos,end:Zt.end}),ve.push((c?me:Se)(Zt)),(d=bi)==null||d.pop();return ye=2,al("afterTransform"),Jf("transformTime","beforeTransform","afterTransform"),{transformed:ve,substituteNode:je,emitNodeWithNotification:Oe,isEmitNotificationEnabled:qe,dispose:In,diagnostics:ae};function Se(Zt){return Zt&&(!qi(Zt)||!Zt.isDeclarationFile)?me(Zt):Zt}function ee(Zt){D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),y[Zt]|=1}function Qe(Zt){return(y[Zt.kind]&1)!==0&&(vo(Zt)&8)===0}function je(Zt,_r){return D.assert(ye<3,"Cannot substitute a node after the result is disposed."),_r&&Qe(_r)&&de(Zt,_r)||_r}function Ge(Zt){D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),y[Zt]|=2}function qe(Zt){return(y[Zt.kind]&2)!==0||(vo(Zt)&4)!==0}function Oe(Zt,_r,Ii){D.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),_r&&(qe(_r)?re(Zt,_r,Ii):Ii(Zt,_r))}function Me(Zt){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const _r=or(r.createVariableDeclaration(Zt),128);h?h.push(_r):h=[_r],L&1&&(L|=2)}function Ye(Zt){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),or(Zt,2097152),E?E.push(Zt):E=[Zt]}function ze(Zt){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),or(Zt,2097152),A?A.push(Zt):A=[Zt]}function Fe(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is suspended."),I[V]=h,O[V]=E,k[V]=A,G[V]=L,V++,h=void 0,E=void 0,A=void 0,L=0}function st(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is already suspended."),H=!0}function Ct(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(H,"Lexical environment is not suspended."),H=!1}function Et(){D.assert(ye>0,"Cannot modify the lexical environment during initialization."),D.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is suspended.");let Zt;if(h||E||A){if(E&&(Zt=[...E]),h){const _r=r.createVariableStatement(void 0,r.createVariableDeclarationList(h));or(_r,2097152),Zt?Zt.push(_r):Zt=[_r]}A&&(Zt?Zt=[...Zt,...A]:Zt=[...A])}return V--,h=I[V],E=O[V],A=k[V],L=G[V],V===0&&(I=[],O=[],k=[],G=[]),Zt}function jt(Zt,_r){L=_r?L|Zt:L&~Zt}function tt(){return L}function at(){D.assert(ye>0,"Cannot start a block scope during initialization."),D.assert(ye<2,"Cannot start a block scope after transformation has completed."),te[X]=Y,X++,Y=void 0}function sn(){D.assert(ye>0,"Cannot end a block scope during initialization."),D.assert(ye<2,"Cannot end a block scope after transformation has completed.");const Zt=kt(Y)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(Y.map(_r=>r.createVariableDeclaration(_r)),1))]:void 0;return X--,Y=te[X],X===0&&(te=[]),Zt}function Qt(Zt){D.assert(X>0,"Cannot add a block scoped variable outside of an iteration body."),(Y||(Y=[])).push(Zt)}function On(Zt){if(D.assert(ye>0,"Cannot modify the transformation context during initialization."),D.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),D.assert(!Zt.scoped,"Cannot request a scoped emit helper."),Zt.dependencies)for(const _r of Zt.dependencies)On(_r);P=Fn(P,Zt)}function jn(){D.assert(ye>0,"Cannot modify the transformation context during initialization."),D.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const Zt=P;return P=void 0,Zt}function In(){if(ye<3){for(const Zt of o)UJ(Zn(Ea(Zt)));h=void 0,I=void 0,E=void 0,O=void 0,de=void 0,re=void 0,P=void 0,ye=3}}}var dY,Tg,oFe=C({"src/compiler/transformer.ts"(){Oa(),d1(),dY={scriptTransformers:rt,declarationTransformers:rt},Tg={factory:N,getCompilerOptions:()=>({}),getEmitResolver:Wa,getEmitHost:Wa,getEmitHelperFactory:Wa,startLexicalEnvironment:oo,resumeLexicalEnvironment:oo,suspendLexicalEnvironment:oo,endLexicalEnvironment:j0,setLexicalEnvironmentFlags:oo,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:oo,hoistFunctionDeclaration:oo,addInitializationStatement:oo,startBlockScope:oo,endBlockScope:j0,addBlockScopedVariable:oo,requestEmitHelper:oo,readEmitHelpers:Wa,enableSubstitution:oo,enableEmitNotification:oo,isSubstitutionEnabled:Wa,isEmitNotificationEnabled:Wa,onSubstituteNode:yw,onEmitNode:W8,addDiagnostic:oo}}});function wye(e){return cc(e,".tsbuildinfo")}function fY(e,t,r,i=!1,o,s){const c=Va(r)?r:Tq(e,r,i),f=e.getCompilerOptions();if(qs(f)){const d=e.getPrependNodes();if(c.length||d.length){const y=N.createBundle(c,d),h=t(bw(y,e,i),y);if(h)return h}}else{if(!o)for(const d of c){const y=t(bw(d,e,i),d);if(y)return y}if(s){const d=ky(f);if(d)return t({buildInfoPath:d},void 0)}}}function ky(e){const t=e.configFilePath;if(!hO(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=qs(e);let i;if(r)i=Gd(r);else{if(!t)return;const o=Gd(t);i=e.outDir?e.rootDir?Ev(e.outDir,wm(e.rootDir,o,!0)):Bi(e.outDir,mu(o)):o}return i+".tsbuildinfo"}function vw(e,t){const r=qs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&Dye(i,e),s=t||z_(e)?Gd(r)+".d.ts":void 0,c=s&&s7(e)?s+".map":void 0,f=ky(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:c,buildInfoPath:f}}function bw(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return vw(i,r);{const o=Ofe(e.fileName,t,_Y(e.fileName,i)),s=m_(e),c=s&&nT(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,f=i.emitDeclarationOnly||c?void 0:o,d=!f||m_(e)?void 0:Dye(f,i),y=r||z_(i)&&!s?Pfe(e.fileName,t):void 0,h=y&&s7(i)?y+".map":void 0;return{jsFilePath:f,sourceMapFilePath:d,declarationFilePath:y,declarationMapPath:h,buildInfoPath:void 0}}}function Dye(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function _Y(e,t){return cc(e,".json")?".json":t.jsx===1&&Sc(e,[".jsx",".tsx"])?".jsx":Sc(e,[".mts",".mjs"])?".mjs":Sc(e,[".cts",".cjs"])?".cjs":".js"}function Rye(e,t,r,i,o){return i?Ev(i,wm(o?o():Tw(t,r),e,r)):e}function Ew(e,t,r,i){return D1(Rye(e,t,r,t.options.declarationDir||t.options.outDir,i),bq(e))}function Nye(e,t,r,i){if(t.options.emitDeclarationOnly)return;const o=cc(e,".json"),s=D1(Rye(e,t,r,t.options.outDir,i),_Y(e,t.options));return!o||nT(e,s,D.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function Oye(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||rt}}function Pye(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:c}=vw(e.options,!1);t(r),t(i),t(o),t(s),t(c)}function Mye(e,t,r,i,o){if(fd(t))return;const s=Nye(t,e,r,o);if(i(s),!cc(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),z_(e.options))){const c=Ew(t,e,r,o);i(c),e.options.declarationMap&&i(`${c}.map`)}}function q8(e,t,r,i,o){let s;return e.rootDir?(s=Pa(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=hi(Qc(e.configFilePath)),o==null||o(s)):s=zye(t(),r,i),s&&s[s.length-1]!==Ms&&(s+=Ms),s}function Tw({options:e,fileNames:t},r){return q8(e,()=>lr(t,i=>!(e.noEmitForJsFiles&&Sc(i,Bk))&&!fd(i)),hi(Qc(D.checkDefined(e.configFilePath))),ru(!r))}function EF(e,t){const{addOutput:r,getOutputs:i}=Oye();if(qs(e.options))Pye(e,r);else{const o=Ed(()=>Tw(e,t));for(const s of e.fileNames)Mye(e,s,t,r,o);r(ky(e.options))}return i()}function sFe(e,t,r){t=qo(t),D.assert(jr(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=Oye();return qs(e.options)?Pye(e,i):Mye(e,t,r,i),o()}function pY(e,t){if(qs(e.options)){const{jsFilePath:o,declarationFilePath:s}=vw(e.options,!1);return D.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Ed(()=>Tw(e,t));for(const o of e.fileNames){if(fd(o))continue;const s=Nye(o,e,t,r);if(s)return s;if(!cc(o,".json")&&z_(e.options))return Ew(o,e,t,r)}const i=ky(e.options);return i||D.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function TF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,c,f){var d=t.getCompilerOptions(),y=d.sourceMap||d.inlineSourceMap||s7(d)?[]:void 0,h=d.listEmittedFiles?[]:void 0,E=sC(),A=tb(d),L=aO(A),{enter:I,exit:O}=bM("printTime","beforePrint","afterPrint"),k,G=!1;return I(),fY(t,V,Tq(t,r,f),f,c,!r),O(),{emitSkipped:G,diagnostics:E.getDiagnostics(),emittedFiles:h,sourceMaps:y};function V({jsFilePath:W,sourceMapFilePath:ce,declarationFilePath:me,declarationMapPath:ve,buildInfoPath:Se},ee){var Qe,je,Ge,qe,Oe,Me;let Ye;Se&&ee&&sK(ee)&&(Ye=hi(Pa(Se,t.getCurrentDirectory())),k={commonSourceDirectory:ze(t.getCommonSourceDirectory()),sourceFiles:ee.sourceFiles.map(Fe=>ze(Pa(Fe.fileName,t.getCurrentDirectory())))}),(Qe=bi)==null||Qe.push(bi.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:W}),te(ee,W,ce,ze),(je=bi)==null||je.pop(),(Ge=bi)==null||Ge.push(bi.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:me}),X(ee,me,ve,ze),(qe=bi)==null||qe.pop(),(Oe=bi)==null||Oe.push(bi.Phase.Emit,"emitBuildInfo",{buildInfoPath:Se}),H(k,Se),(Me=bi)==null||Me.pop(),!G&&h&&(s||(W&&h.push(W),ce&&h.push(ce),Se&&h.push(Se)),s!==0&&(me&&h.push(me),ve&&h.push(ve)));function ze(Fe){return _1(wm(Ye,Fe,t.getCanonicalFileName))}}function H(W,ce){if(!ce||r||G)return;if(t.isEmitBlocked(ce)){G=!0;return}const me=t.getBuildInfo(W)||J8(void 0,W);fk(t,E,ce,Fye(me),!1,void 0,{buildInfo:me})}function te(W,ce,me,ve){if(!W||s||!ce)return;if(t.isEmitBlocked(ce)||d.noEmit){G=!0;return}const Se=z8(e,t,N,d,[W],i,!1),ee={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:d.module,target:d.target,sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics,writeBundleFileInfo:!!k,relativeToBuildInfo:ve},Qe=q1(ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Se.emitNodeWithNotification,isEmitNotificationEnabled:Se.isEmitNotificationEnabled,substituteNode:Se.substituteNode});D.assert(Se.transformed.length===1,"Should only see one output from the transform"),P(ce,me,Se,Qe,d),Se.dispose(),k&&(k.js=Qe.bundleFileInfo)}function X(W,ce,me,ve){if(!W||s===0)return;if(!ce){(s||d.emitDeclarationOnly)&&(G=!0);return}const Se=qi(W)?[W]:W.sourceFiles,ee=f?Se:lr(Se,Yz),Qe=qs(d)?[N.createBundle(ee,qi(W)?void 0:W.prepends)]:ee;s&&!z_(d)&&ee.forEach(Y);const je=z8(e,t,N,d,Qe,o,!1);if(Ae(je.diagnostics))for(const Me of je.diagnostics)E.add(Me);const Ge={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:!f&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!k,recordInternalSection:!!k,relativeToBuildInfo:ve},qe=q1(Ge,{hasGlobalName:e.hasGlobalName,onEmitNode:je.emitNodeWithNotification,isEmitNotificationEnabled:je.isEmitNotificationEnabled,substituteNode:je.substituteNode}),Oe=!!je.diagnostics&&!!je.diagnostics.length||!!t.isEmitBlocked(ce)||!!d.noEmit;G=G||Oe,(!Oe||f)&&(D.assert(je.transformed.length===1,"Should only see one output from the decl transform"),P(ce,me,je,qe,{sourceMap:Ge.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics})),je.dispose(),k&&(k.dts=qe.bundleFileInfo)}function Y(W){if(Gl(W)){W.expression.kind===79&&e.collectLinkedAliases(W.expression,!0);return}else if(dd(W)){e.collectLinkedAliases(W.propertyName||W.name,!0);return}Ma(W,Y)}function P(W,ce,me,ve,Se){const ee=me.transformed[0],Qe=ee.kind===309?ee:void 0,je=ee.kind===308?ee:void 0,Ge=Qe?Qe.sourceFiles:[je];let qe;de(Se,ee)&&(qe=Gge(t,mu(Qc(W)),re(Se),ye(Se,W,je),Se)),Qe?ve.writeBundle(Qe,L,qe):ve.writeFile(je,L,qe);let Oe;if(qe){y&&y.push({inputSourceFileNames:qe.getSources(),sourceMap:qe.toJSON()});const Ye=ae(Se,qe,W,ce,je);if(Ye&&(L.isAtStartOfLine()||L.rawWrite(A),Oe=L.getTextPos(),L.writeComment(`//# sourceMappingURL=${Ye}`)),ce){const ze=qe.toString();fk(t,E,ce,ze,!1,Ge),ve.bundleFileInfo&&(ve.bundleFileInfo.mapHash=WT(ze,t))}}else L.writeLine();const Me=L.getText();fk(t,E,W,Me,!!d.emitBOM,Ge,{sourceMapUrlPos:Oe,diagnostics:me.diagnostics}),ve.bundleFileInfo&&(ve.bundleFileInfo.hash=WT(Me,t)),L.clear()}function de(W,ce){return(W.sourceMap||W.inlineSourceMap)&&(ce.kind!==308||!cc(ce.fileName,".json"))}function re(W){const ce=Qc(W.sourceRoot||"");return ce&&Pu(ce)}function ye(W,ce,me){if(W.sourceRoot)return t.getCommonSourceDirectory();if(W.mapRoot){let ve=Qc(W.mapRoot);return me&&(ve=hi(Y3(me.fileName,t,ve))),Kp(ve)===0&&(ve=Bi(t.getCommonSourceDirectory(),ve)),ve}return hi(qo(ce))}function ae(W,ce,me,ve,Se){if(W.inlineSourceMap){const Qe=ce.toString();return`data:application/json;base64,${i_e($c,Qe)}`}const ee=mu(Qc(D.checkDefined(ve)));if(W.mapRoot){let Qe=Qc(W.mapRoot);return Se&&(Qe=hi(Y3(Se.fileName,t,Qe))),Kp(Qe)===0?(Qe=Bi(t.getCommonSourceDirectory(),Qe),encodeURI(ax(hi(qo(me)),Bi(Qe,ee),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Bi(Qe,ee))}return encodeURI(ee)}}function J8(e,t){return{bundle:t,program:e,version:be}}function Fye(e){return JSON.stringify(e)}function SF(e,t){return Oq(e,t)}function lFe(e,t,r){var i;const o=D.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&i1(o.sources.prologues,c=>c.file);return e.sourceFiles.map((c,f)=>{var d,y;const h=s==null?void 0:s.get(f),E=h==null?void 0:h.directives.map(I=>{const O=ht(N.createStringLiteral(I.expression.text),I.expression),k=ht(N.createExpressionStatement(O),I);return Uo(O,k),k}),A=N.createToken(1),L=N.createSourceFile(E??[],A,0);return L.fileName=wm(r.getCurrentDirectory(),Pa(c,t),!r.useCaseSensitiveFileNames()),L.text=(d=h==null?void 0:h.text)!=null?d:"",Nk(L,0,(y=h==null?void 0:h.text.length)!=null?y:0),hC(L.statements,L),Nk(A,L.end,0),Uo(A,L),L})}function Bye(e,t,r,i){var o,s;(o=bi)==null||o.push(bi.Phase.Emit,"emitUsingBuildInfo",{},!0),PR.mark("beforeEmit");const c=cFe(e,t,r,i);return PR.mark("afterEmit"),PR.measure("Emit","beforeEmit","afterEmit"),(s=bi)==null||s.pop(),c}function cFe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:c,declarationFilePath:f,declarationMapPath:d}=vw(e.options,!1),y=t.getBuildInfo(o,e.options.configFilePath);if(!y||!y.bundle||!y.bundle.js||f&&!y.bundle.dts)return o;const h=t.readFile(D.checkDefined(s));if(!h||WT(h,t)!==y.bundle.js.hash)return s;const E=c&&t.readFile(c);if(c&&!E||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&WT(E,t)!==y.bundle.js.mapHash)return c;const A=f&&t.readFile(f);if(f&&!A||f&&WT(A,t)!==y.bundle.dts.hash)return f;const L=d&&t.readFile(d);if(d&&!L||e.options.inlineSourceMap)return d||"inline sourcemap decoding";if(d&&WT(L,t)!==y.bundle.dts.mapHash)return d;const I=hi(Pa(o,t.getCurrentDirectory())),O=MJ(s,h,c,E,f,A,d,L,o,y,!0),k=[],G=OY(e.projectReferences,r,Y=>t.readFile(Y),t),V=lFe(y.bundle,I,t);let H,te;const X={getPrependNodes:Ed(()=>[...G,O]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Pa(y.bundle.commonSourceDirectory,I),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:j0,getSourceFileByPath:j0,getSourceFiles:()=>V,getLibFileFromReference:Wa,isSourceFileFromExternalLibrary:a1,getResolvedProjectReferenceToRedirect:j0,getProjectReferenceRedirect:j0,isSourceOfProjectReferenceRedirect:a1,writeFile:(Y,P,de,re,ye,ae)=>{switch(Y){case s:if(h===P)return;break;case c:if(E===P)return;break;case o:break;case f:if(A===P)return;H=P,te=ae;break;case d:if(L===P)return;break;default:D.fail(`Unexpected path: ${Y}`)}k.push({name:Y,text:P,writeByteOrderMark:de,data:ae})},isEmitBlocked:a1,readFile:Y=>t.readFile(Y),fileExists:Y=>t.fileExists(Y),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:Y=>{const P=y.program;P&&H!==void 0&&e.options.composite&&(P.outSignature=WT(H,t,te));const{js:de,dts:re,sourceFiles:ye}=y.bundle;return Y.js.sources=de.sources,re&&(Y.dts.sources=re.sources),Y.sourceFiles=ye,J8(P,Y)},getSourceFileFromReference:j0,redirectTargetsMap:__(),getFileIncludeReasons:Wa,createHash:Go(t,t.createHash)};return TF(xF,X,void 0,uY(e.options,i)),k}function q1(e={},t={}){var{hasGlobalName:r,onEmitNode:i=W8,isEmitNotificationEnabled:o,substituteNode:s=yw,onBeforeEmitNode:c,onAfterEmitNode:f,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:y,onBeforeEmitToken:h,onAfterEmitToken:E}=t,A=!!e.extendedDiagnostics,L=tb(e),I=au(e),O=new Map,k,G,V,H,te,X,Y,P,de,re,ye,ae,W,ce,me,ve=e.preserveSourceNewlines,Se,ee,Qe,je=TL,Ge,qe=e.writeBundleFileInfo?{sections:[]}:void 0,Oe=qe?D.checkDefined(e.relativeToBuildInfo):void 0,Me=e.recordInternalSection,Ye=0,ze="text",Fe=!0,st,Ct,Et=-1,jt,tt=-1,at=-1,sn=-1,Qt=-1,On,jn,In=!1,Zt=!!e.removeComments,_r,Ii,{enter:$i,exit:Qi}=nue(A,"commentTime","beforeComment","afterComment"),Or=N.parenthesizer,At={select:S=>S===0?Or.parenthesizeLeadingTypeArgument:void 0},vn=tc();return We(),{printNode:Wt,printList:dn,printFile:cr,printBundle:rr,writeNode:gi,writeList:Rn,writeFile:Ce,writeBundle:yt,bundleFileInfo:qe};function Wt(S,le,ke){switch(S){case 0:D.assert(qi(le),"Expected a SourceFile node.");break;case 2:D.assert(He(le),"Expected an Identifier node.");break;case 1:D.assert(vt(le),"Expected an Expression node.");break}switch(le.kind){case 308:return cr(le);case 309:return rr(le);case 310:return Pi(le)}return gi(S,le,ke,pt()),pe()}function dn(S,le,ke){return Rn(S,le,ke,pt()),pe()}function rr(S){return yt(S,pt(),void 0),pe()}function cr(S){return Ce(S,pt(),void 0),pe()}function Pi(S){return Nt(S,pt()),pe()}function gi(S,le,ke,on){const Cr=ee;j(on,void 0),ie(S,le,ke),We(),ee=Cr}function Rn(S,le,ke,on){const Cr=ee;j(on,void 0),ke&&he(ke),Rs(void 0,le,S),We(),ee=Cr}function an(){return ee.getTextPosWithWriteLine?ee.getTextPosWithWriteLine():ee.getTextPos()}function Pn(S,le,ke){const on=tl(qe.sections);on&&on.kind===ke?on.end=le:qe.sections.push({pos:S,end:le,kind:ke})}function Ar(S){if(Me&&qe&&k&&(vu(S)||uc(S))&&sY(S,k)&&ze!=="internal"){const le=ze;return we(ee.getTextPos()),Ye=an(),ze="internal",le}}function Hr(S){S&&(we(ee.getTextPos()),Ye=an(),ze=S)}function we(S){return Ye<S?(Pn(Ye,S,ze),!0):!1}function yt(S,le,ke){Ge=!1;const on=ee;j(le,ke),kb(S),hS(S),_n(S),_S(S);for(const Cr of S.prepends){Ic();const Si=ee.getTextPos(),li=qe&&qe.sections;if(li&&(qe.sections=[]),ie(4,Cr,void 0),qe){const Vi=qe.sections;qe.sections=li,Cr.oldFileOfCurrentEmit?qe.sections.push(...Vi):(Vi.forEach(fo=>D.assert(p_e(fo))),qe.sections.push({pos:Si,end:ee.getTextPos(),kind:"prepend",data:Oe(Cr.fileName),texts:Vi}))}}Ye=an();for(const Cr of S.sourceFiles)ie(0,Cr,Cr);if(qe&&S.sourceFiles.length){const Cr=ee.getTextPos();if(we(Cr)){const Si=D2(S);Si&&(qe.sources||(qe.sources={}),qe.sources.prologues=Si);const li=ft(S);li&&(qe.sources||(qe.sources={}),qe.sources.helpers=li)}}We(),ee=on}function Nt(S,le){const ke=ee;j(le,void 0),ie(4,S,void 0),We(),ee=ke}function Ce(S,le,ke){Ge=!0;const on=ee;j(le,ke),kb(S),hS(S),ie(0,S,S),We(),ee=on}function pt(){return Qe||(Qe=aO(L))}function pe(){const S=Qe.getText();return Qe.clear(),S}function ie(S,le,ke){ke&&he(ke),mt(S,le,void 0)}function he(S){k=S,On=void 0,jn=void 0,S&&Wg(S)}function j(S,le){S&&e.omitTrailingSemicolon&&(S=gq(S)),ee=S,st=le,Fe=!ee||!st}function We(){G=[],V=[],H=[],te=new Set,X=[],Y=new Map,P=[],de=0,re=[],ye=0,ae=[],W=void 0,ce=[],me=void 0,k=void 0,On=void 0,jn=void 0,j(void 0,void 0)}function Ze(){return On||(On=og(D.checkDefined(k)))}function Xe(S,le){if(S===void 0)return;const ke=Ar(S);mt(4,S,le),Hr(ke)}function Ut(S){S!==void 0&&mt(2,S,void 0)}function cn(S,le){S!==void 0&&mt(1,S,le)}function Sn(S){mt(Vo(S)?6:4,S)}function Er(S){ve&&B_(S)&4&&(ve=!1)}function ue(S){ve=S}function mt(S,le,ke){Ii=ke,K(0,S,le)(S,le),Ii=void 0}function zt(S){return!Zt&&!qi(S)}function it(S){return!Fe&&!qi(S)&&!P3(S)&&!NT(S)&&!Jpe(S)}function K(S,le,ke){switch(S){case 0:if(i!==W8&&(!o||o(ke)))return Z;case 1:if(s!==yw&&(_r=s(le,ke)||ke)!==ke)return Ii&&(_r=Ii(_r)),gt;case 2:if(zt(ke))return Xd;case 3:if(it(ke))return SE;case 4:return Re;default:return D.assertNever(S)}}function Pe(S,le,ke){return K(S+1,le,ke)}function Z(S,le){const ke=Pe(0,S,le);i(S,le,ke)}function Re(S,le){if(c==null||c(le),ve){const ke=ve;Er(le),q(S,le),ue(ke)}else q(S,le);f==null||f(le),Ii=void 0}function q(S,le,ke=!0){if(ke){const on=jJ(le);if(on)return io(S,le,on)}if(S===0)return Lb(ao(le,qi));if(S===2)return Xr(ao(le,He));if(S===6)return Ai(ao(le,Vo),!0);if(S===3)return Rt(ao(le,Bl));if(S===5)return D.assertNode(le,rK),Ia(!0);if(S===4){switch(le.kind){case 15:case 16:case 17:return Ai(le,!1);case 79:return Xr(le);case 80:return ss(le);case 163:return _i(le);case 164:return wn(le);case 165:return fa(le);case 166:return ec(le);case 167:return rl(le);case 168:return Ul(le);case 169:return Xl(le);case 170:return Vl(le);case 171:return Co(le);case 172:return La(le);case 173:return Xo(le);case 174:case 175:return jl(le);case 176:return tu(le);case 177:return zd(le);case 178:return oc(le);case 179:return hl(le);case 180:return el(le);case 181:return Ks(le);case 182:return fe(le);case 183:return It(le);case 184:return Ht(le);case 185:return Q(le);case 186:return xt(le);case 187:return Dr(le);case 189:return Pr(le);case 190:return Ta(le);case 191:return ls(le);case 192:return ho(le);case 193:return jo(le);case 230:return A_(le);case 194:return Ya();case 195:return dl(le);case 196:return dc(le);case 197:return _d(le);case 198:return Es(le);case 199:return mn(le);case 200:return ds(le);case 201:return Kc(le);case 202:return fl(le);case 203:return qd(le);case 204:return Wl(le);case 205:return Nf(le);case 236:return et(le);case 237:return Ds();case 238:return qt(le);case 240:return Da(le);case 239:return Ia(!1);case 241:return Ie(le);case 242:return Ve(le);case 243:return Ot(le);case 244:return hn(le);case 245:return bn(le);case 246:return Tn(le);case 247:return Hn(le);case 248:return Ji(le);case 249:return tr(le);case 250:return Ym(le);case 251:return Cg(le);case 252:return ep(le);case 253:return hb(le);case 254:return Zv(le);case 255:return x2(le);case 256:return sS(le);case 257:return A2(le);case 258:return Lg(le);case 259:return tp(le);case 260:return lS(le);case 261:return tE(le);case 262:return nE(le);case 263:return n0(le);case 264:return C2(le);case 265:return rE(le);case 266:return iE(le);case 267:return np(le);case 268:return r0(le);case 269:return i0(le);case 270:return cS(le);case 271:return kg(le);case 277:return kd(le);case 272:return $o(le);case 273:return aE(le);case 274:return vL(le);case 275:return My(le);case 276:return wd(le);case 278:return Dd(le);case 296:return wg(le);case 297:return $m(le);case 279:return;case 280:return L2(le);case 11:return Sb(le);case 283:case 286:return uS(le);case 284:case 287:return bL(le);case 288:return a0(le);case 289:return I2(le);case 290:return oE(le);case 291:return o0(le);case 292:return s0(le);case 293:return Rg(le);case 294:return ts(le);case 295:return rp(le);case 299:return sE(le);case 300:return vc(le);case 301:return Mh(le);case 302:return Ab(le);case 303:return ji(le);case 310:case 304:return Ci(le);case 305:case 306:return mo(le);case 307:return To(le);case 308:return Lb(le);case 309:return D.fail("Bundles should be printed using printBundle");case 311:return D.fail("InputFiles should not be printed");case 312:return _l(le);case 313:return Ng(le);case 315:return pr("*");case 316:return pr("?");case 317:return Hl(le);case 318:return xu(le);case 319:return zu(le);case 320:return rn(le);case 188:case 321:return ot(le);case 322:return;case 323:return ip(le);case 325:return Kd(le);case 326:return lE(le);case 330:case 335:case 340:return Qm(le);case 331:case 332:return Pc(le);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return Wi(le);case 342:return Jr(le);case 344:case 351:return Og(le);case 343:case 345:case 346:case 347:case 352:case 353:return Cb(le);case 348:return fS(le);case 349:return EL(le);case 350:return cu(le);case 355:case 359:case 358:return}if(vt(le)&&(S=1,s!==yw)){const on=s(S,le)||le;on!==le&&(le=on,Ii&&(le=Ii(le)))}}if(S===1)switch(le.kind){case 8:case 9:return oi(le);case 10:case 13:case 14:return Ai(le,!1);case 79:return Xr(le);case 80:return ss(le);case 206:return xe(le);case 207:return Dt(le);case 208:return Nn(le);case 209:return Lo(le);case 210:return oe(le);case 211:return ut(le);case 212:return Mt(le);case 213:return Pt(le);case 214:return un(le);case 215:return Vn(le);case 216:return Rr(le);case 217:return Mi(le);case 218:return ja(le);case 219:return Ho(le);case 220:return Ts(le);case 221:return Xs(le);case 222:return ff(le);case 223:return vn(le);case 224:return Jd(le);case 225:return Au(le);case 226:return _f(le);case 227:return x_(le);case 228:return Yo(le);case 229:return;case 231:return pf(le);case 232:return Z_(le);case 230:return A_(le);case 235:return kp(le);case 233:return U(le);case 234:return D.fail("SyntheticExpression should never be printed.");case 279:return;case 281:return Eb(le);case 282:return Dg(le);case 285:return Tb(le);case 354:return D.fail("SyntaxList should not be printed");case 355:return;case 356:return k2(le);case 357:return w2(le);case 358:case 359:return;case 360:return D.fail("SyntheticReferenceExpression should not be printed")}if(Ad(le.kind))return dE(le,da);if(nz(le.kind))return dE(le,pr);D.fail(`Unhandled SyntaxKind: ${D.formatSyntaxKind(le.kind)}.`)}function Rt(S){Xe(S.name),ir(),da("in"),ir(),Xe(S.constraint)}function gt(S,le){const ke=Pe(1,S,le);D.assertIsDefined(_r),le=_r,_r=void 0,ke(S,le)}function ft(S){let le;if(I===0||e.noEmitHelpers)return;const ke=new Map;for(const on of S.sourceFiles){const Cr=a8(on)!==void 0,Si=$n(on);if(Si)for(const li of Si)!li.scoped&&!Cr&&!ke.get(li.name)&&(ke.set(li.name,!0),(le||(le=[])).push(li.name))}return le}function _n(S){let le=!1;const ke=S.kind===309?S:void 0;if(ke&&I===0)return;const on=ke?ke.prepends.length:0,Cr=ke?ke.sourceFiles.length+on:1;for(let Si=0;Si<Cr;Si++){const li=ke?Si<on?ke.prepends[Si]:ke.sourceFiles[Si-on]:S,Vi=qi(li)?li:NT(li)?void 0:k,fo=e.noEmitHelpers||!!Vi&&sme(Vi),nu=(qi(li)||NT(li))&&!Ge,$d=NT(li)?li.helpers:$n(li);if($d)for(const gf of $d){if(gf.scoped){if(ke)continue}else{if(fo)continue;if(nu){if(O.get(gf.name))continue;O.set(gf.name,!0)}}const Xy=an();typeof gf.text=="string"?Yl(gf.text):Yl(gf.text(Mf)),qe&&qe.sections.push({pos:Xy,end:ee.getTextPos(),kind:"emitHelpers",data:gf.name}),le=!0}}return le}function $n(S){const le=k7(S);return le&&ly(le,Cpe)}function oi(S){Ai(S,!1)}function Ai(S,le){const ke=Nl(S,e.neverAsciiEscape,le);(e.sourceMap||e.inlineSourceMap)&&(S.kind===10||Lv(S.kind))?Rb(ke):O2(ke)}function Ci(S){for(const le of S.texts)Ic(),Xe(le)}function ji(S){ee.rawWrite(S.parent.text.substring(S.pos,S.end))}function mo(S){const le=an();ji(S),qe&&Pn(le,ee.getTextPos(),S.kind===305?"text":"internal")}function To(S){const le=an();if(ji(S),qe){const ke=cH(S.section);ke.pos=le,ke.end=ee.getTextPos(),qe.sections.push(ke)}}function io(S,le,ke){switch(ke.kind){case 1:ca(S,le,ke);break;case 0:Hi(S,le,ke);break}}function ca(S,le,ke){Uy(`\${${ke.order}:`),q(S,le,!1),Uy("}")}function Hi(S,le,ke){D.assert(le.kind===239,`A tab stop cannot be attached to a node of kind ${D.formatSyntaxKind(le.kind)}.`),D.assert(S!==5,"A tab stop cannot be attached to an embedded statement."),Uy(`$${ke.order}`)}function Xr(S){(S.symbol?P2:je)(Hy(S,!1),S.symbol),Rs(S,IT(S),53776)}function ss(S){je(Hy(S,!1))}function _i(S){ua(S.left),pr("."),Xe(S.right)}function ua(S){S.kind===79?cn(S):Xe(S)}function wn(S){const le=de,ke=me;du(),pr("["),cn(S.expression,Or.parenthesizeExpressionOfComputedPropertyName),pr("]"),d0(le,ke)}function fa(S){Pg(S,S.modifiers),Xe(S.name),S.constraint&&(ir(),da("extends"),ir(),Xe(S.constraint)),S.default&&(ir(),Pf("="),ir(),Xe(S.default))}function ec(S){Of(S,S.modifiers,!0),Xe(S.dotDotDotToken),gS(S.name,c0),Xe(S.questionToken),S.parent&&S.parent.kind===320&&!S.name?Xe(S.type):Dp(S.type),ap(S.initializer,S.type?S.type.end:S.questionToken?S.questionToken.end:S.name?S.name.end:S.modifiers?S.modifiers.end:S.pos,S,Or.parenthesizeExpressionForDisallowedComma)}function rl(S){pr("@"),cn(S.expression,Or.parenthesizeLeftSideOfAccess)}function Ul(S){Pg(S,S.modifiers),gS(S.name,M2),Xe(S.questionToken),Dp(S.type),Rl()}function Xl(S){Of(S,S.modifiers,!0),Xe(S.name),Xe(S.questionToken),Xe(S.exclamationToken),Dp(S.type),ap(S.initializer,S.type?S.type.end:S.questionToken?S.questionToken.end:S.name.end,S),Rl()}function Vl(S){Gg(S),Pg(S,S.modifiers),Xe(S.name),Xe(S.questionToken),dm(S,S.typeParameters),Fg(S,S.parameters),Dp(S.type),Rl(),Gh(S)}function Co(S){Of(S,S.modifiers,!0),Xe(S.asteriskToken),Xe(S.name),Xe(S.questionToken),Ph(S,wp)}function La(S){da("static"),Z1(S.body)}function Xo(S){Of(S,S.modifiers,!1),da("constructor"),Ph(S,wp)}function jl(S){const le=Of(S,S.modifiers,!0),ke=S.kind===174?137:151;pn(ke,le,da,S),ir(),Xe(S.name),Ph(S,wp)}function tu(S){Gg(S),dm(S,S.typeParameters),Fg(S,S.parameters),Dp(S.type),Rl(),Gh(S)}function zd(S){Gg(S),da("new"),ir(),dm(S,S.typeParameters),Fg(S,S.parameters),Dp(S.type),Rl(),Gh(S)}function oc(S){Of(S,S.modifiers,!1),By(S,S.parameters),Dp(S.type),Rl()}function Kc(S){Xe(S.type),Xe(S.literal)}function Ds(){Rl()}function hl(S){S.assertsModifier&&(Xe(S.assertsModifier),ir()),Xe(S.parameterName),S.type&&(ir(),da("is"),ir(),Xe(S.type))}function el(S){Xe(S.typeName),um(S,S.typeArguments)}function Ks(S){Gg(S),dm(S,S.typeParameters),vS(S,S.parameters),ir(),pr("=>"),ir(),Xe(S.type),Gh(S)}function rn(S){da("function"),Fg(S,S.parameters),pr(":"),Xe(S.type)}function Hl(S){pr("?"),Xe(S.type)}function xu(S){pr("!"),Xe(S.type)}function zu(S){Xe(S.type),pr("=")}function fe(S){Gg(S),Pg(S,S.modifiers),da("new"),ir(),dm(S,S.typeParameters),Fg(S,S.parameters),ir(),pr("=>"),ir(),Xe(S.type),Gh(S)}function It(S){da("typeof"),ir(),Xe(S.exprName),um(S,S.typeArguments)}function Ht(S){d0(0,void 0),pr("{");const le=vo(S)&1?768:32897;Rs(S,S.members,le|524288),pr("}"),du()}function Q(S){Xe(S.elementType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),pr("]")}function ot(S){pr("..."),Xe(S.type)}function xt(S){pn(22,S.pos,pr,S);const le=vo(S)&1?528:657;Rs(S,S.elements,le|524288,Or.parenthesizeElementTypeOfTupleType),pn(23,S.elements.end,pr,S)}function mn(S){Xe(S.dotDotDotToken),Xe(S.name),Xe(S.questionToken),pn(58,S.name.end,pr,S),ir(),Xe(S.type)}function Dr(S){Xe(S.type,Or.parenthesizeTypeOfOptionalType),pr("?")}function Pr(S){Rs(S,S.types,516,Or.parenthesizeConstituentTypeOfUnionType)}function Ta(S){Rs(S,S.types,520,Or.parenthesizeConstituentTypeOfIntersectionType)}function ls(S){Xe(S.checkType,Or.parenthesizeCheckTypeOfConditionalType),ir(),da("extends"),ir(),Xe(S.extendsType,Or.parenthesizeExtendsTypeOfConditionalType),ir(),pr("?"),ir(),Xe(S.trueType),ir(),pr(":"),ir(),Xe(S.falseType)}function ho(S){da("infer"),ir(),Xe(S.typeParameter)}function jo(S){pr("("),Xe(S.type),pr(")")}function Ya(){da("this")}function dl(S){op(S.operator,da),ir();const le=S.operator===146?Or.parenthesizeOperandOfReadonlyTypeOperator:Or.parenthesizeOperandOfTypeOperator;Xe(S.type,le)}function dc(S){Xe(S.objectType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),Xe(S.indexType),pr("]")}function _d(S){const le=vo(S);pr("{"),le&1?ir():(Ic(),C_()),S.readonlyToken&&(Xe(S.readonlyToken),S.readonlyToken.kind!==146&&da("readonly"),ir()),pr("["),mt(3,S.typeParameter),S.nameType&&(ir(),da("as"),ir(),Xe(S.nameType)),pr("]"),S.questionToken&&(Xe(S.questionToken),S.questionToken.kind!==57&&pr("?")),pr(":"),ir(),Xe(S.type),Rl(),le&1?ir():(Ic(),Rp()),Rs(S,S.members,2),pr("}")}function Es(S){cn(S.literal)}function ds(S){Xe(S.head),Rs(S,S.templateSpans,262144)}function fl(S){if(S.isTypeOf&&(da("typeof"),ir()),da("import"),pr("("),Xe(S.argument),S.assertions){pr(","),ir(),pr("{"),ir(),da("assert"),pr(":"),ir();const le=S.assertions.assertClause.elements;Rs(S.assertions.assertClause,le,526226),ir(),pr("}")}pr(")"),S.qualifier&&(pr("."),Xe(S.qualifier)),um(S,S.typeArguments)}function qd(S){pr("{"),Rs(S,S.elements,525136),pr("}")}function Wl(S){pr("["),Rs(S,S.elements,524880),pr("]")}function Nf(S){Xe(S.dotDotDotToken),S.propertyName&&(Xe(S.propertyName),pr(":"),ir()),Xe(S.name),ap(S.initializer,S.name.end,S,Or.parenthesizeExpressionForDisallowedComma)}function xe(S){const le=S.elements,ke=S.multiLine?65536:0;Gy(S,le,8914|ke,Or.parenthesizeExpressionForDisallowedComma)}function Dt(S){d0(0,void 0),Ue(S.properties,pE);const le=vo(S)&131072;le&&C_();const ke=S.multiLine?65536:0,on=k&&k.languageVersion>=1&&!m_(k)?64:0;Rs(S,S.properties,526226|on|ke),le&&Rp(),du()}function Nn(S){cn(S.expression,Or.parenthesizeLeftSideOfAccess);const le=S.questionDotToken||Vm(N.createToken(24),S.expression.end,S.name.pos),ke=Np(S,S.expression,le),on=Np(S,le,S.name);nc(ke,!1),le.kind!==28&&Xi(S.expression)&&!ee.hasTrailingComment()&&!ee.hasTrailingWhitespace()&&pr("."),S.questionDotToken?Xe(le):pn(le.kind,S.expression.end,pr,S),nc(on,!1),Xe(S.name),Bg(ke,on)}function Xi(S){if(S=F_(S),b_(S)){const le=Nl(S,!0,!1);return!S.numericLiteralFlags&&!pu(le,yo(24))}else if(ll(S)){const le=ype(S);return typeof le=="number"&&isFinite(le)&&Math.floor(le)===le}}function Lo(S){cn(S.expression,Or.parenthesizeLeftSideOfAccess),Xe(S.questionDotToken),pn(22,S.expression.end,pr,S),cn(S.argumentExpression),pn(23,S.argumentExpression.end,pr,S)}function oe(S){const le=B_(S)&16;le&&(pr("("),Rb("0"),pr(","),ir()),cn(S.expression,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),Xe(S.questionDotToken),um(S,S.typeArguments),Gy(S,S.arguments,2576,Or.parenthesizeExpressionForDisallowedComma)}function ut(S){pn(103,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeExpressionOfNew),um(S,S.typeArguments),Gy(S,S.arguments,18960,Or.parenthesizeExpressionForDisallowedComma)}function Mt(S){const le=B_(S)&16;le&&(pr("("),Rb("0"),pr(","),ir()),cn(S.tag,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),um(S,S.typeArguments),ir(),cn(S.template)}function Pt(S){pr("<"),Xe(S.type),pr(">"),cn(S.expression,Or.parenthesizeOperandOfPrefixUnary)}function un(S){const le=pn(20,S.pos,pr,S),ke=fE(S.expression,S);cn(S.expression,void 0),Nb(S.expression,S),Bg(ke),pn(21,S.expression?S.expression.end:le,pr,S)}function Vn(S){Vh(S.name),e0(S)}function Rr(S){Pg(S,S.modifiers),Ph(S,ni)}function ni(S){dm(S,S.typeParameters),vS(S,S.parameters),Dp(S.type),ir(),Xe(S.equalsGreaterThanToken)}function Mi(S){pn(89,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeOperandOfPrefixUnary)}function ja(S){pn(112,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeOperandOfPrefixUnary)}function Ho(S){pn(114,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeOperandOfPrefixUnary)}function Ts(S){pn(133,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeOperandOfPrefixUnary)}function Xs(S){op(S.operator,Pf),pd(S)&&ir(),cn(S.operand,Or.parenthesizeOperandOfPrefixUnary)}function pd(S){const le=S.operand;return le.kind===221&&(S.operator===39&&(le.operator===39||le.operator===45)||S.operator===40&&(le.operator===40||le.operator===46))}function ff(S){cn(S.operand,Or.parenthesizeOperandOfPostfixUnary),op(S.operator,Pf)}function tc(){return T5(S,le,ke,on,Cr,void 0);function S(li,Vi){if(Vi){Vi.stackIndex++,Vi.preserveSourceNewlinesStack[Vi.stackIndex]=ve,Vi.containerPosStack[Vi.stackIndex]=at,Vi.containerEndStack[Vi.stackIndex]=sn,Vi.declarationListContainerEndStack[Vi.stackIndex]=Qt;const fo=Vi.shouldEmitCommentsStack[Vi.stackIndex]=zt(li),nu=Vi.shouldEmitSourceMapsStack[Vi.stackIndex]=it(li);c==null||c(li),fo&&gd(li),nu&&xE(li),Er(li)}else Vi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Vi}function le(li,Vi,fo){return Si(li,fo,"left")}function ke(li,Vi,fo){const nu=li.kind!==27,$d=Np(fo,fo.left,li),gf=Np(fo,li,fo.right);nc($d,nu),Nd(li.pos),dE(li,li.kind===101?da:Pf),jg(li.end,!0),nc(gf,!0)}function on(li,Vi,fo){return Si(li,fo,"right")}function Cr(li,Vi){const fo=Np(li,li.left,li.operatorToken),nu=Np(li,li.operatorToken,li.right);if(Bg(fo,nu),Vi.stackIndex>0){const $d=Vi.preserveSourceNewlinesStack[Vi.stackIndex],gf=Vi.containerPosStack[Vi.stackIndex],Xy=Vi.containerEndStack[Vi.stackIndex],Qd=Vi.declarationListContainerEndStack[Vi.stackIndex],g0=Vi.shouldEmitCommentsStack[Vi.stackIndex],y0=Vi.shouldEmitSourceMapsStack[Vi.stackIndex];ue($d),y0&&AE(li),g0&&ES(li,gf,Xy,Qd),f==null||f(li),Vi.stackIndex--}}function Si(li,Vi,fo){const nu=fo==="left"?Or.getParenthesizeLeftSideOfBinaryForOperator(Vi.operatorToken.kind):Or.getParenthesizeRightSideOfBinaryForOperator(Vi.operatorToken.kind);let $d=K(0,1,li);if($d===gt&&(D.assertIsDefined(_r),li=nu(ao(_r,vt)),$d=Pe(1,1,li),_r=void 0),($d===Xd||$d===SE||$d===Re)&&br(li))return li;Ii=nu,$d(1,li)}}function Jd(S){const le=Np(S,S.condition,S.questionToken),ke=Np(S,S.questionToken,S.whenTrue),on=Np(S,S.whenTrue,S.colonToken),Cr=Np(S,S.colonToken,S.whenFalse);cn(S.condition,Or.parenthesizeConditionOfConditionalExpression),nc(le,!0),Xe(S.questionToken),nc(ke,!0),cn(S.whenTrue,Or.parenthesizeBranchOfConditionalExpression),Bg(le,ke),nc(on,!0),Xe(S.colonToken),nc(Cr,!0),cn(S.whenFalse,Or.parenthesizeBranchOfConditionalExpression),Bg(on,Cr)}function Au(S){Xe(S.head),Rs(S,S.templateSpans,262144)}function _f(S){pn(125,S.pos,da,S),Xe(S.asteriskToken),cm(S.expression&&Ys(S.expression),sc)}function x_(S){pn(25,S.pos,pr,S),cn(S.expression,Or.parenthesizeExpressionForDisallowedComma)}function Yo(S){Vh(S.name),eE(S)}function A_(S){cn(S.expression,Or.parenthesizeLeftSideOfAccess),um(S,S.typeArguments)}function pf(S){cn(S.expression,void 0),S.type&&(ir(),da("as"),ir(),Xe(S.type))}function Z_(S){cn(S.expression,Or.parenthesizeLeftSideOfAccess),Pf("!")}function kp(S){cn(S.expression,void 0),S.type&&(ir(),da("satisfies"),ir(),Xe(S.type))}function U(S){Vy(S.keywordToken,S.pos,pr),pr("."),Xe(S.name)}function et(S){cn(S.expression),Xe(S.literal)}function qt(S){Xn(S,!S.multiLine&&Bh(S))}function Xn(S,le){pn(18,S.pos,pr,S);const ke=le||vo(S)&1?768:129;Rs(S,S.statements,ke),pn(19,S.statements.end,pr,S,!!(ke&1))}function Da(S){Of(S,S.modifiers,!1),Xe(S.declarationList),Rl()}function Ia(S){S?pr(";"):Rl()}function Ie(S){cn(S.expression,Or.parenthesizeExpressionOfExpressionStatement),(!k||!m_(k)||Zs(S.expression))&&Rl()}function Ve(S){const le=pn(99,S.pos,da,S);ir(),pn(20,le,pr,S),cn(S.expression),pn(21,S.expression.end,pr,S),md(S,S.thenStatement),S.elseStatement&&(jy(S,S.thenStatement,S.elseStatement),pn(91,S.thenStatement.end,da,S),S.elseStatement.kind===242?(ir(),Xe(S.elseStatement)):md(S,S.elseStatement))}function Lt(S,le){const ke=pn(115,le,da,S);ir(),pn(20,ke,pr,S),cn(S.expression),pn(21,S.expression.end,pr,S)}function Ot(S){pn(90,S.pos,da,S),md(S,S.statement),lo(S.statement)&&!ve?ir():jy(S,S.statement,S.expression),Lt(S,S.statement.end),Rl()}function hn(S){Lt(S,S.pos),md(S,S.statement)}function bn(S){const le=pn(97,S.pos,da,S);ir();let ke=pn(20,le,pr,S);qr(S.initializer),ke=pn(26,S.initializer?S.initializer.end:ke,pr,S),cm(S.condition),ke=pn(26,S.condition?S.condition.end:ke,pr,S),cm(S.incrementor),pn(21,S.incrementor?S.incrementor.end:ke,pr,S),md(S,S.statement)}function Tn(S){const le=pn(97,S.pos,da,S);ir(),pn(20,le,pr,S),qr(S.initializer),ir(),pn(101,S.initializer.end,da,S),ir(),cn(S.expression),pn(21,S.expression.end,pr,S),md(S,S.statement)}function Hn(S){const le=pn(97,S.pos,da,S);ir(),yS(S.awaitModifier),pn(20,le,pr,S),qr(S.initializer),ir(),pn(162,S.initializer.end,da,S),ir(),cn(S.expression),pn(21,S.expression.end,pr,S),md(S,S.statement)}function qr(S){S!==void 0&&(S.kind===258?Xe(S):cn(S))}function Ji(S){pn(86,S.pos,da,S),wb(S.label),Rl()}function tr(S){pn(81,S.pos,da,S),wb(S.label),Rl()}function pn(S,le,ke,on,Cr){const Si=Ea(on),li=Si&&Si.kind===on.kind,Vi=le;if(li&&k&&(le=Jo(k.text,le)),li&&on.pos!==Vi){const fo=Cr&&k&&!y_(Vi,le,k);fo&&C_(),Nd(Vi),fo&&Rp()}if(le=op(S,ke,le),li&&on.end!==le){const fo=on.kind===291;jg(le,!fo,fo)}return le}function dr(S){return S.kind===2||!!S.hasTrailingNewLine}function Aa(S){return k?kt(mh(k.text,S.pos),dr)||kt(EC(S),dr)?!0:c5(S)?S.pos!==S.expression.pos&&kt(W0(k.text,S.expression.pos),dr)?!0:Aa(S.expression):!1:!1}function Ys(S){if(!Zt&&c5(S)&&Aa(S)){const le=Ea(S);if(le&&Ud(le)){const ke=N.createParenthesizedExpression(S.expression);return Wr(ke,S),ht(ke,le),ke}return N.createParenthesizedExpression(S)}return S}function sc(S){return Ys(Or.parenthesizeExpressionForDisallowedComma(S))}function Ym(S){pn(105,S.pos,da,S),cm(S.expression&&Ys(S.expression),Ys),Rl()}function Cg(S){const le=pn(116,S.pos,da,S);ir(),pn(20,le,pr,S),cn(S.expression),pn(21,S.expression.end,pr,S),md(S,S.statement)}function ep(S){const le=pn(107,S.pos,da,S);ir(),pn(20,le,pr,S),cn(S.expression),pn(21,S.expression.end,pr,S),ir(),Xe(S.caseBlock)}function hb(S){Xe(S.label),pn(58,S.label.end,pr,S),ir(),Xe(S.statement)}function Zv(S){pn(109,S.pos,da,S),cm(Ys(S.expression),Ys),Rl()}function x2(S){pn(111,S.pos,da,S),ir(),Xe(S.tryBlock),S.catchClause&&(jy(S,S.tryBlock,S.catchClause),Xe(S.catchClause)),S.finallyBlock&&(jy(S,S.catchClause||S.tryBlock,S.finallyBlock),pn(96,(S.catchClause||S.tryBlock).end,da,S),ir(),Xe(S.finallyBlock))}function sS(S){Vy(87,S.pos,da),Rl()}function A2(S){var le,ke,on,Cr,Si;Xe(S.name),Xe(S.exclamationToken),Dp(S.type),ap(S.initializer,(Si=(Cr=(le=S.type)==null?void 0:le.end)!=null?Cr:(on=(ke=S.name.emitNode)==null?void 0:ke.typeNode)==null?void 0:on.end)!=null?Si:S.name.end,S,Or.parenthesizeExpressionForDisallowedComma)}function Lg(S){da(ek(S)?"let":fg(S)?"const":"var"),ir(),Rs(S,S.declarations,528)}function tp(S){e0(S)}function e0(S){Of(S,S.modifiers,!1),da("function"),Xe(S.asteriskToken),ir(),Ut(S.name),Ph(S,wp)}function Ph(S,le){const ke=S.body;if(ke)if(lo(ke)){const on=vo(S)&131072;on&&C_(),Gg(S),Ue(S.parameters,bc),bc(S.body),le(S),Z1(ke),Gh(S),on&&Rp()}else le(S),ir(),cn(ke,Or.parenthesizeConciseBodyOfArrowFunction);else le(S),Rl()}function wp(S){dm(S,S.typeParameters),Fg(S,S.parameters),Dp(S.type)}function t0(S){if(vo(S)&1)return!0;if(S.multiLine||!Zs(S)&&k&&!xT(S,k)||uu(S,Yc(S.statements),2)||th(S,tl(S.statements),2,S.statements))return!1;let le;for(const ke of S.statements){if(L_(le,ke,2)>0)return!1;le=ke}return!0}function Z1(S){c==null||c(S),ir(),pr("{"),C_();const le=t0(S)?gb:Ig;Vg(S,S.statements,le),Rp(),Vy(19,S.statements.end,pr,S),f==null||f(S)}function gb(S){Ig(S,!0)}function Ig(S,le){const ke=l0(S.statements),on=ee.getTextPos();_n(S),ke===0&&on===ee.getTextPos()&&le?(Rp(),Rs(S,S.statements,768),C_()):Rs(S,S.statements,1,void 0,ke)}function lS(S){eE(S)}function eE(S){d0(0,void 0),Ue(S.members,pE),Of(S,S.modifiers,!0),pn(84,Zp(S).pos,da,S),S.name&&(ir(),Ut(S.name));const le=vo(S)&131072;le&&C_(),dm(S,S.typeParameters),Rs(S,S.heritageClauses,0),ir(),pr("{"),Rs(S,S.members,129),pr("}"),le&&Rp(),du()}function tE(S){d0(0,void 0),Of(S,S.modifiers,!1),da("interface"),ir(),Xe(S.name),dm(S,S.typeParameters),Rs(S,S.heritageClauses,512),ir(),pr("{"),Rs(S,S.members,129),pr("}"),du()}function nE(S){Of(S,S.modifiers,!1),da("type"),ir(),Xe(S.name),dm(S,S.typeParameters),ir(),pr("="),ir(),Xe(S.type),Rl()}function n0(S){Of(S,S.modifiers,!1),da("enum"),ir(),Xe(S.name),ir(),pr("{"),Rs(S,S.members,145),pr("}")}function C2(S){Of(S,S.modifiers,!1),~S.flags&1024&&(da(S.flags&16?"namespace":"module"),ir()),Xe(S.name);let le=S.body;if(!le)return Rl();for(;le&&Jl(le);)pr("."),Xe(le.name),le=le.body;ir(),Xe(le)}function rE(S){Gg(S),Ue(S.statements,bc),Xn(S,Bh(S)),Gh(S)}function iE(S){pn(18,S.pos,pr,S),Rs(S,S.clauses,129),pn(19,S.clauses.end,pr,S,!0)}function r0(S){Of(S,S.modifiers,!1),pn(100,S.modifiers?S.modifiers.end:S.pos,da,S),ir(),S.isTypeOnly&&(pn(154,S.pos,da,S),ir()),Xe(S.name),ir(),pn(63,S.name.end,pr,S),ir(),yb(S.moduleReference),Rl()}function yb(S){S.kind===79?cn(S):Xe(S)}function i0(S){Of(S,S.modifiers,!1),pn(100,S.modifiers?S.modifiers.end:S.pos,da,S),ir(),S.importClause&&(Xe(S.importClause),ir(),pn(158,S.importClause.end,da,S),ir()),cn(S.moduleSpecifier),S.assertClause&&wb(S.assertClause),Rl()}function cS(S){S.isTypeOnly&&(pn(154,S.pos,da,S),ir()),Xe(S.name),S.name&&S.namedBindings&&(pn(27,S.name.end,pr,S),ir()),Xe(S.namedBindings)}function kg(S){const le=pn(41,S.pos,pr,S);ir(),pn(128,le,da,S),ir(),Xe(S.name)}function $o(S){vb(S)}function aE(S){bb(S)}function vL(S){const le=pn(93,S.pos,da,S);ir(),S.isExportEquals?pn(63,le,Pf,S):pn(88,le,da,S),ir(),cn(S.expression,S.isExportEquals?Or.getParenthesizeRightSideOfBinaryForOperator(63):Or.parenthesizeExpressionOfExportDefault),Rl()}function My(S){Of(S,S.modifiers,!1);let le=pn(93,S.pos,da,S);if(ir(),S.isTypeOnly&&(le=pn(154,le,da,S),ir()),S.exportClause?Xe(S.exportClause):le=pn(41,le,pr,S),S.moduleSpecifier){ir();const ke=S.exportClause?S.exportClause.end:le;pn(158,ke,da,S),ir(),cn(S.moduleSpecifier)}S.assertClause&&wb(S.assertClause),Rl()}function wg(S){pn(130,S.pos,da,S),ir();const le=S.elements;Rs(S,le,526226)}function $m(S){Xe(S.name),pr(":"),ir();const le=S.value;if(!(vo(le)&1024)){const ke=jm(le);jg(ke.pos)}Xe(le)}function np(S){let le=pn(93,S.pos,da,S);ir(),le=pn(128,le,da,S),ir(),le=pn(143,le,da,S),ir(),Xe(S.name),Rl()}function kd(S){const le=pn(41,S.pos,pr,S);ir(),pn(128,le,da,S),ir(),Xe(S.name)}function wd(S){vb(S)}function Dd(S){bb(S)}function vb(S){pr("{"),Rs(S,S.elements,525136),pr("}")}function bb(S){S.isTypeOnly&&(da("type"),ir()),S.propertyName&&(Xe(S.propertyName),ir(),pn(128,S.propertyName.end,da,S),ir()),Xe(S.name)}function L2(S){da("require"),pr("("),cn(S.expression),pr(")")}function Eb(S){Xe(S.openingElement),Rs(S,S.children,262144),Xe(S.closingElement)}function Dg(S){pr("<"),xb(S.tagName),um(S,S.typeArguments),ir(),Xe(S.attributes),pr("/>")}function Tb(S){Xe(S.openingFragment),Rs(S,S.children,262144),Xe(S.closingFragment)}function uS(S){if(pr("<"),wh(S)){const le=fE(S.tagName,S);xb(S.tagName),um(S,S.typeArguments),S.attributes.properties&&S.attributes.properties.length>0&&ir(),Xe(S.attributes),Nb(S.attributes,S),Bg(le)}pr(">")}function Sb(S){ee.writeLiteral(S.text)}function bL(S){pr("</"),zx(S)&&xb(S.tagName),pr(">")}function I2(S){Rs(S,S.properties,262656)}function a0(S){Xe(S.name),R2("=",pr,S.initializer,Sn)}function oE(S){pr("{..."),cn(S.expression),pr("}")}function Ke(S){let le=!1;return nN((k==null?void 0:k.text)||"",S+1,()=>le=!0),le}function Fy(S){let le=!1;return tN((k==null?void 0:k.text)||"",S+1,()=>le=!0),le}function lm(S){return Ke(S)||Fy(S)}function o0(S){var le;if(S.expression||!Zt&&!Zs(S)&&lm(S.pos)){const ke=k&&!Zs(S)&&ol(k,S.pos).line!==ol(k,S.end).line;ke&&ee.increaseIndent();const on=pn(18,S.pos,pr,S);Xe(S.dotDotDotToken),cn(S.expression),pn(19,((le=S.expression)==null?void 0:le.end)||on,pr,S),ke&&ee.decreaseIndent()}}function xb(S){S.kind===79?cn(S):Xe(S)}function s0(S){pn(82,S.pos,da,S),ir(),cn(S.expression,Or.parenthesizeExpressionForDisallowedComma),dS(S,S.statements,S.expression.end)}function Rg(S){const le=pn(88,S.pos,da,S);dS(S,S.statements,le)}function dS(S,le,ke){const on=le.length===1&&(!k||Zs(S)||Zs(le[0])||t7(S,le[0],k));let Cr=163969;on?(Vy(58,ke,pr,S),ir(),Cr&=-130):pn(58,ke,pr,S),Rs(S,le,Cr)}function ts(S){ir(),op(S.token,da),ir(),Rs(S,S.types,528)}function rp(S){const le=pn(83,S.pos,da,S);ir(),S.variableDeclaration&&(pn(20,le,pr,S),Xe(S.variableDeclaration),pn(21,S.variableDeclaration.end,pr,S),ir()),Xe(S.block)}function sE(S){Xe(S.name),pr(":"),ir();const le=S.initializer;if(!(vo(le)&1024)){const ke=jm(le);jg(ke.pos)}cn(le,Or.parenthesizeExpressionForDisallowedComma)}function vc(S){Xe(S.name),S.objectAssignmentInitializer&&(ir(),pr("="),ir(),cn(S.objectAssignmentInitializer,Or.parenthesizeExpressionForDisallowedComma))}function Mh(S){S.expression&&(pn(25,S.pos,pr,S),cn(S.expression,Or.parenthesizeExpressionForDisallowedComma))}function Ab(S){Xe(S.name),ap(S.initializer,S.name.end,S,Or.parenthesizeExpressionForDisallowedComma)}function ip(S){if(je("/**"),S.comment){const le=lN(S.comment);if(le){const ke=le.split(/\r\n?|\n/g);for(const on of ke)Ic(),ir(),pr("*"),ir(),je(on)}}S.tags&&(S.tags.length===1&&S.tags[0].kind===347&&!S.comment?(ir(),Xe(S.tags[0])):Rs(S,S.tags,33)),ir(),je("*/")}function Cb(S){Fh(S.tagName),_l(S.typeExpression),Zm(S.comment)}function cu(S){Fh(S.tagName),Xe(S.name),Zm(S.comment)}function Ng(S){ir(),pr("{"),Xe(S.name),pr("}")}function Pc(S){Fh(S.tagName),ir(),pr("{"),Xe(S.class),pr("}"),Zm(S.comment)}function fS(S){Fh(S.tagName),_l(S.constraint),ir(),Rs(S,S.typeParameters,528),Zm(S.comment)}function EL(S){Fh(S.tagName),S.typeExpression&&(S.typeExpression.kind===312?_l(S.typeExpression):(ir(),pr("{"),je("Object"),S.typeExpression.isArrayType&&(pr("["),pr("]")),pr("}"))),S.fullName&&(ir(),Xe(S.fullName)),Zm(S.comment),S.typeExpression&&S.typeExpression.kind===325&&Kd(S.typeExpression)}function Wi(S){Fh(S.tagName),S.name&&(ir(),Xe(S.name)),Zm(S.comment),lE(S.typeExpression)}function Jr(S){Zm(S.comment),lE(S.typeExpression)}function Qm(S){Fh(S.tagName),Zm(S.comment)}function Kd(S){Rs(S,N.createNodeArray(S.jsDocPropertyTags),33)}function lE(S){S.typeParameters&&Rs(S,N.createNodeArray(S.typeParameters),33),S.parameters&&Rs(S,N.createNodeArray(S.parameters),33),S.type&&(Ic(),ir(),pr("*"),ir(),Xe(S.type))}function Og(S){Fh(S.tagName),_l(S.typeExpression),ir(),S.isBracketed&&pr("["),Xe(S.name),S.isBracketed&&pr("]"),Zm(S.comment)}function Fh(S){pr("@"),Xe(S)}function Zm(S){const le=lN(S);le&&(ir(),je(le))}function _l(S){S&&(ir(),pr("{"),Xe(S.type),pr("}"))}function Lb(S){Ic();const le=S.statements;if(le.length===0||!yp(le[0])||Zs(le[0])){Vg(S,le,r_);return}r_(S)}function _S(S){pS(!!S.hasNoDefaultLib,S.syntheticFileReferences||[],S.syntheticTypeReferences||[],S.syntheticLibReferences||[]);for(const le of S.prepends)if(NT(le)&&le.syntheticReferences)for(const ke of le.syntheticReferences)Xe(ke),Ic()}function Ib(S){S.isDeclarationFile&&pS(S.hasNoDefaultLib,S.referencedFiles,S.typeReferenceDirectives,S.libReferenceDirectives)}function pS(S,le,ke,on){if(S){const Cr=ee.getTextPos();eh('/// <reference no-default-lib="true"/>'),qe&&qe.sections.push({pos:Cr,end:ee.getTextPos(),kind:"no-default-lib"}),Ic()}if(k&&k.moduleName&&(eh(`/// <amd-module name="${k.moduleName}" />`),Ic()),k&&k.amdDependencies)for(const Cr of k.amdDependencies)Cr.name?eh(`/// <amd-dependency name="${Cr.name}" path="${Cr.path}" />`):eh(`/// <amd-dependency path="${Cr.path}" />`),Ic();for(const Cr of le){const Si=ee.getTextPos();eh(`/// <reference path="${Cr.fileName}" />`),qe&&qe.sections.push({pos:Si,end:ee.getTextPos(),kind:"reference",data:Cr.fileName}),Ic()}for(const Cr of ke){const Si=ee.getTextPos(),li=Cr.resolutionMode&&Cr.resolutionMode!==(k==null?void 0:k.impliedNodeFormat)?`resolution-mode="${Cr.resolutionMode===99?"import":"require"}"`:"";eh(`/// <reference types="${Cr.fileName}" ${li}/>`),qe&&qe.sections.push({pos:Si,end:ee.getTextPos(),kind:Cr.resolutionMode?Cr.resolutionMode===99?"type-import":"type-require":"type",data:Cr.fileName}),Ic()}for(const Cr of on){const Si=ee.getTextPos();eh(`/// <reference lib="${Cr.fileName}" />`),qe&&qe.sections.push({pos:Si,end:ee.getTextPos(),kind:"lib",data:Cr.fileName}),Ic()}}function r_(S){const le=S.statements;Gg(S),Ue(S.statements,bc),_n(S);const ke=mi(le,on=>!yp(on));Ib(S),Rs(S,le,1,void 0,ke===-1?le.length:ke),Gh(S)}function k2(S){const le=vo(S);!(le&1024)&&S.pos!==S.expression.pos&&jg(S.expression.pos),cn(S.expression),!(le&2048)&&S.end!==S.expression.end&&Nd(S.expression.end)}function w2(S){Gy(S,S.elements,528,void 0)}function l0(S,le,ke,on){let Cr=!!le;for(let Si=0;Si<S.length;Si++){const li=S[Si];if(yp(li)){if(ke?!ke.has(li.expression.text):!0){Cr&&(Cr=!1,he(le)),Ic();const fo=ee.getTextPos();Xe(li),on&&qe&&qe.sections.push({pos:fo,end:ee.getTextPos(),kind:"prologue",data:li.expression.text}),ke&&ke.add(li.expression.text)}}else return Si}return S.length}function mS(S,le){for(const ke of S)if(!le.has(ke.data)){Ic();const on=ee.getTextPos();Xe(ke),qe&&qe.sections.push({pos:on,end:ee.getTextPos(),kind:"prologue",data:ke.data}),le&&le.add(ke.data)}}function hS(S){if(qi(S))l0(S.statements,S);else{const le=new Set;for(const ke of S.prepends)mS(ke.prologues,le);for(const ke of S.sourceFiles)l0(ke.statements,ke,le,!0);he(void 0)}}function D2(S){const le=new Set;let ke;for(let on=0;on<S.sourceFiles.length;on++){const Cr=S.sourceFiles[on];let Si,li=0;for(const Vi of Cr.statements){if(!yp(Vi))break;le.has(Vi.expression.text)||(le.add(Vi.expression.text),(Si||(Si=[])).push({pos:Vi.pos,end:Vi.end,expression:{pos:Vi.expression.pos,end:Vi.expression.end,text:Vi.expression.text}}),li=li<Vi.end?Vi.end:li)}Si&&(ke||(ke=[])).push({file:on,text:Cr.text.substring(0,li),directives:Si})}return ke}function kb(S){if(qi(S)||NT(S)){const le=HM(S.text);if(le)return eh(le),Ic(),!0}else{for(const le of S.prepends)if(D.assertNode(le,NT),kb(le))return!0;for(const le of S.sourceFiles)if(kb(le))return!0}}function gS(S,le){if(!S)return;const ke=je;je=le,Xe(S),je=ke}function Of(S,le,ke){if(le!=null&&le.length){if(Yn(le,uo))return Pg(S,le);if(Yn(le,Bu))return ke?Mg(S,le):S.pos;d==null||d(le);let on,Cr,Si=0,li=0,Vi;for(;Si<le.length;){for(;li<le.length;){if(Vi=le[li],Cr=Bu(Vi)?"decorators":"modifiers",on===void 0)on=Cr;else if(Cr!==on)break;li++}const fo={pos:-1,end:-1};Si===0&&(fo.pos=le.pos),li===le.length-1&&(fo.end=le.end),(on==="modifiers"||ke)&&Db(Xe,S,le,on==="modifiers"?2359808:2146305,void 0,Si,li-Si,!1,fo),Si=li,on=Cr,li++}if(y==null||y(le),Vi&&!em(Vi.end))return Vi.end}return S.pos}function Pg(S,le){Rs(S,le,2359808);const ke=tl(le);return ke&&!em(ke.end)?ke.end:S.pos}function Dp(S){S&&(pr(":"),ir(),Xe(S))}function ap(S,le,ke,on){S&&(ir(),pn(63,le,Pf,ke),ir(),cn(S,on))}function R2(S,le,ke,on){ke&&(le(S),on(ke))}function wb(S){S&&(ir(),Xe(S))}function cm(S,le){S&&(ir(),cn(S,le))}function yS(S){S&&(Xe(S),ir())}function md(S,le){lo(le)||vo(S)&1?(ir(),Xe(le)):(Ic(),C_(),rK(le)?mt(5,le):Xe(le),Rp())}function Mg(S,le){Rs(S,le,2146305);const ke=tl(le);return ke&&!em(ke.end)?ke.end:S.pos}function um(S,le){Rs(S,le,53776,At)}function dm(S,le){if(Ka(S)&&S.typeArguments)return um(S,S.typeArguments);Rs(S,le,53776)}function Fg(S,le){Rs(S,le,2576)}function cE(S,le){const ke=Am(le);return ke&&ke.pos===S.pos&&Js(S)&&!S.type&&!kt(S.modifiers)&&!kt(S.typeParameters)&&!kt(ke.modifiers)&&!ke.dotDotDotToken&&!ke.questionToken&&!ke.type&&!ke.initializer&&He(ke.name)}function vS(S,le){cE(S,le)?Rs(S,le,528):Fg(S,le)}function By(S,le){Rs(S,le,8848)}function uE(S){switch(S&60){case 0:break;case 16:pr(",");break;case 4:ir(),pr("|");break;case 32:ir(),pr("*"),ir();break;case 8:ir(),pr("&");break}}function Rs(S,le,ke,on,Cr,Si){N2(Xe,S,le,ke|(S&&vo(S)&2?65536:0),on,Cr,Si)}function Gy(S,le,ke,on,Cr,Si){N2(cn,S,le,ke,on,Cr,Si)}function N2(S,le,ke,on,Cr,Si=0,li=ke?ke.length-Si:0){if(ke===void 0&&on&16384)return;const fo=ke===void 0||Si>=ke.length||li===0;if(fo&&on&32768){d==null||d(ke),y==null||y(ke);return}on&15360&&(pr(dFe(on)),fo&&ke&&jg(ke.pos,!0)),d==null||d(ke),fo?on&1&&!(ve&&(!le||k&&xT(le,k)))?Ic():on&256&&!(on&524288)&&ir():Db(S,le,ke,on,Cr,Si,li,ke.hasTrailingComma,ke),y==null||y(ke),on&15360&&(fo&&ke&&Nd(ke.end),pr(fFe(on)))}function Db(S,le,ke,on,Cr,Si,li,Vi,fo){const nu=(on&262144)===0;let $d=nu;const gf=uu(le,ke[Si],on);gf?(Ic(gf),$d=!1):on&256&&ir(),on&128&&C_();const Xy=hFe(S,Cr);let Qd,g0,y0=!1;for(let ih=0;ih<li;ih++){const $y=ke[Si+ih];if(on&32)Ic(),uE(on);else if(Qd){on&60&&Qd.end!==(le?le.end:-1)&&(vo(Qd)&2048||Nd(Qd.end)),uE(on),Hr(g0);const i_=L_(Qd,$y,on);i_>0?(on&131||(C_(),y0=!0),Ic(i_),$d=!1):Qd&&on&512&&ir()}if(g0=Ar($y),$d){const i_=jm($y);jg(i_.pos)}else $d=nu;Se=$y.pos,Xy($y,S,Cr,ih),y0&&(Rp(),y0=!1),Qd=$y}const Yy=Qd?vo(Qd):0,I_=Zt||!!(Yy&2048),CE=Vi&&on&64&&on&16;CE&&(Qd&&!I_?pn(27,Qd.end,pr,Qd):pr(",")),Qd&&(le?le.end:-1)!==Qd.end&&on&60&&!I_&&Nd(CE&&(fo!=null&&fo.end)?fo.end:Qd.end),on&128&&Rp(),Hr(g0);const Bf=th(le,ke[Si+li-1],on,fo);Bf?Ic(Bf):on&2097408&&ir()}function Rb(S){ee.writeLiteral(S)}function O2(S){ee.writeStringLiteral(S)}function TL(S){ee.write(S)}function P2(S,le){ee.writeSymbol(S,le)}function pr(S){ee.writePunctuation(S)}function Rl(){ee.writeTrailingSemicolon(";")}function da(S){ee.writeKeyword(S)}function Pf(S){ee.writeOperator(S)}function c0(S){ee.writeParameter(S)}function eh(S){ee.writeComment(S)}function ir(){ee.writeSpace(" ")}function M2(S){ee.writeProperty(S)}function Uy(S){ee.nonEscapingWrite?ee.nonEscapingWrite(S):ee.write(S)}function Ic(S=1){for(let le=0;le<S;le++)ee.writeLine(le>0)}function C_(){ee.increaseIndent()}function Rp(){ee.decreaseIndent()}function Vy(S,le,ke,on){return Fe?op(S,ke,le):SL(on,S,ke,le,op)}function dE(S,le){h&&h(S),le(yo(S.kind)),E&&E(S)}function op(S,le,ke){const on=yo(S);return le(on),ke<0?ke:ke+on.length}function jy(S,le,ke){if(vo(S)&1)ir();else if(ve){const on=Np(S,le,ke);on?Ic(on):ir()}else Ic()}function Yl(S){const le=S.split(/\r\n?|\n/g),ke=Lde(le);for(const on of le){const Cr=ke?on.slice(ke):on;Cr.length&&(Ic(),je(Cr))}}function nc(S,le){S?(C_(),Ic(S)):le&&ir()}function Bg(S,le){S&&Rp(),le&&Rp()}function uu(S,le,ke){if(ke&2||ve){if(ke&65536)return 1;if(le===void 0)return!S||k&&xT(S,k)?0:1;if(le.pos===Se||le.kind===11)return 0;if(k&&S&&!em(S.pos)&&!Zs(le)&&(!le.parent||Sl(le.parent)===Sl(S)))return ve?Rd(on=>c_e(le.pos,S.pos,k,on)):t7(S,le,k)?0:1;if(Ob(le,ke))return 1}return ke&1?1:0}function L_(S,le,ke){if(ke&2||ve){if(S===void 0||le===void 0||le.kind===11)return 0;if(k&&!Zs(S)&&!Zs(le))return ve&&Hh(S,le)?Rd(on=>Mq(S,le,k,on)):!ve&&m0(S,le)?fO(S,le,k)?0:1:ke&65536?1:0;if(Ob(S,ke)||Ob(le,ke))return 1}else if(FO(le))return 1;return ke&1?1:0}function th(S,le,ke,on){if(ke&2||ve){if(ke&65536)return 1;if(le===void 0)return!S||k&&xT(S,k)?0:1;if(k&&S&&!em(S.pos)&&!Zs(le)&&(!le.parent||le.parent===S)){if(ve){const Cr=on&&!em(on.end)?on.end:le.end;return Rd(Si=>u_e(Cr,S.end,k,Si))}return o_e(S,le,k)?0:1}if(Ob(le,ke))return 1}return ke&1&&!(ke&131072)?1:0}function Rd(S){D.assert(!!ve);const le=S(!0);return le===0?S(!1):le}function fE(S,le){const ke=ve&&uu(le,S,0);return ke&&nc(ke,!1),!!ke}function Nb(S,le){const ke=ve&&th(le,S,0,void 0);ke&&Ic(ke)}function Ob(S,le){if(Zs(S)){const ke=FO(S);return ke===void 0?(le&65536)!==0:ke}return(le&65536)!==0}function Np(S,le,ke){return vo(S)&262144?0:(S=_E(S),le=_E(le),ke=_E(ke),FO(ke)?1:k&&!Zs(S)&&!Zs(le)&&!Zs(ke)?ve?Rd(on=>Mq(le,ke,k,on)):fO(le,ke,k)?0:1:0)}function Bh(S){return S.statements.length===0&&(!k||fO(S,S,k))}function _E(S){for(;S.kind===214&&Zs(S);)S=S.expression;return S}function Hy(S,le){if(xl(S)||lx(S))return Pb(S);if(Vo(S)&&S.textSourceNode)return Hy(S.textSourceNode,le);const ke=k,on=!!ke&&!!S.parent&&!Zs(S);if(lg(S)){if(!on||Zn(S)!==Sl(ke))return Mr(S)}else if(D.assertNode(S,oT),!on)return S.text;return v1(ke,S,le)}function Nl(S,le,ke){if(S.kind===10&&S.textSourceNode){const Cr=S.textSourceNode;if(He(Cr)||Ni(Cr)||b_(Cr)){const Si=b_(Cr)?Cr.text:Hy(Cr);return ke?`"${hq(Si)}"`:le||vo(S)&33554432?`"${bx(Si)}"`:`"${rO(Si)}"`}else return Nl(Cr,le,ke)}const on=(le?1:0)|(ke?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return jde(S,k,on)}function Gg(S){S&&vo(S)&1048576||(re.push(ye),ye=0,X.push(Y),Y=void 0,ae.push(W))}function Gh(S){S&&vo(S)&1048576||(ye=re.pop(),Y=X.pop(),W=ae.pop())}function u0(S){(!W||W===tl(ae))&&(W=new Set),W.add(S)}function d0(S,le){P.push(de),de=S,ce.push(W),me=le}function du(){de=P.pop(),me=ce.pop()}function Uh(S){(!me||me===tl(ce))&&(me=new Set),me.add(S)}function bc(S){if(S)switch(S.kind){case 238:Ue(S.statements,bc);break;case 253:case 251:case 243:case 244:bc(S.statement);break;case 242:bc(S.thenStatement),bc(S.elseStatement);break;case 245:case 247:case 246:bc(S.initializer),bc(S.statement);break;case 252:bc(S.caseBlock);break;case 266:Ue(S.clauses,bc);break;case 292:case 293:Ue(S.statements,bc);break;case 255:bc(S.tryBlock),bc(S.catchClause),bc(S.finallyBlock);break;case 295:bc(S.variableDeclaration),bc(S.block);break;case 240:bc(S.declarationList);break;case 258:Ue(S.declarations,bc);break;case 257:case 166:case 205:case 260:Vh(S.name);break;case 259:Vh(S.name),vo(S)&1048576&&(Ue(S.parameters,bc),bc(S.body));break;case 203:case 204:Ue(S.elements,bc);break;case 269:bc(S.importClause);break;case 270:Vh(S.name),bc(S.namedBindings);break;case 271:Vh(S.name);break;case 277:Vh(S.name);break;case 272:Ue(S.elements,bc);break;case 273:Vh(S.propertyName||S.name);break}}function pE(S){if(S)switch(S.kind){case 299:case 300:case 169:case 171:case 174:case 175:Vh(S.name);break}}function Vh(S){S&&(xl(S)||lx(S)?Pb(S):Xa(S)&&bc(S))}function Pb(S){const le=S.emitNode.autoGenerate;if((le.flags&7)===4)return hd(S5(S),Ni(S),le.flags,le.prefix,le.suffix);{const ke=le.id;return H[ke]||(H[ke]=Ir(S))}}function hd(S,le,ke,on,Cr){const Si=ms(S),li=le?V:G;return li[Si]||(li[Si]=as(S,le,ke??0,UC(on,Pb),UC(Cr)))}function nh(S,le){return f0(S)&&!Mb(S,le)&&!te.has(S)}function Mb(S,le){return le?!!(me!=null&&me.has(S)):!!(W!=null&&W.has(S))}function f0(S,le){return k?_3(k,S,r):!0}function mE(S,le){for(let ke=le;ke&&vT(ke,le);ke=ke.nextContainer)if(Nm(ke)&&ke.locals){const on=ke.locals.get(sl(S));if(on&&on.flags&3257279)return!1}return!0}function Wy(S){var le;switch(S){case"":return ye;case"#":return de;default:return(le=Y==null?void 0:Y.get(S))!=null?le:0}}function bS(S,le){switch(S){case"":ye=le;break;case"#":de=le;break;default:Y??(Y=new Map),Y.set(S,le);break}}function _0(S,le,ke,on,Cr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const Si=MT(ke,on,"",Cr);let li=Wy(Si);if(S&&!(li&S)){const fo=MT(ke,on,S===268435456?"_i":"_n",Cr);if(nh(fo,ke))return li|=S,ke?Uh(fo):le&&u0(fo),bS(Si,li),fo}for(;;){const Vi=li&268435455;if(li++,Vi!==8&&Vi!==13){const fo=Vi<26?"_"+String.fromCharCode(97+Vi):"_"+(Vi-26),nu=MT(ke,on,fo,Cr);if(nh(nu,ke))return ke?Uh(nu):le&&u0(nu),bS(Si,li),nu}}}function Ug(S,le=nh,ke,on,Cr,Si,li){if(S.length>0&&S.charCodeAt(0)===35&&(S=S.slice(1)),Si.length>0&&Si.charCodeAt(0)===35&&(Si=Si.slice(1)),ke){const fo=MT(Cr,Si,S,li);if(le(fo,Cr))return Cr?Uh(fo):on?u0(fo):te.add(fo),fo}S.charCodeAt(S.length-1)!==95&&(S+="_");let Vi=1;for(;;){const fo=MT(Cr,Si,S+Vi,li);if(le(fo,Cr))return Cr?Uh(fo):on?u0(fo):te.add(fo),fo;Vi++}}function Mf(S){return Ug(S,f0,!0,!1,!1,"","")}function hE(S){const le=Hy(S.name);return mE(le,ai(S,Nm))?le:Ug(le,nh,!1,!1,!1,"","")}function mf(S){const le=QA(S),ke=Vo(le)?Wde(le.text):"module";return Ug(ke,nh,!1,!1,!1,"","")}function jh(){return Ug("default",nh,!1,!1,!1,"","")}function p0(){return Ug("class",nh,!1,!1,!1,"","")}function F2(S,le,ke,on){return He(S.name)?hd(S.name,le):_0(0,!1,le,ke,on)}function as(S,le,ke,on,Cr){switch(S.kind){case 79:case 80:return Ug(Hy(S),nh,!!(ke&16),!!(ke&8),le,on,Cr);case 264:case 263:return D.assert(!on&&!Cr&&!le),hE(S);case 269:case 275:return D.assert(!on&&!Cr&&!le),mf(S);case 259:case 260:{D.assert(!on&&!Cr&&!le);const Si=S.name;return Si&&!xl(Si)?as(Si,!1,ke,on,Cr):jh()}case 274:return D.assert(!on&&!Cr&&!le),jh();case 228:return D.assert(!on&&!Cr&&!le),p0();case 171:case 174:case 175:return F2(S,le,on,Cr);case 164:return _0(0,!0,le,on,Cr);default:return _0(0,!1,le,on,Cr)}}function Ir(S){const le=S.emitNode.autoGenerate,ke=UC(le.prefix,Pb),on=UC(le.suffix);switch(le.flags&7){case 1:return _0(0,!!(le.flags&8),Ni(S),ke,on);case 2:return D.assertNode(S,He),_0(268435456,!!(le.flags&8),!1,ke,on);case 3:return Ug(Mr(S),le.flags&32?f0:nh,!!(le.flags&16),!!(le.flags&8),Ni(S),ke,on)}return D.fail(`Unsupported GeneratedIdentifierKind: ${D.formatEnum(le.flags&7,LM,!0)}.`)}function Xd(S,le){const ke=Pe(2,S,le),on=at,Cr=sn,Si=Qt;gd(le),ke(S,le),ES(le,on,Cr,Si)}function gd(S){const le=vo(S),ke=jm(S);gE(S,le,ke.pos,ke.end),le&4096&&(Zt=!0)}function ES(S,le,ke,on){const Cr=vo(S),Si=jm(S);Cr&4096&&(Zt=!1),zy(S,Cr,Si.pos,Si.end,le,ke,on);const li=Tpe(S);li&&zy(S,Cr,li.pos,li.end,le,ke,on)}function gE(S,le,ke,on){$i(),In=!1;const Cr=ke<0||(le&1024)!==0||S.kind===11,Si=on<0||(le&2048)!==0||S.kind===11;(ke>0||on>0)&&ke!==on&&(Cr||_m(ke,S.kind!==355),(!Cr||ke>=0&&le&1024)&&(at=ke),(!Si||on>=0&&le&2048)&&(sn=on,S.kind===258&&(Qt=on))),Ue(EC(S),B2),Qi()}function zy(S,le,ke,on,Cr,Si,li){$i();const Vi=on<0||(le&2048)!==0||S.kind===11;Ue(GO(S),qy),(ke>0||on>0)&&ke!==on&&(at=Cr,sn=Si,Qt=li,!Vi&&S.kind!==355&&yE(on)),Qi()}function B2(S){(S.hasLeadingNewline||S.kind===2)&&ee.writeLine(),fm(S),S.hasTrailingNewLine||S.kind===2?ee.writeLine():ee.writeSpace(" ")}function qy(S){ee.isAtStartOfLine()||ee.writeSpace(" "),fm(S),S.hasTrailingNewLine&&ee.writeLine()}function fm(S){const le=Op(S),ke=S.kind===3?QR(le):void 0;cC(le,ke,ee,0,le.length,L)}function Op(S){return S.kind===3?`/*${S.text}*/`:`//${S.text}`}function Vg(S,le,ke){$i();const{pos:on,end:Cr}=le,Si=vo(S),li=on<0||(Si&1024)!==0,Vi=Zt||Cr<0||(Si&2048)!==0;li||h0(le),Qi(),Si&4096&&!Zt?(Zt=!0,ke(S),Zt=!1):ke(S),$i(),Vi||(_m(le.end,!0),In&&!ee.isAtStartOfLine()&&ee.writeLine()),Qi()}function m0(S,le){return S=Sl(S),S.parent&&S.parent===Sl(le).parent}function Hh(S,le){if(le.pos<S.end)return!1;S=Sl(S),le=Sl(le);const ke=S.parent;if(!ke||ke!==le.parent)return!1;const on=H_e(S),Cr=on==null?void 0:on.indexOf(S);return Cr!==void 0&&Cr>-1&&on.indexOf(le)===Cr+1}function _m(S,le){In=!1,le?S===0&&(k!=null&&k.isDeclarationFile)?Ns(S,$l):Ns(S,rh):S===0&&Ns(S,TS)}function TS(S,le,ke,on,Cr){EE(S,le)&&rh(S,le,ke,on,Cr)}function $l(S,le,ke,on,Cr){EE(S,le)||rh(S,le,ke,on,Cr)}function hf(S,le){return e.onlyPrintJsDocStyle?wK(S,le)||p3(S,le):!0}function rh(S,le,ke,on,Cr){!k||!hf(k.text,S)||(In||(Hfe(Ze(),ee,Cr,S),In=!0),Yd(S),cC(k.text,Ze(),ee,S,le,L),Yd(le),on?ee.writeLine():ke===3&&ee.writeSpace(" "))}function Nd(S){Zt||S===-1||_m(S,!0)}function yE(S){vE(S,Jy)}function Jy(S,le,ke,on){!k||!hf(k.text,S)||(ee.isAtStartOfLine()||ee.writeSpace(" "),Yd(S),cC(k.text,Ze(),ee,S,le,L),Yd(le),on&&ee.writeLine())}function jg(S,le,ke){Zt||($i(),vE(S,le?Jy:ke?G2:Ff),Qi())}function G2(S,le,ke){k&&(Yd(S),cC(k.text,Ze(),ee,S,le,L),Yd(le),ke===2&&ee.writeLine())}function Ff(S,le,ke,on){k&&(Yd(S),cC(k.text,Ze(),ee,S,le,L),Yd(le),on?ee.writeLine():ee.writeSpace(" "))}function Ns(S,le){k&&(at===-1||S!==at)&&(bE(S)?Hg(le):tN(k.text,S,le,S))}function vE(S,le){k&&(sn===-1||S!==sn&&S!==Qt)&&nN(k.text,S,le)}function bE(S){return jn!==void 0&&zo(jn).nodePos===S}function Hg(S){if(!k)return;const le=zo(jn).detachedCommentEndPos;jn.length-1?jn.pop():jn=void 0,tN(k.text,le,S,le)}function h0(S){const le=k&&zfe(k.text,Ze(),ee,SS,S,L,Zt);le&&(jn?jn.push(le):jn=[le])}function SS(S,le,ke,on,Cr,Si){!k||!hf(k.text,on)||(Yd(on),cC(S,le,ke,on,Cr,Si),Yd(Cr))}function EE(S,le){return!!k&&Cz(k.text,S,le)}function TE(S){return S.parsedSourceMap===void 0&&S.sourceMapText!==void 0&&(S.parsedSourceMap=jX(S.sourceMapText)||!1),S.parsedSourceMap||void 0}function SE(S,le){const ke=Pe(3,S,le);xE(le),ke(S,le),AE(le)}function xE(S){const le=vo(S),ke=ib(S);if(tz(S)){D.assertIsDefined(S.parent,"UnparsedNodes must have parent pointers");const on=TE(S.parent);on&&st&&st.appendSourceMap(ee.getLine(),ee.getColumn(),on,S.parent.sourceMapPath,S.parent.getLineAndCharacterOfPosition(S.pos),S.parent.getLineAndCharacterOfPosition(S.end))}else{const on=ke.source||Ct;S.kind!==355&&!(le&32)&&ke.pos>=0&&Wh(ke.source||Ct,Ky(on,ke.pos)),le&128&&(Fe=!0)}}function AE(S){const le=vo(S),ke=ib(S);tz(S)||(le&128&&(Fe=!1),S.kind!==355&&!(le&64)&&ke.end>=0&&Wh(ke.source||Ct,ke.end))}function Ky(S,le){return S.skipTrivia?S.skipTrivia(le):Jo(S.text,le)}function Yd(S){if(Fe||em(S)||V2(Ct))return;const{line:le,character:ke}=ol(Ct,S);st.addMapping(ee.getLine(),ee.getColumn(),Et,le,ke,void 0)}function Wh(S,le){if(S!==Ct){const ke=Ct,on=Et;Wg(S),Yd(le),U2(ke,on)}else Yd(le)}function SL(S,le,ke,on,Cr){if(Fe||S&&P3(S))return Cr(le,ke,on);const Si=S&&S.emitNode,li=Si&&Si.flags||0,Vi=Si&&Si.tokenSourceMapRanges&&Si.tokenSourceMapRanges[le],fo=Vi&&Vi.source||Ct;return on=Ky(fo,Vi?Vi.pos:on),!(li&256)&&on>=0&&Wh(fo,on),on=Cr(le,ke,on),Vi&&(on=Vi.end),!(li&512)&&on>=0&&Wh(fo,on),on}function Wg(S){if(!Fe){if(Ct=S,S===jt){Et=tt;return}V2(S)||(Et=st.addSource(S.fileName),e.inlineSources&&st.setSourceContent(Et,S.text),jt=S,tt=Et)}}function U2(S,le){Ct=S,Et=le}function V2(S){return cc(S.fileName,".json")}}function uFe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function dFe(e){return mY[e&15360][0]}function fFe(e){return mY[e&15360][1]}function _Fe(e,t,r,i){t(e)}function pFe(e,t,r,i){t(e,r.select(i))}function mFe(e,t,r,i){t(e,r)}function hFe(e,t){return e.length===1?_Fe:typeof t=="object"?pFe:mFe}var mY,xF,hY,J1,gY,K8,gFe=C({"src/compiler/emitter.ts"(){Oa(),Oa(),d1(),mY=uFe(),xF={hasGlobalName:Wa,getReferencedExportContainer:Wa,getReferencedImportDeclaration:Wa,getReferencedDeclarationWithCollidingName:Wa,isDeclarationWithCollidingName:Wa,isValueAliasDeclaration:Wa,isReferencedAliasDeclaration:Wa,isTopLevelValueImportEqualsWithEntityName:Wa,getNodeCheckFlags:Wa,isDeclarationVisible:Wa,isLateBound:e=>!1,collectLinkedAliases:Wa,isImplementationOfOverload:Wa,isRequiredInitializedParameter:Wa,isOptionalUninitializedParameterProperty:Wa,isExpandoFunctionDeclaration:Wa,getPropertiesOfContainerFunction:Wa,createTypeOfDeclaration:Wa,createReturnTypeOfSignatureDeclaration:Wa,createTypeOfExpression:Wa,createLiteralConstValue:Wa,isSymbolAccessible:Wa,isEntityNameVisible:Wa,getConstantValue:Wa,getReferencedValueDeclaration:Wa,getTypeReferenceSerializationKind:Wa,isOptionalParameter:Wa,moduleExportsSomeValue:Wa,isArgumentsLocalBinding:Wa,getExternalModuleFileFromDeclaration:Wa,getTypeReferenceDirectivesForEntityName:Wa,getTypeReferenceDirectivesForSymbol:Wa,isLiteralConstDeclaration:Wa,getJsxFactoryEntity:Wa,getJsxFragmentFactoryEntity:Wa,getAllAccessorDeclarations:Wa,getSymbolOfExternalModuleSpecifier:Wa,isBindingCapturedByNode:Wa,getDeclarationStatementsForSourceFile:Wa,isImportRequiredByAugmentation:Wa},hY=Ed(()=>q1({})),J1=Ed(()=>q1({removeComments:!0})),gY=Ed(()=>q1({removeComments:!0,neverAsciiEscape:!0})),K8=Ed(()=>q1({removeComments:!0,omitTrailingSemicolon:!0}))}});function Gye(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=ru(r);return{useCaseSensitiveFileNames:r,fileExists:L,readFile:(P,de)=>e.readFile(P,de),directoryExists:e.directoryExists&&I,getDirectories:k,readDirectory:G,createDirectory:e.createDirectory&&O,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:H,addOrDeleteFile:te,clearCache:Y,realpath:e.realpath&&V};function s(P){return zs(P,t,o)}function c(P){return i.get(Pu(P))}function f(P){const de=c(hi(P));return de&&(de.sortedAndCanonicalizedFiles||(de.sortedAndCanonicalizedFiles=de.files.map(o).sort(),de.sortedAndCanonicalizedDirectories=de.directories.map(o).sort()),de)}function d(P){return mu(qo(P))}function y(P,de){var re;if(!e.realpath||Pu(s(e.realpath(P)))===de){const ye={files:Vt(e.readDirectory(P,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(P)||[]};return i.set(Pu(de),ye),ye}if((re=e.directoryExists)!=null&&re.call(e,P))return i.set(de,!1),!1}function h(P,de){de=Pu(de);const re=c(de);if(re)return re;try{return y(P,de)}catch{D.assert(!i.has(Pu(de)));return}}function E(P,de){return vv(P,de,ml,Ou)>=0}function A(P,de,re){const ye=s(P),ae=f(ye);return ae&&X(ae,d(P),!0),e.writeFile(P,de,re)}function L(P){const de=s(P),re=f(de);return re&&E(re.sortedAndCanonicalizedFiles,o(d(P)))||e.fileExists(P)}function I(P){const de=s(P);return i.has(Pu(de))||e.directoryExists(P)}function O(P){const de=s(P),re=f(de);if(re){const ye=d(P),ae=o(ye),W=re.sortedAndCanonicalizedDirectories;yv(W,ae,Ou)&&re.directories.push(ye)}e.createDirectory(P)}function k(P){const de=s(P),re=h(P,de);return re?re.directories.slice():e.getDirectories(P)}function G(P,de,re,ye,ae){const W=s(P),ce=h(P,W);let me;if(ce!==void 0)return Zq(P,de,re,ye,r,t,ae,ve,V);return e.readDirectory(P,de,re,ye,ae);function ve(ee){const Qe=s(ee);if(Qe===W)return ce||Se(ee,Qe);const je=h(ee,Qe);return je!==void 0?je||Se(ee,Qe):C7}function Se(ee,Qe){if(me&&Qe===W)return me;const je={files:Vt(e.readDirectory(ee,void 0,void 0,["*.*"]),d)||rt,directories:e.getDirectories(ee)||rt};return Qe===W&&(me=je),je}}function V(P){return e.realpath?e.realpath(P):P}function H(P,de){if(c(de)!==void 0){Y();return}const ye=f(de);if(!ye)return;if(!e.directoryExists){Y();return}const ae=d(P),W={fileExists:e.fileExists(de),directoryExists:e.directoryExists(de)};return W.directoryExists||E(ye.sortedAndCanonicalizedDirectories,o(ae))?Y():X(ye,ae,W.fileExists),W}function te(P,de,re){if(re===1)return;const ye=f(de);ye&&X(ye,d(P),re===0)}function X(P,de,re){const ye=P.sortedAndCanonicalizedFiles,ae=o(de);if(re)yv(ye,ae,Ou)&&P.files.push(de);else{const W=vv(ye,ae,ml,Ou);if(W>=0){ye.splice(W,1);const ce=P.files.findIndex(me=>o(me)===ae);P.files.splice(ce,1)}}}function Y(){i.clear()}}function yY(e,t,r,i,o){var s;const c=i1(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||rt,o);r.forEach((f,d)=>{c.has(d)||(f.projects.delete(e),f.close())}),c.forEach((f,d)=>{const y=r.get(d);y?y.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(f,d),close:()=>{const h=r.get(d);!h||h.projects.size!==0||(h.watcher.close(),r.delete(d))}})})}function Uye(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function vY(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(c=>r(c)===t)&&vY(e,o,r)})}function yFe(e,t,r){const i=new Map(e);fC(t,i,{createNewValue:r,onDeleteValue:Um})}function Vye(e,t,r){const i=e.getMissingFilePaths(),o=i1(i,ml,o1);fC(t,o,{createNewValue:r,onDeleteValue:Um})}function AF(e,t,r){fC(e,t,{createNewValue:i,onDeleteValue:Km,onExistingValue:o});function i(s,c){return{watcher:r(s,c),flags:c}}function o(s,c,f){s.flags!==c&&(s.watcher.close(),e.set(f,i(f,c)))}}function CF({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:c,currentDirectory:f,useCaseSensitiveFileNames:d,writeLog:y,toPath:h}){const E=QY(r);if(!E)return y(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(kA(r)&&!O_e(t,o,c))return y(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(bhe(t,o.configFile.configFileSpecs,Pa(hi(i),f),d,f))return y(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||qs(o)||o.outDir)return!1;if(fd(r)){if(o.declarationDir)return!1}else if(!Sc(r,Bk))return!1;const A=Gd(r),L=Va(s)?void 0:vFe(s)?s.getProgramOrUndefined():s,I=!L&&!Va(s)?s:void 0;if(O(A+".ts")||O(A+".tsx"))return y(`Project: ${i} Detected output file: ${t}`),!0;return!1;function O(k){return L?!!L.getSourceFileByPath(k):I?I.getState().fileInfos.has(k):!!nn(s,G=>h(G)===k)}}function vFe(e){return!!e.getState}function jye(e,t){return e?e.isEmittedFile(t):!1}function Hye(e,t,r,i){cue(t===2?r:oo);const o={watchFile:(O,k,G,V)=>e.watchFile(O,k,G,V),watchDirectory:(O,k,G,V)=>e.watchDirectory(O,k,(G&1)!==0,V)},s=t!==0?{watchFile:L("watchFile"),watchDirectory:L("watchDirectory")}:void 0,c=t===2?{watchFile:E,watchDirectory:A}:s||o,f=t===2?h:i6;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(O){return(k,G,V,H,te,X)=>{var Y;return O5(k,O==="watchFile"?H==null?void 0:H.excludeFiles:H==null?void 0:H.excludeDirectories,y(),((Y=e.getCurrentDirectory)==null?void 0:Y.call(e))||"")?f(k,V,H,te,X):c[O].call(void 0,k,G,V,H,te,X)}}function y(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function h(O,k,G,V,H){return r(`ExcludeWatcher:: Added:: ${I(O,k,G,V,H,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${I(O,k,G,V,H,i)}`)}}function E(O,k,G,V,H,te){r(`FileWatcher:: Added:: ${I(O,G,V,H,te,i)}`);const X=s.watchFile(O,k,G,V,H,te);return{close:()=>{r(`FileWatcher:: Close:: ${I(O,G,V,H,te,i)}`),X.close()}}}function A(O,k,G,V,H,te){const X=`DirectoryWatcher:: Added:: ${I(O,G,V,H,te,i)}`;r(X);const Y=il(),P=s.watchDirectory(O,k,G,V,H,te),de=il()-Y;return r(`Elapsed:: ${de}ms ${X}`),{close:()=>{const re=`DirectoryWatcher:: Close:: ${I(O,G,V,H,te,i)}`;r(re);const ye=il();P.close();const ae=il()-ye;r(`Elapsed:: ${ae}ms ${re}`)}}}function L(O){return(k,G,V,H,te,X)=>o[O].call(void 0,k,(...Y)=>{const P=`${O==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Y[0]} ${Y[1]!==void 0?Y[1]:""}:: ${I(k,V,H,te,X,i)}`;r(P);const de=il();G.call(void 0,...Y);const re=il()-de;r(`Elapsed:: ${re}ms ${P}`)},V,H,te,X)}function I(O,k,G,V,H,te){return`WatchInfo: ${O} ${k} ${JSON.stringify(G)} ${te?te(V,H):H===void 0?V:`${V} ${H}`}`}}function X8(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Km(e){e.watcher.close()}var bY,EY,bFe=C({"src/compiler/watchUtilities.ts"(){Oa(),Oa(),bY=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(bY||{}),EY=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(EY||{})}});function Wye(e,t,r="tsconfig.json"){return ag(e,i=>{const o=Bi(i,r);return t(o)?o:void 0})}function LF(e,t){const r=hi(t),i=km(e)?e:Bi(r,e);return qo(i)}function zye(e,t,r){let i;return Ue(e,s=>{const c=KR(s,t);if(c.pop(),!i){i=c;return}const f=Math.min(i.length,c.length);for(let d=0;d<f;d++)if(r(i[d])!==r(c[d])){if(d===0)return!0;i.length=d;break}c.length<i.length&&(i.length=c.length)})?"":i?f1(i):t}function qye(e,t){return xY(e,t)}function TY(e,t,r){return(i,o,s)=>{let c;try{al("beforeIORead"),c=e(i,t().charset),al("afterIORead"),Jf("I/O Read","beforeIORead","afterIORead")}catch(f){s&&s(f.message),c=""}return c!==void 0?f8(i,c,o,r):void 0}}function SY(e,t,r){return(i,o,s,c)=>{try{al("beforeIOWrite"),xq(i,o,s,e,t,r),al("afterIOWrite"),Jf("I/O Write","beforeIOWrite","afterIOWrite")}catch(f){c&&c(f.message)}}}function xY(e,t,r=$c){const i=new Map,o=ru(r.useCaseSensitiveFileNames);function s(h){return i.has(h)?!0:(y.directoryExists||r.directoryExists)(h)?(i.set(h,!0),!0):!1}function c(){return hi(qo(r.getExecutingFilePath()))}const f=tb(e),d=r.realpath&&(h=>r.realpath(h)),y={getSourceFile:TY(h=>y.readFile(h),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:h=>Bi(c(),zM(h)),writeFile:SY((h,E,A)=>r.writeFile(h,E,A),h=>(y.createDirectory||r.createDirectory)(h),h=>s(h)),getCurrentDirectory:Ed(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>f,fileExists:h=>r.fileExists(h),readFile:h=>r.readFile(h),trace:h=>r.write(h+f),directoryExists:h=>r.directoryExists(h),getEnvironmentVariable:h=>r.getEnvironmentVariable?r.getEnvironmentVariable(h):"",getDirectories:h=>r.getDirectories(h),realpath:d,readDirectory:(h,E,A,L,I)=>r.readDirectory(h,E,A,L,I),createDirectory:h=>r.createDirectory(h),createHash:Go(r,r.createHash)};return y}function Y8(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,c=e.createDirectory,f=e.writeFile,d=new Map,y=new Map,h=new Map,E=new Map,A=O=>{const k=t(O),G=d.get(k);return G!==void 0?G!==!1?G:void 0:L(k,O)},L=(O,k)=>{const G=i.call(e,k);return d.set(O,G!==void 0?G:!1),G};e.readFile=O=>{const k=t(O),G=d.get(k);return G!==void 0?G!==!1?G:void 0:!cc(O,".json")&&!wye(O)?i.call(e,O):L(k,O)};const I=r?(O,k,G,V)=>{const H=t(O),te=typeof k=="object"?k.impliedNodeFormat:void 0,X=E.get(te),Y=X==null?void 0:X.get(H);if(Y)return Y;const P=r(O,k,G,V);return P&&(fd(O)||cc(O,".json"))&&E.set(te,(X||new Map).set(H,P)),P}:void 0;return e.fileExists=O=>{const k=t(O),G=y.get(k);if(G!==void 0)return G;const V=o.call(e,O);return y.set(k,!!V),V},f&&(e.writeFile=(O,k,...G)=>{const V=t(O);y.delete(V);const H=d.get(V);H!==void 0&&H!==k?(d.delete(V),E.forEach(te=>te.delete(V))):I&&E.forEach(te=>{const X=te.get(V);X&&X.text!==k&&te.delete(V)}),f.call(e,O,k,...G)}),s&&(e.directoryExists=O=>{const k=t(O),G=h.get(k);if(G!==void 0)return G;const V=s.call(e,O);return h.set(k,!!V),V},c&&(e.createDirectory=O=>{const k=t(O);h.delete(k),c.call(e,O)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:f,getSourceFileWithCache:I,readFileWithCache:A}}function EFe(e,t,r){let i;return i=Ti(i,e.getConfigFileParsingDiagnostics()),i=Ti(i,e.getOptionsDiagnostics(r)),i=Ti(i,e.getSyntacticDiagnostics(t,r)),i=Ti(i,e.getGlobalDiagnostics(r)),i=Ti(i,e.getSemanticDiagnostics(t,r)),z_(e.getCompilerOptions())&&(i=Ti(i,e.getDeclarationDiagnostics(t,r))),DA(i||rt)}function TFe(e,t){let r="";for(const i of e)r+=AY(i,t);return r}function AY(e,t){const r=`${TM(e)} TS${e.code}: ${zv(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ol(e.file,e.start),s=e.file.fileName;return`${wI(s,t.getCurrentDirectory(),f=>t.getCanonicalFileName(f))}(${i+1},${o+1}): `+r}return r}function Jye(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return D.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function K1(e,t){return t+e+FY}function Kye(e,t,r,i,o,s){const{line:c,character:f}=ol(e,t),{line:d,character:y}=ol(e,t+r),h=ol(e,e.text.length).line,E=d-c>=4;let A=(d+1+"").length;E&&(A=Math.max(BY.length,A));let L="";for(let I=c;I<=d;I++){L+=s.getNewLine(),E&&c+1<I&&I<d-1&&(L+=i+K1(ZS(BY,A),PF)+MF+s.getNewLine(),I=d-1);const O=ZR(e,I,0),k=I<h?ZR(e,I+1,0):e.text.length;let G=e.text.slice(O,k);if(G=NR(G),G=G.replace(/\t/g," "),L+=i+K1(ZS(I+1+"",A),PF)+MF,L+=G+s.getNewLine(),L+=i+K1(ZS("",A),PF)+MF,L+=o,I===c){const V=I===d?y:void 0;L+=G.slice(0,f).replace(/\S/g," "),L+=G.slice(f,V).replace(/./g,"~")}else I===d?L+=G.slice(0,y).replace(/./g,"~"):L+=G.replace(/./g,"~");L+=FY}return L}function CY(e,t,r,i=K1){const{line:o,character:s}=ol(e,t),c=r?wI(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName;let f="";return f+=i(c,"\x1B[96m"),f+=":",f+=i(`${o+1}`,"\x1B[93m"),f+=":",f+=i(`${s+1}`,"\x1B[93m"),f}function Xye(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=CY(o,s,t),r+=" - "}if(r+=K1(TM(i),Jye(i.category)),r+=K1(` TS${i.code}: `,"\x1B[90m"),r+=zv(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=Kye(i.file,i.start,i.length,"",Jye(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:c,messageText:f}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=Qye+CY(o,s,t),r+=Kye(o,s,c,GY,"\x1B[96m",t)),r+=t.getNewLine(),r+=GY+zv(f,t.getNewLine())}r+=t.getNewLine()}return r}function zv(e,t,r=0){if(Ha(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(const o of e.next)i+=zv(o,t,r);return i}function $8(e,t){return(Ha(e)?t:e.resolutionMode)||t}function LY(e,t){if(e.impliedNodeFormat!==void 0)return Sp(e,OF(e,t))}function IY(e){var t;return eu(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function Sp(e,t){var r,i;if(e.impliedNodeFormat===void 0)return;if((zc(t.parent)||eu(t.parent))&&IY(t.parent)){const c=t2(t.parent.assertClause);if(c)return c}if(t.parent.parent&&vg(t.parent.parent)){const s=t2((r=t.parent.parent.assertions)==null?void 0:r.assertClause);if(s)return s}if(e.impliedNodeFormat!==99)return sf(Rv(t.parent))?99:1;const o=(i=Rv(t.parent))==null?void 0:i.parent;return o&&su(o)?1:99}function t2(e,t){if(!e)return;if(Ae(e.elements)!==1){t==null||t(e,_.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(xs(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,_.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(xs(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,_.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function kY(e){return e.text}function wY(e,t,r,i,o){return{nameAndMode:Aw,resolve:(s,c)=>uw(s,e,r,i,o,t,c)}}function IF(e){return Ha(e)?e:O_(e.fileName)}function kF(e,t,r,i,o){return{nameAndMode:e6,resolve:(s,c)=>dX(s,e,r,i,t,o,c)}}function Q8(e,t,r,i,o,s,c,f){if(e.length===0)return rt;const d=[],y=new Map,h=f(t,r,i,s,c);for(const E of e){const A=h.nameAndMode.getName(E),L=h.nameAndMode.getMode(E,o),I=cw(A,L);let O=y.get(I);O||y.set(I,O=h.resolve(A,L)),d.push(O)}return d}function Yye(e,t){return Z8(void 0,e,(r,i)=>r&&t(r,i))}function Z8(e,t,r,i){let o;return s(e,t,void 0);function s(c,f,d){if(i){const y=i(c,d);if(y)return y}return Ue(f,(y,h)=>{if(y&&(o!=null&&o.has(y.sourceFile.path)))return;const E=r(y,d,h);return E||!y?E:((o||(o=new Set)).add(y.sourceFile.path),s(y.commandLine.projectReferences,y.references,y))})}}function cb(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function XC(e){return e.pos!==void 0}function Sw(e,t){var r,i,o,s,c,f;const d=D.checkDefined(e(t.file)),{kind:y,index:h}=t;let E,A,L,I;switch(y){case 3:const O=OF(d,h);if(L=(o=(i=(r=d.resolvedModules)==null?void 0:r.get(O.text,LY(d,h)))==null?void 0:i.resolvedModule)==null?void 0:o.packageId,O.pos===-1)return{file:d,packageId:L,text:O.text};E=Jo(d.text,O.pos),A=O.end;break;case 4:({pos:E,end:A}=d.referencedFiles[h]);break;case 5:({pos:E,end:A,resolutionMode:I}=d.typeReferenceDirectives[h]),L=(f=(c=(s=d.resolvedTypeReferenceDirectiveNames)==null?void 0:s.get(O_(d.typeReferenceDirectives[h].fileName),I||d.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective)==null?void 0:f.packageId;break;case 7:({pos:E,end:A}=d.libReferenceDirectives[h]);break;default:return D.assertNever(y)}return{file:d,pos:E,end:A,packageId:L}}function DY(e,t,r,i,o,s,c,f,d){if(!e||c!=null&&c()||!zp(e.getRootFileNames(),t))return!1;let y;if(!zp(e.getProjectReferences(),d,L)||e.getSourceFiles().some(E)||e.getMissingFilePaths().some(o))return!1;const h=e.getCompilerOptions();if(!Gq(h,r))return!1;if(h.configFile&&r.configFile)return h.configFile.text===r.configFile.text;return!0;function E(O){return!A(O)||s(O.path)}function A(O){return O.version===i(O.resolvedPath,O.fileName)}function L(O,k,G){return Sz(O,k)&&I(e.getResolvedProjectReferences()[G],O)}function I(O,k){if(O){if(jr(y,O))return!0;const V=xw(k),H=f(V);return!H||O.commandLine.options.configFile!==H.options.configFile||!zp(O.commandLine.fileNames,H.fileNames)?!1:((y||(y=[])).push(O),!Ue(O.references,(te,X)=>!I(te,O.commandLine.projectReferences[X])))}const G=xw(k);return!f(G)}}function HT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function wF(e,t,r,i){const o=RY(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function RY(e,t,r,i){switch(vl(i)){case 3:case 99:return Sc(e,[".d.mts",".mts",".mjs"])?99:Sc(e,[".d.cts",".cts",".cjs"])?1:Sc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=X5(t,r,i),c=[];s.failedLookupLocations=c,s.affectingLocations=c;const f=Y5(e,s);return{impliedNodeFormat:(f==null?void 0:f.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:f}}}function SFe(e,t){return e?UA(e.getCompilerOptions(),t,F5):!1}function xFe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function DF(e,t,r,i,o){var s,c,f,d,y,h,E,A,L,I,O,k,G,V,H,te;const X=Va(e)?xFe(e,t,r,i,o):e,{rootNames:Y,options:P,configFileParsingDiagnostics:de,projectReferences:re,typeScriptVersion:ye}=X;let{oldProgram:ae}=X;const W=Ed(()=>A_("ignoreDeprecations",_.Invalid_value_for_ignoreDeprecations));let ce,me,ve,Se,ee,Qe,je;const Ge=new Map;let qe=__();const Oe={},Me={};let Ye=BT(),ze,Fe,st;const Ct=typeof P.maxNodeModuleJsDepth=="number"?P.maxNodeModuleJsDepth:0;let Et=0;const jt=new Map,tt=new Map;(s=bi)==null||s.push(bi.Phase.Program,"createProgram",{configFilePath:P.configFilePath,rootDir:P.rootDir},!0),al("beforeProgram");const at=X.host||qye(P),sn=NF(at);let Qt=P.noLib;const On=Ed(()=>at.getDefaultLibFileName(P)),jn=at.getDefaultLibLocation?at.getDefaultLibLocation():hi(On()),In=sC(),Zt=at.getCurrentDirectory(),_r=kk(P),Ii=vO(P,_r),$i=new Map;let Qi,Or,At;const vn=at.hasInvalidatedResolutions||a1;at.resolveModuleNameLiterals?(At=at.resolveModuleNameLiterals.bind(at),Or=(c=at.getModuleResolutionCache)==null?void 0:c.call(at)):at.resolveModuleNames?(At=(Ie,Ve,Lt,Ot,hn,bn)=>at.resolveModuleNames(Ie.map(kY),Ve,bn==null?void 0:bn.map(kY),Lt,Ot,hn).map(Tn=>Tn?Tn.extension!==void 0?{resolvedModule:Tn}:{resolvedModule:{...Tn,extension:xO(Tn.resolvedFileName)}}:UY),Or=(f=at.getModuleResolutionCache)==null?void 0:f.call(at)):(Or=q5(Zt,oe,P),At=(Ie,Ve,Lt,Ot,hn)=>Q8(Ie,Ve,Lt,Ot,hn,at,Or,wY));let Wt;if(at.resolveTypeReferenceDirectiveReferences)Wt=at.resolveTypeReferenceDirectiveReferences.bind(at);else if(at.resolveTypeReferenceDirectives)Wt=(Ie,Ve,Lt,Ot,hn)=>at.resolveTypeReferenceDirectives(Ie.map(IF),Ve,Lt,Ot,hn==null?void 0:hn.impliedNodeFormat).map(bn=>({resolvedTypeReferenceDirective:bn}));else{const Ie=J5(Zt,oe,void 0,Or==null?void 0:Or.getPackageJsonInfoCache());Wt=(Ve,Lt,Ot,hn,bn)=>Q8(Ve,Lt,Ot,hn,bn,at,Ie,kF)}const dn=new Map;let rr=new Map,cr=__(),Pi=!1;const gi=new Map;let Rn;const an=at.useCaseSensitiveFileNames()?new Map:void 0;let Pn,Ar,Hr,we;const yt=!!((d=at.useSourceOfProjectReferenceRedirect)!=null&&d.call(at))&&!P.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Nt,fileExists:Ce,directoryExists:pt}=AFe({compilerHost:at,getSymlinkCache:Ia,useSourceOfProjectReferenceRedirect:yt,toPath:mt,getResolvedProjectReferences:ft,getSourceOfProjectReferenceRedirect:fl,forEachResolvedProjectReference:ds}),pe=at.readFile.bind(at);(y=bi)==null||y.push(bi.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ae});const ie=SFe(ae,P);(h=bi)==null||h.pop();let he;if((E=bi)==null||E.push(bi.Phase.Program,"tryReuseStructureFromOldProgram",{}),he=Re(),(A=bi)==null||A.pop(),he!==2){if(ce=[],me=[],re&&(Pn||(Pn=re.map(Pt)),Y.length&&(Pn==null||Pn.forEach((Ie,Ve)=>{if(!Ie)return;const Lt=qs(Ie.commandLine.options);if(yt){if(Lt||au(Ie.commandLine.options)===0)for(const Ot of Ie.commandLine.fileNames)mn(Ot,{kind:1,index:Ve})}else if(Lt)mn(D1(Lt,".d.ts"),{kind:2,index:Ve});else if(au(Ie.commandLine.options)===0){const Ot=Ed(()=>Tw(Ie.commandLine,!at.useCaseSensitiveFileNames()));for(const hn of Ie.commandLine.fileNames)!fd(hn)&&!cc(hn,".json")&&mn(Ew(hn,Ie.commandLine,!at.useCaseSensitiveFileNames(),Ot),{kind:2,index:Ve})}}))),(L=bi)==null||L.push(bi.Phase.Program,"processRootFiles",{count:Y.length}),Ue(Y,(Ie,Ve)=>Hl(Ie,!1,!1,{kind:0,index:Ve})),(I=bi)==null||I.pop(),Fe??(Fe=Y.length?z5(P,at):rt),st=BT(),Fe.length){(O=bi)==null||O.push(bi.Phase.Program,"processTypeReferences",{count:Fe.length});const Ie=P.configFilePath?hi(P.configFilePath):at.getCurrentDirectory(),Ve=Bi(Ie,FF),Lt=Pe(Fe,Ve);for(let Ot=0;Ot<Fe.length;Ot++)st.set(Fe[Ot],void 0,Lt[Ot]),Dt(Fe[Ot],void 0,Lt[Ot],{kind:8,typeReference:Fe[Ot],packageId:(G=(k=Lt[Ot])==null?void 0:k.resolvedTypeReferenceDirective)==null?void 0:G.packageId});(V=bi)==null||V.pop()}if(Y.length&&!Qt){const Ie=On();!P.lib&&Ie?Hl(Ie,!0,!1,{kind:6}):Ue(P.lib,(Ve,Lt)=>{Hl(Xi(Ve),!0,!1,{kind:6,index:Lt})})}Rn=Ro(TA(gi.entries(),([Ie,Ve])=>Ve===void 0?Ie:void 0)),ve=ly(ce,Er).concat(me),ce=void 0,me=void 0}if(D.assert(!!Rn),ae&&at.onReleaseOldSourceFile){const Ie=ae.getSourceFiles();for(const Ve of Ie){const Lt=ca(Ve.resolvedPath);(ie||!Lt||Lt.impliedNodeFormat!==Ve.impliedNodeFormat||Ve.resolvedPath===Ve.path&&Lt.resolvedPath!==Ve.path)&&at.onReleaseOldSourceFile(Ve,ae.getCompilerOptions(),!!ca(Ve.path))}at.getParsedCommandLine||ae.forEachResolvedProjectReference(Ve=>{Wl(Ve.sourceFile.path)||at.onReleaseOldSourceFile(Ve.sourceFile,ae.getCompilerOptions(),!1)})}ae&&at.onReleaseParsedCommandLine&&Z8(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(Ie,Ve,Lt)=>{const Ot=(Ve==null?void 0:Ve.commandLine.projectReferences[Lt])||ae.getProjectReferences()[Lt],hn=xw(Ot);Ar!=null&&Ar.has(mt(hn))||at.onReleaseParsedCommandLine(hn,Ie,ae.getCompilerOptions())}),ae=void 0;const j={getRootFileNames:()=>Y,getSourceFile:io,getSourceFileByPath:ca,getSourceFiles:()=>ve,getMissingFilePaths:()=>Rn,getModuleResolutionCache:()=>Or,getFilesByNameMap:()=>gi,getCompilerOptions:()=>P,getSyntacticDiagnostics:Xr,getOptionsDiagnostics:hl,getGlobalDiagnostics:Ks,getSemanticDiagnostics:ss,getCachedSemanticDiagnostics:_i,getSuggestionDiagnostics:Xo,getDeclarationDiagnostics:fa,getBindAndCheckDiagnostics:ua,getProgramDiagnostics:wn,getTypeChecker:Ci,getClassifiableNames:it,getCommonSourceDirectory:zt,emit:ji,getCurrentDirectory:()=>Zt,getNodeCount:()=>Ci().getNodeCount(),getIdentifierCount:()=>Ci().getIdentifierCount(),getSymbolCount:()=>Ci().getSymbolCount(),getTypeCount:()=>Ci().getTypeCount(),getInstantiationCount:()=>Ci().getInstantiationCount(),getRelationCacheSizes:()=>Ci().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ze,getResolvedTypeReferenceDirectives:()=>Ye,getAutomaticTypeDirectiveNames:()=>Fe,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:oi,isSourceFileDefaultLibrary:Ai,getSourceFileFromReference:Q,getLibFileFromReference:Ht,sourceFileToPackageName:rr,redirectTargetsMap:cr,usesUriStyleNodeCoreModules:Pi,isEmittedFile:Xn,getConfigFileParsingDiagnostics:rn,getProjectReferences:_n,getResolvedProjectReferences:ft,getProjectReferenceRedirect:dl,getResolvedProjectReferenceToRedirect:Es,getResolvedProjectReferenceByPath:Wl,forEachResolvedProjectReference:ds,isSourceOfProjectReferenceRedirect:qd,emitBuildInfo:gt,fileExists:Ce,readFile:pe,directoryExists:pt,getSymlinkCache:Ia,realpath:(H=at.realpath)==null?void 0:H.bind(at),useCaseSensitiveFileNames:()=>at.useCaseSensitiveFileNames(),getCanonicalFileName:oe,getFileIncludeReasons:()=>qe,structureIsReused:he,writeFile:Rt};return Nt(),ze==null||ze.forEach(Ie=>{switch(Ie.kind){case 1:return In.add(ja(Ie.file&&ca(Ie.file),Ie.fileProcessingReason,Ie.diagnostic,Ie.args||rt));case 0:const{file:Ve,pos:Lt,end:Ot}=Sw(ca,Ie.reason);return In.add(Dc(Ve,D.checkDefined(Lt),D.checkDefined(Ot)-Lt,Ie.diagnostic,...Ie.args||rt));case 2:return Ie.diagnostics.forEach(hn=>In.add(hn));default:D.assertNever(Ie)}}),un(),al("afterProgram"),Jf("Program","beforeProgram","afterProgram"),(te=bi)==null||te.pop(),j;function We(Ie){var Ve;(Ve=Ie.resolutionDiagnostics)!=null&&Ve.length&&(ze??(ze=[])).push({kind:2,diagnostics:Ie.resolutionDiagnostics})}function Ze(Ie,Ve,Lt,Ot){if(at.resolveModuleNameLiterals||!at.resolveModuleNames)return We(Lt);if(!Or||Uc(Ve))return;const hn=Pa(Ie.originalFileName,Zt),bn=hi(hn),Tn=cn(Ie),Hn=Or.getFromNonRelativeNameCache(Ve,Ot,bn,Tn);Hn&&We(Hn)}function Xe(Ie,Ve,Lt){var Ot,hn;if(!Ie.length)return rt;const bn=Pa(Ve.originalFileName,Zt),Tn=cn(Ve);(Ot=bi)==null||Ot.push(bi.Phase.Program,"resolveModuleNamesWorker",{containingFileName:bn}),al("beforeResolveModule");const Hn=At(Ie,bn,Tn,P,Ve,Lt);return al("afterResolveModule"),Jf("ResolveModule","beforeResolveModule","afterResolveModule"),(hn=bi)==null||hn.pop(),Hn}function Ut(Ie,Ve,Lt){var Ot,hn;if(!Ie.length)return[];const bn=Ha(Ve)?void 0:Ve,Tn=Ha(Ve)?Ve:Pa(Ve.originalFileName,Zt),Hn=bn&&cn(bn);(Ot=bi)==null||Ot.push(bi.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Tn}),al("beforeResolveTypeReference");const qr=Wt(Ie,Tn,Hn,P,bn,Lt);return al("afterResolveTypeReference"),Jf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(hn=bi)==null||hn.pop(),qr}function cn(Ie){const Ve=Es(Ie.originalFileName);if(Ve||!fd(Ie.originalFileName))return Ve;const Lt=Sn(Ie.path);if(Lt)return Lt;if(!at.realpath||!P.preserveSymlinks||!pu(Ie.originalFileName,Ly))return;const Ot=mt(at.realpath(Ie.originalFileName));return Ot===Ie.path?void 0:Sn(Ot)}function Sn(Ie){const Ve=fl(Ie);if(Ha(Ve))return Es(Ve);if(Ve)return ds(Lt=>{const Ot=qs(Lt.commandLine.options);if(Ot)return mt(Ot)===Ie?Lt:void 0})}function Er(Ie,Ve){return Ws(ue(Ie),ue(Ve))}function ue(Ie){if(Tv(jn,Ie.fileName,!1)){const Ve=mu(Ie.fileName);if(Ve==="lib.d.ts"||Ve==="lib.es6.d.ts")return 0;const Lt=CA(AI(Ve,"lib."),".d.ts"),Ot=S8.indexOf(Lt);if(Ot!==-1)return Ot+1}return S8.length+2}function mt(Ie){return zs(Ie,Zt,oe)}function zt(){if(ee===void 0){const Ie=lr(ve,Ve=>Ex(Ve,j));ee=q8(P,()=>ia(Ie,Ve=>Ve.isDeclarationFile?void 0:Ve.fileName),Zt,oe,Ve=>Mt(Ie,Ve))}return ee}function it(){var Ie;if(!je){Ci(),je=new Set;for(const Ve of ve)(Ie=Ve.classifiableNames)==null||Ie.forEach(Lt=>je.add(Lt))}return je}function K(Ie,Ve){var Lt;if(he===0&&!Ve.ambientModuleNames.length)return Xe(Ie,Ve,void 0);const Ot=ae&&ae.getSourceFile(Ve.fileName);if(Ot!==Ve&&Ve.resolvedModules){const pn=[];for(const dr of Ie){const Aa=Ve.resolvedModules.get(dr.text,Sp(Ve,dr));pn.push(Aa)}return pn}let hn,bn,Tn;const Hn=UY;for(let pn=0;pn<Ie.length;pn++){const dr=Ie[pn];if(Ve===Ot&&!vn(Ot.path)){const Ys=Sp(Ve,dr),sc=(Lt=Ot.resolvedModules)==null?void 0:Lt.get(dr.text,Ys);if(sc!=null&&sc.resolvedModule){Wv(P,at)&&ha(at,sc.resolvedModule.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,dr.text,Pa(Ve.originalFileName,Zt),sc.resolvedModule.resolvedFileName,sc.resolvedModule.packageId&&uT(sc.resolvedModule.packageId)),(bn??(bn=new Array(Ie.length)))[pn]=sc,(Tn??(Tn=[])).push(dr);continue}}let Aa=!1;jr(Ve.ambientModuleNames,dr.text)?(Aa=!0,Wv(P,at)&&ha(at,_.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,dr.text,Pa(Ve.originalFileName,Zt))):Aa=tr(dr),Aa?(bn||(bn=new Array(Ie.length)))[pn]=Hn:(hn??(hn=[])).push(dr)}const qr=hn&&hn.length?Xe(hn,Ve,Tn):rt;if(!bn)return D.assert(qr.length===Ie.length),qr;let Ji=0;for(let pn=0;pn<bn.length;pn++)bn[pn]||(bn[pn]=qr[Ji],Ji++);return D.assert(Ji===qr.length),bn;function tr(pn){const dr=VA(Ot,pn.text,Sp(Ve,pn)),Aa=dr&&ae.getSourceFile(dr.resolvedFileName);if(dr&&Aa)return!1;const Ys=Ge.get(pn.text);return Ys?(Wv(P,at)&&ha(at,_.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,pn.text,Ys),!0):!1}}function Pe(Ie,Ve){var Lt;if(he===0)return Ut(Ie,Ve,void 0);const Ot=Ha(Ve)?void 0:ae&&ae.getSourceFile(Ve.fileName);if(!Ha(Ve)&&Ot!==Ve&&Ve.resolvedTypeReferenceDirectiveNames){const pn=[];for(const dr of Ie){const Aa=Ve.resolvedTypeReferenceDirectiveNames.get(IF(dr),$8(dr,Ve.impliedNodeFormat));pn.push(Aa)}return pn}let hn,bn,Tn;const Hn=Ha(Ve)?void 0:Ve,qr=Ha(Ve)?!vn(mt(Ve)):Ve===Ot&&!vn(Ot.path);for(let pn=0;pn<Ie.length;pn++){const dr=Ie[pn];if(qr){const Aa=IF(dr),Ys=$8(dr,Hn==null?void 0:Hn.impliedNodeFormat),sc=(Lt=Ha(Ve)?ae==null?void 0:ae.getAutomaticTypeDirectiveResolutions():Ot==null?void 0:Ot.resolvedTypeReferenceDirectiveNames)==null?void 0:Lt.get(Aa,Ys);if(sc!=null&&sc.resolvedTypeReferenceDirective){Wv(P,at)&&ha(at,sc.resolvedTypeReferenceDirective.packageId?_.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_successfully_resolved_to_2,Aa,Ha(Ve)?Ve:Pa(Ve.originalFileName,Zt),sc.resolvedTypeReferenceDirective.resolvedFileName,sc.resolvedTypeReferenceDirective.packageId&&uT(sc.resolvedTypeReferenceDirective.packageId)),(bn??(bn=new Array(Ie.length)))[pn]=sc,(Tn??(Tn=[])).push(dr);continue}}(hn??(hn=[])).push(dr)}if(!hn)return bn||rt;const Ji=Ut(hn,Ve,Tn);if(!bn)return D.assert(Ji.length===Ie.length),Ji;let tr=0;for(let pn=0;pn<bn.length;pn++)bn[pn]||(bn[pn]=Ji[tr],tr++);return D.assert(tr===Ji.length),bn}function Z(){return!Z8(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(Ie,Ve,Lt)=>{const Ot=(Ve?Ve.commandLine.projectReferences:re)[Lt],hn=Pt(Ot);return Ie?!hn||hn.sourceFile!==Ie.sourceFile||!zp(Ie.commandLine.fileNames,hn.commandLine.fileNames):hn!==void 0},(Ie,Ve)=>{const Lt=Ve?Wl(Ve.sourceFile.path).commandLine.projectReferences:re;return!zp(Ie,Lt,Sz)})}function Re(){var Ie;if(!ae)return 0;const Ve=ae.getCompilerOptions();if(Tz(Ve,P))return 0;const Lt=ae.getRootFileNames();if(!zp(Lt,Y)||!Z())return 0;re&&(Pn=re.map(Pt));const Ot=[],hn=[];if(he=2,ae.getMissingFilePaths().some(tr=>at.fileExists(tr)))return 0;const bn=ae.getSourceFiles();let Tn;(tr=>{tr[tr.Exists=0]="Exists",tr[tr.Modified=1]="Modified"})(Tn||(Tn={}));const Hn=new Map;for(const tr of bn){const pn=ls(tr.fileName,Or,at,P);let dr=at.getSourceFileByPath?at.getSourceFileByPath(tr.fileName,tr.resolvedPath,pn,void 0,ie||pn.impliedNodeFormat!==tr.impliedNodeFormat):at.getSourceFile(tr.fileName,pn,void 0,ie||pn.impliedNodeFormat!==tr.impliedNodeFormat);if(!dr)return 0;dr.packageJsonLocations=(Ie=pn.packageJsonLocations)!=null&&Ie.length?pn.packageJsonLocations:void 0,dr.packageJsonScope=pn.packageJsonScope,D.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Aa;if(tr.redirectInfo){if(dr!==tr.redirectInfo.unredirected)return 0;Aa=!1,dr=tr}else if(ae.redirectTargetsMap.has(tr.path)){if(dr!==tr)return 0;Aa=!1}else Aa=dr!==tr;dr.path=tr.path,dr.originalFileName=tr.originalFileName,dr.resolvedPath=tr.resolvedPath,dr.fileName=tr.fileName;const Ys=ae.sourceFileToPackageName.get(tr.path);if(Ys!==void 0){const sc=Hn.get(Ys),Ym=Aa?1:0;if(sc!==void 0&&Ym===1||sc===1)return 0;Hn.set(Ys,Ym)}Aa?(tr.impliedNodeFormat!==dr.impliedNodeFormat?he=1:zp(tr.libReferenceDirectives,dr.libReferenceDirectives,xu)?tr.hasNoDefaultLib!==dr.hasNoDefaultLib?he=1:zp(tr.referencedFiles,dr.referencedFiles,xu)?(It(dr),zp(tr.imports,dr.imports,zu)&&zp(tr.moduleAugmentations,dr.moduleAugmentations,zu)?(tr.flags&6291456)!==(dr.flags&6291456)?he=1:zp(tr.typeReferenceDirectives,dr.typeReferenceDirectives,xu)||(he=1):he=1):he=1:he=1,hn.push({oldFile:tr,newFile:dr})):vn(tr.path)&&(he=1,hn.push({oldFile:tr,newFile:dr})),Ot.push(dr)}if(he!==2)return he;const qr=hn.map(tr=>tr.oldFile);for(const tr of bn)if(!jr(qr,tr))for(const pn of tr.ambientModuleNames)Ge.set(pn,tr.fileName);for(const{oldFile:tr,newFile:pn}of hn){const dr=$ye(pn),Aa=K(dr,pn);xz(dr,pn,Aa,tr.resolvedModules,Ode,Aw)?(he=1,pn.resolvedModules=hX(pn,dr,Aa,Aw)):pn.resolvedModules=tr.resolvedModules;const sc=pn.typeReferenceDirectives,Ym=Pe(sc,pn);xz(sc,pn,Ym,tr.resolvedTypeReferenceDirectiveNames,Pde,e6)?(he=1,pn.resolvedTypeReferenceDirectiveNames=hX(pn,sc,Ym,e6)):pn.resolvedTypeReferenceDirectiveNames=tr.resolvedTypeReferenceDirectiveNames}if(he!==2)return he;if(wde(Ve,P))return 1;if(at.hasChangedAutomaticTypeDirectiveNames){if(at.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Fe=z5(P,at),!zp(ae.getAutomaticTypeDirectiveNames(),Fe))return 1;Rn=ae.getMissingFilePaths(),D.assert(Ot.length===ae.getSourceFiles().length);for(const tr of Ot)gi.set(tr.path,tr);return ae.getFilesByNameMap().forEach((tr,pn)=>{if(!tr){gi.set(pn,tr);return}if(tr.path===pn){ae.isSourceFileFromExternalLibrary(tr)&&tt.set(tr.path,!0);return}gi.set(pn,gi.get(tr.path))}),ve=Ot,qe=ae.getFileIncludeReasons(),ze=ae.getFileProcessingDiagnostics(),Ye=ae.getResolvedTypeReferenceDirectives(),Fe=ae.getAutomaticTypeDirectiveNames(),st=ae.getAutomaticTypeDirectiveResolutions(),rr=ae.sourceFileToPackageName,cr=ae.redirectTargetsMap,Pi=ae.usesUriStyleNodeCoreModules,2}function q(Ie){return{getPrependNodes:$n,getCanonicalFileName:oe,getCommonSourceDirectory:j.getCommonSourceDirectory,getCompilerOptions:j.getCompilerOptions,getCurrentDirectory:()=>Zt,getSourceFile:j.getSourceFile,getSourceFileByPath:j.getSourceFileByPath,getSourceFiles:j.getSourceFiles,getLibFileFromReference:j.getLibFileFromReference,isSourceFileFromExternalLibrary:oi,getResolvedProjectReferenceToRedirect:Es,getProjectReferenceRedirect:dl,isSourceOfProjectReferenceRedirect:qd,getSymlinkCache:Ia,writeFile:Ie||Rt,isEmitBlocked:mo,readFile:Ve=>at.readFile(Ve),fileExists:Ve=>{const Lt=mt(Ve);return ca(Lt)?!0:jr(Rn,Lt)?!1:at.fileExists(Ve)},useCaseSensitiveFileNames:()=>at.useCaseSensitiveFileNames(),getBuildInfo:Ve=>{var Lt;return(Lt=j.getBuildInfo)==null?void 0:Lt.call(j,Ve)},getSourceFileFromReference:(Ve,Lt)=>j.getSourceFileFromReference(Ve,Lt),redirectTargetsMap:cr,getFileIncludeReasons:j.getFileIncludeReasons,createHash:Go(at,at.createHash)}}function Rt(Ie,Ve,Lt,Ot,hn,bn){at.writeFile(Ie,Ve,Lt,Ot,hn,bn)}function gt(Ie){var Ve,Lt;D.assert(!qs(P)),(Ve=bi)==null||Ve.push(bi.Phase.Emit,"emitBuildInfo",{},!0),al("beforeEmit");const Ot=TF(xF,q(Ie),void 0,dY,!1,!0);return al("afterEmit"),Jf("Emit","beforeEmit","afterEmit"),(Lt=bi)==null||Lt.pop(),Ot}function ft(){return Pn}function _n(){return re}function $n(){return OY(re,(Ie,Ve)=>{var Lt;return(Lt=Pn[Ve])==null?void 0:Lt.commandLine},Ie=>{const Ve=mt(Ie),Lt=ca(Ve);return Lt?Lt.text:gi.has(Ve)?void 0:at.readFile(Ve)},at)}function oi(Ie){return!!tt.get(Ie.path)}function Ai(Ie){if(!Ie.isDeclarationFile)return!1;if(Ie.hasNoDefaultLib)return!0;if(!P.noLib)return!1;const Ve=at.useCaseSensitiveFileNames()?QS:$S;return P.lib?kt(P.lib,Lt=>Ve(Ie.fileName,Xi(Lt))):Ve(Ie.fileName,On())}function Ci(){return Qe||(Qe=Rge(j))}function ji(Ie,Ve,Lt,Ot,hn,bn){var Tn,Hn;(Tn=bi)==null||Tn.push(bi.Phase.Emit,"emit",{path:Ie==null?void 0:Ie.path},!0);const qr=rl(()=>To(j,Ie,Ve,Lt,Ot,hn,bn));return(Hn=bi)==null||Hn.pop(),qr}function mo(Ie){return $i.has(mt(Ie))}function To(Ie,Ve,Lt,Ot,hn,bn,Tn){if(!Tn){const Ji=NY(Ie,Ve,Lt,Ot);if(Ji)return Ji}const Hn=Ci().getEmitResolver(qs(P)?void 0:Ve,Ot);al("beforeEmit");const qr=TF(Hn,q(Lt),Ve,uY(P,bn,hn),hn,!1,Tn);return al("afterEmit"),Jf("Emit","beforeEmit","afterEmit"),qr}function io(Ie){return ca(mt(Ie))}function ca(Ie){return gi.get(Ie)||void 0}function Hi(Ie,Ve,Lt){return DA(Ie?Ve(Ie,Lt):ma(j.getSourceFiles(),Ot=>(Lt&&Lt.throwIfCancellationRequested(),Ve(Ot,Lt))))}function Xr(Ie,Ve){return Hi(Ie,ec,Ve)}function ss(Ie,Ve){return Hi(Ie,Ul,Ve)}function _i(Ie){var Ve;return Ie?(Ve=Oe.perFile)==null?void 0:Ve.get(Ie.path):Oe.allDiagnostics}function ua(Ie,Ve){return Xl(Ie,Ve)}function wn(Ie){var Ve;if(wk(Ie,P,j))return rt;const Lt=In.getDiagnostics(Ie.fileName);return(Ve=Ie.commentDirectives)!=null&&Ve.length?La(Ie,Ie.commentDirectives,Lt).diagnostics:Lt}function fa(Ie,Ve){const Lt=j.getCompilerOptions();return!Ie||qs(Lt)?zd(Ie,Ve):Hi(Ie,Ds,Ve)}function ec(Ie){return td(Ie)?(Ie.additionalSyntacticDiagnostics||(Ie.additionalSyntacticDiagnostics=tu(Ie)),ba(Ie.additionalSyntacticDiagnostics,Ie.parseDiagnostics)):Ie.parseDiagnostics}function rl(Ie){try{return Ie()}catch(Ve){throw Ve instanceof II&&(Qe=void 0),Ve}}function Ul(Ie,Ve){return ba(RF(Xl(Ie,Ve),P),wn(Ie))}function Xl(Ie,Ve){return Kc(Ie,Ve,Oe,Vl)}function Vl(Ie,Ve){return rl(()=>{if(wk(Ie,P,j))return rt;const Lt=Ci();D.assert(!!Ie.bindDiagnostics);const hn=(Ie.scriptKind===1||Ie.scriptKind===2)&&AO(Ie,P),bn=f3(Ie,P.checkJs),Hn=!(!!Ie.checkJsDirective&&Ie.checkJsDirective.enabled===!1)&&(Ie.scriptKind===3||Ie.scriptKind===4||Ie.scriptKind===5||bn||hn||Ie.scriptKind===7);let qr=Hn?Ie.bindDiagnostics:rt,Ji=Hn?Lt.getDiagnostics(Ie,Ve):rt;return bn&&(qr=lr(qr,tr=>BF.has(tr.code)),Ji=lr(Ji,tr=>BF.has(tr.code))),Co(Ie,Hn&&!bn,qr,Ji,hn?Ie.jsDocDiagnostics:void 0)})}function Co(Ie,Ve,...Lt){var Ot;const hn=is(Lt);if(!Ve||!((Ot=Ie.commentDirectives)!=null&&Ot.length))return hn;const{diagnostics:bn,directives:Tn}=La(Ie,Ie.commentDirectives,hn);for(const Hn of Tn.getUnusedExpectations())bn.push(Vz(Ie,Hn.range,_.Unused_ts_expect_error_directive));return bn}function La(Ie,Ve,Lt){const Ot=Vde(Ie,Ve);return{diagnostics:Lt.filter(bn=>jl(bn,Ot)===-1),directives:Ot}}function Xo(Ie,Ve){return rl(()=>Ci().getSuggestionDiagnostics(Ie,Ve))}function jl(Ie,Ve){const{file:Lt,start:Ot}=Ie;if(!Lt)return-1;const hn=og(Lt);let bn=eN(hn,Ot).line-1;for(;bn>=0;){if(Ve.markUsed(bn))return bn;const Tn=Lt.text.slice(hn[bn],hn[bn+1]).trim();if(Tn!==""&&!/^(\s*)\/\/(.*)$/.test(Tn))return-1;bn--}return-1}function tu(Ie){return rl(()=>{const Ve=[];return Lt(Ie,Ie),d8(Ie,Lt,Ot),Ve;function Lt(Hn,qr){switch(qr.kind){case 166:case 169:case 171:if(qr.questionToken===Hn)return Ve.push(Tn(Hn,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(qr.type===Hn)return Ve.push(Tn(Hn,_.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Hn.kind){case 270:if(Hn.isTypeOnly)return Ve.push(Tn(qr,_._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Hn.isTypeOnly)return Ve.push(Tn(Hn,_._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Hn.isTypeOnly)return Ve.push(Tn(Hn,_._0_declarations_can_only_be_used_in_TypeScript_files,Ld(Hn)?"import...type":"export...type")),"skip";break;case 268:return Ve.push(Tn(Hn,_.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Hn.isExportEquals)return Ve.push(Tn(Hn,_.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(Hn.token===117)return Ve.push(Tn(Hn,_.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const tr=yo(118);return D.assertIsDefined(tr),Ve.push(Tn(Hn,_._0_declarations_can_only_be_used_in_TypeScript_files,tr)),"skip";case 264:const pn=Hn.flags&16?yo(143):yo(142);return D.assertIsDefined(pn),Ve.push(Tn(Hn,_._0_declarations_can_only_be_used_in_TypeScript_files,pn)),"skip";case 262:return Ve.push(Tn(Hn,_.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const dr=D.checkDefined(yo(92));return Ve.push(Tn(Hn,_._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 232:return Ve.push(Tn(Hn,_.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Ve.push(Tn(Hn.type,_.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Ve.push(Tn(Hn.type,_.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:D.fail()}}function Ot(Hn,qr){if(LK(qr)){const Ji=nn(qr.modifiers,Bu);Ji&&Ve.push(Tn(Ji,_.Decorators_are_not_valid_here))}else if(Yx(qr)&&qr.modifiers){const Ji=mi(qr.modifiers,Bu);if(Ji>=0){if(Ba(qr)&&!P.experimentalDecorators)Ve.push(Tn(qr.modifiers[Ji],_.Decorators_are_not_valid_here));else if(Nc(qr)){const tr=mi(qr.modifiers,i5);if(tr>=0){const pn=mi(qr.modifiers,Rpe);if(Ji>tr&&pn>=0&&Ji<pn)Ve.push(Tn(qr.modifiers[Ji],_.Decorators_are_not_valid_here));else if(tr>=0&&Ji<tr){const dr=mi(qr.modifiers,Bu,tr);dr>=0&&Ve.push(Ko(Tn(qr.modifiers[dr],_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Tn(qr.modifiers[Ji],_.Decorator_used_before_export_here)))}}}}}switch(qr.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Hn===qr.typeParameters)return Ve.push(bn(Hn,_.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Hn===qr.modifiers)return hn(qr.modifiers,qr.kind===240),"skip";break;case 169:if(Hn===qr.modifiers){for(const Ji of Hn)uo(Ji)&&Ji.kind!==124&&Ji.kind!==127&&Ve.push(Tn(Ji,_.The_0_modifier_can_only_be_used_in_TypeScript_files,yo(Ji.kind)));return"skip"}break;case 166:if(Hn===qr.modifiers&&kt(Hn,uo))return Ve.push(bn(Hn,_.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Hn===qr.typeArguments)return Ve.push(bn(Hn,_.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function hn(Hn,qr){for(const Ji of Hn)switch(Ji.kind){case 85:if(qr)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Ve.push(Tn(Ji,_.The_0_modifier_can_only_be_used_in_TypeScript_files,yo(Ji.kind)));break;case 124:case 93:case 88:case 127:}}function bn(Hn,qr,Ji,tr,pn){const dr=Hn.pos;return Dc(Ie,dr,Hn.end-dr,qr,Ji,tr,pn)}function Tn(Hn,qr,Ji,tr,pn){return cd(Ie,Hn,qr,Ji,tr,pn)}})}function zd(Ie,Ve){return Kc(Ie,Ve,Me,oc)}function oc(Ie,Ve){return rl(()=>{const Lt=Ci().getEmitResolver(Ie,Ve);return Aye(q(oo),Lt,Ie)||rt})}function Kc(Ie,Ve,Lt,Ot){var hn;const bn=Ie?(hn=Lt.perFile)==null?void 0:hn.get(Ie.path):Lt.allDiagnostics;if(bn)return bn;const Tn=Ot(Ie,Ve);return Ie?(Lt.perFile||(Lt.perFile=new Map)).set(Ie.path,Tn):Lt.allDiagnostics=Tn,Tn}function Ds(Ie,Ve){return Ie.isDeclarationFile?[]:zd(Ie,Ve)}function hl(){return DA(ba(In.getGlobalDiagnostics(),el()))}function el(){if(!P.configFile)return rt;let Ie=In.getDiagnostics(P.configFile.fileName);return ds(Ve=>{Ie=ba(Ie,In.getDiagnostics(Ve.sourceFile.fileName))}),Ie}function Ks(){return Y.length?DA(Ci().getGlobalDiagnostics().slice()):rt}function rn(){return de||rt}function Hl(Ie,Ve,Lt,Ot){xt(qo(Ie),Ve,Lt,void 0,Ot)}function xu(Ie,Ve){return Ie.fileName===Ve.fileName}function zu(Ie,Ve){return Ie.kind===79?Ve.kind===79&&Ie.escapedText===Ve.escapedText:Ve.kind===10&&Ie.text===Ve.text}function fe(Ie,Ve){const Lt=N.createStringLiteral(Ie),Ot=N.createImportDeclaration(void 0,void 0,Lt,void 0);return wx(Ot,2),Uo(Lt,Ot),Uo(Ot,Ve),Lt.flags&=-9,Ot.flags&=-9,Lt}function It(Ie){if(Ie.imports)return;const Ve=td(Ie),Lt=Zl(Ie);let Ot,hn,bn;if((H_(P)||Lt)&&!Ie.isDeclarationFile){P.importHelpers&&(Ot=[fe(rb,Ie)]);const tr=u7(c7(P,Ie),P);tr&&(Ot||(Ot=[])).push(fe(tr,Ie))}for(const tr of Ie.statements)Hn(tr,!1);const Tn=Ve&&vl(P)!==100;(Ie.flags&2097152||Tn)&&qr(Ie),Ie.imports=Ot||rt,Ie.moduleAugmentations=hn||rt,Ie.ambientModuleNames=bn||rt;return;function Hn(tr,pn){if(TN(tr)){const dr=QA(tr);dr&&Vo(dr)&&dr.text&&(!pn||!Uc(dr.text))&&(Fv(tr,!1),Ot=Fn(Ot,dr),!Pi&&Et===0&&!Ie.isDeclarationFile&&(Pi=xa(dr.text,"node:")))}else if(Jl(tr)&&Mu(tr)&&(pn||Yr(tr,2)||Ie.isDeclarationFile)){tr.name.parent=tr;const dr=V_(tr.name);if(Lt||pn&&!Uc(dr))(hn||(hn=[])).push(tr.name);else if(!pn){Ie.isDeclarationFile&&(bn||(bn=[])).push(dr);const Aa=tr.body;if(Aa)for(const Ys of Aa.statements)Hn(Ys,!0)}}}function qr(tr){const pn=/import|require/g;for(;pn.exec(tr.text)!==null;){const dr=Ji(tr,pn.lastIndex);Tn&&xd(dr,!0)||sf(dr)&&dr.arguments.length>=1&&xs(dr.arguments[0])?(Fv(dr,!1),Ot=Fn(Ot,dr.arguments[0])):K0(dr)&&(Fv(dr,!1),Ot=Fn(Ot,dr.argument.literal))}}function Ji(tr,pn){let dr=tr;const Aa=Ys=>{if(Ys.pos<=pn&&(pn<Ys.end||pn===Ys.end&&Ys.kind===1))return Ys};for(;;){const Ys=Ve&&xf(dr)&&Ue(dr.jsDoc,Aa)||Ma(dr,Aa);if(!Ys)return dr;dr=Ys}}}function Ht(Ie){const Ve=O_(Ie.fileName),Lt=x8.get(Ve);if(Lt)return io(Xi(Lt))}function Q(Ie,Ve){return ot(LF(Ve.fileName,Ie.fileName),io)}function ot(Ie,Ve,Lt,Ot){if(kA(Ie)){const hn=at.getCanonicalFileName(Ie);if(!P.allowNonTsExtensions&&!Ue(is(Ii),Tn=>cc(hn,Tn))){Lt&&(Ix(hn)?Lt(_.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ie):Lt(_.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ie,"'"+is(_r).join("', '")+"'"));return}const bn=Ve(Ie);if(Lt)if(bn)cb(Ot)&&hn===at.getCanonicalFileName(ca(Ot.file).fileName)&&Lt(_.A_file_cannot_have_a_reference_to_itself);else{const Tn=dl(Ie);Tn?Lt(_.Output_file_0_has_not_been_built_from_source_file_1,Tn,Ie):Lt(_.File_0_not_found,Ie)}return bn}else{const hn=P.allowNonTsExtensions&&Ve(Ie);if(hn)return hn;if(Lt&&P.allowNonTsExtensions){Lt(_.File_0_not_found,Ie);return}const bn=Ue(_r[0],Tn=>Ve(Ie+Tn));return Lt&&!bn&&Lt(_.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ie,"'"+is(_r).join("', '")+"'"),bn}}function xt(Ie,Ve,Lt,Ot,hn){ot(Ie,bn=>Ta(bn,Ve,Lt,hn,Ot),(bn,...Tn)=>Ho(void 0,hn,bn,Tn),hn)}function mn(Ie,Ve){return xt(Ie,!1,!1,void 0,Ve)}function Dr(Ie,Ve,Lt){!cb(Lt)&&kt(qe.get(Ve.path),cb)?Ho(Ve,Lt,_.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ve.fileName,Ie]):Ho(Ve,Lt,_.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ie,Ve.fileName])}function Pr(Ie,Ve,Lt,Ot,hn,bn,Tn){var Hn;const qr=Jm.createRedirectedSourceFile({redirectTarget:Ie,unredirected:Ve});return qr.fileName=Lt,qr.path=Ot,qr.resolvedPath=hn,qr.originalFileName=bn,qr.packageJsonLocations=(Hn=Tn.packageJsonLocations)!=null&&Hn.length?Tn.packageJsonLocations:void 0,qr.packageJsonScope=Tn.packageJsonScope,tt.set(Ot,Et>0),qr}function Ta(Ie,Ve,Lt,Ot,hn){var bn,Tn;(bn=bi)==null||bn.push(bi.Phase.Program,"findSourceFile",{fileName:Ie,isDefaultLib:Ve||void 0,fileIncludeKind:IM[Ot.kind]});const Hn=ho(Ie,Ve,Lt,Ot,hn);return(Tn=bi)==null||Tn.pop(),Hn}function ls(Ie,Ve,Lt,Ot){const hn=RY(Pa(Ie,Zt),Ve==null?void 0:Ve.getPackageJsonInfoCache(),Lt,Ot),bn=es(Ot),Tn=mO(Ot);return typeof hn=="object"?{...hn,languageVersion:bn,setExternalModuleIndicator:Tn}:{languageVersion:bn,impliedNodeFormat:hn,setExternalModuleIndicator:Tn}}function ho(Ie,Ve,Lt,Ot,hn){var bn,Tn;const Hn=mt(Ie);if(yt){let dr=fl(Hn);if(!dr&&at.realpath&&P.preserveSymlinks&&fd(Ie)&&pu(Ie,Ly)){const Aa=mt(at.realpath(Ie));Aa!==Hn&&(dr=fl(Aa))}if(dr){const Aa=Ha(dr)?Ta(dr,Ve,Lt,Ot,hn):void 0;return Aa&&Ya(Aa,Hn,void 0),Aa}}const qr=Ie;if(gi.has(Hn)){const dr=gi.get(Hn);if(jo(dr||void 0,Ot),dr&&P.forceConsistentCasingInFileNames!==!1){const Aa=dr.fileName;mt(Aa)!==mt(Ie)&&(Ie=dl(Ie)||Ie);const sc=DW(Aa,Zt),Ym=DW(Ie,Zt);sc!==Ym&&Dr(Ie,dr,Ot)}return dr&&tt.get(dr.path)&&Et===0?(tt.set(dr.path,!1),P.noResolve||(Nf(dr,Ve),xe(dr)),P.noLib||Lo(dr),jt.set(dr.path,!1),ut(dr)):dr&&jt.get(dr.path)&&Et<Ct&&(jt.set(dr.path,!1),ut(dr)),dr||void 0}let Ji;if(cb(Ot)&&!yt){const dr=dc(Ie);if(dr){if(qs(dr.commandLine.options))return;const Aa=_d(dr,Ie);Ie=Aa,Ji=mt(Aa)}}const tr=ls(Ie,Or,at,P),pn=at.getSourceFile(Ie,tr,dr=>Ho(void 0,Ot,_.Cannot_read_file_0_Colon_1,[Ie,dr]),ie||((bn=ae==null?void 0:ae.getSourceFileByPath(mt(Ie)))==null?void 0:bn.impliedNodeFormat)!==tr.impliedNodeFormat);if(hn){const dr=uT(hn),Aa=dn.get(dr);if(Aa){const Ys=Pr(Aa,pn,Ie,Hn,mt(Ie),qr,tr);return cr.add(Aa.path,Ie),Ya(Ys,Hn,Ji),jo(Ys,Ot),rr.set(Hn,u3(hn)),me.push(Ys),Ys}else pn&&(dn.set(dr,pn),rr.set(Hn,u3(hn)))}if(Ya(pn,Hn,Ji),pn){if(tt.set(Hn,Et>0),pn.fileName=Ie,pn.path=Hn,pn.resolvedPath=mt(Ie),pn.originalFileName=qr,pn.packageJsonLocations=(Tn=tr.packageJsonLocations)!=null&&Tn.length?tr.packageJsonLocations:void 0,pn.packageJsonScope=tr.packageJsonScope,jo(pn,Ot),at.useCaseSensitiveFileNames()){const dr=O_(Hn),Aa=an.get(dr);Aa?Dr(Ie,Aa,Ot):an.set(dr,pn)}Qt=Qt||pn.hasNoDefaultLib&&!Lt,P.noResolve||(Nf(pn,Ve),xe(pn)),P.noLib||Lo(pn),ut(pn),Ve?ce.push(pn):me.push(pn)}return pn}function jo(Ie,Ve){Ie&&qe.add(Ie.path,Ve)}function Ya(Ie,Ve,Lt){Lt?(gi.set(Lt,Ie),gi.set(Ve,Ie||!1)):gi.set(Ve,Ie)}function dl(Ie){const Ve=dc(Ie);return Ve&&_d(Ve,Ie)}function dc(Ie){if(!(!Pn||!Pn.length||fd(Ie)||cc(Ie,".json")))return Es(Ie)}function _d(Ie,Ve){const Lt=qs(Ie.commandLine.options);return Lt?D1(Lt,".d.ts"):Ew(Ve,Ie.commandLine,!at.useCaseSensitiveFileNames())}function Es(Ie){Hr===void 0&&(Hr=new Map,ds(Lt=>{mt(P.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(Ot=>Hr.set(mt(Ot),Lt.sourceFile.path))}));const Ve=Hr.get(mt(Ie));return Ve&&Wl(Ve)}function ds(Ie){return Yye(Pn,Ie)}function fl(Ie){if(fd(Ie))return we===void 0&&(we=new Map,ds(Ve=>{const Lt=qs(Ve.commandLine.options);if(Lt){const Ot=D1(Lt,".d.ts");we.set(mt(Ot),!0)}else{const Ot=Ed(()=>Tw(Ve.commandLine,!at.useCaseSensitiveFileNames()));Ue(Ve.commandLine.fileNames,hn=>{if(!fd(hn)&&!cc(hn,".json")){const bn=Ew(hn,Ve.commandLine,!at.useCaseSensitiveFileNames(),Ot);we.set(mt(bn),hn)}})}})),we.get(Ie)}function qd(Ie){return yt&&!!Es(Ie)}function Wl(Ie){if(Ar)return Ar.get(Ie)||void 0}function Nf(Ie,Ve){Ue(Ie.referencedFiles,(Lt,Ot)=>{xt(LF(Lt.fileName,Ie.fileName),Ve,!1,void 0,{kind:4,file:Ie.path,index:Ot})})}function xe(Ie){const Ve=Ie.typeReferenceDirectives;if(!Ve.length){Ie.resolvedTypeReferenceDirectiveNames=void 0;return}const Lt=Pe(Ve,Ie);for(let Ot=0;Ot<Ve.length;Ot++){const hn=Ie.typeReferenceDirectives[Ot],bn=Lt[Ot],Tn=O_(hn.fileName);Nde(Ie,Tn,bn,$8(hn,Ie.impliedNodeFormat));const Hn=hn.resolutionMode||Ie.impliedNodeFormat;Hn&&vl(P)!==3&&vl(P)!==99&&(ze??(ze=[])).push({kind:2,diagnostics:[Vz(Ie,hn,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),Dt(Tn,Hn,bn,{kind:5,file:Ie.path,index:Ot})}}function Dt(Ie,Ve,Lt,Ot){var hn,bn;(hn=bi)==null||hn.push(bi.Phase.Program,"processTypeReferenceDirective",{directive:Ie,hasResolved:!!Lt.resolvedTypeReferenceDirective,refKind:Ot.kind,refPath:cb(Ot)?Ot.file:void 0}),Nn(Ie,Ve,Lt,Ot),(bn=bi)==null||bn.pop()}function Nn(Ie,Ve,Lt,Ot){var hn;We(Lt);const bn=(hn=Ye.get(Ie,Ve))==null?void 0:hn.resolvedTypeReferenceDirective;if(bn&&bn.primary)return;let Tn=!0;const{resolvedTypeReferenceDirective:Hn}=Lt;if(Hn){if(Hn.isExternalLibraryImport&&Et++,Hn.primary)xt(Hn.resolvedFileName,!1,!1,Hn.packageId,Ot);else if(bn){if(Hn.resolvedFileName!==bn.resolvedFileName){const qr=at.readFile(Hn.resolvedFileName),Ji=io(bn.resolvedFileName);qr!==Ji.text&&Ho(Ji,Ot,_.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Ie,Hn.resolvedFileName,bn.resolvedFileName])}Tn=!1}else xt(Hn.resolvedFileName,!1,!1,Hn.packageId,Ot);Hn.isExternalLibraryImport&&Et--}else Ho(void 0,Ot,_.Cannot_find_type_definition_file_for_0,[Ie]);Tn&&Ye.set(Ie,Ve,Lt)}function Xi(Ie){const Ve=Ie.split(".");let Lt=Ve[1],Ot=2;for(;Ve[Ot]&&Ve[Ot]!=="d";)Lt+=(Ot===2?"/":"-")+Ve[Ot],Ot++;const hn=Bi(Zt,`__lib_node_modules_lookup_${Ie}__.ts`),bn=uw("@typescript/lib-"+Lt,hn,{moduleResolution:2},at,Or);return bn!=null&&bn.resolvedModule?bn.resolvedModule.resolvedFileName:Bi(jn,Ie)}function Lo(Ie){Ue(Ie.libReferenceDirectives,(Ve,Lt)=>{const Ot=O_(Ve.fileName),hn=x8.get(Ot);if(hn)Hl(Xi(hn),!0,!0,{kind:7,file:Ie.path,index:Lt});else{const bn=CA(AI(Ot,"lib."),".d.ts"),Tn=xI(bn,S8,ml),Hn=Tn?_.Cannot_find_lib_definition_for_0_Did_you_mean_1:_.Cannot_find_lib_definition_for_0;(ze||(ze=[])).push({kind:0,reason:{kind:7,file:Ie.path,index:Lt},diagnostic:Hn,args:[Ot,Tn]})}})}function oe(Ie){return at.getCanonicalFileName(Ie)}function ut(Ie){var Ve;if(It(Ie),Ie.imports.length||Ie.moduleAugmentations.length){const Lt=$ye(Ie),Ot=K(Lt,Ie);D.assert(Ot.length===Lt.length);const hn=(yt?(Ve=cn(Ie))==null?void 0:Ve.commandLine.options:void 0)||P;for(let bn=0;bn<Lt.length;bn++){const Tn=Ot[bn].resolvedModule,Hn=Lt[bn].text,qr=Sp(Ie,Lt[bn]);if(Rde(Ie,Hn,Ot[bn],qr),Ze(Ie,Hn,Ot[bn],qr),!Tn)continue;const Ji=Tn.isExternalLibraryImport,tr=!SO(Tn.extension),pn=Ji&&tr,dr=Tn.resolvedFileName;Ji&&Et++;const Aa=pn&&Et>Ct,Ys=dr&&!PY(hn,Tn,Ie)&&!hn.noResolve&&bn<Ie.imports.length&&!Aa&&!(tr&&!gO(hn))&&(fr(Ie.imports[bn])||!(Ie.imports[bn].flags&8388608));Aa?jt.set(Ie.path,!0):Ys&&Ta(dr,!1,!1,{kind:3,file:Ie.path,index:bn},Tn.packageId),Ji&&Et--}}else Ie.resolvedModules=void 0}function Mt(Ie,Ve){let Lt=!0;const Ot=at.getCanonicalFileName(Pa(Ve,Zt));for(const hn of Ie)hn.isDeclarationFile||at.getCanonicalFileName(Pa(hn.fileName,Zt)).indexOf(Ot)!==0&&(Ts(hn,_.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[hn.fileName,Ve]),Lt=!1);return Lt}function Pt(Ie){Ar||(Ar=new Map);const Ve=xw(Ie),Lt=mt(Ve),Ot=Ar.get(Lt);if(Ot!==void 0)return Ot||void 0;let hn,bn;if(at.getParsedCommandLine){if(hn=at.getParsedCommandLine(Ve),!hn){Ya(void 0,Lt,void 0),Ar.set(Lt,!1);return}bn=D.checkDefined(hn.options.configFile),D.assert(!bn.path||bn.path===Lt),Ya(bn,Lt,void 0)}else{const Hn=Pa(hi(Ve),at.getCurrentDirectory());if(bn=at.getSourceFile(Ve,100),Ya(bn,Lt,void 0),bn===void 0){Ar.set(Lt,!1);return}hn=y8(bn,sn,Hn,void 0,Ve)}bn.fileName=Ve,bn.path=Lt,bn.resolvedPath=Lt,bn.originalFileName=Ve;const Tn={commandLine:hn,sourceFile:bn};return Ar.set(Lt,Tn),hn.projectReferences&&(Tn.references=hn.projectReferences.map(Pt)),Tn}function un(){P.strictPropertyInitialization&&!v_(P,"strictNullChecks")&&Yo(_.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),P.exactOptionalPropertyTypes&&!v_(P,"strictNullChecks")&&Yo(_.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(P.isolatedModules||P.verbatimModuleSyntax)&&(P.out&&Yo(_.Option_0_cannot_be_specified_with_option_1,"out",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),P.outFile&&Yo(_.Option_0_cannot_be_specified_with_option_1,"outFile",P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),P.inlineSourceMap&&(P.sourceMap&&Yo(_.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Yo(_.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),P.composite&&(P.declaration===!1&&Yo(_.Composite_projects_may_not_disable_declaration_emit,"declaration"),P.incremental===!1&&Yo(_.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const Ie=qs(P);if(P.tsBuildInfoFile?hO(P)||Yo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):P.incremental&&!Ie&&!P.configFilePath&&In.add(Fs(_.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ni(),pd(),P.composite){const Tn=new Set(Y.map(mt));for(const Hn of ve)Ex(Hn,j)&&!Tn.has(Hn.path)&&Ts(Hn,_.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Hn.fileName,P.configFilePath||""])}if(P.paths){for(const Tn in P.paths)if(Ps(P.paths,Tn))if(Kq(Tn)||tc(!0,Tn,_.Pattern_0_can_have_at_most_one_Asterisk_character,Tn),Va(P.paths[Tn])){const Hn=P.paths[Tn].length;Hn===0&&tc(!1,Tn,_.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Tn);for(let qr=0;qr<Hn;qr++){const Ji=P.paths[Tn][qr],tr=typeof Ji;tr==="string"?(Kq(Ji)||ff(Tn,qr,_.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Ji,Tn),!P.baseUrl&&!Sf(Ji)&&!kI(Ji)&&ff(Tn,qr,_.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):ff(Tn,qr,_.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Ji,Tn,tr)}}else tc(!1,Tn,_.Substitutions_for_pattern_0_should_be_an_array,Tn)}!P.sourceMap&&!P.inlineSourceMap&&(P.inlineSources&&Yo(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),P.sourceRoot&&Yo(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),P.out&&P.outFile&&Yo(_.Option_0_cannot_be_specified_with_option_1,"out","outFile"),P.mapRoot&&!(P.sourceMap||P.declarationMap)&&Yo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),P.declarationDir&&(z_(P)||Yo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Ie&&Yo(_.Option_0_cannot_be_specified_with_option_1,"declarationDir",P.out?"out":"outFile")),P.declarationMap&&!z_(P)&&Yo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),P.lib&&P.noLib&&Yo(_.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),P.noImplicitUseStrict&&v_(P,"alwaysStrict")&&Yo(_.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ve=es(P),Lt=nn(ve,Tn=>Zl(Tn)&&!Tn.isDeclarationFile);if(P.isolatedModules||P.verbatimModuleSyntax)P.module===0&&Ve<2&&P.isolatedModules&&Yo(_.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),P.preserveConstEnums===!1&&Yo(_.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,P.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Lt&&Ve<2&&P.module===0){const Tn=E1(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);In.add(Dc(Lt,Tn.start,Tn.length,_.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ie&&!P.emitDeclarationOnly){if(P.module&&!(P.module===2||P.module===4))Yo(_.Only_amd_and_system_modules_are_supported_alongside_0,P.out?"out":"outFile","module");else if(P.module===void 0&&Lt){const Tn=E1(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);In.add(Dc(Lt,Tn.start,Tn.length,_.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,P.out?"out":"outFile"))}}if(CT(P)&&(vl(P)===1?Yo(_.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):a7(P)||Yo(_.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),P.outDir||P.rootDir||P.sourceRoot||P.mapRoot){const Tn=zt();P.outDir&&Tn===""&&ve.some(Hn=>Kp(Hn.fileName)>1)&&Yo(_.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.useDefineForClassFields&&Ve===0&&Yo(_.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),P.checkJs&&!gO(P)&&In.add(Fs(_.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),P.emitDeclarationOnly&&(z_(P)||Yo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Yo(_.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),P.emitDecoratorMetadata&&!P.experimentalDecorators&&Yo(_.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),P.jsxFactory?(P.reactNamespace&&Yo(_.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(P.jsx===4||P.jsx===5)&&Yo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",sw.get(""+P.jsx)),Qx(P.jsxFactory,Ve)||A_("jsxFactory",_.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!M_(P.reactNamespace,Ve)&&A_("reactNamespace",_.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace),P.jsxFragmentFactory&&(P.jsxFactory||Yo(_.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(P.jsx===4||P.jsx===5)&&Yo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",sw.get(""+P.jsx)),Qx(P.jsxFragmentFactory,Ve)||A_("jsxFragmentFactory",_.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory)),P.reactNamespace&&(P.jsx===4||P.jsx===5)&&Yo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",sw.get(""+P.jsx)),P.jsxImportSource&&P.jsx===2&&Yo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",sw.get(""+P.jsx)),P.preserveValueImports&&au(P)<5&&Yo(_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Ot=au(P);P.verbatimModuleSyntax&&((Ot===2||Ot===3||Ot===4)&&Yo(_.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),P.isolatedModules&&et("isolatedModules","verbatimModuleSyntax"),P.preserveValueImports&&et("preserveValueImports","verbatimModuleSyntax"),P.importsNotUsedAsValues&&et("importsNotUsedAsValues","verbatimModuleSyntax")),P.allowImportingTsExtensions&&!(P.noEmit||P.emitDeclarationOnly)&&A_("allowImportingTsExtensions",_.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const hn=vl(P);if(P.resolvePackageJsonExports&&!Lx(hn)&&Yo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),P.resolvePackageJsonImports&&!Lx(hn)&&Yo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),P.customConditions&&!Lx(hn)&&Yo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),hn===100&&!zq(Ot)&&A_("moduleResolution",_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!P.noEmit&&!P.suppressOutputPathCheck){const Tn=q(),Hn=new Set;fY(Tn,qr=>{P.emitDeclarationOnly||bn(qr.jsFilePath,Hn),bn(qr.declarationFilePath,Hn)})}function bn(Tn,Hn){if(Tn){const qr=mt(Tn);if(gi.has(qr)){let tr;P.configFilePath||(tr=Na(void 0,_.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)),tr=Na(tr,_.Cannot_write_file_0_because_it_would_overwrite_input_file,Tn),qt(Tn,r7(tr))}const Ji=at.useCaseSensitiveFileNames()?qr:O_(qr);Hn.has(Ji)?qt(Tn,Fs(_.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Tn)):Hn.add(Ji)}}}function Vn(){const Ie=P.ignoreDeprecations;if(Ie){if(Ie==="5.0")return new P_(Ie);W()}return P_.zero}function Rr(Ie,Ve,Lt,Ot){const hn=new P_(Ie),bn=new P_(Ve),Tn=new P_(ye||_e),Hn=Vn(),qr=bn.compareTo(Tn)!==1,Ji=!qr&&Hn.compareTo(hn)===-1;(qr||Ji)&&Ot((tr,pn,dr)=>{qr?pn===void 0?Lt(tr,pn,dr,_.Option_0_has_been_removed_Please_remove_it_from_your_configuration,tr):Lt(tr,pn,dr,_.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,tr,pn):pn===void 0?Lt(tr,pn,dr,_.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,tr,Ve,Ie):Lt(tr,pn,dr,_.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,tr,pn,Ve,Ie)})}function ni(){function Ie(Ve,Lt,Ot,hn,bn,Tn,Hn,qr){if(Ot){const Ji=Na(void 0,_.Use_0_instead,Ot),tr=Na(Ji,hn,bn,Tn,Hn,qr);Z_(!Lt,Ve,void 0,tr)}else Z_(!Lt,Ve,void 0,hn,bn,Tn,Hn,qr)}Rr("5.0","5.5",Ie,Ve=>{P.target===0&&Ve("target","ES3"),P.noImplicitUseStrict&&Ve("noImplicitUseStrict"),P.keyofStringsOnly&&Ve("keyofStringsOnly"),P.suppressExcessPropertyErrors&&Ve("suppressExcessPropertyErrors"),P.suppressImplicitAnyIndexErrors&&Ve("suppressImplicitAnyIndexErrors"),P.noStrictGenericChecks&&Ve("noStrictGenericChecks"),P.charset&&Ve("charset"),P.out&&Ve("out",void 0,"outFile"),P.importsNotUsedAsValues&&Ve("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),P.preserveValueImports&&Ve("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Mi(Ie,Ve,Lt){function Ot(hn,bn,Tn,Hn,qr,Ji,tr,pn){pf(Ve,Lt,Hn,qr,Ji,tr,pn)}Rr("5.0","5.5",Ot,hn=>{Ie.prepend&&hn("prepend")})}function ja(Ie,Ve,Lt,Ot){var hn;let bn,Tn,Hn=cb(Ve)?Ve:void 0;Ie&&((hn=qe.get(Ie.path))==null||hn.forEach(dr)),Ve&&dr(Ve),Hn&&(bn==null?void 0:bn.length)===1&&(bn=void 0);const qr=Hn&&Sw(ca,Hn),Ji=bn&&Na(bn,_.The_file_is_in_the_program_because_Colon),tr=Ie&&t$(Ie),pn=Na(tr?Ji?[Ji,...tr]:tr:Ji,Lt,...Ot||rt);return qr&&XC(qr)?v3(qr.file,qr.pos,qr.end-qr.pos,pn,Tn):r7(pn,Tn);function dr(Aa){(bn||(bn=[])).push(i$(j,Aa)),!Hn&&cb(Aa)?Hn=Aa:Hn!==Aa&&(Tn=Fn(Tn,Xs(Aa))),Aa===Ve&&(Ve=void 0)}}function Ho(Ie,Ve,Lt,Ot){(ze||(ze=[])).push({kind:1,file:Ie&&Ie.path,fileProcessingReason:Ve,diagnostic:Lt,args:Ot})}function Ts(Ie,Ve,Lt){In.add(ja(Ie,void 0,Ve,Lt))}function Xs(Ie){if(cb(Ie)){const Ot=Sw(ca,Ie);let hn;switch(Ie.kind){case 3:hn=_.File_is_included_via_import_here;break;case 4:hn=_.File_is_included_via_reference_here;break;case 5:hn=_.File_is_included_via_type_library_reference_here;break;case 7:hn=_.File_is_included_via_library_reference_here;break;default:D.assertNever(Ie)}return XC(Ot)?Dc(Ot.file,Ot.pos,Ot.end-Ot.pos,hn):void 0}if(!P.configFile)return;let Ve,Lt;switch(Ie.kind){case 0:if(!P.configFile.configFileSpecs)return;const Ot=Pa(Y[Ie.index],Zt),hn=n$(j,Ot);if(hn){Ve=L3(P.configFile,"files",hn),Lt=_.File_is_matched_by_files_list_specified_here;break}const bn=r$(j,Ot);if(!bn||!Ha(bn))return;Ve=L3(P.configFile,"include",bn),Lt=_.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Tn=D.checkDefined(Pn==null?void 0:Pn[Ie.index]),Hn=Z8(re,Pn,(dr,Aa,Ys)=>dr===Tn?{sourceFile:(Aa==null?void 0:Aa.sourceFile)||P.configFile,index:Ys}:void 0);if(!Hn)return;const{sourceFile:qr,index:Ji}=Hn,tr=Kt(AN(qr,"references"),dr=>Gu(dr.initializer)?dr.initializer:void 0);return tr&&tr.elements.length>Ji?cd(qr,tr.elements[Ji],Ie.kind===2?_.File_is_output_from_referenced_project_specified_here:_.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!P.types)return;Ve=x_("types",Ie.typeReference),Lt=_.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ie.index!==void 0){Ve=x_("lib",P.lib[Ie.index]),Lt=_.File_is_library_specified_here;break}const pn=af(L8.type,(dr,Aa)=>dr===es(P)?Aa:void 0);Ve=pn?_f("target",pn):void 0,Lt=_.File_is_default_library_for_target_specified_here;break;default:D.assertNever(Ie)}return Ve&&cd(P.configFile,Ve,Lt)}function pd(){const Ie=P.suppressOutputPathCheck?void 0:ky(P);Z8(re,Pn,(Ve,Lt,Ot)=>{const hn=(Lt?Lt.commandLine.projectReferences:re)[Ot],bn=Lt&&Lt.sourceFile;if(Mi(hn,bn,Ot),!Ve){pf(bn,Ot,_.File_0_not_found,hn.path);return}const Tn=Ve.commandLine.options;if((!Tn.composite||Tn.noEmit)&&(Lt?Lt.commandLine.fileNames:Y).length&&(Tn.composite||pf(bn,Ot,_.Referenced_project_0_must_have_setting_composite_Colon_true,hn.path),Tn.noEmit&&pf(bn,Ot,_.Referenced_project_0_may_not_disable_emit,hn.path)),hn.prepend){const Hn=qs(Tn);Hn?at.fileExists(Hn)||pf(bn,Ot,_.Output_file_0_from_project_1_does_not_exist,Hn,hn.path):pf(bn,Ot,_.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,hn.path)}!Lt&&Ie&&Ie===ky(Tn)&&(pf(bn,Ot,_.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ie,hn.path),$i.set(mt(Ie),!0))})}function ff(Ie,Ve,Lt,Ot,hn,bn){let Tn=!0;const Hn=Au();for(const qr of Hn)if(Ls(qr.initializer))for(const Ji of KA(qr.initializer,Ie)){const tr=Ji.initializer;Gu(tr)&&tr.elements.length>Ve&&(In.add(cd(P.configFile,tr.elements[Ve],Lt,Ot,hn,bn)),Tn=!1)}Tn&&In.add(Fs(Lt,Ot,hn,bn))}function tc(Ie,Ve,Lt,Ot){let hn=!0;const bn=Au();for(const Tn of bn)Ls(Tn.initializer)&&U(Tn.initializer,Ie,Ve,void 0,Lt,Ot)&&(hn=!1);hn&&In.add(Fs(Lt,Ot))}function Jd(Ie){const Ve=kp();return Ve&&KA(Ve,Ie)}function Au(){return Jd("paths")||rt}function _f(Ie,Ve){const Lt=Jd(Ie);return Lt&&Kt(Lt,Ot=>Vo(Ot.initializer)&&Ot.initializer.text===Ve?Ot.initializer:void 0)}function x_(Ie,Ve){const Lt=kp();return Lt&&ofe(Lt,Ie,Ve)}function Yo(Ie,Ve,Lt,Ot){Z_(!0,Ve,Lt,Ie,Ve,Lt,Ot)}function A_(Ie,Ve,Lt,Ot){Z_(!1,Ie,void 0,Ve,Lt,Ot)}function pf(Ie,Ve,Lt,Ot,hn,bn,Tn){const Hn=Kt(AN(Ie||P.configFile,"references"),qr=>Gu(qr.initializer)?qr.initializer:void 0);Hn&&Hn.elements.length>Ve?In.add(cd(Ie||P.configFile,Hn.elements[Ve],Lt,Ot,hn,bn,Tn)):In.add(Fs(Lt,Ot,hn,bn,Tn))}function Z_(Ie,Ve,Lt,Ot,hn,bn,Tn,Hn){const qr=kp();(!qr||!U(qr,Ie,Ve,Lt,Ot,hn,bn,Tn,Hn))&&("messageText"in Ot?In.add(r7(Ot)):In.add(Fs(Ot,hn,bn,Tn,Hn)))}function kp(){if(Qi===void 0){Qi=!1;const Ie=tk(P.configFile);if(Ie){for(const Ve of KA(Ie,"compilerOptions"))if(Ls(Ve.initializer)){Qi=Ve.initializer;break}}}return Qi||void 0}function U(Ie,Ve,Lt,Ot,hn,bn,Tn,Hn,qr){const Ji=KA(Ie,Lt,Ot);for(const tr of Ji)"messageText"in hn?In.add(dg(P.configFile,Ve?tr.name:tr.initializer,hn)):In.add(cd(P.configFile,Ve?tr.name:tr.initializer,hn,bn,Tn,Hn,qr));return!!Ji.length}function et(Ie,Ve){const Lt=kp();Lt?U(Lt,!0,Ie,void 0,_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ve):Yo(_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ve)}function qt(Ie,Ve){$i.set(mt(Ie),!0),In.add(Ve)}function Xn(Ie){if(P.noEmit)return!1;const Ve=mt(Ie);if(ca(Ve))return!1;const Lt=qs(P);if(Lt)return Da(Ve,Lt)||Da(Ve,Gd(Lt)+".d.ts");if(P.declarationDir&&Tv(P.declarationDir,Ve,Zt,!at.useCaseSensitiveFileNames()))return!0;if(P.outDir)return Tv(P.outDir,Ve,Zt,!at.useCaseSensitiveFileNames());if(Sc(Ve,Bk)||fd(Ve)){const Ot=Gd(Ve);return!!ca(Ot+".ts")||!!ca(Ot+".tsx")}return!1}function Da(Ie,Ve){return nT(Ie,Ve,Zt,!at.useCaseSensitiveFileNames())===0}function Ia(){return at.getSymlinkCache?at.getSymlinkCache():(Se||(Se=w_e(Zt,oe)),ve&&st&&!Se.hasProcessedResolutions()&&Se.setSymlinksFromResolutions(ve,st),Se)}}function AFe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:oo,fileExists:d};e.compilerHost.fileExists=d;let c;return i&&(c=e.compilerHost.directoryExists=L=>i.call(e.compilerHost,L)?(E(L),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(I=>{const O=qs(I.commandLine.options);if(O)t.add(hi(e.toPath(O)));else{const k=I.commandLine.options.declarationDir||I.commandLine.options.outDir;k&&t.add(e.toPath(k))}})),A(L,!1)):!1),o&&(e.compilerHost.getDirectories=L=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,L)?o.call(e.compilerHost,L):[]),s&&(e.compilerHost.realpath=L=>{var I;return((I=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:I.get(e.toPath(L)))||s.call(e.compilerHost,L)}),{onProgramCreateComplete:f,fileExists:d,directoryExists:c};function f(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(L){return r.call(e.compilerHost,L)?!0:!e.getResolvedProjectReferences()||!fd(L)?!1:A(L,!0)}function y(L){const I=e.getSourceOfProjectReferenceRedirect(e.toPath(L));return I!==void 0?Ha(I)?r.call(e.compilerHost,I):!0:void 0}function h(L){const I=e.toPath(L),O=`${I}${Ms}`;return XI(t,k=>I===k||xa(k,O)||xa(I,`${k}/`))}function E(L){var I;if(!e.getResolvedProjectReferences()||Ok(L)||!s||!pu(L,Ly))return;const O=e.getSymlinkCache(),k=Pu(e.toPath(L));if((I=O.getSymlinkedDirectories())!=null&&I.has(k))return;const G=qo(s.call(e.compilerHost,L));let V;if(G===L||(V=Pu(e.toPath(G)))===k){O.setSymlinkedDirectory(k,!1);return}O.setSymlinkedDirectory(L,{real:Pu(G),realPath:V})}function A(L,I){var O;const k=I?X=>y(X):X=>h(X),G=k(L);if(G!==void 0)return G;const V=e.getSymlinkCache(),H=V.getSymlinkedDirectories();if(!H)return!1;const te=e.toPath(L);return pu(te,Ly)?I&&((O=V.getSymlinkedFiles())!=null&&O.has(te))?!0:fn(H.entries(),([X,Y])=>{if(!Y||!xa(te,X))return;const P=k(te.replace(X,Y.realPath));if(I&&P){const de=Pa(L,e.compilerHost.getCurrentDirectory());V.setSymlinkedFile(te,`${Y.real}${de.replace(new RegExp(X,"i"),"")}`)}return P})||!1:!1}}function NY(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||qs(o)?GF: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&&z_(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let c;if(!t&&!qs(o)){const f=e.emitBuildInfo(r,i);f.diagnostics&&(s=[...s,...f.diagnostics]),c=f.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function RF(e,t){return lr(e,r=>!r.skippedOn||!t[r.skippedOn])}function NF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,c){return D.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,c)},readFile:r=>t.readFile(r),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||j0,trace:e.trace?r=>e.trace(r):void 0}}function OY(e,t,r,i){if(!e)return rt;let o;for(let s=0;s<e.length;s++){const c=e[s],f=t(c,s);if(c.prepend&&f&&f.options){if(!qs(f.options))continue;const{jsFilePath:y,sourceMapFilePath:h,declarationFilePath:E,declarationMapPath:A,buildInfoPath:L}=vw(f.options,!0),I=PJ(r,y,h,E,A,L,i,f.options);(o||(o=[])).push(I)}}return o||rt}function xw(e){return d$(e.path)}function PY(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 c()}function i(){return e.jsx?void 0:_.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return gO(e)||!v_(e,"noImplicitAny")?void 0:_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return CT(e)?void 0:_.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return r||e.allowArbitraryExtensions?void 0:_.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function $ye({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===10&&r.push(i);return r}function OF({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===10){if(r===i)return o;i++}D.fail("should never ask for module name at index higher than possible module name")}var MY,PF,MF,FY,BY,Qye,GY,UY,Aw,e6,FF,BF,GF,CFe=C({"src/compiler/program.ts"(){Oa(),Oa(),d1(),MY=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(MY||{}),PF="\x1B[7m",MF=" ",FY="\x1B[0m",BY="...",Qye=" ",GY=" ",UY={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},Aw={getName:kY,getMode:(e,t)=>Sp(t,e)},e6={getName:IF,getMode:(e,t)=>$8(e,t==null?void 0:t.impliedNodeFormat)},FF="__inferred type names__.ts",BF=new Set([_.Cannot_redeclare_block_scoped_variable_0.code,_.A_module_cannot_have_multiple_default_exports.code,_.Another_export_default_is_here.code,_.The_first_export_default_is_here.code,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_.constructor_is_a_reserved_word.code,_.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_.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,_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_.Invalid_use_of_0_in_strict_mode.code,_.A_label_is_not_allowed_here.code,_.Octal_literals_are_not_allowed_in_strict_mode.code,_.with_statements_are_not_allowed_in_strict_mode.code,_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_.A_class_member_cannot_have_the_0_keyword.code,_.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_.A_destructuring_declaration_must_have_an_initializer.code,_.A_get_accessor_cannot_have_parameters.code,_.A_rest_element_cannot_contain_a_binding_pattern.code,_.A_rest_element_cannot_have_a_property_name.code,_.A_rest_element_cannot_have_an_initializer.code,_.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_.A_rest_parameter_cannot_have_an_initializer.code,_.A_rest_parameter_must_be_last_in_a_parameter_list.code,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_.A_set_accessor_cannot_have_rest_parameter.code,_.A_set_accessor_must_have_exactly_one_parameter.code,_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_export_declaration_cannot_have_modifiers.code,_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_import_declaration_cannot_have_modifiers.code,_.An_object_member_cannot_be_declared_optional.code,_.Argument_of_dynamic_import_cannot_be_spread_element.code,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_.Cannot_redeclare_identifier_0_in_catch_clause.code,_.Catch_clause_variable_cannot_have_an_initializer.code,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_.Classes_can_only_extend_a_single_class.code,_.Classes_may_not_have_a_field_named_constructor.code,_.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,_.Duplicate_label_0.code,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,_.For_await_loops_cannot_be_used_inside_a_class_static_block.code,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_.Jump_target_cannot_cross_function_boundary.code,_.Line_terminator_not_permitted_before_arrow.code,_.Modifiers_cannot_appear_here.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_.Private_identifiers_are_not_allowed_outside_class_bodies.code,_.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,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_.Trailing_comma_not_allowed.code,_.Variable_declaration_list_cannot_be_empty.code,_._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_._0_expected.code,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_._0_list_cannot_be_empty.code,_._0_modifier_already_seen.code,_._0_modifier_cannot_appear_on_a_constructor_declaration.code,_._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_._0_modifier_cannot_appear_on_a_parameter.code,_._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_._0_modifier_cannot_be_used_here.code,_._0_modifier_must_precede_1_modifier.code,_.const_declarations_can_only_be_declared_inside_a_block.code,_.const_declarations_must_be_initialized.code,_.extends_clause_already_seen.code,_.let_declarations_can_only_be_declared_inside_a_block.code,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_.Class_constructor_may_not_be_a_generator.code,_.Class_constructor_may_not_be_an_accessor.code,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),GF={diagnostics:rt,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),LFe=C({"src/compiler/builderStatePublic.ts"(){}});function Zye(e,t,r,i,o,s){const c=[],{emitSkipped:f,diagnostics:d}=e.emit(t,y,i,r,o,s);return{outputFiles:c,emitSkipped:f,diagnostics:d};function y(h,E,A){c.push({name:h,writeByteOrderMark:A,text:E})}}var Xm,IFe=C({"src/compiler/builderState.ts"(){Oa(),(e=>{function t(){function ae(W,ce,me){const ve={getKeys:Se=>ce.get(Se),getValues:Se=>W.get(Se),keys:()=>W.keys(),deleteKey:Se=>{(me||(me=new Set)).add(Se);const ee=W.get(Se);return ee?(ee.forEach(Qe=>i(ce,Qe,Se)),W.delete(Se),!0):!1},set:(Se,ee)=>{me==null||me.delete(Se);const Qe=W.get(Se);return W.set(Se,ee),Qe==null||Qe.forEach(je=>{ee.has(je)||i(ce,je,Se)}),ee.forEach(je=>{Qe!=null&&Qe.has(je)||r(ce,je,Se)}),ve}};return ve}return ae(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ae,W,ce){let me=ae.get(W);me||(me=new Set,ae.set(W,me)),me.add(ce)}function i(ae,W,ce){const me=ae.get(W);return me!=null&&me.delete(ce)?(me.size||ae.delete(W),!0):!1}function o(ae){return ia(ae.declarations,W=>{var ce;return(ce=Zn(W))==null?void 0:ce.resolvedPath})}function s(ae,W){const ce=ae.getSymbolAtLocation(W);return ce&&o(ce)}function c(ae,W,ce,me){return zs(ae.getProjectReferenceRedirect(W)||W,ce,me)}function f(ae,W,ce){let me;if(W.imports&&W.imports.length>0){const Qe=ae.getTypeChecker();for(const je of W.imports){const Ge=s(Qe,je);Ge==null||Ge.forEach(ee)}}const ve=hi(W.resolvedPath);if(W.referencedFiles&&W.referencedFiles.length>0)for(const Qe of W.referencedFiles){const je=c(ae,Qe.fileName,ve,ce);ee(je)}if(W.resolvedTypeReferenceDirectiveNames&&W.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Qe})=>{if(!Qe)return;const je=Qe.resolvedFileName,Ge=c(ae,je,ve,ce);ee(Ge)}),W.moduleAugmentations.length){const Qe=ae.getTypeChecker();for(const je of W.moduleAugmentations){if(!Vo(je))continue;const Ge=Qe.getSymbolAtLocation(je);Ge&&Se(Ge)}}for(const Qe of ae.getTypeChecker().getAmbientModules())Qe.declarations&&Qe.declarations.length>1&&Se(Qe);return me;function Se(Qe){if(Qe.declarations)for(const je of Qe.declarations){const Ge=Zn(je);Ge&&Ge!==W&&ee(Ge.resolvedPath)}}function ee(Qe){(me||(me=new Set)).add(Qe)}}function d(ae,W){return W&&!W.referencedMap==!ae}e.canReuseOldState=d;function y(ae,W,ce){var me,ve,Se;const ee=new Map,Qe=ae.getCompilerOptions(),je=qs(Qe),Ge=Qe.module!==0&&!je?t():void 0,qe=Ge?t():void 0,Oe=d(Ge,W);ae.getTypeChecker();for(const Me of ae.getSourceFiles()){const Ye=D.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),ze=Oe?(me=W.oldSignatures)==null?void 0:me.get(Me.resolvedPath):void 0,Fe=ze===void 0?Oe?(ve=W.fileInfos.get(Me.resolvedPath))==null?void 0:ve.signature:void 0:ze||void 0;if(Ge){const st=f(ae,Me,ae.getCanonicalFileName);if(st&&Ge.set(Me.resolvedPath,st),Oe){const Ct=(Se=W.oldExportedModulesMap)==null?void 0:Se.get(Me.resolvedPath),Et=Ct===void 0?W.exportedModulesMap.getValues(Me.resolvedPath):Ct||void 0;Et&&qe.set(Me.resolvedPath,Et)}}ee.set(Me.resolvedPath,{version:Ye,signature:Fe,affectsGlobalScope:je?void 0:P(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:ee,referencedMap:Ge,exportedModulesMap:qe,useFileVersionAsSignature:!ce&&!Oe}}e.create=y;function h(ae){ae.allFilesExcludingDefaultLibraryFile=void 0,ae.allFileNames=void 0}e.releaseCache=h;function E(ae,W,ce,me,ve){var Se,ee;const Qe=A(ae,W,ce,me,ve);return(Se=ae.oldSignatures)==null||Se.clear(),(ee=ae.oldExportedModulesMap)==null||ee.clear(),Qe}e.getFilesAffectedBy=E;function A(ae,W,ce,me,ve){const Se=W.getSourceFileByPath(ce);return Se?O(ae,W,Se,me,ve)?(ae.referencedMap?ye:re)(ae,W,Se,me,ve):[Se]:rt}e.getFilesAffectedByWithOldState=A;function L(ae,W,ce){ae.fileInfos.get(ce).signature=W,(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce)}e.updateSignatureOfFile=L;function I(ae,W,ce,me,ve){ae.emit(W,(Se,ee,Qe,je,Ge,qe)=>{D.assert(fd(Se),`File extension for signature expected to be dts: Got:: ${Se}`),ve(WY(ae,W,ee,me,qe),Ge)},ce,!0,void 0,!0)}e.computeDtsSignature=I;function O(ae,W,ce,me,ve,Se=ae.useFileVersionAsSignature){var ee;if((ee=ae.hasCalledUpdateShapeSignature)!=null&&ee.has(ce.resolvedPath))return!1;const Qe=ae.fileInfos.get(ce.resolvedPath),je=Qe.signature;let Ge;if(!ce.isDeclarationFile&&!Se&&I(W,ce,me,ve,(qe,Oe)=>{Ge=qe,Ge!==je&&k(ae,ce,Oe[0].exportedModulesFromDeclarationEmit)}),Ge===void 0&&(Ge=ce.version,ae.exportedModulesMap&&Ge!==je)){(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(ce.resolvedPath,ae.exportedModulesMap.getValues(ce.resolvedPath)||!1);const qe=ae.referencedMap?ae.referencedMap.getValues(ce.resolvedPath):void 0;qe?ae.exportedModulesMap.set(ce.resolvedPath,qe):ae.exportedModulesMap.deleteKey(ce.resolvedPath)}return(ae.oldSignatures||(ae.oldSignatures=new Map)).set(ce.resolvedPath,je||!1),(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce.resolvedPath),Qe.signature=Ge,Ge!==je}e.updateShapeSignature=O;function k(ae,W,ce){if(!ae.exportedModulesMap)return;(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(W.resolvedPath,ae.exportedModulesMap.getValues(W.resolvedPath)||!1);const me=G(ce);me?ae.exportedModulesMap.set(W.resolvedPath,me):ae.exportedModulesMap.deleteKey(W.resolvedPath)}e.updateExportedModules=k;function G(ae){let W;return ae==null||ae.forEach(ce=>o(ce).forEach(me=>(W??(W=new Set)).add(me))),W}e.getExportedModules=G;function V(ae,W,ce){const me=W.getCompilerOptions();if(qs(me)||!ae.referencedMap||P(ce))return H(ae,W);const ve=new Set,Se=[ce.resolvedPath];for(;Se.length;){const ee=Se.pop();if(!ve.has(ee)){ve.add(ee);const Qe=ae.referencedMap.getValues(ee);if(Qe)for(const je of Qe.keys())Se.push(je)}}return Ro(TA(ve.keys(),ee=>{var Qe,je;return(je=(Qe=W.getSourceFileByPath(ee))==null?void 0:Qe.fileName)!=null?je:ee}))}e.getAllDependencies=V;function H(ae,W){if(!ae.allFileNames){const ce=W.getSourceFiles();ae.allFileNames=ce===rt?rt:ce.map(me=>me.fileName)}return ae.allFileNames}function te(ae,W){const ce=ae.referencedMap.getKeys(W);return ce?Ro(ce.keys()):[]}e.getReferencedByPaths=te;function X(ae){for(const W of ae.statements)if(!h3(W))return!1;return!0}function Y(ae){return kt(ae.moduleAugmentations,W=>Yp(W.parent))}function P(ae){return Y(ae)||!of(ae)&&!m_(ae)&&!X(ae)}function de(ae,W,ce){if(ae.allFilesExcludingDefaultLibraryFile)return ae.allFilesExcludingDefaultLibraryFile;let me;ce&&ve(ce);for(const Se of W.getSourceFiles())Se!==ce&&ve(Se);return ae.allFilesExcludingDefaultLibraryFile=me||rt,ae.allFilesExcludingDefaultLibraryFile;function ve(Se){W.isSourceFileDefaultLibrary(Se)||(me||(me=[])).push(Se)}}e.getAllFilesExcludingDefaultLibraryFile=de;function re(ae,W,ce){const me=W.getCompilerOptions();return me&&qs(me)?[ce]:de(ae,W,ce)}function ye(ae,W,ce,me,ve){if(P(ce))return de(ae,W,ce);const Se=W.getCompilerOptions();if(Se&&(H_(Se)||qs(Se)))return[ce];const ee=new Map;ee.set(ce.resolvedPath,ce);const Qe=te(ae,ce.resolvedPath);for(;Qe.length>0;){const je=Qe.pop();if(!ee.has(je)){const Ge=W.getSourceFileByPath(je);ee.set(je,Ge),Ge&&O(ae,W,Ge,me,ve)&&Qe.push(...te(ae,Ge.resolvedPath))}}return Ro(TA(ee.values(),je=>je))}})(Xm||(Xm={}))}});function qv(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),z_(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function YC(e,t){const r=t&&(cy(t)?t:qv(t)),i=cy(e)?e:qv(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function kFe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!XI(e,r=>!t.has(r))}function wFe(e,t){var r,i;const o=Xm.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const c=qs(s);c?s.composite&&(t!=null&&t.outSignature)&&c===qs(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&tve(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const f=Xm.canReuseOldState(o.referencedMap,t),d=f?t.compilerOptions:void 0,y=f&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!L_e(s,d),h=s.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!k_e(s,t.compilerOptions);f?((r=t.changedFilesSet)==null||r.forEach(O=>o.changedFilesSet.add(O)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const E=o.referencedMap,A=f?t.referencedMap:void 0,L=y&&!s.skipLibCheck==!d.skipLibCheck,I=L&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((O,k)=>{var G;let V,H;if(!f||!(V=t.fileInfos.get(k))||V.version!==O.version||V.impliedFormat!==O.impliedFormat||!kFe(H=E&&E.getValues(k),A&&A.getValues(k))||H&&XI(H,te=>!o.fileInfos.has(te)&&t.fileInfos.has(te)))eve(o,k);else if(y){const te=e.getSourceFileByPath(k);if(te.isDeclarationFile&&!L||te.hasNoDefaultLib&&!I)return;const X=t.semanticDiagnosticsPerFile.get(k);X&&(o.semanticDiagnosticsPerFile.set(k,t.hasReusableDiagnostic?DFe(X,e):X),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(k))}if(h){const te=t.emitSignatures.get(k);te&&((G=o.emitSignatures)!=null?G:o.emitSignatures=new Map).set(k,tve(s,t.compilerOptions,te))}}),f&&af(t.fileInfos,(O,k)=>o.fileInfos.has(k)?!1:c||O.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Xm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(O=>eve(o,O.resolvedPath));else if(d){const O=I_e(s,d)?qv(s):YC(s,d);O!==0&&(c?o.programEmitPending=o.programEmitPending?o.programEmitPending|O:O:(e.getSourceFiles().forEach(k=>{o.changedFilesSet.has(k.resolvedPath)||qY(o,k.resolvedPath,O)}),D.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return c&&!o.changedFilesSet.size&&(f&&(o.bundle=t.bundle),kt(e.getProjectReferences(),O=>!!O.prepend)&&(o.programEmitPending=qv(s))),o}function eve(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function tve(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Ha(r)?[r]:r[0]}function DFe(e,t){if(!e.length)return rt;let r;return e.map(o=>{const s=nve(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:c}=o;return s.relatedInformation=c?c.length?c.map(f=>nve(f,t,i)):[]:void 0,s});function i(o){return r??(r=hi(Pa(ky(t.getCompilerOptions()),t.getCurrentDirectory()))),zs(o,r,t.getCanonicalFileName)}}function nve(e,t,r){const{file:i}=e;return{...e,file:i?t.getSourceFileByPath(r(i)):void 0}}function RFe(e){Xm.releaseCache(e),e.program=void 0}function NFe(e){const t=qs(e.compilerOptions);return D.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function OFe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function rve(e,t){D.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function ive(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const y=e.seenAffectedFiles;let h=e.affectedFilesIndex;for(;h<s.length;){const E=s[h];if(!y.has(E.resolvedPath))return e.affectedFilesIndex=h,qY(e,E.resolvedPath,qv(e.compilerOptions)),FFe(e,E,t,r),E;h++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const c=e.changedFilesSet.keys().next();if(c.done)return;const f=D.checkDefined(e.program),d=f.getCompilerOptions();if(qs(d))return D.assert(!e.semanticDiagnosticsPerFile),f;e.affectedFiles=Xm.getFilesAffectedByWithOldState(e,f,c.value,t,r),e.currentChangedFilePath=c.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function PFe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function MFe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return af(e.affectedFilesPendingEmit,(i,o)=>{var s;const c=e.program.getSourceFileByPath(o);if(!c||!Ex(c,e.program)){e.affectedFilesPendingEmit.delete(o);return}const f=(s=e.seenEmittedFiles)==null?void 0:s.get(c.resolvedPath);let d=YC(i,f);if(t&&(d=d&24),d)return{affectedFile:c,emitKind:d}})}function ave(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=D.checkDefined(e.program),r=t.getCompilerOptions();Ue(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!wk(i,r,t)&&VY(e,i.resolvedPath))}}function FFe(e,t,r,i){if(VY(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){ave(e),Xm.updateShapeSignature(e,D.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||BFe(e,t,r,i)}function UF(e,t,r,i){if(VY(e,t),!e.changedFilesSet.has(t)){const o=D.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Xm.updateShapeSignature(e,o,s,r,i,!0),z_(e.compilerOptions)&&qY(e,t,e.compilerOptions.declarationMap?24:8))}}function VY(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function ove(e,t){const r=D.checkDefined(e.oldSignatures).get(t)||void 0;return D.checkDefined(e.fileInfos.get(t)).signature!==r}function jY(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Xm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>UF(e,s.resolvedPath,r,i)),ave(e),!0):!1}function BFe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!ove(e,t.resolvedPath))return;if(H_(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const f=Xm.getReferencedByPaths(e,t.resolvedPath);for(;f.length>0;){const d=f.pop();if(!c.has(d)){if(c.set(d,!0),jY(e,d,r,i))return;if(UF(e,d,r,i),ove(e,d)){const y=D.checkDefined(e.program).getSourceFileByPath(d);f.push(...Xm.getReferencedByPaths(e,y.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(c=>{if(jY(e,c,r,i))return!0;const f=e.referencedMap.getKeys(c);return f&&XI(f,d=>sve(e,d,s,r,i))})}function sve(e,t,r,i,o){var s,c;if(gv(r,t)){if(jY(e,t,i,o))return!0;UF(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(f=>sve(e,f,r,i,o)),(c=e.referencedMap.getKeys(t))==null||c.forEach(f=>!r.has(f)&&UF(e,f,i,o))}}function HY(e,t,r){return ba(GFe(e,t,r),D.checkDefined(e.program).getProgramDiagnostics(t))}function GFe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return RF(s,e.compilerOptions)}const o=D.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),RF(o,e.compilerOptions)}function lve(e){return!!qs(e.options||{})}function UFe(e,t){var r,i,o;const s=D.checkDefined(e.program).getCurrentDirectory(),c=hi(Pa(ky(e.compilerOptions),s)),f=e.latestChangedDtsFile?X(e.latestChangedDtsFile):void 0,d=[],y=new Map,h=[];if(qs(e.compilerOptions)){const ae=Ro(e.fileInfos.entries(),([ee,Qe])=>{const je=P(ee);return re(ee,je),Qe.impliedFormat?{version:Qe.version,impliedFormat:Qe.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Qe.version}),W={fileNames:d,fileInfos:ae,root:h,options:ye(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:f,pendingEmit:e.programEmitPending?e.programEmitPending===qv(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:ce,dts:me,commonSourceDirectory:ve,sourceFiles:Se}=t;return e.bundle=t={commonSourceDirectory:ve,sourceFiles:Se,js:ce||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:me||(z_(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},J8(W,t)}let E,A,L;const I=Ro(e.fileInfos.entries(),([ae,W])=>{var ce,me;const ve=P(ae);re(ae,ve),D.assert(d[ve-1]===Y(ae));const Se=(ce=e.oldSignatures)==null?void 0:ce.get(ae),ee=Se!==void 0?Se||void 0:W.signature;if(e.compilerOptions.composite){const Qe=e.program.getSourceFileByPath(ae);if(!m_(Qe)&&Ex(Qe,e.program)){const je=(me=e.emitSignatures)==null?void 0:me.get(ae);je!==ee&&(L||(L=[])).push(je===void 0?ve:[ve,!Ha(je)&&je[0]===ee?rt:je])}}return W.version===ee?W.affectsGlobalScope||W.impliedFormat?{version:W.version,signature:void 0,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}:W.version:ee!==void 0?Se===void 0?W:{version:W.version,signature:ee,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}:{version:W.version,signature:!1,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}});let O;e.referencedMap&&(O=Ro(e.referencedMap.keys()).sort(Ou).map(ae=>[P(ae),de(e.referencedMap.getValues(ae))]));let k;e.exportedModulesMap&&(k=ia(Ro(e.exportedModulesMap.keys()).sort(Ou),ae=>{var W;const ce=(W=e.oldExportedModulesMap)==null?void 0:W.get(ae);if(ce===void 0)return[P(ae),de(e.exportedModulesMap.getValues(ae))];if(ce)return[P(ae),de(ce)]}));let G;if(e.semanticDiagnosticsPerFile)for(const ae of Ro(e.semanticDiagnosticsPerFile.keys()).sort(Ou)){const W=e.semanticDiagnosticsPerFile.get(ae);(G||(G=[])).push(W.length?[P(ae),jFe(W,Y)]:P(ae))}let V;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ae=qv(e.compilerOptions),W=new Set;for(const ce of Ro(e.affectedFilesPendingEmit.keys()).sort(Ou))if(gv(W,ce)){const me=e.program.getSourceFileByPath(ce);if(!me||!Ex(me,e.program))continue;const ve=P(ce),Se=e.affectedFilesPendingEmit.get(ce);(V||(V=[])).push(Se===ae?ve:Se===8?[ve]:[ve,Se])}}let H;if(e.changedFilesSet.size)for(const ae of Ro(e.changedFilesSet.keys()).sort(Ou))(H||(H=[])).push(P(ae));const te={fileNames:d,fileInfos:I,root:h,options:ye(e.compilerOptions),fileIdsList:E,referencedMap:O,exportedModulesMap:k,semanticDiagnosticsPerFile:G,affectedFilesPendingEmit:V,changeFileSet:H,emitSignatures:L,latestChangedDtsFile:f};return J8(te,t);function X(ae){return Y(Pa(ae,s))}function Y(ae){return _1(wm(c,ae,e.program.getCanonicalFileName))}function P(ae){let W=y.get(ae);return W===void 0&&(d.push(Y(ae)),y.set(ae,W=d.length)),W}function de(ae){const W=Ro(ae.keys(),P).sort(Ws),ce=W.join();let me=A==null?void 0:A.get(ce);return me===void 0&&((E||(E=[])).push(W),(A||(A=new Map)).set(ce,me=E.length)),me}function re(ae,W){const ce=e.program.getSourceFile(ae);if(!e.program.getFileIncludeReasons().get(ce.path).some(ee=>ee.kind===0))return;if(!h.length)return h.push(W);const me=h[h.length-1],ve=Va(me);if(ve&&me[1]===W-1)return me[1]=W;if(ve||h.length===1||me!==W-1)return h.push(W);const Se=h[h.length-2];return!cy(Se)||Se!==me-1?h.push(W):(h[h.length-2]=[Se,W],h.length=h.length-1)}function ye(ae){let W;const{optionsNameMap:ce}=HC();for(const me of rg(ae).sort(Ou)){const ve=ce.get(me.toLowerCase());ve!=null&&ve.affectsBuildInfo&&((W||(W={}))[me]=VFe(ve,ae[me],X))}return W}}function VFe(e,t,r){if(e){if(D.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function jFe(e,t){return D.assert(!!e.length),e.map(r=>{const i=cve(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:o}=r;return i.relatedInformation=o?o.length?o.map(s=>cve(s,t)):[]:void 0,i})}function cve(e,t){const{file:r}=e;return{...e,file:r?t(r.resolvedPath):void 0}}function VF(e,t,r,i,o,s){let c,f,d;return e===void 0?(D.assert(t===void 0),c=r,d=i,D.assert(!!d),f=d.getProgram()):Va(e)?(d=i,f=DF({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),c=r):(f=e,c=t,d=r,o=i),{host:c,newProgram:f,oldProgram:d,configFileParsingDiagnostics:o||rt}}function uve(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function WY(e,t,r,i,o){var s,c;r=uve(r,o);let f;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(h=>`${y(h)}${BR[h.category]}${h.code}: ${d(h.messageText)}`).join(` `)),((c=i.createHash)!=null?c:VR)(r);function d(h){return Ha(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(` `):h.messageText}function y(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(f===void 0&&(f=hi(t.resolvedPath)),`${_1(wm(f,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function WT(e,t,r){var i;return((i=t.createHash)!=null?i:VR)(uve(e,r))}function zY(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const c=wFe(t,s);t.getBuildInfo=O=>UFe(c,O),t=void 0,i=void 0,s=void 0;const f=()=>c,d=KY(f,o);return d.getState=f,d.saveEmitState=()=>NFe(c),d.restoreEmitState=O=>OFe(c,O),d.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,d.getAllDependencies=O=>Xm.getAllDependencies(c,D.checkDefined(c.program),O),d.getSemanticDiagnostics=I,d.emit=A,d.releaseProgram=()=>RFe(c),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=L:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=L,d.emitNextAffectedFile=h,d.emitBuildInfo=y):Wa(),d;function y(O,k){if(c.buildInfoEmitPending){const G=D.checkDefined(c.program).emitBuildInfo(O||Go(r,r.writeFile),k);return c.buildInfoEmitPending=!1,G}return GF}function h(O,k,G,V){var H,te,X,Y,P;let de=ive(c,k,r);const re=qv(c.compilerOptions);let ye=G?re&24:re;if(!de)if(qs(c.compilerOptions)){if(!c.programEmitPending||(ye=c.programEmitPending,G&&(ye=ye&24),!ye))return;de=c.program}else{const ce=MFe(c,G);if(!ce){if(!c.buildInfoEmitPending)return;const me=c.program,ve=me.emitBuildInfo(O||Go(r,r.writeFile),k);return c.buildInfoEmitPending=!1,{result:ve,affected:me}}({affectedFile:de,emitKind:ye}=ce)}let ae;ye&7&&(ae=0),ye&24&&(ae=ae===void 0?1:void 0),de===c.program&&(c.programEmitPending=c.changedFilesSet.size?YC(re,ye):c.programEmitPending?YC(c.programEmitPending,ye):void 0);const W=c.program.emit(de===c.program?void 0:de,E(O,V),k,ae,V);if(de!==c.program){const ce=de;c.seenAffectedFiles.add(ce.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const me=((H=c.seenEmittedFiles)==null?void 0:H.get(ce.resolvedPath))||0;((te=c.seenEmittedFiles)!=null?te:c.seenEmittedFiles=new Map).set(ce.resolvedPath,ye|me);const ve=((X=c.affectedFilesPendingEmit)==null?void 0:X.get(ce.resolvedPath))||re,Se=YC(ve,ye|me);Se?((Y=c.affectedFilesPendingEmit)!=null?Y:c.affectedFilesPendingEmit=new Map).set(ce.resolvedPath,Se):(P=c.affectedFilesPendingEmit)==null||P.delete(ce.resolvedPath)}else c.changedFilesSet.clear();return{result:W,affected:de}}function E(O,k){return z_(c.compilerOptions)?(G,V,H,te,X,Y)=>{var P,de,re,ye,ae,W,ce;if(fd(G))if(qs(c.compilerOptions)){if(c.compilerOptions.composite){const ve=me(c.outSignature,void 0);if(!ve)return;c.outSignature=ve}}else{D.assert((X==null?void 0:X.length)===1);let ve;if(!k){const Se=X[0],ee=c.fileInfos.get(Se.resolvedPath);if(ee.signature===Se.version){const Qe=WY(c.program,Se,V,r,Y);(P=Y==null?void 0:Y.diagnostics)!=null&&P.length||(ve=Qe),Qe!==Se.version&&(r.storeFilesChangingSignatureDuringEmit&&((de=c.filesChangingSignature)!=null?de:c.filesChangingSignature=new Set).add(Se.resolvedPath),c.exportedModulesMap&&Xm.updateExportedModules(c,Se,Se.exportedModulesFromDeclarationEmit),c.affectedFiles?(((re=c.oldSignatures)==null?void 0:re.get(Se.resolvedPath))===void 0&&((ye=c.oldSignatures)!=null?ye:c.oldSignatures=new Map).set(Se.resolvedPath,ee.signature||!1),ee.signature=Qe):(ee.signature=Qe,(ae=c.oldExportedModulesMap)==null||ae.clear()))}}if(c.compilerOptions.composite){const Se=X[0].resolvedPath;if(ve=me((W=c.emitSignatures)==null?void 0:W.get(Se),ve),!ve)return;((ce=c.emitSignatures)!=null?ce:c.emitSignatures=new Map).set(Se,ve)}}O?O(G,V,H,te,X,Y):r.writeFile?r.writeFile(G,V,H,te,X,Y):c.program.writeFile(G,V,H,te,X,Y);function me(ve,Se){const ee=!ve||Ha(ve)?ve:ve[0];if(Se??(Se=WT(V,r,Y)),Se===ee){if(ve===ee)return;Y?Y.differsOnlyInMap=!0:Y={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=G;return Se}}:O||Go(r,r.writeFile)}function A(O,k,G,V,H){e===1&&rve(c,O);const te=NY(d,O,k,G);if(te)return te;if(!O)if(e===1){let X=[],Y=!1,P,de=[],re;for(;re=h(k,G,V,H);)Y=Y||re.result.emitSkipped,P=Ti(P,re.result.diagnostics),de=Ti(de,re.result.emittedFiles),X=Ti(X,re.result.sourceMaps);return{emitSkipped:Y,diagnostics:P||rt,emittedFiles:de,sourceMaps:X}}else PFe(c,V);return D.checkDefined(c.program).emit(O,E(k,H),G,V,H)}function L(O,k){for(;;){const G=ive(c,O,r);let V;if(G)if(G!==c.program){const H=G;if((!k||!k(H))&&(V=HY(c,H,O)),c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!V)continue}else V=c.program.getSemanticDiagnostics(void 0,O),c.changedFilesSet.clear(),c.programEmitPending=qv(c.compilerOptions);else return;return{result:V,affected:G}}}function I(O,k){rve(c,O);const G=D.checkDefined(c.program).getCompilerOptions();if(qs(G))return D.assert(!c.semanticDiagnosticsPerFile),D.checkDefined(c.program).getSemanticDiagnostics(O,k);if(O)return HY(c,O,k);for(;L(k););let V;for(const H of D.checkDefined(c.program).getSourceFiles())V=Ti(V,HY(c,H,k));return V||rt}}function qY(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,s|r)}function dve(e){return Ha(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ha(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function fve(e,t){return cy(e)?t:e[1]||8}function _ve(e,t){return e||qv(t||{})}function pve(e,t,r){var i,o,s,c;const f=e.program,d=hi(Pa(t,r.getCurrentDirectory())),y=ru(r.useCaseSensitiveFileNames());let h;const E=(i=f.fileNames)==null?void 0:i.map(I);let A;const L=f.latestChangedDtsFile?O(f.latestChangedDtsFile):void 0;if(lve(f)){const H=new Map;f.fileInfos.forEach((te,X)=>{const Y=k(X+1);H.set(Y,Ha(te)?{version:te,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:te)}),h={fileInfos:H,compilerOptions:f.options?zK(f.options,O):{},latestChangedDtsFile:L,outSignature:f.outSignature,programEmitPending:f.pendingEmit===void 0?void 0:_ve(f.pendingEmit,f.options),bundle:e.bundle}}else{A=(o=f.fileIdsList)==null?void 0:o.map(Y=>new Set(Y.map(k)));const H=new Map,te=(s=f.options)!=null&&s.composite&&!qs(f.options)?new Map:void 0;f.fileInfos.forEach((Y,P)=>{const de=k(P+1),re=dve(Y);H.set(de,re),te&&re.signature&&te.set(de,re.signature)}),(c=f.emitSignatures)==null||c.forEach(Y=>{if(cy(Y))te.delete(k(Y));else{const P=k(Y[0]);te.set(P,!Ha(Y[1])&&!Y[1].length?[te.get(P)]:Y[1])}});const X=f.affectedFilesPendingEmit?qv(f.options||{}):void 0;h={fileInfos:H,compilerOptions:f.options?zK(f.options,O):{},referencedMap:V(f.referencedMap),exportedModulesMap:V(f.exportedModulesMap),semanticDiagnosticsPerFile:f.semanticDiagnosticsPerFile&&i1(f.semanticDiagnosticsPerFile,Y=>k(cy(Y)?Y:Y[0]),Y=>cy(Y)?rt:Y[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:f.affectedFilesPendingEmit&&i1(f.affectedFilesPendingEmit,Y=>k(cy(Y)?Y:Y[0]),Y=>fve(Y,X)),changedFilesSet:new Set(Vt(f.changeFileSet,k)),latestChangedDtsFile:L,emitSignatures:te!=null&&te.size?te:void 0}}return{getState:()=>h,saveEmitState:oo,restoreEmitState:oo,getProgram:Wa,getProgramOrUndefined:j0,releaseProgram:oo,getCompilerOptions:()=>h.compilerOptions,getSourceFile:Wa,getSourceFiles:Wa,getOptionsDiagnostics:Wa,getGlobalDiagnostics:Wa,getConfigFileParsingDiagnostics:Wa,getSyntacticDiagnostics:Wa,getDeclarationDiagnostics:Wa,getSemanticDiagnostics:Wa,emit:Wa,getAllDependencies:Wa,getCurrentDirectory:Wa,emitNextAffectedFile:Wa,getSemanticDiagnosticsOfNextAffectedFile:Wa,emitBuildInfo:Wa,close:oo,hasChangedEmitSignature:a1};function I(H){return zs(H,d,y)}function O(H){return Pa(H,d)}function k(H){return E[H-1]}function G(H){return A[H-1]}function V(H){if(!H)return;const te=Xm.createManyToManyPathMap();return H.forEach(([X,Y])=>te.set(k(X),G(Y))),te}}function JY(e,t,r){const i=hi(Pa(t,r.getCurrentDirectory())),o=ru(r.useCaseSensitiveFileNames()),s=new Map;let c=0;const f=[];return e.fileInfos.forEach((d,y)=>{const h=zs(e.fileNames[y],i,o),E=Ha(d)?d:d.version;if(s.set(h,E),c<e.root.length){const A=e.root[c],L=y+1;Va(A)?A[0]<=L&&L<=A[1]&&(f.push(h),A[1]===L&&c++):A===L&&(f.push(h),c++)}}),{fileInfos:s,roots:f}}function KY(e,t){return{getState:Wa,saveEmitState:oo,restoreEmitState:oo,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,c,f)=>r().emit(i,o,s,c,f),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Wa,getCurrentDirectory:()=>r().getCurrentDirectory(),close:oo};function r(){return D.checkDefined(e().program)}}var XY,YY,HFe=C({"src/compiler/builder.ts"(){Oa(),Oa(),XY=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(XY||{}),YY=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(YY||{})}});function WFe(e,t,r,i,o,s){return zY(0,VF(e,t,r,i,o,s))}function $Y(e,t,r,i,o,s){return zY(1,VF(e,t,r,i,o,s))}function zFe(e,t,r,i,o,s){const{newProgram:c,configFileParsingDiagnostics:f}=VF(e,t,r,i,o,s);return KY(()=>({program:c,compilerOptions:c.getCompilerOptions()}),f)}var qFe=C({"src/compiler/builderPublic.ts"(){Oa()}});function QY(e){return ic(e,"/node_modules/.staging")?CA(e,"/.staging"):kt(qR,t=>pu(e,t))?void 0:e}function t6(e){const t=Kp(e);if(e.length===t)return!1;let r=e.indexOf(Ms,t);if(r===-1)return!1;let i=e.substring(t,r+1);const o=t>1||e.charCodeAt(0)!==47;if(o&&e.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-Z]\$\//)===0){if(r=e.indexOf(Ms,r+1),r===-1)return!1;i=e.substring(t+i.length,r+1)}if(o&&i.search(/users\//i)!==0)return!0;for(let s=r+1,c=2;c>0;c--)if(s=e.indexOf(Ms,s)+1,s===0)return!1;return!0}function mve(e,t,r){let i,o,s;const c=__(),f=new Set,d=new Set,y=new Map,h=new Map;let E=!1,A,L,I,O,k;const G=Ed(()=>e.getCurrentDirectory()),V=e.getCachedDirectoryStructureHost(),H=new Map,te=q5(G(),e.getCanonicalFileName,e.getCompilationSettings()),X=new Map,Y=J5(G(),e.getCanonicalFileName,e.getCompilationSettings(),te.getPackageJsonInfoCache()),P=[".ts",".tsx",".js",".jsx",".json"],de=new Map,re=new Map,ye=new Map,ae=t&&tT(Pa(t,G())),W=ae&&e.toPath(ae),ce=W!==void 0?W.split(Ms).length:0,me=new Map;return{getModuleResolutionCache:()=>te,startRecordingFilesWithChangedResolutions:je,finishRecordingFilesWithChangedResolutions:Ge,startCachingPerDirectoryResolution:Me,finishCachingPerDirectoryResolution:Ye,resolveModuleNameLiterals:Et,resolveTypeReferenceDirectiveReferences:Ct,resolveSingleModuleNameWithoutWatching:jt,removeResolutionsFromProjectReferenceRedirects:vn,removeResolutionsOfFile:Wt,hasChangedAutomaticTypeDirectiveNames:()=>E,invalidateResolutionOfFile:rr,invalidateResolutionsOfFailedLookupLocations:gi,setFilesWithInvalidatedNonRelativeUnresolvedImports:cr,createHasInvalidatedResolutions:Oe,isFileWithInvalidatedNonRelativeUnresolvedImports:qe,updateTypeRootsWatch:yt,closeTypeRootsWatch:Ar,clear:Qe};function ve(Ce){return Ce.resolvedModule}function Se(Ce){return Ce.resolvedTypeReferenceDirective}function ee(Ce,pt){return Ce===void 0||pt.length<=Ce.length?!1:xa(pt,Ce)&&pt[Ce.length]===Ms}function Qe(){Zf(re,Km),Zf(ye,Km),de.clear(),c.clear(),Ar(),H.clear(),X.clear(),y.clear(),f.clear(),d.clear(),I=void 0,O=void 0,k=void 0,L=void 0,A=void 0,te.clear(),Y.clear(),te.update(e.getCompilationSettings()),Y.update(e.getCompilationSettings()),h.clear(),E=!1}function je(){i=[]}function Ge(){const Ce=i;return i=void 0,Ce}function qe(Ce){if(!s)return!1;const pt=s.get(Ce);return!!pt&&!!pt.length}function Oe(Ce){gi();const pt=o;return o=void 0,pe=>Ce(pe)||!!(pt!=null&&pt.has(pe))||qe(pe)}function Me(){te.clearAllExceptPackageJsonInfoCache(),Y.clearAllExceptPackageJsonInfoCache(),c.forEach(_r),c.clear()}function Ye(Ce,pt){s=void 0,c.forEach(_r),c.clear(),Ce!==pt&&(Ce==null||Ce.getSourceFiles().forEach(pe=>{var ie,he,j;const We=of(pe)&&(he=(ie=pe.packageJsonLocations)==null?void 0:ie.length)!=null?he:0,Ze=(j=h.get(pe.path))!=null?j:rt;for(let Xe=Ze.length;Xe<We;Xe++)Zt(pe.packageJsonLocations[Xe],!1);if(Ze.length>We)for(let Xe=We;Xe<Ze.length;Xe++)ye.get(Ze[Xe]).files--;We?h.set(pe.path,pe.packageJsonLocations):h.delete(pe.path)}),h.forEach((pe,ie)=>{Ce!=null&&Ce.getSourceFileByPath(ie)||(pe.forEach(he=>ye.get(he).files--),h.delete(ie))})),re.forEach((pe,ie)=>{pe.refCount===0&&(re.delete(ie),pe.watcher.close())}),ye.forEach((pe,ie)=>{pe.files===0&&pe.resolutions===0&&(ye.delete(ie),pe.watcher.close())}),E=!1}function ze(Ce,pt,pe,ie,he){var j;const We=((j=e.getCompilerHost)==null?void 0:j.call(e))||e,Ze=uw(Ce,pt,pe,We,te,ie,he);if(!e.getGlobalCache)return Ze;const Xe=e.getGlobalCache();if(Xe!==void 0&&!Uc(Ce)&&!(Ze.resolvedModule&&p7(Ze.resolvedModule.extension))){const{resolvedModule:Ut,failedLookupLocations:cn,affectingLocations:Sn,resolutionDiagnostics:Er}=uge(D.checkDefined(e.globalCacheResolutionModuleName)(Ce),e.projectName,pe,We,Xe,te);if(Ut)return Ze.resolvedModule=Ut,Ze.failedLookupLocations=qC(Ze.failedLookupLocations,cn),Ze.affectingLocations=qC(Ze.affectingLocations,Sn),Ze.resolutionDiagnostics=qC(Ze.resolutionDiagnostics,Er),Ze}return Ze}function Fe(Ce,pt,pe){return{nameAndMode:Aw,resolve:(ie,he)=>ze(ie,Ce,pe,pt,he)}}function st({entries:Ce,containingFile:pt,containingSourceFile:pe,redirectedReference:ie,options:he,perFileCache:j,reusedNames:We,loader:Ze,getResolutionWithResolvedFileName:Xe,shouldRetryResolution:Ut,logChanges:cn}){var Sn;const Er=e.toPath(pt),ue=j.get(Er)||j.set(Er,BT()).get(Er),mt=[],zt=cn&&qe(Er),it=e.getCurrentProgram(),K=it&&it.getResolvedProjectReferenceToRedirect(pt),Pe=K?!ie||ie.sourceFile.path!==K.sourceFile.path:!!ie,Z=BT();for(const q of Ce){const Rt=Ze.nameAndMode.getName(q),gt=Ze.nameAndMode.getMode(q,pe);let ft=ue.get(Rt,gt);if(!Z.has(Rt,gt)&&Pe||!ft||ft.isInvalidated||zt&&!Uc(Rt)&&Ut(ft)){const _n=ft;ft=Ze.resolve(Rt,gt),e.onDiscoveredSymlink&&JFe(ft)&&e.onDiscoveredSymlink(),ue.set(Rt,gt,ft),On(Rt,ft,Er,Xe),_n&&$i(_n,Er,Xe),cn&&i&&!Re(_n,ft)&&(i.push(Er),cn=!1)}else{const _n=((Sn=e.getCompilerHost)==null?void 0:Sn.call(e))||e;if(Wv(he,_n)&&!Z.has(Rt,gt)){const $n=Xe(ft);ha(_n,j===H?$n!=null&&$n.resolvedFileName?$n.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.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_not_resolved:$n!=null&&$n.resolvedFileName?$n.packageId?_.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_successfully_resolved_to_2:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Rt,pt,$n==null?void 0:$n.resolvedFileName,($n==null?void 0:$n.packageId)&&uT($n.packageId))}}D.assert(ft!==void 0&&!ft.isInvalidated),Z.set(Rt,gt,!0),mt.push(ft)}return We==null||We.forEach(q=>Z.set(Ze.nameAndMode.getName(q),Ze.nameAndMode.getMode(q,pe),!0)),ue.size()!==Z.size()&&ue.forEach((q,Rt,gt)=>{Z.has(Rt,gt)||($i(q,Er,Xe),ue.delete(Rt,gt))}),mt;function Re(q,Rt){if(q===Rt)return!0;if(!q||!Rt)return!1;const gt=Xe(q),ft=Xe(Rt);return gt===ft?!0:!gt||!ft?!1:gt.resolvedFileName===ft.resolvedFileName}}function Ct(Ce,pt,pe,ie,he,j){var We;return st({entries:Ce,containingFile:pt,containingSourceFile:he,redirectedReference:pe,options:ie,reusedNames:j,perFileCache:X,loader:kF(pt,pe,ie,((We=e.getCompilerHost)==null?void 0:We.call(e))||e,Y),getResolutionWithResolvedFileName:Se,shouldRetryResolution:Ze=>Ze.resolvedTypeReferenceDirective===void 0})}function Et(Ce,pt,pe,ie,he,j){return st({entries:Ce,containingFile:pt,containingSourceFile:he,redirectedReference:pe,options:ie,reusedNames:j,perFileCache:H,loader:Fe(pt,pe,ie),getResolutionWithResolvedFileName:ve,shouldRetryResolution:We=>!We.resolvedModule||!SO(We.resolvedModule.extension),logChanges:r})}function jt(Ce,pt){const pe=e.toPath(pt),ie=H.get(pe),he=ie==null?void 0:ie.get(Ce,void 0);return he&&!he.isInvalidated?he:ze(Ce,pt,e.getCompilationSettings())}function tt(Ce){return ic(Ce,"/node_modules/@types")}function at(Ce,pt){if(ee(W,pt)){Ce=km(Ce)?qo(Ce):Pa(Ce,G());const pe=pt.split(Ms),ie=Ce.split(Ms);return D.assert(ie.length===pe.length,`FailedLookup: ${Ce} failedLookupLocationPath: ${pt}`),pe.length>ce+1?{dir:ie.slice(0,ce+1).join(Ms),dirPath:pe.slice(0,ce+1).join(Ms)}:{dir:ae,dirPath:W,nonRecursive:!1}}return sn(hi(Pa(Ce,G())),hi(pt))}function sn(Ce,pt){for(;Zx(pt);)Ce=hi(Ce),pt=hi(pt);if(GM(pt))return t6(hi(pt))?{dir:Ce,dirPath:pt}:void 0;let pe=!0,ie,he;if(W!==void 0)for(;!ee(pt,W);){const j=hi(pt);if(j===pt)break;pe=!1,ie=pt,he=Ce,pt=j,Ce=hi(Ce)}return t6(pt)?{dir:he||Ce,dirPath:ie||pt,nonRecursive:pe}:void 0}function Qt(Ce){return Sc(Ce,P)}function On(Ce,pt,pe,ie){var he,j;if(pt.refCount)pt.refCount++,D.assertIsDefined(pt.files);else{pt.refCount=1,D.assert(!((he=pt.files)!=null&&he.size)),Uc(Ce)?jn(pt):c.add(Ce,pt);const We=ie(pt);if(We&&We.resolvedFileName){const Ze=e.toPath(We.resolvedFileName);let Xe=y.get(Ze);Xe||y.set(Ze,Xe=new Set),Xe.add(pt)}}((j=pt.files)!=null?j:pt.files=new Set).add(pe)}function jn(Ce){D.assert(!!Ce.refCount);const{failedLookupLocations:pt,affectingLocations:pe}=Ce;if(!(pt!=null&&pt.length)&&!(pe!=null&&pe.length))return;pt!=null&&pt.length&&f.add(Ce);let ie=!1;if(pt){for(const he of pt){const j=e.toPath(he),We=at(he,j);if(We){const{dir:Ze,dirPath:Xe,nonRecursive:Ut}=We;if(!Qt(j)){const cn=de.get(j)||0;de.set(j,cn+1)}Xe===W?(D.assert(!Ut),ie=!0):Ii(Ze,Xe,Ut)}}ie&&Ii(ae,W,!0)}In(Ce,!(pt!=null&&pt.length))}function In(Ce,pt){D.assert(!!Ce.refCount);const{affectingLocations:pe}=Ce;if(pe!=null&&pe.length){pt&&d.add(Ce);for(const ie of pe)Zt(ie,!0)}}function Zt(Ce,pt){const pe=ye.get(Ce);if(pe){pt?pe.resolutions++:pe.files++;return}let ie=Ce;if(e.realpath&&(ie=e.realpath(Ce),Ce!==ie)){const Ze=ye.get(ie);if(Ze){pt?Ze.resolutions++:Ze.files++,Ze.paths.add(Ce),ye.set(Ce,Ze);return}}const he=new Set;he.add(ie);let j=t6(e.toPath(ie))?e.watchAffectingFileLocation(ie,(Ze,Xe)=>{V==null||V.addOrDeleteFile(Ze,e.toPath(ie),Xe);const Ut=te.getPackageJsonInfoCache().getInternalMap();he.forEach(cn=>{We.resolutions&&(L??(L=new Set)).add(cn),We.files&&(A??(A=new Set)).add(cn),Ut==null||Ut.delete(e.toPath(cn))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):$C;const We={watcher:j!==$C?{close:()=>{j.close(),j=$C}}:j,resolutions:pt?1:0,files:pt?0:1,paths:he};ye.set(ie,We),Ce!==ie&&(ye.set(Ce,We),he.add(Ce))}function _r(Ce,pt){const pe=e.getCurrentProgram();!pe||!pe.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(pt)?Ce.forEach(jn):Ce.forEach(ie=>In(ie,!0))}function Ii(Ce,pt,pe){const ie=re.get(pt);ie?(D.assert(!!pe==!!ie.nonRecursive),ie.refCount++):re.set(pt,{watcher:Or(Ce,pt,pe),refCount:1,nonRecursive:pe})}function $i(Ce,pt,pe){if(D.checkDefined(Ce.files).delete(pt),Ce.refCount--,Ce.refCount)return;const ie=pe(Ce);if(ie&&ie.resolvedFileName){const We=e.toPath(ie.resolvedFileName),Ze=y.get(We);Ze!=null&&Ze.delete(Ce)&&!Ze.size&&y.delete(We)}const{failedLookupLocations:he,affectingLocations:j}=Ce;if(f.delete(Ce)){let We=!1;for(const Ze of he){const Xe=e.toPath(Ze),Ut=at(Ze,Xe);if(Ut){const{dirPath:cn}=Ut,Sn=de.get(Xe);Sn&&(Sn===1?de.delete(Xe):(D.assert(Sn>1),de.set(Xe,Sn-1))),cn===W?We=!0:Qi(cn)}}We&&Qi(W)}else j!=null&&j.length&&d.delete(Ce);if(j)for(const We of j){const Ze=ye.get(We);Ze.resolutions--}}function Qi(Ce){const pt=re.get(Ce);pt.refCount--}function Or(Ce,pt,pe){return e.watchDirectoryOfFailedLookupLocation(Ce,ie=>{const he=e.toPath(ie);V&&V.addOrDeleteFileOrDirectory(ie,he),Pi(he,pt===he)},pe?0:1)}function At(Ce,pt,pe){const ie=Ce.get(pt);ie&&(ie.forEach(he=>$i(he,pt,pe)),Ce.delete(pt))}function vn(Ce){if(!cc(Ce,".json"))return;const pt=e.getCurrentProgram();if(!pt)return;const pe=pt.getResolvedProjectReferenceByPath(Ce);pe&&pe.commandLine.fileNames.forEach(ie=>Wt(e.toPath(ie)))}function Wt(Ce){At(H,Ce,ve),At(X,Ce,Se)}function dn(Ce,pt){if(!Ce)return!1;let pe=!1;return Ce.forEach(ie=>{if(!(ie.isInvalidated||!pt(ie))){ie.isInvalidated=pe=!0;for(const he of D.checkDefined(ie.files))(o??(o=new Set)).add(he),E=E||ic(he,FF)}}),pe}function rr(Ce){Wt(Ce);const pt=E;dn(y.get(Ce),o1)&&E&&!pt&&e.onChangedAutomaticTypeDirectiveNames()}function cr(Ce){D.assert(s===Ce||s===void 0),s=Ce}function Pi(Ce,pt){if(pt)(k||(k=new Set)).add(Ce);else{const pe=QY(Ce);if(!pe||(Ce=pe,e.fileIsOpen(Ce)))return!1;const ie=hi(Ce);if(tt(Ce)||GM(Ce)||tt(ie)||GM(ie))(I||(I=new Set)).add(Ce),(O||(O=new Set)).add(Ce);else{if(!Qt(Ce)&&!de.has(Ce)||jye(e.getCurrentProgram(),Ce))return!1;(I||(I=new Set)).add(Ce);const he=gX(Ce);he&&(O||(O=new Set)).add(he)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function gi(){var Ce;let pt=!1;if(A&&((Ce=e.getCurrentProgram())==null||Ce.getSourceFiles().forEach(ie=>{kt(ie.packageJsonLocations,he=>A.has(he))&&((o??(o=new Set)).add(ie.path),pt=!0)}),A=void 0),!I&&!O&&!k&&!L)return pt;pt=dn(f,Rn)||pt;const pe=te.getPackageJsonInfoCache().getInternalMap();return pe&&(I||O||k)&&pe.forEach((ie,he)=>an(he)?pe.delete(he):void 0),I=void 0,O=void 0,k=void 0,pt=dn(d,Pn)||pt,L=void 0,pt}function Rn(Ce){var pt;return Pn(Ce)?!0:!I&&!O&&!k?!1:(pt=Ce.failedLookupLocations)==null?void 0:pt.some(pe=>an(e.toPath(pe)))}function an(Ce){return(I==null?void 0:I.has(Ce))||fn((O==null?void 0:O.keys())||[],pt=>xa(Ce,pt)?!0:void 0)||fn((k==null?void 0:k.keys())||[],pt=>ee(pt,Ce)?!0:void 0)}function Pn(Ce){var pt;return!!L&&((pt=Ce.affectingLocations)==null?void 0:pt.some(pe=>L.has(pe)))}function Ar(){Zf(me,Um)}function Hr(Ce,pt){if(ee(W,pt))return W;const pe=sn(Ce,pt);return pe&&re.has(pe.dirPath)?pe.dirPath:void 0}function we(Ce,pt){return e.watchTypeRootsDirectory(pt,pe=>{const ie=e.toPath(pe);V&&V.addOrDeleteFileOrDirectory(pe,ie),E=!0,e.onChangedAutomaticTypeDirectiveNames();const he=Hr(pt,Ce);he&&Pi(ie,he===ie)},1)}function yt(){const Ce=e.getCompilationSettings();if(Ce.types){Ar();return}const pt=D8(Ce,{directoryExists:Nt,getCurrentDirectory:G});pt?fC(me,i1(pt,pe=>e.toPath(pe)),{createNewValue:we,onDeleteValue:Um}):Ar()}function Nt(Ce){const pt=hi(hi(Ce)),pe=e.toPath(pt);return pe===W||t6(pe)}}function JFe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var KFe=C({"src/compiler/resolutionCache.ts"(){Oa(),Oa()}});function n6(e,t){const r=e===$c&&c$?c$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ru(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(AY(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(Xye(i,r)+r.getNewLine()),i[0]=void 0}}function hve(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&jr(JF,t.code)?(e.clearScreen(),!0):!1}function XFe(e,t){return jr(JF,e.code)?t+t:t}function r6(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function gve(e,t){return t?(r,i,o)=>{hve(e,r,o);let s=`[${K1(r6(e),"\x1B[90m")}] `;s+=`${zv(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";hve(e,r,o)||(s+=i),s+=`${r6(e)} - `,s+=`${zv(r.messageText,e.newLine)}${XFe(r,i)}`,e.write(s)}}function YFe(e,t,r,i,o,s){const c=o;c.onUnRecoverableConfigFileDiagnostic=d=>xve(o,s,d);const f=p8(e,t,c,r,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,f}function jF(e){return Gc(e,t=>t.category===1)}function HF(e){return lr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=nn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ol(i.file,i.start);return{fileName:r,line:o+1}}})}function ZY(e){return e===1?_.Found_1_error_Watching_for_file_changes:_.Found_0_errors_Watching_for_file_changes}function yve(e,t){const r=K1(":"+e.line,"\x1B[90m");return kI(e.fileName)&&kI(t)?wm(t,e.fileName,!1)+r:e.fileName+r}function vve(e,t,r,i){if(e===0)return"";const o=t.filter(y=>y!==void 0),s=o.map(y=>`${y.fileName}:${y.line}`).filter((y,h,E)=>E.indexOf(y)===h),c=o[0]&&yve(o[0],i.getCurrentDirectory()),f=e===1?Fs(t[0]!==void 0?_.Found_1_error_in_1:_.Found_1_error,e,c):Fs(s.length===0?_.Found_0_errors:s.length===1?_.Found_0_errors_in_the_same_file_starting_at_Colon_1:_.Found_0_errors_in_1_files,e,s.length===1?c:s.length),d=s.length>1?$Fe(o,i):"";return`${r}${zv(f.messageText,r)}${r}${r}${d}`}function $Fe(e,t){const r=e.filter((E,A,L)=>A===L.findIndex(I=>(I==null?void 0:I.fileName)===(E==null?void 0:E.fileName)));if(r.length===0)return"";const i=E=>Math.log(E)*Math.LOG10E+1,o=r.map(E=>[E,Gc(e,A=>A.fileName===E.fileName)]),s=o.reduce((E,A)=>Math.max(E,A[1]||0),0),c=_.Errors_Files.message,f=c.split(" ")[0].length,d=Math.max(f,i(s)),y=Math.max(i(s)-f,0);let h="";return h+=" ".repeat(y)+c+` `,o.forEach(E=>{const[A,L]=E,I=Math.log(L)*Math.LOG10E+1|0,O=I<d?" ".repeat(d-I):"",k=yve(A,t.getCurrentDirectory());h+=`${O}${L} ${k} `}),h}function bve(e){return!!e.getState}function e$(e,t){const r=e.getCompilerOptions();r.explainFiles?Eve(bve(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Ue(e.getSourceFiles(),i=>{t(i.fileName)})}function Eve(e,t){var r,i;const o=e.getFileIncludeReasons(),s=c=>wI(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${n2(c,s)}`),(r=o.get(c.path))==null||r.forEach(f=>t(` ${i$(e,f,s).messageText}`)),(i=t$(c,s))==null||i.forEach(f=>t(` ${f.messageText}`))}function t$(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Na(void 0,_.File_is_output_of_project_reference_source_0,n2(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Na(void 0,_.File_redirects_to_file_0,n2(e.redirectInfo.redirectTarget,t))),of(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Na(void 0,_.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,n2(zo(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Na(void 0,e.packageJsonScope.contents.packageJsonContent.type?_.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,n2(zo(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Na(void 0,_.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function n$(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=hi(Pa(i.fileName,e.getCurrentDirectory()));return nn(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Pa(c,s))===o)}function r$(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=cc(t,".json"),c=hi(Pa(o.fileName,e.getCurrentDirectory())),f=e.useCaseSensitiveFileNames();return nn((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,d=>{if(s&&!ic(d,".json"))return!1;const y=$q(d,c,"files");return!!y&&Mv(`(${y})$`,f).test(t)})}function i$(e,t,r){var i,o;const s=e.getCompilerOptions();if(cb(t)){const c=Sw(y=>e.getSourceFileByPath(y),t),f=XC(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let d;switch(D.assert(XC(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:XC(c)?d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2:_.Imported_via_0_from_file_1:c.text===rb?d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:D.assert(!c.packageId),d=_.Referenced_via_0_from_file_1;break;case 5:d=c.packageId?_.Type_library_referenced_via_0_from_file_1_with_packageId_2:_.Type_library_referenced_via_0_from_file_1;break;case 7:D.assert(!c.packageId),d=_.Library_referenced_via_0_from_file_1;break;default:D.assertNever(t)}return Na(void 0,d,f,n2(c.file,r),c.packageId&&uT(c.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Na(void 0,_.Root_file_specified_for_compilation);const c=Pa(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(n$(e,c))return Na(void 0,_.Part_of_files_list_in_tsconfig_json);const d=r$(e,c);return Ha(d)?Na(void 0,_.Matched_by_include_pattern_0_in_1,d,n2(s.configFile,r)):Na(void 0,d?_.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_.Root_file_specified_for_compilation);case 1:case 2:const y=t.kind===2,h=D.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Na(void 0,qs(s)?y?_.Output_from_referenced_project_0_included_because_1_specified:_.Source_from_referenced_project_0_included_because_1_specified:y?_.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_.Source_from_referenced_project_0_included_because_module_is_specified_as_none,n2(h.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:return Na(void 0,s.types?t.packageId?_.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:_.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?_.Entry_point_for_implicit_type_library_0_with_packageId_1:_.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&uT(t.packageId));case 6:if(t.index!==void 0)return Na(void 0,_.Library_0_specified_in_compilerOptions,s.lib[t.index]);const E=af(L8.type,(A,L)=>A===es(s)?L:void 0);return Na(void 0,E?_.Default_library_for_target_0:_.Default_library,E);default:D.assertNever(t)}}function n2(e,t){const r=Ha(e)?e:e.fileName;return t?t(r):r}function WF(e,t,r,i,o,s,c,f){const d=!!e.getCompilerOptions().listFilesOnly,y=e.getConfigFileParsingDiagnostics().slice(),h=y.length;Ti(y,e.getSyntacticDiagnostics(void 0,s)),y.length===h&&(Ti(y,e.getOptionsDiagnostics(s)),d||(Ti(y,e.getGlobalDiagnostics(s)),y.length===h&&Ti(y,e.getSemanticDiagnostics(void 0,s))));const E=d?{emitSkipped:!0,diagnostics:rt}:e.emit(void 0,o,s,c,f),{emittedFiles:A,diagnostics:L}=E;Ti(y,L);const I=DA(y);if(I.forEach(t),r){const O=e.getCurrentDirectory();Ue(A,k=>{const G=Pa(k,O);r(`TSFILE: ${G}`)}),e$(e,r)}return i&&i(jF(I),HF(I)),{emitResult:E,diagnostics:I}}function Tve(e,t,r,i,o,s,c,f){const{emitResult:d,diagnostics:y}=WF(e,t,r,i,o,s,c,f);return d.emitSkipped&&y.length>0?1:y.length>0?2:0}function a$(e=$c,t){return{onWatchStatusChange:t||gve(e),watchFile:Go(e,e.watchFile)||i6,watchDirectory:Go(e,e.watchDirectory)||i6,setTimeout:Go(e,e.setTimeout)||oo,clearTimeout:Go(e,e.clearTimeout)||oo}}function o$(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):oo,o=Hye(e,r,i);return o.writeLog=i,o}function s$(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:TY((s,c)=>c?e.readFile(s,c):o.readFile(s),t,void 0),getDefaultLibLocation:Go(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:SY((s,c,f)=>e.writeFile(s,c,f),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:ru(i),getNewLine:()=>tb(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:Go(e,e.trace),directoryExists:Go(r,r.directoryExists),getDirectories:Go(r,r.getDirectories),realpath:Go(e,e.realpath),getEnvironmentVariable:Go(e,e.getEnvironmentVariable)||(()=>""),createHash:Go(e,e.createHash),readDirectory:Go(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return o}function zF(e,t){if(t.match(WX)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!hu(s)){i=o;continue}break}const c=t.substring(i,r);if(c.match(fF)){t=t.substring(0,i);break}else if(!c.match(_F))break;r=i}}return(e.createHash||VR)(t)}function qF(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=zF(e,i.text)),i}}function l$(e,t){const r=Ed(()=>hi(qo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Bi(r(),zM(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,c,f)=>e.readDirectory(i,o,s,c,f),realpath:Go(e,e.realpath),getEnvironmentVariable:Go(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:Go(e,e.createHash),createProgram:t||$Y,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Go(e,e.now)}}function Sve(e=$c,t,r,i){const o=c=>e.write(c+e.newLine),s=l$(e,t);return uH(s,a$(e,i)),s.afterProgramCreate=c=>{const f=c.getCompilerOptions(),d=tb(f);WF(c,r,o,y=>s.onWatchStatusChange(Fs(ZY(y),y),d,f,y))},s}function xve(e,t,r){t(r),e.exit(1)}function Ave({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:f}){const d=c||n6(o),y=Sve(o,s,d,f);return y.onUnRecoverableConfigFileDiagnostic=h=>xve(o,d,h),y.configFileName=e,y.optionsToExtend=t,y.watchOptionsToExtend=r,y.extraFileExtensions=i,y}function Cve({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:f}){const d=Sve(o,s,c||n6(o),f);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function QFe(e){const t=e.system||$c,r=e.host||(e.host=u$(e.options,t)),i=Lve(e),o=Tve(i,e.reportDiagnostic||n6(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,c)=>t.write(vve(s,c,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var c$,JF,$C,i6,T_,ZFe=C({"src/compiler/watch.ts"(){Oa(),c$=$c?{getCurrentDirectory:()=>$c.getCurrentDirectory(),getNewLine:()=>$c.newLine,getCanonicalFileName:ru($c.useCaseSensitiveFileNames)}:void 0,JF=[_.Starting_compilation_in_watch_mode.code,_.File_change_detected_Starting_incremental_compilation.code],$C={close:oo},i6=()=>$C,T_={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"}}});function KF(e,t){const r=ky(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=SF(r,o)}if(!(!i||i.version!==be||!i.program))return pve(i,r,t)}function u$(e,t=$c){const r=xY(e,void 0,t);return r.createHash=Go(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,qF(r),Y8(r,i=>zs(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Lve({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||u$(t),s=s||$Y;const c=KF(t,o);return s(e,t,o,c,r,i)}function e9e(e,t,r,i,o,s,c,f){return Va(e)?Cve({rootFiles:e,options:t,watchOptions:f,projectReferences:c,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Ave({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:f,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function t9e(e){let t,r,i,o,s,c,f,d,y=e.extendedConfigCache,h=!1;const E=new Map;let A,L=!1;const I=e.useCaseSensitiveFileNames(),O=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:G={},watchOptionsToExtend:V,extraFileExtensions:H,createProgram:te}=e;let{rootFiles:X,options:Y,watchOptions:P,projectReferences:de}=e,re,ye,ae=!1,W=!1;const ce=k===void 0?void 0:Gye(e,O,I),me=ce||e,ve=NF(e,me);let Se=sn();k&&e.configFileParsingResult&&(Pn(e.configFileParsingResult),Se=sn()),Qi(_.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(Se=tb(G),D.assert(!X),an(),Se=sn()),D.assert(Y),D.assert(X);const{watchFile:ee,watchDirectory:Qe,writeLog:je}=o$(e,Y),Ge=ru(I);je(`Current directory: ${O} CaseSensitiveFileNames: ${I}`);let qe;k&&(qe=ee(k,rr,2e3,P,T_.ConfigFile));const Oe=s$(e,()=>Y,me);qF(Oe);const Me=Oe.getSourceFile;Oe.getSourceFile=(Ze,...Xe)=>Zt(Ze,Qt(Ze),...Xe),Oe.getSourceFileByPath=Zt,Oe.getNewLine=()=>Se,Oe.fileExists=In,Oe.onReleaseOldSourceFile=$i,Oe.onReleaseParsedCommandLine=we,Oe.toPath=Qt,Oe.getCompilationSettings=()=>Y,Oe.useSourceOfProjectReferenceRedirect=Go(e,e.useSourceOfProjectReferenceRedirect),Oe.watchDirectoryOfFailedLookupLocation=(Ze,Xe,Ut)=>Qe(Ze,Xe,Ut,P,T_.FailedLookupLocations),Oe.watchAffectingFileLocation=(Ze,Xe)=>ee(Ze,Xe,2e3,P,T_.AffectingFileLocation),Oe.watchTypeRootsDirectory=(Ze,Xe,Ut)=>Qe(Ze,Xe,Ut,P,T_.TypeRoots),Oe.getCachedDirectoryStructureHost=()=>ce,Oe.scheduleInvalidateResolutionsOfFailedLookupLocations=vn,Oe.onInvalidatedResolution=dn,Oe.onChangedAutomaticTypeDirectiveNames=dn,Oe.fileIsOpen=a1,Oe.getCurrentProgram=Et,Oe.writeLog=je,Oe.getParsedCommandLine=Ar;const Ye=mve(Oe,k?hi(Pa(k,O)):O,!1);Oe.resolveModuleNameLiterals=Go(e,e.resolveModuleNameLiterals),Oe.resolveModuleNames=Go(e,e.resolveModuleNames),!Oe.resolveModuleNameLiterals&&!Oe.resolveModuleNames&&(Oe.resolveModuleNameLiterals=Ye.resolveModuleNameLiterals.bind(Ye)),Oe.resolveTypeReferenceDirectiveReferences=Go(e,e.resolveTypeReferenceDirectiveReferences),Oe.resolveTypeReferenceDirectives=Go(e,e.resolveTypeReferenceDirectives),!Oe.resolveTypeReferenceDirectiveReferences&&!Oe.resolveTypeReferenceDirectives&&(Oe.resolveTypeReferenceDirectiveReferences=Ye.resolveTypeReferenceDirectiveReferences.bind(Ye)),Oe.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Go(e,e.getModuleResolutionCache):()=>Ye.getModuleResolutionCache();const Fe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Go(e,e.hasInvalidatedResolutions)||o1:a1;return t=KF(Y,Oe),jt(),ie(),k&&j(Qt(k),Y,P,T_.ExtendedConfigFile),k?{getCurrentProgram:Ct,getProgram:Pi,close:st}:{getCurrentProgram:Ct,getProgram:Pi,updateRootFileNames:at,close:st};function st(){At(),Ye.clear(),Zf(E,Ze=>{Ze&&Ze.fileWatcher&&(Ze.fileWatcher.close(),Ze.fileWatcher=void 0)}),qe&&(qe.close(),qe=void 0),y==null||y.clear(),y=void 0,d&&(Zf(d,Km),d=void 0),o&&(Zf(o,Km),o=void 0),i&&(Zf(i,Um),i=void 0),f&&(Zf(f,Ze=>{var Xe;(Xe=Ze.watcher)==null||Xe.close(),Ze.watcher=void 0,Ze.watchedDirectories&&Zf(Ze.watchedDirectories,Km),Ze.watchedDirectories=void 0}),f=void 0)}function Ct(){return t}function Et(){return t&&t.getProgramOrUndefined()}function jt(){je("Synchronizing program"),D.assert(Y),D.assert(X),At();const Ze=Ct();L&&(Se=sn(),Ze&&Tz(Ze.getCompilerOptions(),Y)&&Ye.clear());const Xe=Ye.createHasInvalidatedResolutions(Fe),{originalReadFile:Ut,originalFileExists:cn,originalDirectoryExists:Sn,originalCreateDirectory:Er,originalWriteFile:ue,readFileWithCache:mt}=Y8(Oe,Qt);return DY(Et(),X,Y,zt=>Ii(zt,mt),zt=>Oe.fileExists(zt),Xe,Or,Ar,de)?W&&(h&&Qi(_.File_change_detected_Starting_incremental_compilation),t=te(void 0,void 0,Oe,t,ye,de),W=!1):(h&&Qi(_.File_change_detected_Starting_incremental_compilation),tt(Xe)),h=!1,e.afterProgramCreate&&Ze!==t&&e.afterProgramCreate(t),Oe.readFile=Ut,Oe.fileExists=cn,Oe.directoryExists=Sn,Oe.createDirectory=Er,Oe.writeFile=ue,t}function tt(Ze){je("CreatingProgramWith::"),je(` roots: ${JSON.stringify(X)}`),je(` options: ${JSON.stringify(Y)}`),de&&je(` projectReferences: ${JSON.stringify(de)}`);const Xe=L||!Et();L=!1,W=!1,Ye.startCachingPerDirectoryResolution(),Oe.hasInvalidatedResolutions=Ze,Oe.hasChangedAutomaticTypeDirectiveNames=Or;const Ut=Et();if(t=te(X,Y,Oe,t,ye,de),Ye.finishCachingPerDirectoryResolution(t.getProgram(),Ut),Vye(t.getProgram(),i||(i=new Map),pt),Xe&&Ye.updateTypeRootsWatch(),A){for(const cn of A)i.has(cn)||E.delete(cn);A=void 0}}function at(Ze){D.assert(!k,"Cannot update root file names with config file watch mode"),X=Ze,dn()}function sn(){return tb(Y||G)}function Qt(Ze){return zs(Ze,O,Ge)}function On(Ze){return typeof Ze=="boolean"}function jn(Ze){return typeof Ze.version=="boolean"}function In(Ze){const Xe=Qt(Ze);return On(E.get(Xe))?!1:me.fileExists(Ze)}function Zt(Ze,Xe,Ut,cn,Sn){const Er=E.get(Xe);if(!On(Er)){if(Er===void 0||Sn||jn(Er)){const ue=Me(Ze,Ut,cn);if(Er)ue?(Er.sourceFile=ue,Er.version=ue.version,Er.fileWatcher||(Er.fileWatcher=yt(Xe,Ze,Nt,250,P,T_.SourceFile))):(Er.fileWatcher&&Er.fileWatcher.close(),E.set(Xe,!1));else if(ue){const mt=yt(Xe,Ze,Nt,250,P,T_.SourceFile);E.set(Xe,{sourceFile:ue,version:ue.version,fileWatcher:mt})}else E.set(Xe,!1);return ue}return Er.sourceFile}}function _r(Ze){const Xe=E.get(Ze);Xe!==void 0&&(On(Xe)?E.set(Ze,{version:!1}):Xe.version=!1)}function Ii(Ze,Xe){const Ut=E.get(Ze);if(!Ut)return;if(Ut.version)return Ut.version;const cn=Xe(Ze);return cn!==void 0?zF(Oe,cn):void 0}function $i(Ze,Xe,Ut){const cn=E.get(Ze.resolvedPath);cn!==void 0&&(On(cn)?(A||(A=[])).push(Ze.path):cn.sourceFile===Ze&&(cn.fileWatcher&&cn.fileWatcher.close(),E.delete(Ze.resolvedPath),Ut||Ye.removeResolutionsOfFile(Ze.path)))}function Qi(Ze){e.onWatchStatusChange&&e.onWatchStatusChange(Fs(Ze),Se,Y||G)}function Or(){return Ye.hasChangedAutomaticTypeDirectiveNames()}function At(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function vn(){if(!e.setTimeout||!e.clearTimeout)return Ye.invalidateResolutionsOfFailedLookupLocations();const Ze=At();je(`Scheduling invalidateFailedLookup${Ze?", Cancelled earlier one":""}`),c=e.setTimeout(Wt,250)}function Wt(){c=void 0,Ye.invalidateResolutionsOfFailedLookupLocations()&&dn()}function dn(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),je("Scheduling update"),s=e.setTimeout(cr,250))}function rr(){D.assert(!!k),r=2,dn()}function cr(){s=void 0,h=!0,Pi()}function Pi(){switch(r){case 1:Jp.logStartUpdateProgram("PartialConfigReload"),gi();break;case 2:Jp.logStartUpdateProgram("FullConfigReload"),Rn();break;default:Jp.logStartUpdateProgram("SynchronizeProgram"),jt();break}return Jp.logStopUpdateProgram("Done"),Ct()}function gi(){je("Reloading new file names and options"),D.assert(Y),D.assert(k),r=0,X=E8(Y.configFile.configFileSpecs,Pa(hi(k),O),Y,ve,H),KK(X,Pa(k,O),Y.configFile.configFileSpecs,ye,ae)&&(W=!0),jt()}function Rn(){D.assert(k),je(`Reloading config file: ${k}`),r=0,ce&&ce.clearCache(),an(),L=!0,jt(),ie(),j(Qt(k),Y,P,T_.ExtendedConfigFile)}function an(){D.assert(k),Pn(p8(k,G,ve,y||(y=new Map),V,H))}function Pn(Ze){X=Ze.fileNames,Y=Ze.options,P=Ze.watchOptions,de=Ze.projectReferences,re=Ze.wildcardDirectories,ye=HT(Ze).slice(),ae=v8(Ze.raw),W=!0}function Ar(Ze){const Xe=Qt(Ze);let Ut=f==null?void 0:f.get(Xe);if(Ut){if(!Ut.reloadLevel)return Ut.parsedCommandLine;if(Ut.parsedCommandLine&&Ut.reloadLevel===1&&!e.getParsedCommandLine){je("Reloading new file names and options"),D.assert(Y);const Sn=E8(Ut.parsedCommandLine.options.configFile.configFileSpecs,Pa(hi(Ze),O),Y,ve);return Ut.parsedCommandLine={...Ut.parsedCommandLine,fileNames:Sn},Ut.reloadLevel=void 0,Ut.parsedCommandLine}}je(`Loading config file: ${Ze}`);const cn=e.getParsedCommandLine?e.getParsedCommandLine(Ze):Hr(Ze);return Ut?(Ut.parsedCommandLine=cn,Ut.reloadLevel=void 0):(f||(f=new Map)).set(Xe,Ut={parsedCommandLine:cn}),We(Ze,Xe,Ut),cn}function Hr(Ze){const Xe=ve.onUnRecoverableConfigFileDiagnostic;ve.onUnRecoverableConfigFileDiagnostic=oo;const Ut=p8(Ze,void 0,ve,y||(y=new Map),V);return ve.onUnRecoverableConfigFileDiagnostic=Xe,Ut}function we(Ze){var Xe;const Ut=Qt(Ze),cn=f==null?void 0:f.get(Ut);cn&&(f.delete(Ut),cn.watchedDirectories&&Zf(cn.watchedDirectories,Km),(Xe=cn.watcher)==null||Xe.close(),Uye(Ut,d))}function yt(Ze,Xe,Ut,cn,Sn,Er){return ee(Xe,(ue,mt)=>Ut(ue,mt,Ze),cn,Sn,Er)}function Nt(Ze,Xe,Ut){Ce(Ze,Ut,Xe),Xe===2&&E.has(Ut)&&Ye.invalidateResolutionOfFile(Ut),_r(Ut),dn()}function Ce(Ze,Xe,Ut){ce&&ce.addOrDeleteFile(Ze,Xe,Ut)}function pt(Ze){return f!=null&&f.has(Ze)?$C:yt(Ze,Ze,pe,500,P,T_.MissingFile)}function pe(Ze,Xe,Ut){Ce(Ze,Ut,Xe),Xe===0&&i.has(Ut)&&(i.get(Ut).close(),i.delete(Ut),_r(Ut),dn())}function ie(){re?AF(o||(o=new Map),new Map(Object.entries(re)),he):o&&Zf(o,Km)}function he(Ze,Xe){return Qe(Ze,Ut=>{D.assert(k),D.assert(Y);const cn=Qt(Ut);ce&&ce.addOrDeleteFileOrDirectory(Ut,cn),_r(cn),!CF({watchedDirPath:Qt(Ze),fileOrDirectory:Ut,fileOrDirectoryPath:cn,configFileName:k,extraFileExtensions:H,options:Y,program:Ct()||X,currentDirectory:O,useCaseSensitiveFileNames:I,writeLog:je,toPath:Qt})&&r!==2&&(r=1,dn())},Xe,P,T_.WildcardDirectory)}function j(Ze,Xe,Ut,cn){D.assert(k),yY(Ze,Xe,d||(d=new Map),(Sn,Er)=>ee(Sn,(ue,mt)=>{var zt;Ce(Sn,Er,mt),y&&vY(y,Er,Qt);const it=(zt=d.get(Er))==null?void 0:zt.projects;it!=null&&it.size&&it.forEach(K=>{if(Qt(k)===K)r=2;else{const Pe=f==null?void 0:f.get(K);Pe&&(Pe.reloadLevel=2),Ye.removeResolutionsFromProjectReferenceRedirects(K)}dn()})},2e3,Ut,cn),Qt)}function We(Ze,Xe,Ut){var cn,Sn,Er,ue,mt;Ut.watcher||(Ut.watcher=ee(Ze,(zt,it)=>{Ce(Ze,Xe,it);const K=f==null?void 0:f.get(Xe);K&&(K.reloadLevel=2),Ye.removeResolutionsFromProjectReferenceRedirects(Xe),dn()},2e3,((cn=Ut.parsedCommandLine)==null?void 0:cn.watchOptions)||P,T_.ConfigFileOfReferencedProject)),(Sn=Ut.parsedCommandLine)!=null&&Sn.wildcardDirectories?AF(Ut.watchedDirectories||(Ut.watchedDirectories=new Map),new Map(Object.entries((Er=Ut.parsedCommandLine)==null?void 0:Er.wildcardDirectories)),(zt,it)=>{var K;return Qe(zt,Pe=>{const Z=Qt(Pe);ce&&ce.addOrDeleteFileOrDirectory(Pe,Z),_r(Z);const Re=f==null?void 0:f.get(Xe);Re!=null&&Re.parsedCommandLine&&(CF({watchedDirPath:Qt(zt),fileOrDirectory:Pe,fileOrDirectoryPath:Z,configFileName:Ze,options:Re.parsedCommandLine.options,program:Re.parsedCommandLine.fileNames,currentDirectory:O,useCaseSensitiveFileNames:I,writeLog:je,toPath:Qt})||Re.reloadLevel!==2&&(Re.reloadLevel=1,dn()))},it,((K=Ut.parsedCommandLine)==null?void 0:K.watchOptions)||P,T_.WildcardDirectoryOfReferencedProject)}):Ut.watchedDirectories&&(Zf(Ut.watchedDirectories,Km),Ut.watchedDirectories=void 0),j(Xe,(ue=Ut.parsedCommandLine)==null?void 0:ue.options,((mt=Ut.parsedCommandLine)==null?void 0:mt.watchOptions)||P,T_.ExtendedConfigOfReferencedProject)}}var n9e=C({"src/compiler/watchPublic.ts"(){Oa(),Oa()}});function d$(e){return cc(e,".json")?e:Bi(e,"tsconfig.json")}var f$,r9e=C({"src/compiler/tsbuild.ts"(){Oa(),f$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(f$||{})}});function i9e(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function _$(e,t){return i9e(e,t,()=>new Map)}function a6(e){return e.now?e.now():new Date}function r2(e){return!!e&&!!e.buildOrder}function XF(e){return r2(e)?e.buildOrder:e}function Ive(e,t){return r=>{let i=t?`[${K1(r6(e),"\x1B[90m")}] `:`${r6(e)} - `;i+=`${zv(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function kve(e,t,r,i){const o=l$(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):j0,o.setModifiedTime=e.setModifiedTime?(s,c)=>e.setModifiedTime(s,c):oo,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):oo,o.reportDiagnostic=r||n6(e),o.reportSolutionBuilderStatus=i||Ive(e),o.now=Go(e,e.now),o}function a9e(e=$c,t,r,i,o){const s=kve(e,t,r,i);return s.reportErrorSummary=o,s}function o9e(e=$c,t,r,i,o){const s=kve(e,t,r,i),c=a$(e,o);return uH(s,c),s}function s9e(e){const t={};return C8.forEach(r=>{Ps(e,r.name)&&(t[r.name]=e[r.name])}),t}function l9e(e,t,r){return Qve(!1,e,t,r)}function c9e(e,t,r,i){return Qve(!0,e,t,r,i)}function u9e(e,t,r,i,o){const s=t,c=t,f=s9e(i),d=s$(s,()=>I.projectCompilerOptions);qF(d),d.getParsedCommandLine=O=>zT(I,O,xp(I,O)),d.resolveModuleNameLiterals=Go(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=Go(s,s.resolveTypeReferenceDirectiveReferences),d.resolveModuleNames=Go(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=Go(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=Go(s,s.getModuleResolutionCache);let y,h;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(y=q5(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(O,k,G,V,H)=>Q8(O,k,G,V,H,s,y,wY),d.getModuleResolutionCache=()=>y),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(h=J5(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,y==null?void 0:y.getPackageJsonInfoCache()),d.resolveTypeReferenceDirectiveReferences=(O,k,G,V,H)=>Q8(O,k,G,V,H,s,h,kF)),d.getBuildInfo=(O,k)=>Hve(I,O,xp(I,k),void 0);const{watchFile:E,watchDirectory:A,writeLog:L}=o$(c,i),I={host:s,hostWithWatch:c,parseConfigFileHost:NF(s),write:Go(s,s.trace),options:i,baseCompilerOptions:f,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:y,typeReferenceDirectiveResolutionCache:h,buildOrder:void 0,readFileWithCache:O=>s.readFile(O),projectCompilerOptions:f,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:L};return I}function jd(e,t){return zs(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xp(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=jd(e,t);return r.set(t,o),o}function wve(e){return!!e.options}function d9e(e,t){const r=e.configFileCache.get(t);return r&&wve(r)?r:void 0}function zT(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return wve(o)?o:void 0;al("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:c,baseCompilerOptions:f,baseWatchOptions:d,extendedConfigCache:y,host:h}=e;let E;return h.getParsedCommandLine?(E=h.getParsedCommandLine(t),E||(s=Fs(_.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=A=>s=A,E=p8(t,f,c,y,d),c.onUnRecoverableConfigFileDiagnostic=oo),i.set(r,E||s),al("SolutionBuilder::afterConfigFileParsing"),Jf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),E}function QC(e,t){return d$(Ev(e.compilerHost.getCurrentDirectory(),t))}function Dve(e,t){const r=new Map,i=new Map,o=[];let s,c;for(const d of t)f(d);return c?{buildOrder:s||rt,circularDiagnostics:c}:s||rt;function f(d,y){const h=xp(e,d);if(i.has(h))return;if(r.has(h)){y||(c||(c=[])).push(Fs(_.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(h,!0),o.push(d);const E=zT(e,d,h);if(E&&E.projectReferences)for(const A of E.projectReferences){const L=QC(e,A.path);f(L,y||A.circular)}o.pop(),i.set(h,!0),(s||(s=[])).push(d)}}function o6(e){return e.buildOrder||f9e(e)}function f9e(e){const t=Dve(e,e.rootNames.map(o=>QC(e,o)));e.resolvedConfigFilePaths.clear();const r=new Map(XF(t).map(o=>[xp(e,o),!0])),i={onDeleteValue:oo};return hg(e.configFileCache,r,i),hg(e.projectStatus,r,i),hg(e.builderPrograms,r,i),hg(e.diagnostics,r,i),hg(e.projectPendingBuild,r,i),hg(e.projectErrorsReported,r,i),hg(e.buildInfoCache,r,i),hg(e.outputTimeStamps,r,i),e.watch&&(hg(e.allWatchedConfigFiles,r,{onDeleteValue:Um}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),hg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Km)}),hg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Um)}),hg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Um)})),e.buildOrder=t}function Rve(e,t,r){const i=t&&QC(e,t),o=o6(e);if(r2(o))return o;if(i){const c=xp(e,i);if(mi(o,d=>xp(e,d)===c)===-1)return}const s=i?Dve(e,[i]):o;return D.assert(!r2(s)),D.assert(!r||i!==void 0),D.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function Nve(e){e.cache&&p$(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:c,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:y,getSourceFileWithCache:h,readFileWithCache:E}=Y8(r,A=>jd(e,A),(...A)=>o.call(t,...A));e.readFileWithCache=E,t.getSourceFile=h,e.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:y,originalReadFileWithCache:i,originalGetSourceFile:o}}function p$(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:c}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),c==null||c.clear(),e.cache=void 0}function Ove(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Pve({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function Mve(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&C$(e,_.Starting_compilation_in_watch_mode),Nve(e),XF(o6(e)).forEach(i=>e.projectPendingBuild.set(xp(e,i),0)),t&&t.throwIfCancellationRequested()}function Fve(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function _9e(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{zve(e,i,r),s=!1},done:()=>(s&&zve(e,i,r),al("SolutionBuilder::Timestamps only updates"),Fve(e,r))}}function Bve(e,t,r,i,o,s,c){let f=e===0?0:4,d,y,h;return e===0?{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>A(ml),getProgram:()=>A(P=>P.getProgramOrUndefined()),getSourceFile:P=>A(de=>de.getSourceFile(P)),getSourceFiles:()=>L(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>L(de=>de.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>L(de=>de.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>L(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,de)=>L(re=>re.getSyntacticDiagnostics(P,de)),getAllDependencies:P=>L(de=>de.getAllDependencies(P)),getSemanticDiagnostics:(P,de)=>L(re=>re.getSemanticDiagnostics(P,de)),getSemanticDiagnosticsOfNextAffectedFile:(P,de)=>A(re=>re.getSemanticDiagnosticsOfNextAffectedFile&&re.getSemanticDiagnosticsOfNextAffectedFile(P,de)),emit:(P,de,re,ye,ae)=>{if(P||ye)return A(W=>{var ce,me;return W.emit(P,de,re,ye,ae||((me=(ce=t.host).getCustomTransformers)==null?void 0:me.call(ce,r)))});if(Y(2,re),f===5)return H(de,re);if(f===3)return V(de,re,ae)},done:E}:{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(P,de)=>f!==4?h:X(P,de),done:E};function E(P,de,re){return Y(8,P,de,re),al(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Fve(t,i)}function A(P){return Y(0),d&&P(d)}function L(P){return A(P)||rt}function I(){var P,de;if(D.assert(d===void 0),t.options.dry){Hu(t,_.A_non_dry_build_would_build_project_0,r),y=1,f=7;return}if(t.options.verbose&&Hu(t,_.Building_project_0,r),s.fileNames.length===0){ZC(t,i,HT(s)),y=0,f=7;return}const{host:re,compilerHost:ye}=t;t.projectCompilerOptions=s.options,(P=t.moduleResolutionCache)==null||P.update(s.options),(de=t.typeReferenceDirectiveResolutionCache)==null||de.update(s.options),d=re.createProgram(s.fileNames,s.options,ye,m9e(t,i,s),HT(s),s.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&Vt(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([ae,W])=>[t.host.realpath&&W?jd(t,t.host.realpath(ae)):ae,W])),t.builderPrograms.set(i,d)),f++}function O(P,de,re){P.length?{buildResult:y,step:f}=g$(t,i,d,s,P,de,re):f++}function k(P){D.assertIsDefined(d),O([...d.getConfigFileParsingDiagnostics(),...d.getOptionsDiagnostics(P),...d.getGlobalDiagnostics(P),...d.getSyntacticDiagnostics(void 0,P)],8,"Syntactic")}function G(P){O(D.checkDefined(d).getSemanticDiagnostics(void 0,P),16,"Semantic")}function V(P,de,re){var ye,ae,W;D.assertIsDefined(d),D.assert(f===3);const ce=d.saveEmitState();let me;const ve=st=>(me||(me=[])).push(st),Se=[],{emitResult:ee}=WF(d,ve,void 0,void 0,(st,Ct,Et,jt,tt,at)=>Se.push({name:st,text:Ct,writeByteOrderMark:Et,data:at}),de,!1,re||((ae=(ye=t.host).getCustomTransformers)==null?void 0:ae.call(ye,r)));if(me)return d.restoreEmitState(ce),{buildResult:y,step:f}=g$(t,i,d,s,me,32,"Declaration file"),{emitSkipped:!0,diagnostics:ee.diagnostics};const{host:Qe,compilerHost:je}=t,Ge=(W=d.hasChangedEmitSignature)!=null&&W.call(d)?0:2,qe=sC(),Oe=new Map,Me=d.getCompilerOptions(),Ye=hO(Me);let ze,Fe;return Se.forEach(({name:st,text:Ct,writeByteOrderMark:Et,data:jt})=>{const tt=jd(t,st);Oe.set(jd(t,st),st),jt!=null&&jt.buildInfo&&v$(t,jt.buildInfo,i,Me,Ge);const at=jt!=null&&jt.differsOnlyInMap?ix(t.host,st):void 0;fk(P?{writeFile:P}:je,qe,st,Ct,Et),jt!=null&&jt.differsOnlyInMap?t.host.setModifiedTime(st,at):!Ye&&t.watch&&(ze||(ze=y$(t,i))).set(tt,Fe||(Fe=a6(t.host)))}),te(qe,Oe,Se.length?Se[0].name:pY(s,!Qe.useCaseSensitiveFileNames()),Ge),ee}function H(P,de){D.assertIsDefined(d),D.assert(f===5);const re=d.emitBuildInfo((ye,ae,W,ce,me,ve)=>{ve!=null&&ve.buildInfo&&v$(t,ve.buildInfo,i,d.getCompilerOptions(),2),P?P(ye,ae,W,ce,me,ve):t.compilerHost.writeFile(ye,ae,W,ce,me,ve)},de);return re.diagnostics.length&&(l6(t,re.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...re.diagnostics]),y=64&y),re.emittedFiles&&t.write&&re.emittedFiles.forEach(ye=>Vve(t,s,ye)),h$(t,d,s),f=7,re}function te(P,de,re,ye){const ae=P.getDiagnostics();return ae.length?({buildResult:y,step:f}=g$(t,i,d,s,ae,64,"Emit"),ae):(t.write&&de.forEach(W=>Vve(t,s,W)),Wve(t,s,i,_.Updating_unchanged_output_timestamps_of_project_0,de),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:re}),h$(t,d,s),f=7,y=ye,ae)}function X(P,de){var re,ye,ae,W;if(D.assert(e===1),t.options.dry){Hu(t,_.A_non_dry_build_would_update_output_of_project_0,r),y=1,f=7;return}t.options.verbose&&Hu(t,_.Updating_output_of_project_0,r);const{compilerHost:ce}=t;t.projectCompilerOptions=s.options,(ye=(re=t.host).beforeEmitBundle)==null||ye.call(re,s);const me=Bye(s,ce,Ge=>{const qe=QC(t,Ge.path);return zT(t,qe,xp(t,qe))},de||((W=(ae=t.host).getCustomTransformers)==null?void 0:W.call(ae,r)));if(Ha(me))return Hu(t,_.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Oc(t,me)),f=6,h=Bve(0,t,r,i,o,s,c);D.assert(!!me.length);const ve=sC(),Se=new Map;let ee=2;const Qe=t.buildInfoCache.get(i).buildInfo||void 0;return me.forEach(({name:Ge,text:qe,writeByteOrderMark:Oe,data:Me})=>{var Ye,ze;Se.set(jd(t,Ge),Ge),Me!=null&&Me.buildInfo&&(((Ye=Me.buildInfo.program)==null?void 0:Ye.outSignature)!==((ze=Qe==null?void 0:Qe.program)==null?void 0:ze.outSignature)&&(ee&=-3),v$(t,Me.buildInfo,i,s.options,ee)),fk(P?{writeFile:P}:ce,ve,Ge,qe,Oe)}),{emitSkipped:!1,diagnostics:te(ve,Se,me[0].name,ee)}}function Y(P,de,re,ye){for(;f<=P&&f<8;){const ae=f;switch(f){case 0:I();break;case 1:k(de);break;case 2:G(de);break;case 3:V(re,de,ye);break;case 5:H(re,de);break;case 4:X(re,ye);break;case 6:D.checkDefined(h).done(de,re,ye),f=8;break;case 7:v9e(t,r,i,o,s,c,D.checkDefined(y)),f++;break}D.assert(f>ae)}}}function p9e({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!HT(r).length||!hO(r.options)}function Gve(e,t,r){if(!e.projectPendingBuild.size||r2(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const c=t[s],f=xp(e,c),d=e.projectPendingBuild.get(f);if(d===void 0)continue;r&&(r=!1,t0e(e,t));const y=zT(e,c,f);if(!y){Zve(e,f),o.delete(f);continue}d===2?(Xve(e,c,f,y),Yve(e,f,y),$ve(e,c,f,y),x$(e,c,f,y),A$(e,c,f,y)):d===1&&(y.fileNames=E8(y.options.configFile.configFileSpecs,hi(c),y.options,e.parseConfigFileHost),KK(y.fileNames,c,y.options.configFile.configFileSpecs,y.errors,v8(y.raw)),x$(e,c,f,y),A$(e,c,f,y));const h=T$(e,y,f);if(!i.force){if(h.type===1){QF(e,c,h),ZC(e,f,HT(y)),o.delete(f),i.dry&&Hu(e,_.Project_0_is_up_to_date,c);continue}if(h.type===2||h.type===15)return ZC(e,f,HT(y)),{kind:2,status:h,project:c,projectPath:f,projectIndex:s,config:y}}if(h.type===12){QF(e,c,h),ZC(e,f,HT(y)),o.delete(f),i.verbose&&Hu(e,h.upstreamProjectBlocked?_.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,h.upstreamProjectName);continue}if(h.type===16){QF(e,c,h),ZC(e,f,HT(y)),o.delete(f);continue}return{kind:p9e(e,h,y)?0:1,status:h,project:c,projectPath:f,projectIndex:s,config:y}}}function Uve(e,t,r){return QF(e,t.project,t.status),t.kind!==2?Bve(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):_9e(e,t.project,t.projectPath,t.config,r)}function m$(e,t,r){const i=Gve(e,t,r);return i&&Uve(e,i,t)}function Vve({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function m9e({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||KF(o.options,r)}function h$(e,t,r){t?(e.write&&e$(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function g$(e,t,r,i,o,s,c){const f=r&&!qs(r.getCompilerOptions());return ZC(e,t,o),e.projectStatus.set(t,{type:0,reason:`${c} errors`}),f?{buildResult:s,step:5}:(h$(e,r,i),{buildResult:s,step:7})}function YF(e){return!!e.watcher}function jve(e,t){const r=jd(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!YF(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=ix(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function $F(e,t,r,i,o,s,c){const f=jd(e,t),d=e.filesWatched.get(f);if(d&&YF(d))d.callbacks.push(r);else{const y=e.watchFile(t,(h,E,A)=>{const L=D.checkDefined(e.filesWatched.get(f));D.assert(YF(L)),L.modifiedTime=A,L.callbacks.forEach(I=>I(h,E,A))},i,o,s,c);e.filesWatched.set(f,{callbacks:[r],watcher:y,modifiedTime:d})}return{close:()=>{const y=D.checkDefined(e.filesWatched.get(f));D.assert(YF(y)),y.callbacks.length===1?(e.filesWatched.delete(f),Km(y)):RR(y.callbacks,r)}}}function y$(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function v$(e,t,r,i,o){const s=ky(i),c=b$(e,s,r),f=a6(e.host);c?(c.buildInfo=t,c.modifiedTime=f,o&2||(c.latestChangedDtsTime=f)):e.buildInfoCache.set(r,{path:jd(e,s),buildInfo:t,modifiedTime:f,latestChangedDtsTime:o&2?void 0:f})}function b$(e,t,r){const i=jd(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function Hve(e,t,r,i){const o=jd(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const c=e.readFileWithCache(t),f=c?SF(t,c):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:f||!1,modifiedTime:i||ig}),f}function E$(e,t,r,i){const o=jve(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function h9e(e,t,r){var i,o;if(!t.fileNames.length&&!v8(t.raw))return{type:16};let s;const c=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const re of t.projectReferences){const ye=xw(re),ae=xp(e,ye),W=zT(e,ye,ae),ce=T$(e,W,ae);if(!(ce.type===13||ce.type===16)){if(ce.type===0||ce.type===12)return{type:12,upstreamProjectName:re.path,upstreamProjectBlocked:ce.type===12};if(ce.type!==1)return{type:11,upstreamProjectName:re.path};c||(s||(s=[])).push({ref:re,refStatus:ce,resolvedRefPath:ae,resolvedConfig:W})}}}if(c)return{type:17};const{host:f}=e,d=ky(t.options);let y,h=r0e,E,A,L;if(d){const re=b$(e,d,r);if(E=(re==null?void 0:re.modifiedTime)||ix(f,d),E===ig)return re||e.buildInfoCache.set(r,{path:jd(e,d),buildInfo:!1,modifiedTime:E}),{type:4,missingOutputFileName:d};const ye=Hve(e,d,r,E);if(!ye)return{type:5,fileName:d};if((ye.bundle||ye.program)&&ye.version!==be)return{type:14,version:ye.version};if(ye.program){if((i=ye.program.changeFileSet)!=null&&i.length||(t.options.noEmit?kt(ye.program.semanticDiagnosticsPerFile,Va):(o=ye.program.affectedFilesPendingEmit)!=null&&o.length))return{type:8,buildInfoFile:d};if(!t.options.noEmit&&YC(t.options,ye.program.options||{}))return{type:9,buildInfoFile:d};A=ye.program}h=E,y=d}let I,O=n0e,k=!1;const G=new Set;for(const re of t.fileNames){const ye=jve(e,re);if(ye===ig)return{type:0,reason:`${re} does not exist`};if(E&&E<ye){let ae,W;if(A){L||(L=JY(A,d,f)),ae=L.fileInfos.get(jd(e,re));const ce=ae?e.readFileWithCache(re):void 0;W=ce!==void 0?zF(f,ce):void 0,ae&&ae===W&&(k=!0)}if(!ae||ae!==W)return{type:6,outOfDateOutputFileName:d,newerInputFileName:re}}ye>O&&(I=re,O=ye),A&&G.add(jd(e,re))}if(A){L||(L=JY(A,d,f));for(const re of L.roots)if(!G.has(re))return{type:10,buildInfoFile:d,inputFile:re}}if(!d){const re=EF(t,!f.useCaseSensitiveFileNames()),ye=y$(e,r);for(const ae of re){const W=jd(e,ae);let ce=ye==null?void 0:ye.get(W);if(ce||(ce=ix(e.host,ae),ye==null||ye.set(W,ce)),ce===ig)return{type:4,missingOutputFileName:ae};if(ce<O)return{type:6,outOfDateOutputFileName:ae,newerInputFileName:I};ce<h&&(h=ce,y=ae)}}const V=e.buildInfoCache.get(r);let H=!1,te=!1,X;if(s)for(const{ref:re,refStatus:ye,resolvedConfig:ae,resolvedRefPath:W}of s){if(te=te||!!re.prepend,ye.newestInputFileTime&&ye.newestInputFileTime<=h)continue;if(V&&g9e(e,V,W))return{type:7,outOfDateOutputFileName:d,newerProjectName:re.path};const ce=y9e(e,ae.options,W);if(ce&&ce<=h){H=!0,X=re.path;continue}return D.assert(y!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:y,newerProjectName:re.path}}const Y=E$(e,t.options.configFilePath,h,y);if(Y)return Y;const P=Ue(t.options.configFile.extendedSourceFiles||rt,re=>E$(e,re,h,y));if(P)return P;const de=Ue(e.lastCachedPackageJsonLookups.get(r)||rt,([re])=>E$(e,re,h,y));return de||(te&&H?{type:3,outOfDateOutputFileName:y,newerProjectName:X}:{type:H?2:k?15:1,newestInputFileTime:O,newestInputFileName:I,oldestOutputFileName:y})}function g9e(e,t,r){return e.buildInfoCache.get(r).path===t.path}function T$(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;al("SolutionBuilder::beforeUpToDateCheck");const o=h9e(e,t,r);return al("SolutionBuilder::afterUpToDateCheck"),Jf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function Wve(e,t,r,i,o){if(t.options.noEmit)return;let s;const c=ky(t.options);if(c){o!=null&&o.has(jd(e,c))||(e.options.verbose&&Hu(e,i,t.options.configFilePath),e.host.setModifiedTime(c,s=a6(e.host)),b$(e,c,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:f}=e,d=EF(t,!f.useCaseSensitiveFileNames()),y=y$(e,r),h=y?new Set:void 0;if(!o||d.length!==o.size){let E=!!e.options.verbose;for(const A of d){const L=jd(e,A);o!=null&&o.has(L)||(E&&(E=!1,Hu(e,i,t.options.configFilePath)),f.setModifiedTime(A,s||(s=a6(e.host))),y&&(y.set(L,s),h.add(L)))}}y==null||y.forEach((E,A)=>{!(o!=null&&o.has(A))&&!h.has(A)&&y.delete(A)})}function y9e(e,t,r){if(!t.composite)return;const i=D.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Pa(i.buildInfo.program.latestChangedDtsFile,hi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function zve(e,t,r){if(e.options.dry)return Hu(e,_.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Wve(e,t,r,_.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:pY(t,!e.host.useCaseSensitiveFileNames())})}function v9e(e,t,r,i,o,s,c){if(!(c&124)&&o.options.composite)for(let f=i+1;f<s.length;f++){const d=s[f],y=xp(e,d);if(e.projectPendingBuild.has(y))continue;const h=zT(e,d,y);if(!(!h||!h.projectReferences))for(const E of h.projectReferences){const A=QC(e,E.path);if(xp(e,A)!==r)continue;const L=e.projectStatus.get(y);if(L)switch(L.type){case 1:if(c&2){E.prepend?e.projectStatus.set(y,{type:3,outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t}):L.type=2;break}case 15:case 2:case 3:c&2||e.projectStatus.set(y,{type:7,outOfDateOutputFileName:L.type===3?L.outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t});break;case 12:xp(e,QC(e,L.upstreamProjectName))===r&&Ove(e,y);break}Pve(e,y,0);break}}}function qve(e,t,r,i,o,s){al("SolutionBuilder::beforeBuild");const c=b9e(e,t,r,i,o,s);return al("SolutionBuilder::afterBuild"),Jf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function b9e(e,t,r,i,o,s){const c=Rve(e,t,s);if(!c)return 3;Mve(e,r);let f=!0,d=0;for(;;){const y=m$(e,c,f);if(!y)break;f=!1,y.done(r,i,o==null?void 0:o(y.project)),e.diagnostics.has(y.projectPath)||d++}return p$(e),e0e(e,c),x9e(e,c),r2(c)?4:c.some(y=>e.diagnostics.has(xp(e,y)))?d?2:1:0}function Jve(e,t,r){al("SolutionBuilder::beforeClean");const i=E9e(e,t,r);return al("SolutionBuilder::afterClean"),Jf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function E9e(e,t,r){const i=Rve(e,t,r);if(!i)return 3;if(r2(i))return l6(e,i.circularDiagnostics),4;const{options:o,host:s}=e,c=o.dry?[]:void 0;for(const f of i){const d=xp(e,f),y=zT(e,f,d);if(y===void 0){Zve(e,d);continue}const h=EF(y,!s.useCaseSensitiveFileNames());if(!h.length)continue;const E=new Set(y.fileNames.map(A=>jd(e,A)));for(const A of h)E.has(jd(e,A))||s.fileExists(A)&&(c?c.push(A):(s.deleteFile(A),S$(e,d,0)))}return c&&Hu(e,_.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(f=>`\r * ${f}`).join("")),0}function S$(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Ove(e,t),Pve(e,t,r),Nve(e)}function s6(e,t,r){e.reportFileChangeDetected=!0,S$(e,t,r),Kve(e,250,!0)}function Kve(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(T9e,t,e,r))}function T9e(e,t){al("SolutionBuilder::beforeBuild");const r=S9e(e,t);al("SolutionBuilder::afterBuild"),Jf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&e0e(e,r)}function S9e(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),C$(e,_.File_change_detected_Starting_incremental_compilation));let r=0;const i=o6(e),o=m$(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=Gve(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){Kve(e,100,!1);return}Uve(e,s,i).done(),s.kind!==2&&r++}return p$(e),i}function Xve(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,$F(e,t,()=>s6(e,r,2),2e3,i==null?void 0:i.watchOptions,T_.ConfigFile,t))}function Yve(e,t,r){yY(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>$F(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(c=>s6(e,c,2))},2e3,r==null?void 0:r.watchOptions,T_.ExtendedConfigFile),i=>jd(e,i))}function $ve(e,t,r,i){e.watch&&AF(_$(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(o,s)=>e.watchDirectory(o,c=>{var f;CF({watchedDirPath:jd(e,o),fileOrDirectory:c,fileOrDirectoryPath:jd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((f=d9e(e,r))==null?void 0:f.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>jd(e,d)})||s6(e,r,1)},s,i==null?void 0:i.watchOptions,T_.WildcardDirectory,t))}function x$(e,t,r,i){e.watch&&fC(_$(e.allWatchedInputFiles,r),i1(i.fileNames,o=>jd(e,o)),{createNewValue:(o,s)=>$F(e,s,()=>s6(e,r,0),250,i==null?void 0:i.watchOptions,T_.SourceFile,t),onDeleteValue:Um})}function A$(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||fC(_$(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(o,s)=>$F(e,o,()=>s6(e,r,0),2e3,i==null?void 0:i.watchOptions,T_.PackageJson,t),onDeleteValue:Um})}function x9e(e,t){if(e.watchAllProjectsPending){al("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of XF(t)){const i=xp(e,r),o=zT(e,r,i);Xve(e,r,i,o),Yve(e,i,o),o&&($ve(e,r,i,o),x$(e,r,i,o),A$(e,r,i,o))}al("SolutionBuilder::afterWatcherCreation"),Jf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function A9e(e){Zf(e.allWatchedConfigFiles,Um),Zf(e.allWatchedExtendedConfigFiles,Km),Zf(e.allWatchedWildcardDirectories,t=>Zf(t,Km)),Zf(e.allWatchedInputFiles,t=>Zf(t,Um)),Zf(e.allWatchedPackageJsonFiles,t=>Zf(t,Um))}function Qve(e,t,r,i,o){const s=u9e(e,t,r,i,o);return{build:(c,f,d,y)=>qve(s,c,f,d,y),clean:c=>Jve(s,c),buildReferences:(c,f,d,y)=>qve(s,c,f,d,y,!0),cleanReferences:c=>Jve(s,c,!0),getNextInvalidatedProject:c=>(Mve(s,c),m$(s,o6(s),!1)),getBuildOrder:()=>o6(s),getUpToDateStatusOfProject:c=>{const f=QC(s,c),d=xp(s,f);return T$(s,zT(s,f,d),d)},invalidateProject:(c,f)=>S$(s,c,f||0),close:()=>A9e(s)}}function Oc(e,t){return wI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Hu(e,t,...r){e.host.reportSolutionBuilderStatus(Fs(t,...r))}function C$(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Fs(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function l6({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function ZC(e,t,r){l6(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function Zve(e,t){ZC(e,t,[e.configFileCache.get(t)])}function e0e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];r2(t)?(t0e(e,t.buildOrder),l6(e,t.circularDiagnostics),r&&(o+=jF(t.circularDiagnostics)),r&&(s=[...s,...HF(t.circularDiagnostics)])):(t.forEach(c=>{const f=xp(e,c);e.projectErrorsReported.has(f)||l6(e,i.get(f)||rt)}),r&&i.forEach(c=>o+=jF(c)),r&&i.forEach(c=>[...s,...HF(c)])),e.watch?C$(e,ZY(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function t0e(e,t){e.options.verbose&&Hu(e,_.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+Oc(e,r)).join(""))}function C9e(e,t,r){switch(r.type){case 6:return Hu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Oc(e,t),Oc(e,r.outOfDateOutputFileName),Oc(e,r.newerInputFileName));case 7:return Hu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Oc(e,t),Oc(e,r.outOfDateOutputFileName),Oc(e,r.newerProjectName));case 4:return Hu(e,_.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Oc(e,t),Oc(e,r.missingOutputFileName));case 5:return Hu(e,_.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Oc(e,t),Oc(e,r.fileName));case 8:return Hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Oc(e,t),Oc(e,r.buildInfoFile));case 9:return Hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Oc(e,t),Oc(e,r.buildInfoFile));case 10:return Hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Oc(e,t),Oc(e,r.buildInfoFile),Oc(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Hu(e,_.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Oc(e,t),Oc(e,r.newestInputFileName||""),Oc(e,r.oldestOutputFileName||""));break;case 3:return Hu(e,_.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Oc(e,t),Oc(e,r.newerProjectName));case 2:return Hu(e,_.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Oc(e,t));case 15:return Hu(e,_.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Oc(e,t));case 11:return Hu(e,_.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Oc(e,t),Oc(e,r.upstreamProjectName));case 12:return Hu(e,r.upstreamProjectBlocked?_.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Oc(e,t),Oc(e,r.upstreamProjectName));case 0:return Hu(e,_.Failed_to_parse_file_0_Colon_1,Oc(e,t),r.reason);case 14:return Hu(e,_.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Oc(e,t),r.version,be);case 17:return Hu(e,_.Project_0_is_being_forcibly_rebuilt,Oc(e,t))}}function QF(e,t,r){e.options.verbose&&C9e(e,t,r)}var n0e,r0e,L$,L9e=C({"src/compiler/tsbuildPublic.ts"(){Oa(),Oa(),d1(),n0e=new Date(-864e13),r0e=new Date(864e13),L$=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(L$||{})}}),Oa=C({"src/compiler/_namespaces/ts.ts"(){ct(),o6e(),s6e(),g6e(),b6e(),E6e(),R6e(),aue(),H6e(),$6e(),Q6e(),rPe(),xPe(),H4e(),W4e(),z4e(),q4e(),iMe(),lMe(),cMe(),LMe(),o3e(),s3e(),y3e(),z3e(),E7e(),L7e(),I7e(),G7e(),z7e(),e5e(),s5e(),b5e(),E5e(),T5e(),I5e(),k5e(),w5e(),D5e(),R5e(),N5e(),O5e(),P5e(),M5e(),F5e(),B5e(),G5e(),U5e(),V5e(),H5e(),W5e(),z5e(),q5e(),J5e(),K5e(),eFe(),oFe(),gFe(),bFe(),CFe(),LFe(),IFe(),HFe(),qFe(),KFe(),ZFe(),n9e(),r9e(),L9e(),NX(),d1()}});function i0e(e,t){return new P_(LR(t,`ts${_e}`)||LR(t,"latest")).compareTo(e.version)<=0}function a0e(e){return R$.has(e)?"node":e}function I9e(e,t){const r=m8(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function k9e(e,t){var r;const i=m8(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function w9e(e,t,r,i,o,s,c,f,d,y){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const h=new Map;r=ia(r,te=>{const X=qo(te);if(Ix(X))return X});const E=[];c.include&&G(c.include,"Explicitly included types");const A=c.exclude||[];if(!y.types){const te=new Set(r.map(hi));te.add(i),te.forEach(X=>{V(X,"bower.json","bower_components",E),V(X,"package.json","node_modules",E)})}if(c.disableFilenameBasedTypeAcquisition||H(r),f){const te=xA(f.map(a0e),QS,Ou);G(te,"Inferred typings from unresolved imports")}s.forEach((te,X)=>{const Y=d.get(X);h.has(X)&&h.get(X)===void 0&&Y!==void 0&&i0e(te,Y)&&h.set(X,te.typingLocation)});for(const te of A)h.delete(te)&&t&&t(`Typing for ${te} is in exclude list, will be ignored.`);const L=[],I=[];h.forEach((te,X)=>{te!==void 0?I.push(te):L.push(X)});const O={cachedTypingPaths:I,newTypingNames:L,filesToWatch:E};return t&&t(`Result: ${JSON.stringify(O)}`),O;function k(te){h.has(te)||h.set(te,void 0)}function G(te,X){t&&t(`${X}: ${JSON.stringify(te)}`),Ue(te,k)}function V(te,X,Y,P){const de=Bi(te,X);let re,ye;e.fileExists(de)&&(P.push(de),re=m8(de,me=>e.readFile(me)).config,ye=ma([re.dependencies,re.devDependencies,re.optionalDependencies,re.peerDependencies],rg),G(ye,`Typing names in '${de}' dependencies`));const ae=Bi(te,Y);if(P.push(ae),!e.directoryExists(ae))return;const W=[],ce=ye?ye.map(me=>Bi(ae,me,X)):e.readDirectory(ae,[".json"],void 0,void 0,3).filter(me=>{if(mu(me)!==X)return!1;const ve=ld(qo(me)),Se=ve[ve.length-3][0]==="@";return Se&&O_(ve[ve.length-4])===Y||!Se&&O_(ve[ve.length-3])===Y});t&&t(`Searching for typing names in ${ae}; all files: ${JSON.stringify(ce)}`);for(const me of ce){const ve=qo(me),ee=m8(ve,je=>e.readFile(je)).config;if(!ee.name)continue;const Qe=ee.types||ee.typings;if(Qe){const je=Pa(Qe,hi(ve));e.fileExists(je)?(t&&t(` Package '${ee.name}' provides its own types.`),h.set(ee.name,je)):t&&t(` Package '${ee.name}' provides its own types but they are missing.`)}else W.push(ee.name)}G(W," Found package names")}function H(te){const X=ia(te,P=>{if(!Ix(P))return;const de=Gd(O_(mu(P))),re=Dce(de);return o.get(re)});X.length&&G(X,"Inferred typings from file names"),kt(te,P=>cc(P,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),k("react"))}}function D9e(e){return I$(e,!0)}function I$(e,t){if(!e)return 1;if(e.length>O$)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=I$(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=I$(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function R9e(e,t){return typeof e=="object"?o0e(t,e.result,e.name,e.isScopeName):o0e(t,e,t,!1)}function o0e(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${O$} 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 D.fail();default:throw D.assertNever(t)}}var k$,w$,D$,R$,N$,O$,N9e=C({"src/jsTyping/jsTyping.ts"(){ZF(),k$=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],w$=k$.map(e=>`node:${e}`),D$=[...k$,...w$],R$=new Set(D$),N$=(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))(N$||{}),O$=214}}),qT={};ne(qT,{NameValidationResult:()=>N$,discoverTypings:()=>w9e,isTypingUpToDate:()=>i0e,loadSafeList:()=>I9e,loadTypesMap:()=>k9e,nodeCoreModuleList:()=>D$,nodeCoreModules:()=>R$,nonRelativeModuleNameForTypingCache:()=>a0e,prefixedNodeCoreModuleList:()=>w$,renderPackageNameValidationFailure:()=>R9e,validatePackageName:()=>D9e});var O9e=C({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){N9e()}});function P9e(e){return $c.args.indexOf(e)>=0}function M9e(e){const t=$c.args.indexOf(e);return t>=0&&t<$c.args.length-1?$c.args[t+1]:void 0}function F9e(){const e=new Date;return`${ZS(e.getHours().toString(),2,"0")}:${ZS(e.getMinutes().toString(),2,"0")}:${ZS(e.getSeconds().toString(),2,"0")}.${ZS(e.getMilliseconds().toString(),3,"0")}`}var s0e,l0e,c0e,u0e,d0e,f0e,_0e,P$,B9e=C({"src/jsTyping/shared.ts"(){ZF(),s0e="action::set",l0e="action::invalidate",c0e="action::packageInstalled",u0e="event::typesRegistry",d0e="event::beginInstallTypes",f0e="event::endInstallTypes",_0e="event::initializationFailed",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(P$||(P$={}))}}),G9e=C({"src/jsTyping/types.ts"(){}}),p0e={};ne(p0e,{ActionInvalidate:()=>l0e,ActionPackageInstalled:()=>c0e,ActionSet:()=>s0e,Arguments:()=>P$,EventBeginInstallTypes:()=>d0e,EventEndInstallTypes:()=>f0e,EventInitializationFailed:()=>_0e,EventTypesRegistry:()=>u0e,findArgument:()=>M9e,hasArgument:()=>P9e,nowString:()=>F9e});var U9e=C({"src/jsTyping/_namespaces/ts.server.ts"(){B9e(),G9e()}}),ZF=C({"src/jsTyping/_namespaces/ts.ts"(){Oa(),O9e(),U9e()}});function m0e(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` `,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0}}var M$,F$,B$,G$,sm,U$,V$,j$,H$,W$,z$,q$,h0e,c6,J$,K$,X$,Y$,$$,Q$,Z$,eQ,tQ,V9e=C({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(M$||(M$={})),F$=(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))(F$||{}),B$=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(B$||{}),G$=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(G$||{}),sm={},U$=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(U$||{}),V$=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(V$||{}),j$=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(j$||{}),H$=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(H$||{}),W$=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(W$||{}),z$=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(z$||{}),q$=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(q$||{}),h0e=m0e(` `),c6=(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))(c6||{}),J$=(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))(J$||{}),K$=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(K$||{}),X$=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(X$||{}),Y$=(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))(Y$||{}),$$=(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))($$||{}),Q$=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(Q$||{}),Z$=(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))(Z$||{}),eQ=(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))(eQ||{}),tQ=(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))(tQ||{})}});function u6(e){switch(e.kind){case 257:return fr(e)&&XW(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return e.name===void 0?3:2;case 302:case 260:return 3;case 264:return Mu(e)||Eg(e)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function JT(e){e=_Q(e);const t=e.parent;return e.kind===308?1:Gl(t)||dd(t)||zm(t)||Ld(t)||Wm(t)||su(t)&&e===t.name?7:e9(e)?j9e(e):mg(e)?u6(t):nf(e)&&nr(e,Im(ew,dx,sb))?7:q9e(e)?2:H9e(e)?4:Bl(t)?(D.assert(Tp(t.parent)),2):ab(t)?3:1}function j9e(e){const t=e.kind===163?e:Cd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===268?7:4}function e9(e){for(;e.parent.kind===163;)e=e.parent;return YA(e.parent)&&e.parent.moduleReference===e}function H9e(e){return W9e(e)||z9e(e)}function W9e(e){let t=e,r=!0;if(t.parent.kind===163){for(;t.parent&&t.parent.kind===163;)t=t.parent;r=t.right===e}return t.parent.kind===180&&!r}function z9e(e){let t=e,r=!0;if(t.parent.kind===208){for(;t.parent&&t.parent.kind===208;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===230&&t.parent.parent.kind===294){const i=t.parent.parent.parent;return i.kind===260&&t.parent.parent.token===117||i.kind===261&&t.parent.parent.token===94}return!1}function q9e(e){switch(yk(e)&&(e=e.parent),e.kind){case 108:return!_g(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return vh(e.parent)}return!1}function nQ(e,t=!1,r=!1){return Lw(e,no,t9,t,r)}function Cw(e,t=!1,r=!1){return Lw(e,P1,t9,t,r)}function rQ(e,t=!1,r=!1){return Lw(e,ug,t9,t,r)}function g0e(e,t=!1,r=!1){return Lw(e,kT,J9e,t,r)}function y0e(e,t=!1,r=!1){return Lw(e,Bu,t9,t,r)}function v0e(e,t=!1,r=!1){return Lw(e,ed,K9e,t,r)}function t9(e){return e.expression}function J9e(e){return e.tag}function K9e(e){return e.tagName}function Lw(e,t,r,i,o){let s=i?b0e(e):n9(e);return o&&(s=bu(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function n9(e){return eL(e)?e.parent:e}function b0e(e){return eL(e)||sQ(e)?e.parent:e}function r9(e,t){for(;e;){if(e.kind===253&&e.label.escapedText===t)return e.label;e=e.parent}}function d6(e,t){return Fr(e.expression)?e.expression.name.text===t:!1}function f6(e){var t;return He(e)&&((t=ai(e.parent,HI))==null?void 0:t.label)===e}function iQ(e){var t;return He(e)&&((t=ai(e.parent,M1))==null?void 0:t.label)===e}function aQ(e){return iQ(e)||f6(e)}function oQ(e){var t;return((t=ai(e.parent,KI))==null?void 0:t.tagName)===e}function E0e(e){var t;return((t=ai(e.parent,Cd))==null?void 0:t.right)===e}function eL(e){var t;return((t=ai(e.parent,Fr))==null?void 0:t.name)===e}function sQ(e){var t;return((t=ai(e.parent,cl))==null?void 0:t.argumentExpression)===e}function lQ(e){var t;return((t=ai(e.parent,Jl))==null?void 0:t.name)===e}function cQ(e){var t;return He(e)&&((t=ai(e.parent,Ka))==null?void 0:t.name)===e}function i9(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return ka(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return e.parent.parent.kind===196;default:return!1}}function T0e(e){return X0(e.parent.parent)&&ik(e.parent.parent)===e}function KT(e){for(h_(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function X1(e){switch(e.kind){case 308:return Zl(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(Fm(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:r}=e;return Ka(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return Yr(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const i=Ll(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=X1(o);return c===""?"const":c;case 3:return Bs(o)?"method":"property";case 4:return"property";case 5:return Bs(o)?"method":"property";case 6:return"local class";default:return""}case 79:return Wm(e.parent)?"alias":"";case 274:const s=X1(e.expression);return s===""?"const":s;default:return""}function t(r){return fg(r)?"const":ek(r)?"let":"var"}}function tL(e){switch(e.kind){case 108:return!0;case 79:return Aq(e)&&e.parent.kind===166;default:return!1}}function S_(e,t){const r=og(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function uf(e,t){return uQ(e.pos,e.end,t)}function S0e(e,t){return p6(e,t.pos)&&p6(e,t.end)}function _6(e,t){return e.pos<=t&&t<=e.end}function p6(e,t){return e.pos<t&&t<e.end}function uQ(e,t,r){return e<=r.pos&&t>=r.end}function m6(e,t,r){return e.pos<=t&&e.end>=r}function Iw(e,t,r){return a9(e.pos,e.end,t,r)}function dQ(e,t,r,i){return a9(e.getStart(t),e.end,r,i)}function a9(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function fQ(e,t,r){return D.assert(e.pos<=t),t<e.end||!$_(e,r)}function $_(e,t){if(e===void 0||Cl(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return o9(e,19,t);case 295:return $_(e.block,t);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return o9(e,21,t);case 181:case 182:return $_(e.type,t);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?$_(e.body,t):e.type?$_(e.type,t):h6(e,21,t);case 264:return!!e.body&&$_(e.body,t);case 242:return e.elseStatement?$_(e.elseStatement,t):$_(e.thenStatement,t);case 241:return $_(e.expression,t)||h6(e,26,t);case 206:case 204:case 209:case 164:case 186:return o9(e,23,t);case 178:return e.type?$_(e.type,t):h6(e,23,t);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return $_(e.statement,t);case 243:return h6(e,115,t)?o9(e,21,t):$_(e.statement,t);case 183:return $_(e.exprName,t);case 218:case 217:case 219:case 226:case 227:return $_(e.expression,t);case 212:return $_(e.template,t);case 225:const i=tl(e.templateSpans);return $_(i,t);case 236:return p_(e.literal);case 275:case 269:return p_(e.moduleSpecifier);case 221:return $_(e.operand,t);case 223:return $_(e.right,t);case 224:return $_(e.whenFalse,t);default:return!0}}function o9(e,t,r){const i=e.getChildren(r);if(i.length){const o=zo(i);if(o.kind===t)return!0;if(o.kind===26&&i.length!==1)return i[i.length-2].kind===t}return!1}function x0e(e){const t=s9(e);if(!t)return;const r=t.getChildren();return{listItemIndex:jA(r,e),list:t}}function h6(e,t,r){return!!bs(e,t,r)}function bs(e,t,r){return nn(e.getChildren(r),i=>i.kind===t)}function s9(e){const t=nn(e.parent.getChildren(),r=>FC(r)&&uf(r,e));return D.assert(!t||jr(t.getChildren(),e)),t}function A0e(e){return e.kind===88}function X9e(e){return e.kind===84}function Y9e(e){return e.kind===98}function $9e(e){if(gu(e))return e.name;if(Nc(e)){const t=e.modifiers&&nn(e.modifiers,A0e);if(t)return t}if(Uu(e)){const t=nn(e.getChildren(),X9e);if(t)return t}}function Q9e(e){if(gu(e))return e.name;if(yc(e)){const t=nn(e.modifiers,A0e);if(t)return t}if(Bs(e)){const t=nn(e.getChildren(),Y9e);if(t)return t}}function Z9e(e){let t;return nr(e,r=>(Gi(r)&&(t=r),!Cd(r.parent)&&!Gi(r.parent)&&!sT(r.parent))),t}function l9(e,t){if(e.flags&8388608)return;const r=L9(e,t);if(r)return r;const i=Z9e(e);return i&&t.getTypeAtLocation(i)}function eBe(e,t){if(!t)switch(e.kind){case 260:case 228:return $9e(e);case 259:case 215:return Q9e(e);case 173:return e}if(gu(e))return e.name}function C0e(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(Ay(e.importClause.namedBindings)){const r=Am(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Uv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function L0e(e,t){if(e.exportClause){if(K_(e.exportClause))return Am(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(kh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function tBe(e){if(e.types.length===1)return e.types[0].expression}function I0e(e,t){const{parent:r}=e;if(uo(e)&&(t||e.kind!==88)?X_(r)&&jr(r.modifiers,e):e.kind===84?Nc(r)||Uu(e):e.kind===98?yc(r)||Bs(e):e.kind===118?id(r):e.kind===92?ob(r):e.kind===154?nm(r):e.kind===143||e.kind===142?Jl(r):e.kind===100?su(r):e.kind===137?q_(r):e.kind===151&&e_(r)){const i=eBe(r,t);if(i)return i}if((e.kind===113||e.kind===85||e.kind===119)&&Vu(r)&&r.declarations.length===1){const i=r.declarations[0];if(He(i.name))return i.name}if(e.kind===154){if(Wm(r)&&r.isTypeOnly){const i=C0e(r.parent,t);if(i)return i}if(eu(r)&&r.isTypeOnly){const i=L0e(r,t);if(i)return i}}if(e.kind===128){if(Ld(r)&&r.propertyName||dd(r)&&r.propertyName||Uv(r)||kh(r))return r.name;if(eu(r)&&r.exportClause&&kh(r.exportClause))return r.exportClause.name}if(e.kind===100&&zc(r)){const i=C0e(r,t);if(i)return i}if(e.kind===93){if(eu(r)){const i=L0e(r,t);if(i)return i}if(Gl(r))return bu(r.expression)}if(e.kind===147&&zm(r))return r.expression;if(e.kind===158&&(zc(r)||eu(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===94||e.kind===117)&&Vd(r)&&r.token===e.kind){const i=tBe(r);if(i)return i}if(e.kind===94){if(Bl(r)&&r.constraint&&J_(r.constraint))return r.constraint.typeName;if(LC(r)&&J_(r.extendsType))return r.extendsType.typeName}if(e.kind===138&&IC(r))return r.typeParameter.name;if(e.kind===101&&Bl(r)&&Kk(r.parent))return r.name;if(e.kind===141&&Gx(r)&&r.operator===141&&J_(r.type))return r.type.typeName;if(e.kind===146&&Gx(r)&&r.operator===146&&ZJ(r.type)&&J_(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===103&&P1(r)||e.kind===114&&Vx(r)||e.kind===112&&wC(r)||e.kind===133&&DC(r)||e.kind===125&&l5(r)||e.kind===89&&Vpe(r))&&r.expression)return bu(r.expression);if((e.kind===101||e.kind===102)&&br(r)&&r.operatorToken===e)return bu(r.right);if(e.kind===128&&KO(r)&&J_(r.type))return r.type.typeName;if(e.kind===101&&iK(r)||e.kind===162&&XO(r))return bu(r.expression)}return e}function _Q(e){return I0e(e,!1)}function c9(e){return I0e(e,!0)}function Df(e,t){return kw(e,t,r=>U_(r)||Ad(r.kind)||Ni(r))}function kw(e,t,r){return k0e(e,t,!1,r,!1)}function aa(e,t){return k0e(e,t,!0,void 0,!1)}function k0e(e,t,r,i,o){let s=e,c;e:for(;;){const d=s.getChildren(e),y=XS(d,t,(h,E)=>E,(h,E)=>{const A=d[h].getEnd();if(A<t)return-1;const L=r?d[h].getFullStart():d[h].getStart(e,!0);return L>t?1:f(d[h],L,A)?d[h-1]&&f(d[h-1])?1:0:i&&L===t&&d[h-1]&&d[h-1].getEnd()===t&&f(d[h-1])?1:-1});if(c)return c;if(y>=0&&d[y]){s=d[y];continue e}return s}function f(d,y,h){if(h??(h=d.getEnd()),h<t||(y??(y=r?d.getFullStart():d.getStart(e,!0)),y>t))return!1;if(t<h||t===h&&(d.kind===1||o))return!0;if(i&&h===t){const E=Cc(t,e,d);if(E&&i(E))return c=E,!0}return!1}}function w0e(e,t){let r=aa(e,t);for(;g6(r);){const i=XT(r,r.parent,e);if(!i)return;r=i}return r}function u9(e,t){const r=aa(e,t);return ox(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Cc(t,e)}function XT(e,t,r){return i(t);function i(o){return ox(o)&&o.pos===e.end?o:Kt(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&vQ(s,r)?i(s):void 0)}}function Cc(e,t,r,i){const o=s(r||t);return D.assert(!(o&&g6(o))),o;function s(c){if(D0e(c)&&c.kind!==1)return c;const f=c.getChildren(t),d=XS(f,e,(h,E)=>E,(h,E)=>e<f[h].end?!f[h-1]||e>=f[h-1].end?0:1:-1);if(d>=0&&f[d]){const h=f[d];if(e<h.end)if(h.getStart(t,!i)>=e||!vQ(h,t)||g6(h)){const L=mQ(f,d,t,c.kind);return L&&pQ(L,t)}else return s(h)}D.assert(r!==void 0||c.kind===308||c.kind===1||hz(c));const y=mQ(f,f.length,t,c.kind);return y&&pQ(y,t)}}function D0e(e){return ox(e)&&!g6(e)}function pQ(e,t){if(D0e(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=mQ(r,r.length,t,e.kind);return i&&pQ(i,t)}function mQ(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(g6(s))o===0&&(i===11||i===282)&&D.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(vQ(e[o],r))return e[o]}}function YT(e,t,r=Cc(t,e)){if(r&&az(r)){const i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function R0e(e,t){const r=aa(e,t);return r?!!(r.kind===11||r.kind===29&&r.parent.kind===11||r.kind===29&&r.parent.kind===291||r&&r.kind===19&&r.parent.kind===291||r.kind===29&&r.parent.kind===284):!1}function g6(e){return Nx(e)&&e.containsOnlyTriviaWhiteSpaces}function hQ(e,t){const r=aa(e,t);return Lv(r.kind)&&t>r.getStart(e)}function N0e(e,t){const r=aa(e,t);return!!(Nx(r)||r.kind===18&&Qk(r.parent)&&Cy(r.parent.parent)||r.kind===29&&ed(r.parent)&&Cy(r.parent.parent))}function d9(e,t){function r(i){for(;i;)if(i.kind>=282&&i.kind<=291||i.kind===11||i.kind===29||i.kind===31||i.kind===79||i.kind===19||i.kind===18||i.kind===43)i=i.parent;else if(i.kind===281){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(aa(e,t))}function f9(e,t,r){const i=yo(e.kind),o=yo(t),s=e.getFullStart(),c=r.text.lastIndexOf(o,s);if(c===-1)return;if(r.text.lastIndexOf(i,s-1)<c){const y=Cc(c+1,r);if(y&&y.kind===t)return y}const f=e.kind;let d=0;for(;;){const y=Cc(e.getFullStart(),r);if(!y)return;if(e=y,e.kind===t){if(d===0)return e;d--}else e.kind===f&&d++}}function O0e(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function y6(e,t,r){const i=yQ(e,t);return i!==void 0&&(vh(i.called)||gQ(i.called,i.nTypeArguments,r).length!==0||y6(i.called,t,r))}function gQ(e,t,r){let i=r.getTypeAtLocation(e);return yu(e.parent)&&(i=O0e(i,VI(e.parent),!0)),(P1(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function yQ(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 29:if(r=Cc(r.getFullStart(),t),r&&r.kind===28&&(r=Cc(r.getFullStart(),t)),!r||!He(r))return;if(!i)return mg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=f9(r,18,t),!r)return;break;case 21:if(r=f9(r,20,t),!r)return;break;case 23:if(r=f9(r,22,t),!r)return;break;case 27:o++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(Gi(r))break;return}r=Cc(r.getFullStart(),t)}}function wy(e,t,r){return Lc.getRangeOfEnclosingComment(e,t,void 0,r)}function P0e(e,t){const r=aa(e,t);return!!nr(r,qm)}function vQ(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function ww(e,t=0){const r=[],i=vu(e)?WW(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||kl(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&16777216&&r.push("declare"),e.kind===274&&r.push("export"),r.length>0?r.join(","):""}function M0e(e){if(e.kind===180||e.kind===210)return e.typeArguments;if(Ka(e)||e.kind===260||e.kind===261)return e.typeParameters}function _9(e){return e===2||e===3}function bQ(e){return!!(e===10||e===13||Lv(e))}function F0e(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&t[0].flags&4&&r.isEmptyAnonymousObjectType(t[1])}function B0e(e){return 18<=e&&e<=78}function v6(e,t,r){return Lv(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function EQ(e){switch(e){case 123:case 121:case 122:return!0}return!1}function G0e(e){const t=cH(e);return qK(t,e&&e.configFile),t}function Dy(e){return!!((e.kind===206||e.kind===207)&&(e.parent.kind===223&&e.parent.left===e&&e.parent.operatorToken.kind===63||e.parent.kind===247&&e.parent.initializer===e||Dy(e.parent.kind===299?e.parent.parent:e.parent)))}function U0e(e,t){return j0e(e,t,!0)}function V0e(e,t){return j0e(e,t,!1)}function j0e(e,t,r){const i=wy(e,t,void 0);return!!i&&r===Sbe.test(e.text.substring(i.pos,i.end))}function TQ(e){if(e)switch(e.kind){case 10:case 14:return SQ(e);default:return ad(e)}}function ad(e,t,r){return hc(e.getStart(t),(r||e).getEnd())}function SQ(e){if(!e.isUnterminated)return hc(e.getStart()+1,e.getEnd()-1)}function xQ(e,t){return g_(e.getStart(t),e.end)}function Jv(e){return hc(e.pos,e.end)}function p9(e){return g_(e.start,e.start+e.length)}function m9(e,t,r){return b6(wc(e,t),r)}function b6(e,t){return{span:e,newText:t}}function Dw(e){return jr(H9,e)}function AQ(e){return e.kind===154}function h9(e){return AQ(e)||He(e)&&e.text==="type"}function E6(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function nL(){const e=[];return t=>{const r=ms(t);return!e[r]&&(e[r]=!0)}}function g9(e){return e.getText(0,e.getLength())}function T6(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function CQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function S6(e){return e.kind===164?Xf(e.expression)?e.expression.text:void 0:Ni(e)?Mr(e):V_(e)}function H0e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function W0e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function LQ(e){return!!e.module||es(e)>=2||!!e.noEmit}function i2(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Go(t,t.readFile),useCaseSensitiveFileNames:Go(t,t.useCaseSensitiveFileNames),getSymlinkCache:Go(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Go(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Go(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Go(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function IQ(e,t){return{...i2(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function y9(e){return e===2||e>=3&&e<=99||e===100}function z0e(e,t,r,i){return e||t&&t.length?Ry(e,t,r,i):void 0}function Ry(e,t,r,i,o){return N.createImportDeclaration(void 0,e||t?N.createImportClause(!!o,e,t&&t.length?N.createNamedImports(t):void 0):void 0,typeof r=="string"?v9(r,i):r,void 0)}function v9(e,t){return N.createStringLiteral(e,t===0)}function kQ(e,t){return F3(e,t)?1:0}function Ap(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&nn(e.imports,i=>Vo(i)&&!Zs(i.parent));return r?kQ(r,e):1}}function q0e(e){switch(e){case 0:return"'";case 1:return'"';default:return D.assertNever(e)}}function b9(e){const t=E9(e);return t===void 0?void 0:ta(t)}function E9(e){return e.escapedName!=="default"?e.escapedName:Kt(e.declarations,t=>{const r=ka(t);return r&&r.kind===79?r.escapedText:void 0})}function T9(e){return xs(e)&&(zm(e.parent)||zc(e.parent)||xd(e.parent,!1)&&e.parent.arguments[0]===e||sf(e.parent)&&e.parent.arguments[0]===e)}function x6(e){return ps(e)&&Hm(e.parent)&&He(e.name)&&!e.propertyName}function S9(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function A6(e,t,r){if(e)for(;e.parent;){if(qi(e.parent)||!nBe(r,e.parent,t))return e;e=e.parent}}function nBe(e,t,r){return jW(e,t.getStart(r))&&t.getEnd()<=iu(e)}function rL(e,t){return X_(e)?nn(e.modifiers,r=>r.kind===t):void 0}function x9(e,t,r,i,o){const c=(Va(r)?r[0]:r).kind===240?Qz:fT,f=lr(t.statements,c);let d=Va(r)?Q_.detectImportDeclarationSorting(r,o):3;const y=Q_.getOrganizeImportsComparer(o,d===2),h=Va(r)?ly(r,(E,A)=>Q_.compareImportsOrRequireStatements(E,A,y)):[r];if(!f.length)e.insertNodesAtTopOfFile(t,h,i);else if(f&&(d=Q_.detectImportDeclarationSorting(f,o))){const E=Q_.getOrganizeImportsComparer(o,d===2);for(const A of h){const L=Q_.getImportDeclarationInsertionIndex(f,A,E);if(L===0){const I=f[0]===t.statements[0]?{leadingTriviaOption:gr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,f[0],A,!1,I)}else{const I=f[L-1];e.insertNodeAfter(t,I,A)}}}else{const E=tl(f);E?e.insertNodesAfter(t,E,h):e.insertNodesAtTopOfFile(t,h,i)}}function wQ(e,t){return D.assert(e.isTypeOnly),ao(e.getChildAt(0,t),AQ)}function iL(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function rBe(e,t){return e.fileName===t.fileName&&iL(e.textSpan,t.textSpan)}function DQ(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){const i=t(e[r],r);if(i)return i}}}function J0e(e,t,r){for(let i=t;i<r;i++)if(!sg(e.charCodeAt(i)))return!1;return!0}function C6(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(qo(i.fileName))?i:void 0)}function RQ(e,t,r){const{fileName:i,textSpan:o}=e,s=C6({fileName:i,pos:o.start},t,r);if(!s)return;const c=C6({fileName:i,pos:o.start+o.length},t,r),f=c?c.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:f},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:K0e(e,t,r),originalContextSpan:e.contextSpan}}function K0e(e,t,r){const i=e.contextSpan&&C6({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&C6({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 NQ(e){const t=e.declarations?Yc(e.declarations):void 0;return!!nr(t,r=>Ba(r)?!0:ps(r)||Hm(r)||kC(r)?!1:"quit")}function iBe(){const e=kO*10;let t,r,i,o;h();const s=E=>f(E,17);return{displayParts:()=>{const E=t.length&&t[t.length-1].text;return o>e&&E&&E!=="..."&&(sg(E.charCodeAt(E.length-1))||t.push(Id(" ",16)),t.push(Id("...",15))),t},writeKeyword:E=>f(E,5),writeOperator:E=>f(E,12),writePunctuation:E=>f(E,15),writeTrailingSemicolon:E=>f(E,15),writeSpace:E=>f(E,16),writeStringLiteral:E=>f(E,8),writeParameter:E=>f(E,13),writeProperty:E=>f(E,14),writeLiteral:E=>f(E,8),writeSymbol:d,writeLine:y,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Wa,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:h};function c(){if(!(o>e)&&r){const E=K3(i);E&&(o+=E.length,t.push(Id(E,16))),r=!1}}function f(E,A){o>e||(c(),o+=E.length,t.push(Id(E,A)))}function d(E,A){o>e||(c(),o+=E.length,t.push(X0e(E,A)))}function y(){o>e||(o+=1,t.push(aL()),r=!0)}function h(){t=[],r=!0,i=0,o=0}}function X0e(e,t){return Id(e,r(t));function r(i){const o=i.flags;return o&3?NQ(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 Id(e,t){return{text:e,kind:c6[t]}}function bl(){return Id(" ",16)}function Hd(e){return Id(yo(e),5)}function Tu(e){return Id(yo(e),15)}function Rw(e){return Id(yo(e),12)}function Y0e(e){return Id(e,13)}function $0e(e){return Id(e,14)}function OQ(e){const t=rT(e);return t===void 0?Rf(e):Hd(t)}function Rf(e){return Id(e,17)}function Q0e(e){return Id(e,0)}function Z0e(e){return Id(e,18)}function A9(e){return Id(e,24)}function ebe(e,t){return{text:e,kind:c6[23],target:{fileName:Zn(t).fileName,textSpan:ad(t)}}}function PQ(e){return Id(e,22)}function tbe(e,t){var r;const i=Kpe(e)?"link":Xpe(e)?"linkcode":"linkplain",o=[PQ(`{@${i} `)];if(!e.name)e.text&&o.push(A9(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),c=oBe(e.text),f=xc(e.name)+e.text.slice(0,c),d=aBe(e.text.slice(c)),y=(s==null?void 0:s.valueDeclaration)||((r=s==null?void 0:s.declarations)==null?void 0:r[0]);y?(o.push(ebe(f,y)),d&&o.push(A9(d))):o.push(A9(f+(c?"":" ")+d))}return o.push(PQ("}")),o}function aBe(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 oBe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function ub(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||xbe}function aL(){return Id(` `,6)}function Kv(e){try{return e(W9),W9.displayParts()}finally{W9.clear()}}function L6(e,t,r,i=0){return Kv(o=>{e.writeType(t,r,i|1024|16384,o)})}function Nw(e,t,r,i,o=0){return Kv(s=>{e.writeSymbol(t,r,i,o|8,s)})}function MQ(e,t,r,i=0){return i|=25632,Kv(o=>{e.writeSignature(t,r,i,void 0,o)})}function sBe(e,t){const r=t.getSourceFile();return Kv(i=>{K8().writeNode(4,e,r,i)})}function nbe(e){return!!e.parent&&sx(e.parent)&&e.parent.propertyName===e}function FQ(e,t){return f7(e,t.getScriptKind&&t.getScriptKind(e))}function rbe(e,t){let r=e;for(;lBe(r)||Om(r)&&r.links.target;)Om(r)&&r.links.target?r=r.links.target:r=lf(r,t);return r}function lBe(e){return(e.flags&2097152)!==0}function ibe(e,t){return bo(lf(e,t))}function abe(e,t){for(;sg(e.charCodeAt(t));)t+=1;return t}function BQ(e,t){for(;t>-1&&Dm(e.charCodeAt(t));)t-=1;return t+1}function Dl(e,t=!0){const r=e&&obe(e);return r&&!t&&Wd(r),r}function I6(e,t,r){let i=r(e);return i?Wr(i,e):i=obe(e,r),i&&!t&&Wd(i),i}function obe(e,t){const r=t?s=>I6(s,!0,t):Dl,o=Bn(e,r,Tg,t?s=>s&&GQ(s,!0,t):s=>s&&Y1(s),r);if(o===e){const s=Vo(e)?Wr(N.createStringLiteralFromNode(e),e):b_(e)?Wr(N.createNumericLiteral(e.text,e.numericLiteralFlags),e):N.cloneNode(e);return ht(s,e)}return o.parent=void 0,o}function Y1(e,t=!0){return e&&N.createNodeArray(e.map(r=>Dl(r,t)),e.hasTrailingComma)}function GQ(e,t,r){return N.createNodeArray(e.map(i=>I6(i,t,r)),e.hasTrailingComma)}function Wd(e){C9(e),sbe(e)}function C9(e){UQ(e,1024,uBe)}function sbe(e){UQ(e,2048,Uq)}function $T(e,t){const r=e.getSourceFile(),i=r.text;cBe(e,i)?oL(e,t,r):w6(e,t,r),Ow(e,t,r)}function cBe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function UQ(e,t,r){tm(e,t);const i=r(e);i&&UQ(i,t,r)}function uBe(e){return e.forEachChild(t=>t)}function QT(e,t){let r=e;for(let i=1;!_3(t,r);i++)r=`${e}_${i}`;return r}function k6(e,t,r,i){let o=0,s=-1;for(const{fileName:c,textChanges:f}of e){D.assert(c===t);for(const d of f){const{span:y,newText:h}=d,E=dBe(h,bx(r));if(E!==-1&&(s=y.start+o+E,!i))return s;o+=h.length-y.length}}return D.assert(i),D.assert(s>=0),s}function oL(e,t,r,i,o){tN(r.text,e.pos,VQ(t,r,i,o,BO))}function Ow(e,t,r,i,o){nN(r.text,e.end,VQ(t,r,i,o,I7))}function w6(e,t,r,i,o){nN(r.text,e.pos,VQ(t,r,i,o,BO))}function VQ(e,t,r,i,o){return(s,c,f,d)=>{f===3?(s+=2,c-=2):s+=2,o(e,r||f,t.text.slice(s,c),i!==void 0?i:d)}}function dBe(e,t){if(xa(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function jQ(e){return br(e)&&e.operatorToken.kind===27||Ls(e)||KO(e)&&Ls(e.expression)}function L9(e,t,r){const i=Rv(e.parent);switch(i.kind){case 211:return t.getContextualType(i,r);case 223:{const{left:o,operatorToken:s,right:c}=i;return I9(s.kind)?t.getTypeAtLocation(e===c?o:c):t.getContextualType(e,r)}case 292:return WQ(i,t);default:return t.getContextualType(e,r)}}function Pw(e,t,r){const i=Ap(e,t),o=JSON.stringify(r);return i===0?`'${j_(o).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:o}function I9(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function lbe(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function HQ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function WQ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Mw(e,t,r,i){const o=r.getTypeChecker();let s=!0;const c=()=>s=!1,f=o.typeToTypeNode(e,t,1,{trackSymbol:(d,y,h)=>(s=s&&o.isSymbolAccessible(d,y,h,!1).accessibility===0,!s),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:IQ(r,i)});return s?f:void 0}function zQ(e){return e===176||e===177||e===178||e===168||e===170}function cbe(e){return e===259||e===173||e===171||e===174||e===175}function ube(e){return e===264}function k9(e){return e===240||e===241||e===243||e===248||e===249||e===250||e===254||e===256||e===169||e===262||e===269||e===268||e===275||e===267||e===274}function fBe(e,t){const r=e.getLastToken(t);if(r&&r.kind===26)return!1;if(zQ(e.kind)){if(r&&r.kind===27)return!1}else if(ube(e.kind)){const f=zo(e.getChildren(t));if(f&&rm(f))return!1}else if(cbe(e.kind)){const f=zo(e.getChildren(t));if(f&&pT(f))return!1}else if(!k9(e.kind))return!1;if(e.kind===243)return!0;const i=nr(e,f=>!f.parent),o=XT(e,i,t);if(!o||o.kind===19)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==c}function w9(e,t,r){const i=nr(t,o=>o.end!==e?"quit":nZ(o.kind));return!!i&&fBe(i,r)}function D9(e){let t=0,r=0;const i=5;return Ma(e,function o(s){if(k9(s.kind)){const c=s.getLastToken(e);(c==null?void 0:c.kind)===26?t++:r++}else if(zQ(s.kind)){const c=s.getLastToken(e);if((c==null?void 0:c.kind)===26)t++;else if(c&&c.kind!==27){const f=ol(e,c.getStart(e)).line,d=ol(e,yy(e,c.end).start).line;f!==d&&r++}}return t+r>=i?!0:Ma(s,o)}),t===0&&r<=1?!0:t/r>1/i}function R9(e,t){return M9(e,e.getDirectories,t)||[]}function qQ(e,t,r,i,o){return M9(e,e.readDirectory,t,r,i,o)||rt}function N9(e,t){return M9(e,e.fileExists,t)}function O9(e,t){return P9(()=>Qp(t,e))||!1}function P9(e){try{return e()}catch{return}}function M9(e,t,...r){return P9(()=>t&&t.apply(e,r))}function JQ(e,t,r){const i=[];return ag(e,o=>{if(o===r)return!0;const s=Bi(o,"package.json");N9(t,s)&&i.push(s)}),i}function dbe(e,t){let r;return ag(e,i=>{if(i==="node_modules"||(r=Wye(i,o=>N9(t,o),"package.json"),r))return!0}),r}function fbe(e,t){if(!t.fileExists)return[];const r=[];return ag(hi(e),i=>{const o=Bi(i,"package.json");if(t.fileExists(o)){const s=_be(o,t);s&&r.push(s)}}),r}function _be(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=_Be(i),s={};if(o)for(const d of r){const y=o[d];if(!y)continue;const h=new Map;for(const E in y)h.set(E,y[E]);s[d]=h}const c=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:f,has(d,y){return!!f(d,y)}};function f(d,y=15){for(const[h,E]of c)if(E&&y&h){const A=E.get(d);if(A!==void 0)return A}}}function Fw(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||fbe(e.fileName,r)).filter(I=>I.parseable);let o,s,c;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:y,allowsImportingSpecifier:h};function f(I){const O=L(I);for(const k of i)if(k.has(O)||k.has(Z5(O)))return!0;return!1}function d(I,O){if(!i.length||!I.valueDeclaration)return!0;if(!s)s=new Map;else{const te=s.get(I);if(te!==void 0)return te}const k=j_(I.getName());if(E(k))return s.set(I,!0),!0;const G=I.valueDeclaration.getSourceFile(),V=A(G.fileName,O);if(typeof V>"u")return s.set(I,!0),!0;const H=f(V)||f(k);return s.set(I,H),H}function y(I,O){if(!i.length)return!0;if(!c)c=new Map;else{const V=c.get(I);if(V!==void 0)return V}const k=A(I.fileName,O);if(!k)return c.set(I,!0),!0;const G=f(k);return c.set(I,G),G}function h(I){return!i.length||E(I)||Sf(I)||km(I)?!0:f(I)}function E(I){return!!(td(e)&&qT.nodeCoreModules.has(I)&&(o===void 0&&(o=F9(e)),o))}function A(I,O){if(!pu(I,"node_modules"))return;const k=j1.getNodeModulesPackageName(r.getCompilationSettings(),e,I,O,t);if(k&&!Sf(k)&&!km(k))return L(k)}function L(I){const O=ld(P8(I)).slice(1);return xa(O[0],"@")?`${O[0]}/${O[1]}`:O[0]}}function _Be(e){try{return JSON.parse(e)}catch{return}}function F9(e){return kt(e.imports,({text:t})=>qT.nodeCoreModules.has(t))}function pbe(e){return jr(ld(e),"node_modules")}function KQ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function mbe(e,t){const r=ad(e),i=XS(t,r,ml,lM);if(i>=0){const o=t[i];return D.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ao(o,KQ)}}function hbe(e,t){var r;let i=XS(t,e.start,c=>c.start,Ws);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=iu(e);for(;;){const c=ai(t[i],KQ);if(!c||c.start>s)break;Pue(e,c)&&o.push(c),i++}return o}function a2({startPosition:e,endPosition:t}){return hc(e,t===void 0?e:t)}function XQ(e,t){const r=aa(e,t.start);return nr(r,o=>o.getStart(e)<t.start||o.getEnd()>iu(t)?"quit":vt(o)&&iL(t,ad(o,e)))}function gbe(e,t,r=ml){return e?Va(e)?r(Vt(e,t)):t(e,0):void 0}function YQ(e){return Va(e)?us(e):e}function ybe(e,t){if(vbe(e)){const r=bbe(e);if(r)return r;const i=Wu.moduleSymbolToValidIdentifier($Q(e),t,!1),o=Wu.moduleSymbolToValidIdentifier($Q(e),t,!0);return i===o?i:[i,o]}return e.name}function B9(e,t,r){return vbe(e)?bbe(e)||Wu.moduleSymbolToValidIdentifier($Q(e),t,!!r):e.name}function vbe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function bbe(e){return Kt(e.declarations,t=>{var r,i;return Gl(t)?(r=ai(bu(t.expression),He))==null?void 0:r.text:(i=ai(ka(t),He))==null?void 0:i.text})}function $Q(e){var t;return D.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${D.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=D.formatSyntaxKind(r.kind),o=fr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${D.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Ebe(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function QQ(e){return e.charCodeAt(0)===95}function pBe(e){return!Tbe(e)}function Tbe(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:fr(e)||!nr(e,r=>Jl(r)&&Yp(r))}function G9(e){return!!(WW(e)&8192)}function U9(e,t){const r=Kt(e.imports,i=>{if(qT.nodeCoreModules.has(i.text))return xa(i.text,"node:")});return r??t.usesUriStyleNodeCoreModules}function D6(e){return e===` `?1:0}function o2(e){return Va(e)?Sh(No(e[0]),e.slice(1)):No(e)}function V9({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!D9(t);return{...e,semicolons:i?"remove":"ignore"}}function ZQ(e){return e===2||e===3}function Bw(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function j9(e,t){const r=new Set,i=new Set,o=new Set;for(const f of t)if(!e8(f)){const d=js(f.expression);if(oT(d))switch(d.kind){case 14:case 10:r.add(d.text);break;case 8:i.add(parseInt(d.text));break;case 9:const y=B_e(ic(d.text,"n")?d.text.slice(0,-1):d.text);y&&o.add(R1(y));break}else{const y=e.getSymbolAtLocation(f.expression);if(y&&y.valueDeclaration&&B1(y.valueDeclaration)){const h=e.getConstantValue(y.valueDeclaration);h!==void 0&&s(h)}}}return{addValue:s,hasValue:c};function s(f){switch(typeof f){case"string":r.add(f);break;case"number":i.add(f)}}function c(f){switch(typeof f){case"string":return r.has(f);case"number":return i.has(f);case"object":return o.has(R1(f))}}}var Su,eZ,Sbe,H9,tZ,W9,xbe,z9,nZ,mBe=C({"src/services/utilities.ts"(){$r(),Su=fy(99,!0),eZ=(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))(eZ||{}),Sbe=/^\/\/\/\s*</,H9=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],tZ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(tZ||{}),W9=iBe(),xbe=` `,z9="anonymous function",nZ=Im(zQ,cbe,ube,k9)}});function Abe(e){let t=1;const r=__(),i=new Map,o=new Map;let s;const c={isUsableByFile:L=>L===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(L,I,O,k,G,V,H,te)=>{L!==s&&(c.clear(),s=L);let X;if(G){const Se=uJ(G.fileName);if(Se){const{topLevelNodeModulesIndex:ee,topLevelPackageNameIndex:Qe,packageRootIndex:je}=Se;if(X=eF(P8(G.fileName.substring(Qe+1,je))),xa(L,G.path.substring(0,ee))){const Ge=o.get(X),qe=G.fileName.substring(0,Qe+1);if(Ge){const Oe=Ge.indexOf(Ly);ee>Oe&&o.set(X,qe)}else o.set(X,qe)}}}const P=V===1&&uC(I)||I,de=V===0||E6(P)?ta(O):ybe(P,void 0),re=typeof de=="string"?de:de[0],ye=typeof de=="string"?void 0:de[1],ae=j_(k.name),W=t++,ce=lf(I,te),me=I.flags&33554432?void 0:I,ve=k.flags&33554432?void 0:k;(!me||!ve)&&i.set(W,[I,k]),r.add(d(re,I,Uc(ae)?void 0:ae,te),{id:W,symbolTableKey:O,symbolName:re,capitalizedSymbolName:ye,moduleName:ae,moduleFile:G,moduleFileName:G==null?void 0:G.fileName,packageName:X,exportKind:V,targetFlags:ce.flags,isFromPackageJson:H,symbol:me,moduleSymbol:ve})},get:(L,I)=>{if(L!==s)return;const O=r.get(I);return O==null?void 0:O.map(f)},search:(L,I,O,k)=>{if(L===s)return af(r,(G,V)=>{const{symbolName:H,ambientModuleName:te}=y(V),X=I&&G[0].capitalizedSymbolName||H;if(O(X,G[0].targetFlags)){const P=G.map(f).filter((de,re)=>A(de,G[re].packageName));if(P.length){const de=k(P,X,!!te,V);if(de!==void 0)return de}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(L,I,O)=>h(L)&&h(I)?!1:s&&s!==I.path||O&&F9(L)!==F9(I)||!zp(L.moduleAugmentations,I.moduleAugmentations)||!E(L,I)?(c.clear(),!0):(s=I.path,!1)};return D.isDebugging&&Object.defineProperty(c,"__cache",{get:()=>r}),c;function f(L){if(L.symbol&&L.moduleSymbol)return L;const{id:I,exportKind:O,targetFlags:k,isFromPackageJson:G,moduleFileName:V}=L,[H,te]=i.get(I)||rt;if(H&&te)return{symbol:H,moduleSymbol:te,moduleFileName:V,exportKind:O,targetFlags:k,isFromPackageJson:G};const X=(G?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),Y=L.moduleSymbol||te||D.checkDefined(L.moduleFile?X.getMergedSymbol(L.moduleFile.symbol):X.tryFindAmbientModule(L.moduleName)),P=L.symbol||H||D.checkDefined(O===2?X.resolveExternalModuleSymbol(Y):X.tryGetMemberInModuleExportsAndProperties(ta(L.symbolTableKey),Y),`Could not find symbol '${L.symbolName}' by key '${L.symbolTableKey}' in module ${Y.name}`);return i.set(I,[P,Y]),{symbol:P,moduleSymbol:Y,moduleFileName:V,exportKind:O,targetFlags:k,isFromPackageJson:G}}function d(L,I,O,k){const G=O||"";return`${L}|${bo(lf(I,k))}|${G}`}function y(L){const I=L.substring(0,L.indexOf("|")),O=L.substring(L.lastIndexOf("|")+1);return{symbolName:I,ambientModuleName:O===""?void 0:O}}function h(L){return!L.commonJsModuleIndicator&&!L.externalModuleIndicator&&!L.moduleAugmentations&&!L.ambientModuleNames}function E(L,I){if(!zp(L.ambientModuleNames,I.ambientModuleNames))return!1;let O=-1,k=-1;for(const G of I.ambientModuleNames){const V=H=>Dz(H)&&H.name.text===G;if(O=mi(L.statements,V,O+1),k=mi(I.statements,V,k+1),L.statements[O]!==I.statements[k])return!1}return!0}function A(L,I){if(!I||!L.moduleFileName)return!0;const O=e.getGlobalTypingsCacheLocation();if(O&&xa(L.moduleFileName,O))return!0;const k=o.get(I);return!k||xa(L.moduleFileName,k)}}function rZ(e,t,r,i,o,s,c){var f;if(t===r)return!1;const d=c==null?void 0:c.get(t.path,r.path,i,{});if((d==null?void 0:d.isBlockedByPackageJsonDependencies)!==void 0)return!d.isBlockedByPackageJsonDependencies;const y=Z0(s),h=(f=s.getGlobalTypingsCacheLocation)==null?void 0:f.call(s),E=!!j1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,A=>{const L=e.getSourceFile(A);return(L===r||!L)&&hBe(t.fileName,A,y,h)});if(o){const A=E&&o.allowsImportingSourceFile(r,s);return c==null||c.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!A),A}return E}function hBe(e,t,r,i){const o=ag(t,c=>mu(c)==="node_modules"?c:void 0),s=o&&hi(r(o));return s===void 0||xa(r(e),s)||!!i&&xa(r(i),s)}function iZ(e,t,r,i,o){var s,c;const f=oO(t),d=r.autoImportFileExcludePatterns&&ia(r.autoImportFileExcludePatterns,h=>{const E=$q(h,"","exclude");return E?Mv(E,f):void 0});Cbe(e.getTypeChecker(),e.getSourceFiles(),d,(h,E)=>o(h,E,e,!1));const y=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(y){const h=il(),E=e.getTypeChecker();Cbe(y.getTypeChecker(),y.getSourceFiles(),d,(A,L)=>{(L&&!e.getSourceFile(L.fileName)||!L&&!E.resolveName(A.name,void 0,1536,!1))&&o(A,L,y,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${il()-h}`)}}function Cbe(e,t,r,i){var o;const s=r&&(c=>r.some(f=>f.test(c)));for(const c of e.getAmbientModules())!pu(c.name,"*")&&!(r&&((o=c.declarations)!=null&&o.every(f=>s(f.getSourceFile().fileName))))&&i(c,void 0);for(const c of t)of(c)&&!(s!=null&&s(c.fileName))&&i(e.getMergedSymbol(c.symbol),c)}function R6(e,t,r,i,o){var s,c,f,d,y;const h=il();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const E=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||Abe({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var I;return(I=t.getPackageJsonAutoImportProvider)==null?void 0:I.call(t)},getGlobalTypingsCacheLocation:()=>{var I;return(I=t.getGlobalTypingsCacheLocation)==null?void 0:I.call(t)}});if(E.isUsableByFile(e.path))return(f=t.log)==null||f.call(t,"getExportInfoMap: cache hit"),E;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const A=r.getCompilerOptions();let L=0;try{iZ(r,t,i,!0,(I,O,k,G)=>{++L%100===0&&(o==null||o.throwIfCancellationRequested());const V=new Map,H=k.getTypeChecker(),te=q9(I,H,A);te&&Lbe(te.symbol,H)&&E.add(e.path,te.symbol,te.exportKind===1?"default":"export=",I,O,te.exportKind,G,H),H.forEachExportAndPropertyOfModule(I,(X,Y)=>{X!==(te==null?void 0:te.symbol)&&Lbe(X,H)&&bp(V,Y)&&E.add(e.path,X,Y,I,O,0,G,H)})})}catch(I){throw E.clear(),I}return(y=t.log)==null||y.call(t,`getExportInfoMap: done in ${il()-h} ms`),E}function q9(e,t,r){const i=gBe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,c=J9(o,t,r);return c&&{symbol:o,exportKind:s,...c}}function Lbe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!ZN(e)&&!kfe(e)}function gBe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function J9(e,t,r){const i=uC(e);if(i)return{resolvedSymbol:i,name:i.name};const o=yBe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return J9(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:B9(e,r.target)}}function yBe(e){return e.declarations&&Kt(e.declarations,t=>{var r;if(Gl(t))return(r=ai(bu(t.expression),He))==null?void 0:r.text;if(dd(t))return D.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var aZ,oZ,vBe=C({"src/services/exportInfoMap.ts"(){$r(),aZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(aZ||{}),oZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(oZ||{})}});function Ibe(){const e=fy(99,!1);function t(i,o,s){return TBe(r(i,o,s),i)}function r(i,o,s){let c=0,f=0;const d=[],{prefix:y,pushTemplate:h}=ABe(o);i=y+i;const E=y.length;h&&d.push(15),e.setText(i);let A=0;const L=[];let I=0;do{c=e.scan(),aC(c)||(O(),f=c);const k=e.getTextPos();if(EBe(e.getTokenPos(),k,E,IBe(c),L),k>=i.length){const G=bBe(e,c,tl(d));G!==void 0&&(A=G)}}while(c!==1);function O(){switch(c){case 43:case 68:!Obe[f]&&e.reScanSlashToken()===13&&(c=13);break;case 29:f===79&&I++;break;case 31:I>0&&I--;break;case 131:case 152:case 148:case 134:case 153:I>0&&!s&&(c=79);break;case 15:d.push(c);break;case 18:d.length>0&&d.push(c);break;case 19:if(d.length>0){const k=tl(d);k===15?(c=e.reScanTemplateToken(!1),c===17?d.pop():D.assertEqual(c,16,"Should have been a template middle.")):(D.assertEqual(k,18,"Should have been an open brace"),d.pop())}break;default:if(!Ad(c))break;(f===24||Ad(f)&&Ad(c)&&!xBe(f,c))&&(c=79)}}return{endOfLineState:A,spans:L}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function bBe(e,t,r){switch(t){case 10:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Lv(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return D.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===15?6:void 0}}function EBe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function TBe(e,t){const r=[],i=e.spans;let o=0;for(let c=0;c<i.length;c+=3){const f=i[c],d=i[c+1],y=i[c+2];if(o>=0){const h=f-o;h>0&&r.push({length:h,classification:4})}r.push({length:d,classification:SBe(y)}),o=f+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function SBe(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 xBe(e,t){if(!EQ(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function ABe(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 D.assertNever(e)}}function CBe(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function LBe(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function IBe(e){if(Ad(e))return 3;if(CBe(e)||LBe(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return Lv(e)?6:2}}function kbe(e,t,r,i,o){return Rbe(sZ(e,t,r,i,o))}function wbe(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function sZ(e,t,r,i,o){const s=[];return r.forEachChild(function f(d){if(!(!d||!JM(o,d.pos,d.getFullWidth()))){if(wbe(t,d.kind),He(d)&&!Cl(d)&&i.has(d.escapedText)){const y=e.getSymbolAtLocation(d),h=y&&Dbe(y,JT(d),e);h&&c(d.getStart(r),d.getEnd(),h)}d.forEachChild(f)}}),{spans:s,endOfLineState:0};function c(f,d,y){const h=d-f;D.assert(h>0,`Classification had non-positive length of ${h}`),s.push(f),s.push(h),s.push(y)}}function Dbe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&kBe(e)?14:void 0:i&2097152?Dbe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function kBe(e){return kt(e.declarations,t=>Jl(t)&&Eg(t)===1)}function wBe(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 Rbe(e){D.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:wc(t[i],t[i+1]),classificationType:wBe(t[i+2])});return r}function Nbe(e,t,r){return Rbe(lZ(e,t,r))}function lZ(e,t,r){const i=r.start,o=r.length,s=fy(99,!1,t.languageVariant,t.text),c=fy(99,!1,t.languageVariant,t.text),f=[];return te(t),{spans:f,endOfLineState:0};function d(X,Y,P){f.push(X),f.push(Y),f.push(P)}function y(X){for(s.setTextPos(X.pos);;){const Y=s.getTextPos();if(!vue(t.text,Y))return Y;const P=s.scan(),de=s.getTextPos(),re=de-Y;if(!aC(P))return Y;switch(P){case 4:case 5:continue;case 2:case 3:h(X,P,Y,re),s.setTextPos(de);continue;case 7:const ye=t.text,ae=ye.charCodeAt(Y);if(ae===60||ae===62){d(Y,re,1);continue}D.assert(ae===124||ae===61),O(ye,Y,de);break;case 6:break;default:D.assertNever(P)}}}function h(X,Y,P,de){if(Y===3){const re=Gme(t.text,P,de);if(re&&re.jsDoc){Uo(re.jsDoc,X),A(re.jsDoc);return}}else if(Y===2&&L(P,de))return;E(P,de)}function E(X,Y){d(X,Y,1)}function A(X){var Y,P,de,re,ye,ae,W,ce;let me=X.pos;if(X.tags)for(const Se of X.tags){Se.pos!==me&&E(me,Se.pos-me),d(Se.pos,1,10),d(Se.tagName.pos,Se.tagName.end-Se.tagName.pos,18),me=Se.tagName.end;let ee=Se.tagName.end;switch(Se.kind){case 344:const Qe=Se;ve(Qe),ee=Qe.isNameFirst&&((Y=Qe.typeExpression)==null?void 0:Y.end)||Qe.name.end;break;case 351:const je=Se;ee=je.isNameFirst&&((P=je.typeExpression)==null?void 0:P.end)||je.name.end;break;case 348:I(Se),me=Se.end,ee=Se.typeParameters.end;break;case 349:const Ge=Se;ee=((de=Ge.typeExpression)==null?void 0:de.kind)===312&&((re=Ge.fullName)==null?void 0:re.end)||((ye=Ge.typeExpression)==null?void 0:ye.end)||ee;break;case 341:ee=Se.typeExpression.end;break;case 347:te(Se.typeExpression),me=Se.end,ee=Se.typeExpression.end;break;case 346:case 343:ee=Se.typeExpression.end;break;case 345:te(Se.typeExpression),me=Se.end,ee=((ae=Se.typeExpression)==null?void 0:ae.end)||ee;break;case 350:ee=((W=Se.name)==null?void 0:W.end)||ee;break;case 331:case 332:ee=Se.class.end;break;case 352:te(Se.typeExpression),me=Se.end,ee=((ce=Se.typeExpression)==null?void 0:ce.end)||ee;break}typeof Se.comment=="object"?E(Se.comment.pos,Se.comment.end-Se.comment.pos):typeof Se.comment=="string"&&E(ee,Se.end-ee)}me!==X.end&&E(me,X.end-me);return;function ve(Se){Se.isNameFirst&&(E(me,Se.name.pos-me),d(Se.name.pos,Se.name.end-Se.name.pos,17),me=Se.name.end),Se.typeExpression&&(E(me,Se.typeExpression.pos-me),te(Se.typeExpression),me=Se.typeExpression.end),Se.isNameFirst||(E(me,Se.name.pos-me),d(Se.name.pos,Se.name.end-Se.name.pos,17),me=Se.name.end)}}function L(X,Y){const P=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,de=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,re=t.text.substr(X,Y),ye=P.exec(re);if(!ye||!ye[3]||!(ye[3]in UR))return!1;let ae=X;E(ae,ye[1].length),ae+=ye[1].length,d(ae,ye[2].length,10),ae+=ye[2].length,d(ae,ye[3].length,21),ae+=ye[3].length;const W=ye[4];let ce=ae;for(;;){const ve=de.exec(W);if(!ve)break;const Se=ae+ve.index+ve[1].length;Se>ce&&(E(ce,Se-ce),ce=Se),d(ce,ve[2].length,22),ce+=ve[2].length,ve[3].length&&(E(ce,ve[3].length),ce+=ve[3].length),d(ce,ve[4].length,5),ce+=ve[4].length,ve[5].length&&(E(ce,ve[5].length),ce+=ve[5].length),d(ce,ve[6].length,24),ce+=ve[6].length}ae+=ye[4].length,ae>ce&&E(ce,ae-ce),ye[5]&&(d(ae,ye[5].length,10),ae+=ye[5].length);const me=X+Y;return ae<me&&E(ae,me-ae),!0}function I(X){for(const Y of X.getChildren())te(Y)}function O(X,Y,P){let de;for(de=Y;de<P&&!hu(X.charCodeAt(de));de++);for(d(Y,de-Y,1),c.setTextPos(de);c.getTextPos()<P;)k()}function k(){const X=c.getTextPos(),Y=c.scan(),P=c.getTextPos(),de=H(Y);de&&d(X,P-X,de)}function G(X){if(qm(X)||Cl(X))return!0;const Y=V(X);if(!ox(X)&&X.kind!==11&&Y===void 0)return!1;const P=X.kind===11?X.pos:y(X),de=X.end-P;if(D.assert(de>=0),de>0){const re=Y||H(X.kind,X);re&&d(P,de,re)}return!0}function V(X){switch(X.parent&&X.parent.kind){case 283:if(X.parent.tagName===X)return 19;break;case 284:if(X.parent.tagName===X)return 20;break;case 282:if(X.parent.tagName===X)return 21;break;case 288:if(X.parent.name===X)return 22;break}}function H(X,Y){if(Ad(X))return 3;if((X===29||X===31)&&Y&&M0e(Y.parent))return 10;if(B0e(X)){if(Y){const P=Y.parent;if(X===63&&(P.kind===257||P.kind===169||P.kind===166||P.kind===288)||P.kind===223||P.kind===221||P.kind===222||P.kind===224)return 5}return 10}else{if(X===8)return 4;if(X===9)return 25;if(X===10)return Y&&Y.parent.kind===288?24:6;if(X===13)return 6;if(Lv(X))return 6;if(X===11)return 23;if(X===79){if(Y){switch(Y.parent.kind){case 260:return Y.parent.name===Y?11:void 0;case 165:return Y.parent.name===Y?15:void 0;case 261:return Y.parent.name===Y?13:void 0;case 263:return Y.parent.name===Y?12:void 0;case 264:return Y.parent.name===Y?14:void 0;case 166:return Y.parent.name===Y?TT(Y)?3:17:void 0}if(cg(Y.parent))return 3}return 2}}}function te(X){if(X&&KM(i,o,X.pos,X.getFullWidth())){wbe(e,X.kind);for(const Y of X.getChildren(t))G(Y)||te(Y)}}}var Obe,DBe=C({"src/services/classifier.ts"(){$r(),Obe=bce([79,10,8,9,13,108,45,46,21,23,19,110,95],e=>e,()=>!0)}}),K9,RBe=C({"src/services/documentHighlights.ts"(){$r(),(e=>{function t(ae,W,ce,me,ve){const Se=Df(ce,me);if(Se.parent&&(wh(Se.parent)&&Se.parent.tagName===Se||zx(Se.parent))){const{openingElement:ee,closingElement:Qe}=Se.parent.parent,je=[ee,Qe].map(({tagName:Ge})=>r(Ge,ce));return[{fileName:ce.fileName,highlightSpans:je}]}return i(me,Se,ae,W,ve)||o(Se,ce)}e.getDocumentHighlights=t;function r(ae,W){return{fileName:W.fileName,textSpan:ad(ae,W),kind:"none"}}function i(ae,W,ce,me,ve){const Se=new Set(ve.map(Ge=>Ge.fileName)),ee=ul.getReferenceEntriesForNode(ae,W,ce,ve,me,void 0,Se);if(!ee)return;const Qe=kR(ee.map(ul.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),je=ru(ce.useCaseSensitiveFileNames());return Ro(TA(Qe.entries(),([Ge,qe])=>{if(!Se.has(Ge)){if(!ce.redirectTargetsMap.has(zs(Ge,ce.getCurrentDirectory(),je)))return;const Oe=ce.getSourceFile(Ge);Ge=nn(ve,Ye=>!!Ye.redirectInfo&&Ye.redirectInfo.redirectTarget===Oe).fileName,D.assert(Se.has(Ge))}return{fileName:Ge,highlightSpans:qe}}))}function o(ae,W){const ce=s(ae,W);return ce&&[{fileName:W.fileName,highlightSpans:ce}]}function s(ae,W){switch(ae.kind){case 99:case 91:return wT(ae.parent)?de(ae.parent,W):void 0;case 105:return me(ae.parent,Ep,te);case 109:return me(ae.parent,aK,H);case 111:case 83:case 96:const Se=ae.kind===83?ae.parent.parent:ae.parent;return me(Se,$O,V);case 107:return me(ae.parent,YO,G);case 82:case 88:return e8(ae.parent)||Zk(ae.parent)?me(ae.parent.parent.parent,YO,G):void 0;case 81:case 86:return me(ae.parent,HI,k);case 97:case 115:case 90:return me(ae.parent,ee=>Iv(ee,!0),O);case 135:return ce(ql,[135]);case 137:case 151:return ce(J0,[137,151]);case 133:return me(ae.parent,DC,X);case 132:return ve(X(ae));case 125:return ve(Y(ae));case 101:return;default:return my(ae.kind)&&(vu(ae.parent)||uc(ae.parent))?ve(A(ae.kind,ae.parent)):void 0}function ce(Se,ee){return me(ae.parent,Se,Qe=>{var je;return ia((je=ai(Qe,Rm))==null?void 0:je.symbol.declarations,Ge=>Se(Ge)?nn(Ge.getChildren(W),qe=>jr(ee,qe.kind)):void 0)})}function me(Se,ee,Qe){return ee(Se)?ve(Qe(Se,W)):void 0}function ve(Se){return Se&&Se.map(ee=>r(ee,W))}}function c(ae){return aK(ae)?[ae]:$O(ae)?ba(ae.catchClause?c(ae.catchClause):ae.tryBlock&&c(ae.tryBlock),ae.finallyBlock&&c(ae.finallyBlock)):Ka(ae)?void 0:y(ae,c)}function f(ae){let W=ae;for(;W.parent;){const ce=W.parent;if(pT(ce)||ce.kind===308)return ce;if($O(ce)&&ce.tryBlock===W&&ce.catchClause)return W;W=ce}}function d(ae){return HI(ae)?[ae]:Ka(ae)?void 0:y(ae,d)}function y(ae,W){const ce=[];return ae.forEachChild(me=>{const ve=W(me);ve!==void 0&&ce.push(...wR(ve))}),ce}function h(ae,W){const ce=E(W);return!!ce&&ce===ae}function E(ae){return nr(ae,W=>{switch(W.kind){case 252:if(ae.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!ae.label||ye(W,ae.label.escapedText);default:return Ka(W)&&"quit"}})}function A(ae,W){return ia(L(W,xx(ae)),ce=>rL(ce,ae))}function L(ae,W){const ce=ae.parent;switch(ce.kind){case 265:case 308:case 238:case 292:case 293:return W&256&&Nc(ae)?[...ae.members,ae]:ce.statements;case 173:case 171:case 259:return[...ce.parameters,...di(ce.parent)?ce.parent.members:[]];case 260:case 228:case 261:case 184:const me=ce.members;if(W&92){const ve=nn(ce.members,ql);if(ve)return[...me,...ve.parameters]}else if(W&256)return[...me,ce];return me;case 207:return;default:D.assertNever(ce,"Invalid container kind.")}}function I(ae,W,...ce){return W&&jr(ce,W.kind)?(ae.push(W),!0):!1}function O(ae){const W=[];if(I(W,ae.getFirstToken(),97,115,90)&&ae.kind===243){const ce=ae.getChildren();for(let me=ce.length-1;me>=0&&!I(W,ce[me],115);me--);}return Ue(d(ae.statement),ce=>{h(ae,ce)&&I(W,ce.getFirstToken(),81,86)}),W}function k(ae){const W=E(ae);if(W)switch(W.kind){case 245:case 246:case 247:case 243:case 244:return O(W);case 252:return G(W)}}function G(ae){const W=[];return I(W,ae.getFirstToken(),107),Ue(ae.caseBlock.clauses,ce=>{I(W,ce.getFirstToken(),82,88),Ue(d(ce),me=>{h(ae,me)&&I(W,me.getFirstToken(),81)})}),W}function V(ae,W){const ce=[];if(I(ce,ae.getFirstToken(),111),ae.catchClause&&I(ce,ae.catchClause.getFirstToken(),83),ae.finallyBlock){const me=bs(ae,96,W);I(ce,me,96)}return ce}function H(ae,W){const ce=f(ae);if(!ce)return;const me=[];return Ue(c(ce),ve=>{me.push(bs(ve,109,W))}),pT(ce)&&_T(ce,ve=>{me.push(bs(ve,105,W))}),me}function te(ae,W){const ce=Cf(ae);if(!ce)return;const me=[];return _T(ao(ce.body,lo),ve=>{me.push(bs(ve,105,W))}),Ue(c(ce.body),ve=>{me.push(bs(ve,109,W))}),me}function X(ae){const W=Cf(ae);if(!W)return;const ce=[];return W.modifiers&&W.modifiers.forEach(me=>{I(ce,me,132)}),Ma(W,me=>{P(me,ve=>{DC(ve)&&I(ce,ve.getFirstToken(),133)})}),ce}function Y(ae){const W=Cf(ae);if(!W)return;const ce=[];return Ma(W,me=>{P(me,ve=>{l5(ve)&&I(ce,ve.getFirstToken(),125)})}),ce}function P(ae,W){W(ae),!Ka(ae)&&!di(ae)&&!id(ae)&&!Jl(ae)&&!nm(ae)&&!Gi(ae)&&Ma(ae,ce=>P(ce,W))}function de(ae,W){const ce=re(ae,W),me=[];for(let ve=0;ve<ce.length;ve++){if(ce[ve].kind===91&&ve<ce.length-1){const Se=ce[ve],ee=ce[ve+1];let Qe=!0;for(let je=ee.getStart(W)-1;je>=Se.end;je--)if(!Dm(W.text.charCodeAt(je))){Qe=!1;break}if(Qe){me.push({fileName:W.fileName,textSpan:hc(Se.getStart(),ee.end),kind:"reference"}),ve++;continue}}me.push(r(ce[ve],W))}return me}function re(ae,W){const ce=[];for(;wT(ae.parent)&&ae.parent.elseStatement===ae;)ae=ae.parent;for(;;){const me=ae.getChildren(W);I(ce,me[0],99);for(let ve=me.length-1;ve>=0&&!I(ce,me[ve],91);ve--);if(!ae.elseStatement||!wT(ae.elseStatement))break;ae=ae.elseStatement}return ce}function ye(ae,W){return!!nr(ae.parent,ce=>M1(ce)?ce.label.escapedText===W:"quit")}})(K9||(K9={}))}});function X9(e){return!!e.sourceFile}function cZ(e,t){return Pbe(e,t)}function Pbe(e,t="",r){const i=new Map,o=ru(!!e);function s(){const k=Ro(i.keys()).filter(G=>G&&G.charAt(0)==="_").map(G=>{const V=i.get(G),H=[];return V.forEach((te,X)=>{X9(te)?H.push({name:X,scriptKind:te.sourceFile.scriptKind,refCount:te.languageServiceRefCount}):te.forEach((Y,P)=>H.push({name:X,scriptKind:P,refCount:Y.languageServiceRefCount}))}),H.sort((te,X)=>X.refCount-te.refCount),{bucket:G,sourceFiles:H}});return JSON.stringify(k,void 0,2)}function c(k){return typeof k.getCompilationSettings=="function"?k.getCompilationSettings():k}function f(k,G,V,H,te,X){const Y=zs(k,t,o),P=Y9(c(G));return d(k,Y,G,P,V,H,te,X)}function d(k,G,V,H,te,X,Y,P){return A(k,G,V,H,te,X,!0,Y,P)}function y(k,G,V,H,te,X){const Y=zs(k,t,o),P=Y9(c(G));return h(k,Y,G,P,V,H,te,X)}function h(k,G,V,H,te,X,Y,P){return A(k,G,c(V),H,te,X,!1,Y,P)}function E(k,G){const V=X9(k)?k:k.get(D.checkDefined(G,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return D.assert(G===void 0||!V||V.sourceFile.scriptKind===G,`Script kind should match provided ScriptKind:${G} and sourceFile.scriptKind: ${V==null?void 0:V.sourceFile.scriptKind}, !entry: ${!V}`),V}function A(k,G,V,H,te,X,Y,P,de){var re,ye,ae,W;P=f7(k,P);const ce=c(V),me=V===ce?void 0:V,ve=P===6?100:es(ce),Se=typeof de=="object"?de:{languageVersion:ve,impliedNodeFormat:me&&wF(G,(W=(ae=(ye=(re=me.getCompilerHost)==null?void 0:re.call(me))==null?void 0:ye.getModuleResolutionCache)==null?void 0:ae.call(ye))==null?void 0:W.getPackageJsonInfoCache(),me,ce),setExternalModuleIndicator:mO(ce)};Se.languageVersion=ve;const ee=i.size,Qe=Mbe(H,Se.impliedNodeFormat),je=SA(i,Qe,()=>new Map);if(bi){i.size>ee&&bi.instant(bi.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ce.configFilePath,key:Qe});const Me=!fd(G)&&af(i,(Ye,ze)=>ze!==Qe&&Ye.has(G)&&ze);Me&&bi.instant(bi.Phase.Session,"documentRegistryBucketOverlap",{path:G,key1:Me,key2:Qe})}const Ge=je.get(G);let qe=Ge&&E(Ge,P);if(!qe&&r){const Me=r.getDocument(Qe,G);Me&&(D.assert(Y),qe={sourceFile:Me,languageServiceRefCount:0},Oe())}if(qe)qe.sourceFile.version!==X&&(qe.sourceFile=PZ(qe.sourceFile,te,X,te.getChangeRange(qe.sourceFile.scriptSnapshot)),r&&r.setDocument(Qe,G,qe.sourceFile)),Y&&qe.languageServiceRefCount++;else{const Me=lB(k,te,Se,X,!1,P);r&&r.setDocument(Qe,G,Me),qe={sourceFile:Me,languageServiceRefCount:1},Oe()}return D.assert(qe.languageServiceRefCount!==0),qe.sourceFile;function Oe(){if(!Ge)je.set(G,qe);else if(X9(Ge)){const Me=new Map;Me.set(Ge.sourceFile.scriptKind,Ge),Me.set(P,qe),je.set(G,Me)}else Ge.set(P,qe)}}function L(k,G,V,H){const te=zs(k,t,o),X=Y9(G);return I(te,X,V,H)}function I(k,G,V,H){const te=D.checkDefined(i.get(Mbe(G,H))),X=te.get(k),Y=E(X,V);Y.languageServiceRefCount--,D.assert(Y.languageServiceRefCount>=0),Y.languageServiceRefCount===0&&(X9(X)?te.delete(k):(X.delete(V),X.size===1&&te.set(k,fn(X.values(),ml))))}function O(k,G){return Ro(i.entries(),([V,H])=>{const te=H.get(k),X=te&&E(te,G);return[V,X&&X.languageServiceRefCount]})}return{acquireDocument:f,acquireDocumentWithKey:d,updateDocument:y,updateDocumentWithKey:h,releaseDocument:L,releaseDocumentWithKey:I,getLanguageServiceRefCounts:O,reportStats:s,getKeyForCompilationSettings:Y9}}function Y9(e){return pX(e,F5)}function Mbe(e,t){return t?`${e}|${t}`:e}var NBe=C({"src/services/documentRegistry.ts"(){$r()}});function Fbe(e,t,r,i,o,s,c){const f=oO(i),d=ru(f),y=uZ(t,r,d,c),h=uZ(r,t,d,c);return gr.ChangeTracker.with({host:i,formatContext:o,preferences:s},E=>{PBe(e,E,y,t,r,i.getCurrentDirectory(),f),MBe(e,E,y,h,i,d)})}function uZ(e,t,r,i){const o=r(e);return c=>{const f=i&&i.tryGetSourcePosition({fileName:c,pos:0}),d=s(f?f.fileName:c);return f?d===void 0?void 0:OBe(f.fileName,d,c,r):d};function s(c){if(r(c)===o)return t;const f=Xq(c,o,r);return f===void 0?void 0:t+"/"+f}}function OBe(e,t,r,i){const o=XR(e,t,i);return dZ(hi(r),o)}function PBe(e,t,r,i,o,s,c){const{configFile:f}=e.getCompilerOptions();if(!f)return;const d=hi(f.fileName),y=tk(f);if(!y)return;fZ(y,(L,I)=>{switch(I){case"files":case"include":case"exclude":{if(h(L)||I!=="include"||!Gu(L.initializer))return;const k=ia(L.initializer.elements,V=>Vo(V)?V.text:void 0);if(k.length===0)return;const G=Ik(d,[],k,c,s);Mv(D.checkDefined(G.includeFilePattern),c).test(i)&&!Mv(D.checkDefined(G.includeFilePattern),c).test(o)&&t.insertNodeAfter(f,zo(L.initializer.elements),N.createStringLiteral(A(o)));return}case"compilerOptions":fZ(L.initializer,(O,k)=>{const G=GK(k);D.assert((G==null?void 0:G.type)!=="listOrElement"),G&&(G.isFilePath||G.type==="list"&&G.element.isFilePath)?h(O):k==="paths"&&fZ(O.initializer,V=>{if(Gu(V.initializer))for(const H of V.initializer.elements)E(H)})});return}});function h(L){const I=Gu(L.initializer)?L.initializer.elements:[L.initializer];let O=!1;for(const k of I)O=E(k)||O;return O}function E(L){if(!Vo(L))return!1;const I=dZ(d,L.text),O=r(I);return O!==void 0?(t.replaceRangeWithText(f,Gbe(L,f),A(O)),!0):!1}function A(L){return wm(d,L,!c)}}function MBe(e,t,r,i,o,s){const c=e.getSourceFiles();for(const f of c){const d=r(f.fileName),y=d??f.fileName,h=hi(y),E=i(f.fileName),A=E||f.fileName,L=hi(A),I=d!==void 0||E!==void 0;GBe(f,t,O=>{if(!Sf(O))return;const k=dZ(L,O),G=r(k);return G===void 0?void 0:_1(wm(h,G,s))},O=>{const k=e.getTypeChecker().getSymbolAtLocation(O);if(k!=null&&k.declarations&&k.declarations.some(V=>Mu(V)))return;const G=E!==void 0?Bbe(O,uw(O.text,A,e.getCompilerOptions(),o),r,c):BBe(k,O,f,e,o,r);return G!==void 0&&(G.updated||I&&Sf(O.text))?j1.updateModuleSpecifier(e.getCompilerOptions(),f,s(y),G.newFileName,i2(e,o),O.text):void 0})}}function FBe(e,t){return qo(Bi(e,t))}function dZ(e,t){return _1(FBe(e,t))}function BBe(e,t,r,i,o,s){var c;if(e){const f=nn(e.declarations,qi).fileName,d=s(f);return d===void 0?{newFileName:f,updated:!1}:{newFileName:d,updated:!0}}else{const f=Sp(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?(c=r.resolvedModules)==null?void 0:c.get(t.text,f):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,f);return Bbe(t,d,s,i.getSourceFiles())}}function Bbe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=f(t.resolvedModule.resolvedFileName);if(d)return d}const o=Ue(t.failedLookupLocations,s)||Sf(e.text)&&Ue(t.failedLookupLocations,c);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const y=r(d);return y&&nn(i,h=>h.fileName===y)?c(d):void 0}function c(d){return ic(d,"/package.json")?void 0:f(d)}function f(d){const y=r(d);return y&&{newFileName:y,updated:!0}}}function GBe(e,t,r,i){for(const o of e.referencedFiles||rt){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,Gbe(o,e),s)}}function Gbe(e,t){return g_(e.getStart(t)+1,e.end-1)}function fZ(e,t){if(Ls(e))for(const r of e.properties)qc(r)&&Vo(r.name)&&t(r,r.name.text)}var UBe=C({"src/services/getEditsForFileRename.ts"(){$r()}});function N6(e,t){return{kind:e,isCaseSensitive:t}}function Ube(e){const t=new Map,r=e.trim().split(".").map(i=>WBe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>VBe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>_Z(i,zo(r),t),patternContainsDots:r.length>1}}function VBe(e,t,r,i){if(!_Z(t,zo(r),i)||r.length-1>e.length)return;let s;for(let c=r.length-2,f=e.length-1;c>=0;c-=1,f-=1)s=Hbe(s,_Z(e[f],r[c],i));return s}function Vbe(e,t){let r=t.get(e);return r||t.set(e,r=Jbe(e)),r}function jbe(e,t,r){const i=zBe(e,t.textLowerCase);if(i===0)return N6(t.text.length===e.length?0:1,xa(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=Vbe(e,r);for(const s of o)if(pZ(e,s,t.text,!0))return N6(2,pZ(e,s,t.text,!1));if(t.text.length<e.length&&s2(e.charCodeAt(i)))return N6(2,!1)}else{if(e.indexOf(t.text)>0)return N6(2,!0);if(t.characterSpans.length>0){const o=Vbe(e,r),s=Wbe(e,o,t,!1)?!0:Wbe(e,o,t,!0)?!1:void 0;if(s!==void 0)return N6(3,s)}}}function _Z(e,t,r){if($9(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=jbe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=Hbe(o,jbe(e,s,r));return o}function Hbe(e,t){return fH([e,t],jBe)}function jBe(e,t){return e===void 0?1:t===void 0?-1:Ws(e.kind,t.kind)||s1(!e.isCaseSensitive,!t.isCaseSensitive)}function pZ(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&Ybe(0,o.length,s=>HBe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function HBe(e,t,r){return r?mZ(e)===mZ(t):e===t}function Wbe(e,t,r,i){const o=r.characterSpans;let s=0,c=0;for(;;){if(c===o.length)return!0;if(s===t.length)return!1;let f=t[s],d=!1;for(;c<o.length;c++){const y=o[c];if(d&&(!s2(r.text.charCodeAt(o[c-1].start))||!s2(r.text.charCodeAt(o[c].start)))||!pZ(e,f,r.text,i,y))break;d=!0,f=wc(f.start+y.length,f.length-y.length)}s++}}function WBe(e){return{totalTextChunk:gZ(e),subWordTextChunks:JBe(e)}}function s2(e){if(e>=65&&e<=90)return!0;if(e<127||!UM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function zbe(e){if(e>=97&&e<=122)return!0;if(e<127||!UM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function zBe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if($9(t,(o,s)=>mZ(e.charCodeAt(s+i))===o))return i;return-1}function mZ(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function hZ(e){return e>=48&&e<=57}function qBe(e){return s2(e)||zbe(e)||hZ(e)||e===95||e===36}function JBe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);qBe(s)?(i===0&&(r=o),i++):i>0&&(t.push(gZ(e.substr(r,i))),i=0)}return i>0&&t.push(gZ(e.substr(r,i))),t}function gZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:qbe(e)}}function qbe(e){return Kbe(e,!1)}function Jbe(e){return Kbe(e,!0)}function Kbe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=hZ(e.charCodeAt(o-1)),c=hZ(e.charCodeAt(o)),f=XBe(e,t,o),d=t&&KBe(e,o,i);(yZ(e.charCodeAt(o-1))||yZ(e.charCodeAt(o))||s!==c||f||d)&&(Xbe(e,i,o)||r.push(wc(i,o-i)),i=o)}return Xbe(e,i,e.length)||r.push(wc(i,e.length-i)),r}function yZ(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 Xbe(e,t,r){return $9(e,i=>yZ(i)&&i!==95,t,r)}function KBe(e,t,r){return t!==r&&t+1<e.length&&s2(e.charCodeAt(t))&&zbe(e.charCodeAt(t+1))&&$9(e,s2,r,t)}function XBe(e,t,r){const i=s2(e.charCodeAt(r-1));return s2(e.charCodeAt(r))&&(!t||!i)}function Ybe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function $9(e,t,r=0,i=e.length){return Ybe(r,i,o=>t(e.charCodeAt(o),o))}var Q9,YBe=C({"src/services/patternMatcher.ts"(){$r(),Q9=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(Q9||{})}});function $be(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,c,f,d=0,y=!1;function h(){return c=f,f=Su.scan(),f===18?d++:f===19&&d--,f}function E(){const X=Su.getTokenValue(),Y=Su.getTokenPos();return{fileName:X,pos:Y,end:Y+X.length}}function A(){s||(s=[]),s.push({ref:E(),depth:d})}function L(){o.push(E()),I()}function I(){d===0&&(y=!0)}function O(){let X=Su.getToken();return X===136?(X=h(),X===142&&(X=h(),X===10&&A()),!0):!1}function k(){if(c===24)return!1;let X=Su.getToken();if(X===100){if(X=h(),X===20){if(X=h(),X===10||X===14)return L(),!0}else{if(X===10)return L(),!0;if(X===154&&Su.lookAhead(()=>{const P=Su.scan();return P!==158&&(P===41||P===18||P===79||Ad(P))})&&(X=h()),X===79||Ad(X))if(X=h(),X===158){if(X=h(),X===10)return L(),!0}else if(X===63){if(V(!0))return!0}else if(X===27)X=h();else return!0;if(X===18){for(X=h();X!==19&&X!==1;)X=h();X===19&&(X=h(),X===158&&(X=h(),X===10&&L()))}else X===41&&(X=h(),X===128&&(X=h(),(X===79||Ad(X))&&(X=h(),X===158&&(X=h(),X===10&&L()))))}return!0}return!1}function G(){let X=Su.getToken();if(X===93){if(I(),X=h(),X===154&&Su.lookAhead(()=>{const P=Su.scan();return P===41||P===18})&&(X=h()),X===18){for(X=h();X!==19&&X!==1;)X=h();X===19&&(X=h(),X===158&&(X=h(),X===10&&L()))}else if(X===41)X=h(),X===158&&(X=h(),X===10&&L());else if(X===100&&(X=h(),X===154&&Su.lookAhead(()=>{const P=Su.scan();return P===79||Ad(P)})&&(X=h()),(X===79||Ad(X))&&(X=h(),X===63&&V(!0))))return!0;return!0}return!1}function V(X,Y=!1){let P=X?h():Su.getToken();return P===147?(P=h(),P===20&&(P=h(),(P===10||Y&&P===14)&&L()),!0):!1}function H(){let X=Su.getToken();if(X===79&&Su.getTokenValue()==="define"){if(X=h(),X!==20)return!0;if(X=h(),X===10||X===14)if(X=h(),X===27)X=h();else return!0;if(X!==22)return!0;for(X=h();X!==23&&X!==1;)(X===10||X===14)&&L(),X=h();return!0}return!1}function te(){for(Su.setText(e),h();Su.getToken()!==1;){if(Su.getToken()===15){const X=[Su.getToken()];e:for(;Ae(X);){const Y=Su.scan();switch(Y){case 1:break e;case 100:k();break;case 15:X.push(Y);break;case 18:Ae(X)&&X.push(Y);break;case 19:Ae(X)&&(tl(X)===15?Su.reScanTemplateToken(!1)===17&&X.pop():X.pop());break}}h()}O()||k()||G()||r&&(V(!1,!0)||H())||h()}Su.setText(void 0)}if(t&&te(),NK(i,e),OK(i,oo),y){if(s)for(const X of s)o.push(X.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let X;if(s)for(const Y of s)Y.depth===0?(X||(X=[]),X.push(Y.ref.fileName)):o.push(Y.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:X}}}var $Be=C({"src/services/preProcess.ts"(){$r()}});function Qbe(e){const t=ru(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:f,tryGetGeneratedPosition:d,toLineColumnOffset:A,clearCache:L};function s(I){return zs(I,r,t)}function c(I,O){const k=s(I),G=o.get(k);if(G)return G;let V;if(e.getDocumentPositionMapper)V=e.getDocumentPositionMapper(I,O);else if(e.readFile){const H=E(I);V=H&&Zbe({getSourceFileLike:E,getCanonicalFileName:t,log:te=>e.log(te)},I,Uge(H.text,og(H)),te=>!e.fileExists||e.fileExists(te)?e.readFile(te):void 0)}return o.set(k,V||pF),V||pF}function f(I){if(!fd(I.fileName)||!y(I.fileName))return;const k=c(I.fileName).getSourcePosition(I);return!k||k===I?void 0:f(k)||k}function d(I){if(fd(I.fileName))return;const O=y(I.fileName);if(!O)return;const k=e.getProgram();if(k.isSourceOfProjectReferenceRedirect(O.fileName))return;const G=k.getCompilerOptions(),V=qs(G),H=V?Gd(V)+".d.ts":vq(I.fileName,k.getCompilerOptions(),r,k.getCommonSourceDirectory(),t);if(H===void 0)return;const te=c(H,I.fileName).getGeneratedPosition(I);return te===I?void 0:te}function y(I){const O=e.getProgram();if(!O)return;const k=s(I),G=O.getSourceFileByPath(k);return G&&G.resolvedPath===k?G:void 0}function h(I){const O=s(I),k=i.get(O);if(k!==void 0)return k||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(O)){i.set(O,!1);return}const G=e.readFile(O),V=G?QBe(G):!1;return i.set(O,V),V||void 0}function E(I){return e.getSourceFileLike?e.getSourceFileLike(I):y(I)||h(I)}function A(I,O){return E(I).getLineAndCharacterOfPosition(O)}function L(){i.clear(),o.clear()}}function Zbe(e,t,r,i){let o=Vge(r);if(o){const f=t1e.exec(o);if(f){if(f[1]){const d=f[1];return e1e(e,a_e($c,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const c=o&&Pa(o,hi(t));for(const f of s){const d=Pa(f,hi(t)),y=i(d,c);if(Ha(y))return e1e(e,y,d);if(y!==void 0)return y||void 0}}function e1e(e,t,r){const i=jX(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Ha)))return qge(e,i,r)}function QBe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return eN(og(this),r)}}}var t1e,ZBe=C({"src/services/sourcemaps.ts"(){$r(),$r(),t1e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function vZ(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||Sc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(W0e(t)||LQ(t.getCompilerOptions()))&&eGe(e)&&i.push(Nr(iGe(e.commonJsModuleIndicator),_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const c=td(e);if(eB.clear(),f(e),AT(t.getCompilerOptions()))for(const d of e.imports){const y=VN(d),h=tGe(y);if(!h)continue;const E=VA(e,d.text,Sp(e,d)),A=E&&t.getSourceFile(E.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&Gl(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&i.push(Nr(h,_.Import_may_be_converted_to_a_default_import))}return Ti(i,e.bindSuggestionDiagnostics),Ti(i,t.getSuggestionDiagnostics(e,r)),i.sort((d,y)=>d.start-y.start);function f(d){if(c)oGe(d,o)&&i.push(Nr(Ki(d.parent)?d.parent.name:d,_.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(uc(d)&&d.parent===e&&d.declarationList.flags&2&&d.declarationList.declarations.length===1){const y=d.declarationList.declarations[0].initializer;y&&xd(y,!0)&&i.push(Nr(y,_.require_call_may_be_converted_to_an_import))}Wu.parameterShouldGetTypeFromJSDoc(d)&&i.push(Nr(d.name||d,_.JSDoc_types_may_be_moved_to_TypeScript_types))}TZ(d)&&nGe(d,o,i),d.forEachChild(f)}}function eGe(e){return e.statements.some(t=>{switch(t.kind){case 240:return t.declarationList.declarations.some(r=>!!r.initializer&&xd(n1e(r.initializer),!0));case 241:{const{expression:r}=t;if(!br(r))return xd(r,!0);const i=Ll(r);return i===1||i===2}default:return!1}})}function n1e(e){return Fr(e)?n1e(e.expression):e}function tGe(e){switch(e.kind){case 269:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===271&&Vo(r)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function nGe(e,t,r){rGe(e,t)&&!eB.has(o1e(e))&&r.push(Nr(!e.name&&Ki(e.parent)&&He(e.parent.name)?e.parent.name:e,_.This_may_be_converted_to_an_async_function))}function rGe(e,t){return!oC(e)&&e.body&&lo(e.body)&&aGe(e.body,t)&&bZ(e,t)}function bZ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function iGe(e){return br(e)?e.left:e}function aGe(e,t){return!!_T(e,r=>Z9(r,t))}function Z9(e,t){return Ep(e)&&!!e.expression&&EZ(e.expression,t)}function EZ(e,t){if(!r1e(e)||!i1e(e)||!e.arguments.every(i=>a1e(i,t)))return!1;let r=e.expression.expression;for(;r1e(r)||Fr(r);)if(no(r)){if(!i1e(r)||!r.arguments.every(i=>a1e(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function r1e(e){return no(e)&&(d6(e,"then")||d6(e,"catch")||d6(e,"finally"))}function i1e(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||kt(e.arguments,i=>i.kind===104||He(i)&&i.text==="undefined")}function a1e(e,t){switch(e.kind){case 259:case 215:if(jc(e)&1)return!1;case 216:eB.set(o1e(e),!0);case 104:return!0;case 79:case 208:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||kt(lf(i,t).declarations,o=>Ka(o)||wv(o)&&!!o.initializer&&Ka(o.initializer)):!1}default:return!1}}function o1e(e){return`${e.pos.toString()}:${e.end.toString()}`}function oGe(e,t){var r,i,o,s;if(Bs(e)){if(Ki(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(o=c.members)!=null&&o.size))}return yc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function TZ(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var eB,sGe=C({"src/services/suggestionDiagnostics.ts"(){$r(),eB=new Map}});function s1e(e,t){const r=[],i=t.compilerOptions?SZ(t.compilerOptions,r):{},o=sB();for(const A in o)Ps(o,A)&&i[A]===void 0&&(i[A]=o[A]);for(const A of sX)i.verbatimModuleSyntax&&l1e.has(A.name)||(i[A.name]=A.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=tb(i),c={getSourceFile:A=>A===qo(f)?d:void 0,writeFile:(A,L)=>{cc(A,".map")?(D.assertEqual(h,void 0,"Unexpected multiple source map outputs, file:",A),h=L):(D.assertEqual(y,void 0,"Unexpected multiple outputs, file:",A),y=L)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:A=>A,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:A=>A===f,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},f=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),d=f8(f,e,{languageVersion:es(i),impliedNodeFormat:wF(zs(f,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:mO(i)});t.moduleName&&(d.moduleName=t.moduleName),t.renamedDependencies&&(d.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let y,h;const E=DF([f],i,c);return t.reportDiagnostics&&(Ti(r,E.getSyntacticDiagnostics(d)),Ti(r,E.getOptionsDiagnostics())),E.emit(void 0,void 0,void 0,void 0,t.transformers),y===void 0?D.fail("Output generation failed"):{outputText:y,diagnostics:r,sourceMapText:h}}function lGe(e,t,r,i,o){const s=s1e(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Ti(i,s.diagnostics),s.outputText}function SZ(e,t){xZ=xZ||lr(bg,r=>typeof r.type=="object"&&!af(r.type,i=>typeof i!="number")),e=G0e(e);for(const r of xZ){if(!Ps(e,r.name))continue;const i=e[r.name];Ha(i)?e[r.name]=k5(r,i,t):af(r.type,o=>o===i)||t.push(MK(r))}return e}var l1e,xZ,cGe=C({"src/services/transpile.ts"(){$r(),l1e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function c1e(e,t,r,i,o,s){const c=Ube(i);if(!c)return rt;const f=[];for(const d of e)r.throwIfCancellationRequested(),!(s&&d.isDeclarationFile)&&d.getNamedDeclarations().forEach((y,h)=>{uGe(c,h,y,t,d.fileName,f)});return f.sort(pGe),(o===void 0?f:f.slice(0,o)).map(mGe)}function uGe(e,t,r,i,o,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c){for(const f of r)if(dGe(f,i))if(e.patternContainsDots){const d=e.getFullMatch(_Ge(f),t);d&&s.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:f})}else s.push({name:t,fileName:o,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:f})}}function dGe(e,t){switch(e.kind){case 270:case 273:case 268:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function fGe(e,t){const r=ka(e);return!!r&&(u1e(r,t)||r.kind===164&&AZ(r.expression,t))}function AZ(e,t){return u1e(e,t)||Fr(e)&&(t.push(e.name.text),!0)&&AZ(e.expression,t)}function u1e(e,t){return U_(e)&&(t.push(V_(e)),!0)}function _Ge(e){const t=[],r=ka(e);if(r&&r.kind===164&&!AZ(r.expression,t))return rt;t.shift();let i=KT(e);for(;i;){if(!fGe(i,t))return rt;i=KT(i)}return t.reverse()}function pGe(e,t){return Ws(e.matchKind,t.matchKind)||DR(e.name,t.name)}function mGe(e){const t=e.declaration,r=KT(t),i=r&&ka(r);return{name:e.name,kind:X1(t),kindModifiers:ww(t),matchKind:Q9[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:ad(t),containerName:i?i.text:"",containerKind:i?X1(r):""}}var hGe=C({"src/services/navigateTo.ts"(){$r()}}),d1e={};ne(d1e,{getNavigateToItems:()=>c1e});var f1e=C({"src/services/_namespaces/ts.NavigateTo.ts"(){hGe()}});function _1e(e,t){iB=t,Gw=e;try{return Vt(EGe(g1e(e)),TGe)}finally{m1e()}}function p1e(e,t){iB=t,Gw=e;try{return C1e(g1e(e))}finally{m1e()}}function m1e(){Gw=void 0,iB=void 0,Uw=[],Sg=void 0,aB=[]}function O6(e){return sL(e.getText(Gw))}function tB(e){return e.node.kind}function h1e(e,t){e.children?e.children.push(t):e.children=[t]}function g1e(e){D.assert(!Uw.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Sg=t;for(const r of e.statements)ZT(r);return Xv(),D.assert(!Sg&&!Uw.length),t}function db(e,t){h1e(Sg,CZ(e,t))}function CZ(e,t){return{node:e,name:t||(vu(e)||vt(e)?ka(e):void 0),additionalNodes:void 0,parent:Sg,children:void 0,indent:Sg.indent+1}}function y1e(e){l2||(l2=new Map),l2.set(e,!0)}function v1e(e){for(let t=0;t<e;t++)Xv()}function b1e(e,t){const r=[];for(;!U_(t);){const i=MN(t),o=pg(t);t=t.expression,!(o==="prototype"||Ni(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];fb(e,o)}return[r.length-1,r[0]]}function fb(e,t){const r=CZ(e,t);h1e(Sg,r),Uw.push(Sg),OZ.push(l2),l2=void 0,Sg=r}function Xv(){Sg.children&&(nB(Sg.children,Sg),kZ(Sg.children)),Sg=Uw.pop(),l2=OZ.pop()}function Yv(e,t,r){fb(e,r),ZT(t),Xv()}function E1e(e){e.initializer&&xGe(e.initializer)?(fb(e),Ma(e.initializer,ZT),Xv()):Yv(e,e.initializer)}function LZ(e){return!Nv(e)||e.kind!==223&&Fr(e.name.expression)&&He(e.name.expression.expression)&&Mr(e.name.expression.expression)==="Symbol"}function ZT(e){if(iB.throwIfCancellationRequested(),!(!e||ox(e)))switch(e.kind){case 173:const t=e;Yv(t,t.body);for(const c of t.parameters)tf(c,t)&&db(c);break;case 171:case 174:case 175:case 170:LZ(e)&&Yv(e,e.body);break;case 169:LZ(e)&&E1e(e);break;case 168:LZ(e)&&db(e);break;case 270:const r=e;r.name&&db(r.name);const{namedBindings:i}=r;if(i)if(i.kind===271)db(i);else for(const c of i.elements)db(c);break;case 300:Yv(e,e.name);break;case 301:const{expression:o}=e;He(o)?db(e,o):db(e);break;case 205:case 299:case 257:{const c=e;Xa(c.name)?ZT(c.name):E1e(c);break}case 259:const s=e.name;s&&He(s)&&y1e(s.text),Yv(e,e.body);break;case 216:case 215:Yv(e,e.body);break;case 263:fb(e);for(const c of e.members)SGe(c)||db(c);Xv();break;case 260:case 228:case 261:fb(e);for(const c of e.members)ZT(c);Xv();break;case 264:Yv(e,I1e(e).body);break;case 274:{const c=e.expression,f=Ls(c)||no(c)?c:Js(c)||Bs(c)?c.body:void 0;f?(fb(e),ZT(f),Xv()):db(e);break}case 278:case 268:case 178:case 176:case 177:case 262:db(e);break;case 210:case 223:{const c=Ll(e);switch(c){case 1:case 2:Yv(e,e.right);return;case 6:case 3:{const f=e,d=f.left,y=c===3?d.expression:d;let h=0,E;He(y.expression)?(y1e(y.expression.text),E=y.expression):[h,E]=b1e(f,y.expression),c===6?Ls(f.right)&&f.right.properties.length>0&&(fb(f,E),Ma(f.right,ZT),Xv()):Bs(f.right)||Js(f.right)?Yv(e,f.right,E):(fb(f,E),Yv(e,f.right,d.name),Xv()),v1e(h);return}case 7:case 9:{const f=e,d=c===7?f.arguments[0]:f.arguments[0].expression,y=f.arguments[1],[h,E]=b1e(e,d);fb(e,E),fb(e,ht(N.createIdentifier(y.text),y)),ZT(e.arguments[2]),Xv(),Xv(),v1e(h);return}case 5:{const f=e,d=f.left,y=d.expression;if(He(y)&&pg(d)!=="prototype"&&l2&&l2.has(y.text)){Bs(f.right)||Js(f.right)?Yv(e,f.right,y):gT(d)&&(fb(f,y),Yv(f.left,f.right,MN(d)),Xv());return}break}case 4:case 0:case 8:break;default:D.assertNever(c)}}default:xf(e)&&Ue(e.jsDoc,c=>{Ue(c.tags,f=>{h_(f)&&db(f)})}),Ma(e,ZT)}}function nB(e,t){const r=new Map;Ri(e,(i,o)=>{const s=i.name||ka(i.node),c=s&&O6(s);if(!c)return!0;const f=r.get(c);if(!f)return r.set(c,i),!0;if(f instanceof Array){for(const d of f)if(T1e(d,i,o,t))return!1;return f.push(i),!0}else{const d=f;return T1e(d,i,o,t)?!1:(r.set(c,[d,i]),!0)}})}function gGe(e,t,r,i){function o(f){return Bs(f)||yc(f)||Ki(f)}const s=br(t.node)||no(t.node)?Ll(t.node):0,c=br(e.node)||no(e.node)?Ll(e.node):0;if(lL[s]&&lL[c]||o(e.node)&&lL[s]||o(t.node)&&lL[c]||Nc(e.node)&&IZ(e.node)&&lL[s]||Nc(t.node)&&lL[c]||Nc(e.node)&&IZ(e.node)&&o(t.node)||Nc(t.node)&&o(e.node)&&IZ(e.node)){let f=e.additionalNodes&&tl(e.additionalNodes)||e.node;if(!Nc(e.node)&&!Nc(t.node)||o(e.node)||o(t.node)){const y=o(e.node)?e.node:o(t.node)?t.node:void 0;if(y!==void 0){const h=ht(N.createConstructorDeclaration(void 0,[],void 0),y),E=CZ(h);E.indent=e.indent+1,E.children=e.node===y?e.children:t.children,e.children=e.node===y?ba([E],t.children||[t]):ba(e.children||[{...e}],[E])}else(e.children||t.children)&&(e.children=ba(e.children||[{...e}],t.children||[t]),e.children&&(nB(e.children,e),kZ(e.children)));f=e.node=ht(N.createClassDeclaration(void 0,e.name||N.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ba(e.children,t.children),e.children&&nB(e.children,e);const d=t.node;return i.children[r-1].node.end===f.end?ht(f,{pos:f.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ht(N.createClassDeclaration(void 0,e.name||N.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function T1e(e,t,r,i){return gGe(e,t,r,i)?!0:yGe(e.node,t.node,i)?(vGe(e,t),!0):!1}function yGe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(S1e(e,r)&&S1e(t,r)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return Ja(e)===Ja(t);case 264:return x1e(e,t)&&RZ(e)===RZ(t);default:return!0}}function IZ(e){return!!(e.flags&8)}function S1e(e,t){const r=rm(e.parent)?e.parent.parent:e.parent;return r===t.node||jr(t.additionalNodes,r)}function x1e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==264||x1e(e.body,t.body))}function vGe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ba(e.children,t.children),e.children&&(nB(e.children,e),kZ(e.children))}function kZ(e){e.sort(bGe)}function bGe(e,t){return DR(A1e(e.node),A1e(t.node))||Ws(tB(e),tB(t))}function A1e(e){if(e.kind===264)return L1e(e);const t=ka(e);if(t&&yl(t)){const r=C1(t);return r&&ta(r)}switch(e.kind){case 215:case 216:case 228:return w1e(e);default:return}}function wZ(e,t){if(e.kind===264)return sL(L1e(e));if(t){const r=He(t)?t.text:cl(t)?`[${O6(t.argumentExpression)}]`:O6(t);if(r.length>0)return sL(r)}switch(e.kind){case 308:const r=e;return Zl(r)?`"${bx(mu(Gd(qo(r.fileName))))}"`:"<global>";case 274:return Gl(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return Ov(e)&1024?"default":w1e(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function EGe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(tB(o)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return s(o);default:return!1}function s(c){if(!c.node.body)return!1;switch(tB(c.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function C1e(e){return{text:wZ(e.node,e.name),kind:X1(e.node),kindModifiers:k1e(e.node),spans:DZ(e),nameSpan:e.name&&NZ(e.name),childItems:Vt(e.children,C1e)}}function TGe(e){return{text:wZ(e.node,e.name),kind:X1(e.node),kindModifiers:k1e(e.node),spans:DZ(e),childItems:Vt(e.children,t)||aB,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:wZ(r.node,r.name),kind:X1(r.node),kindModifiers:ww(r.node),spans:DZ(r),childItems:aB,indent:0,bolded:!1,grayed:!1}}}function DZ(e){const t=[NZ(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(NZ(r));return t}function L1e(e){return Mu(e)?xc(e.name):RZ(e)}function RZ(e){const t=[V_(e.name)];for(;e.body&&e.body.kind===264;)e=e.body,t.push(V_(e.name));return t.join(".")}function I1e(e){return e.body&&Jl(e.body)?I1e(e.body):e}function SGe(e){return!e.name||e.name.kind===164}function NZ(e){return e.kind===308?Jv(e):ad(e,Gw)}function k1e(e){return e.parent&&e.parent.kind===257&&(e=e.parent),ww(e)}function w1e(e){const{parent:t}=e;if(e.name&&vN(e.name)>0)return sL(ws(e.name));if(Ki(t))return sL(ws(t.name));if(br(t)&&t.operatorToken.kind===63)return O6(t.left).replace(R1e,"");if(qc(t))return O6(t.name);if(Ov(e)&1024)return"default";if(di(e))return"<class>";if(no(t)){let r=D1e(t.expression);if(r!==void 0){if(r=sL(r),r.length>rB)return`${r} callback`;const i=sL(ia(t.arguments,o=>xs(o)?o.getText(Gw):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function D1e(e){if(He(e))return e.text;if(Fr(e)){const t=D1e(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function xGe(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}function sL(e){return e=e.length>rB?e.substring(0,rB)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var R1e,rB,iB,Gw,Uw,Sg,OZ,l2,aB,lL,AGe=C({"src/services/navigationBar.ts"(){$r(),R1e=/\s+/g,rB=150,Uw=[],OZ=[],aB=[],lL={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),N1e={};ne(N1e,{getNavigationBarItems:()=>_1e,getNavigationTree:()=>p1e});var O1e=C({"src/services/_namespaces/ts.NavigationBar.ts"(){AGe()}});function P1e(e,t,r,i){const o=cN(e)?new uB(e,t,r):e===79?new fB(79,t,r):e===80?new _B(80,t,r):new BZ(e,t,r);return o.parent=i,o.flags=i.flags&50720768,o}function CGe(e,t){if(!cN(e.kind))return rt;const r=[];if(hz(e))return e.forEachChild(c=>{r.push(c)}),r;Su.setText((t||e.getSourceFile()).text);let i=e.pos;const o=c=>{P6(r,i,c.pos,e),r.push(c),i=c.end},s=c=>{P6(r,i,c.pos,e),r.push(LGe(c,e)),i=c.end};return Ue(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),P6(r,i,e.end,e),Su.setText(void 0),r}function P6(e,t,r,i){for(Su.setTextPos(t);t<r;){const o=Su.scan(),s=Su.getTextPos();if(s<=r){if(o===79){if(z_e(i))continue;D.fail(`Did not expect ${D.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(P1e(o,t,s,i))}if(t=s,o===1)break}}function LGe(e,t){const r=P1e(354,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)P6(r._children,i,o.pos,t),r._children.push(o),i=o.end;return P6(r._children,i,e.end,t),r}function M1e(e){return m1(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function oB(e,t){if(!e)return rt;let r=pb.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(M1e))){const i=new Set;for(const o of e){const s=F1e(t,o,c=>{var f;if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualJsDocTags(o,t):((f=c.declarations)==null?void 0:f.length)===1?c.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function M6(e,t){if(!e)return rt;let r=pb.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(M1e))){const i=new Set;for(const o of e){const s=F1e(t,o,c=>{if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualDocumentationComment(o,t):c.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(aL(),r))}}return r}function F1e(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===173?t.parent.parent:t.parent;if(!o)return;const s=gc(t);return Kt(sk(o),c=>{const f=e.getTypeAtLocation(c),d=s&&f.symbol?e.getTypeOfSymbol(f.symbol):f,y=e.getPropertyOfType(d,t.symbol.name);return y?r(y):void 0})}function IGe(){return{getNodeConstructor:()=>uB,getTokenConstructor:()=>BZ,getIdentifierConstructor:()=>fB,getPrivateIdentifierConstructor:()=>_B,getSourceFileConstructor:()=>q1e,getSymbolConstructor:()=>H1e,getTypeConstructor:()=>W1e,getSignatureConstructor:()=>z1e,getSourceMapSourceConstructor:()=>J1e}}function F6(e){let t=!0;for(const i in e)if(Ps(e,i)&&!B1e(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Ps(e,i)){const o=B1e(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function B1e(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function G1e(e){return e?Vt(e,t=>t.text).join(""):""}function sB(){return{target:1,jsx:1}}function U1e(){return Wu.getSupportedErrorCodes()}function V1e(e,t,r){e.version=r,e.scriptSnapshot=t}function lB(e,t,r,i,o,s){const c=f8(e,g9(t),r,o,s);return V1e(c,t,i),c}function PZ(e,t,r,i,o){if(i&&r!==e.version){let c;const f=i.span.start!==0?e.text.substr(0,i.span.start):"",d=iu(i.span)!==e.text.length?e.text.substr(iu(i.span)):"";if(i.newLength===0)c=f&&d?f+d:f||d;else{const h=t.getText(i.span.start,i.span.start+i.newLength);c=f&&d?f+h+d:f?f+h:h+d}const y=RK(e,c,i,o);return V1e(y,t,r),y.nameTable=void 0,e!==y&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),y}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return lB(e.fileName,t,s,r,!0,e.scriptKind)}function j1e(e,t=cZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new K1e(e);let c,f,d=0;const y=e.getCancellationToken?new Y1e(e.getCancellationToken()):X1e,h=e.getCurrentDirectory();y_e((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function E(it){e.log&&e.log(it)}const A=oO(e),L=ru(A),I=Qbe({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>h,getProgram:G,fileExists:Go(e,e.fileExists),readFile:Go(e,e.readFile),getDocumentPositionMapper:Go(e,e.getDocumentPositionMapper),getSourceFileLike:Go(e,e.getSourceFileLike),log:E});function O(it){const K=c.getSourceFile(it);if(!K){const Pe=new Error(`Could not find source file: '${it}'.`);throw Pe.ProgramFiles=c.getSourceFiles().map(Z=>Z.fileName),Pe}return K}function k(){var it,K,Pe;if(D.assert(o!==2),e.getProjectVersion){const _i=e.getProjectVersion();if(_i){if(f===_i&&!((it=e.hasChangedAutomaticTypeDirectiveNames)!=null&&it.call(e)))return;f=_i}}const Z=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Z&&(E("TypeRoots version has changed; provide new program"),c=void 0,d=Z);const Re=e.getScriptFileNames().slice(),q=e.getCompilationSettings()||sB(),Rt=e.hasInvalidatedResolutions||a1,gt=Go(e,e.hasChangedAutomaticTypeDirectiveNames),ft=(K=e.getProjectReferences)==null?void 0:K.call(e);let _n,$n={getSourceFile:Xr,getSourceFileByPath:ss,getCancellationToken:()=>y,getCanonicalFileName:L,useCaseSensitiveFileNames:()=>A,getNewLine:()=>tb(q),getDefaultLibFileName:_i=>e.getDefaultLibFileName(_i),writeFile:oo,getCurrentDirectory:()=>h,fileExists:_i=>e.fileExists(_i),readFile:_i=>e.readFile&&e.readFile(_i),getSymlinkCache:Go(e,e.getSymlinkCache),realpath:Go(e,e.realpath),directoryExists:_i=>Qp(_i,e),getDirectories:_i=>e.getDirectories?e.getDirectories(_i):[],readDirectory:(_i,ua,wn,fa,ec)=>(D.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(_i,ua,wn,fa,ec)),onReleaseOldSourceFile:Hi,onReleaseParsedCommandLine:ca,hasInvalidatedResolutions:Rt,hasChangedAutomaticTypeDirectiveNames:gt,trace:Go(e,e.trace),resolveModuleNames:Go(e,e.resolveModuleNames),getModuleResolutionCache:Go(e,e.getModuleResolutionCache),createHash:Go(e,e.createHash),resolveTypeReferenceDirectives:Go(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Go(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Go(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:Go(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:To};const oi=$n.getSourceFile,{getSourceFileWithCache:Ai}=Y8($n,_i=>zs(_i,h,L),(..._i)=>oi.call($n,..._i));$n.getSourceFile=Ai,(Pe=e.setCompilerHost)==null||Pe.call(e,$n);const Ci={useCaseSensitiveFileNames:A,fileExists:_i=>$n.fileExists(_i),readFile:_i=>$n.readFile(_i),readDirectory:(..._i)=>$n.readDirectory(..._i),trace:$n.trace,getCurrentDirectory:$n.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:oo},ji=t.getKeyForCompilationSettings(q);if(DY(c,Re,q,(_i,ua)=>e.getScriptVersion(ua),_i=>$n.fileExists(_i),Rt,gt,To,ft))return;c=DF({rootNames:Re,options:q,host:$n,oldProgram:c,projectReferences:ft}),$n=void 0,_n=void 0,I.clearCache(),c.getTypeChecker();return;function To(_i){const ua=zs(_i,h,L),wn=_n==null?void 0:_n.get(ua);if(wn!==void 0)return wn||void 0;const fa=e.getParsedCommandLine?e.getParsedCommandLine(_i):io(_i);return(_n||(_n=new Map)).set(ua,fa||!1),fa}function io(_i){const ua=Xr(_i,100);if(ua)return ua.path=zs(_i,h,L),ua.resolvedPath=ua.path,ua.originalFileName=ua.fileName,y8(ua,Ci,Pa(hi(_i),h),void 0,Pa(_i,h))}function ca(_i,ua,wn){var fa;e.getParsedCommandLine?(fa=e.onReleaseParsedCommandLine)==null||fa.call(e,_i,ua,wn):ua&&Hi(ua.sourceFile,wn)}function Hi(_i,ua){const wn=t.getKeyForCompilationSettings(ua);t.releaseDocumentWithKey(_i.resolvedPath,wn,_i.scriptKind,_i.impliedNodeFormat)}function Xr(_i,ua,wn,fa){return ss(_i,zs(_i,h,L),ua,wn,fa)}function ss(_i,ua,wn,fa,ec){D.assert($n,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const rl=e.getScriptSnapshot(_i);if(!rl)return;const Ul=FQ(_i,e),Xl=e.getScriptVersion(_i);if(!ec){const Vl=c&&c.getSourceFileByPath(ua);if(Vl){if(Ul===Vl.scriptKind)return t.updateDocumentWithKey(_i,ua,e,ji,rl,Xl,Ul,wn);t.releaseDocumentWithKey(Vl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Vl.scriptKind,Vl.impliedNodeFormat)}}return t.acquireDocumentWithKey(_i,ua,e,ji,rl,Xl,Ul,wn)}}function G(){if(o===2){D.assert(c===void 0);return}return k(),c}function V(){var it;return(it=e.getPackageJsonAutoImportProvider)==null?void 0:it.call(e)}function H(it,K){const Pe=c.getTypeChecker(),Z=Re();if(!Z)return!1;for(const Rt of it)for(const gt of Rt.references){const ft=q(gt);if(D.assertIsDefined(ft),K.has(gt)||ul.isDeclarationOfSymbol(ft,Z)){K.add(gt),gt.isDefinition=!0;const _n=RQ(gt,I,Go(e,e.fileExists));_n&&K.add(_n)}else gt.isDefinition=!1}return!0;function Re(){for(const Rt of it)for(const gt of Rt.references){if(K.has(gt)){const _n=q(gt);return D.assertIsDefined(_n),Pe.getSymbolAtLocation(_n)}const ft=RQ(gt,I,Go(e,e.fileExists));if(ft&&K.has(ft)){const _n=q(ft);if(_n)return Pe.getSymbolAtLocation(_n)}}}function q(Rt){const gt=c.getSourceFile(Rt.fileName);if(!gt)return;const ft=Df(gt,Rt.textSpan.start);return ul.Core.getAdjustedNode(ft,{use:ul.FindReferencesUse.References})}}function te(){c=void 0}function X(){if(c){const it=t.getKeyForCompilationSettings(c.getCompilerOptions());Ue(c.getSourceFiles(),K=>t.releaseDocumentWithKey(K.resolvedPath,it,K.scriptKind,K.impliedNodeFormat)),c=void 0}e=void 0}function Y(it){return k(),c.getSyntacticDiagnostics(O(it),y).slice()}function P(it){k();const K=O(it),Pe=c.getSemanticDiagnostics(K,y);if(!z_(c.getCompilerOptions()))return Pe.slice();const Z=c.getDeclarationDiagnostics(K,y);return[...Pe,...Z]}function de(it){return k(),vZ(O(it),c,y)}function re(){return k(),[...c.getOptionsDiagnostics(y),...c.getGlobalDiagnostics(y)]}function ye(it,K,Pe=sm,Z){const Re={...Pe,includeCompletionsForModuleExports:Pe.includeCompletionsForModuleExports||Pe.includeExternalModuleExports,includeCompletionsWithInsertText:Pe.includeCompletionsWithInsertText||Pe.includeInsertTextCompletions};return k(),h2.getCompletionsAtPosition(e,c,E,O(it),K,Re,Pe.triggerCharacter,Pe.triggerKind,y,Z&&Lc.getFormatContext(Z,e),Pe.includeSymbol)}function ae(it,K,Pe,Z,Re,q=sm,Rt){return k(),h2.getCompletionEntryDetails(c,E,O(it),K,{name:Pe,source:Re,data:Rt},e,Z&&Lc.getFormatContext(Z,e),q,y)}function W(it,K,Pe,Z,Re=sm){return k(),h2.getCompletionEntrySymbol(c,E,O(it),K,{name:Pe,source:Z},e,Re)}function ce(it,K){k();const Pe=O(it),Z=Df(Pe,K);if(Z===Pe)return;const Re=c.getTypeChecker(),q=me(Z),Rt=RGe(q,Re);if(!Rt||Re.isUnknownSymbol(Rt)){const oi=ve(Pe,q,K)?Re.getTypeAtLocation(q):void 0;return oi&&{kind:"",kindModifiers:"",textSpan:ad(q,Pe),displayParts:Re.runWithCancellationToken(y,Ai=>L6(Ai,oi,KT(q))),documentation:oi.symbol?oi.symbol.getDocumentationComment(Re):void 0,tags:oi.symbol?oi.symbol.getJsDocTags(Re):void 0}}const{symbolKind:gt,displayParts:ft,documentation:_n,tags:$n}=Re.runWithCancellationToken(y,oi=>Oy.getSymbolDisplayPartsDocumentationAndSymbolKind(oi,Rt,Pe,KT(q),q));return{kind:gt,kindModifiers:Oy.getSymbolModifiers(Re,Rt),textSpan:ad(q,Pe),displayParts:ft,documentation:_n,tags:$n}}function me(it){return P1(it.parent)&&it.pos===it.parent.pos?it.parent.expression:Jk(it.parent)&&it.pos===it.parent.pos||qA(it.parent)&&it.parent.name===it?it.parent:it}function ve(it,K,Pe){switch(K.kind){case 79:return!aQ(K)&&!oQ(K)&&!cg(K.parent);case 208:case 163:return!wy(it,Pe);case 108:case 194:case 106:case 199:return!0;case 233:return qA(K);default:return!1}}function Se(it,K,Pe,Z){return k(),$w.getDefinitionAtPosition(c,O(it),K,Pe,Z)}function ee(it,K){return k(),$w.getDefinitionAndBoundSpan(c,O(it),K)}function Qe(it,K){return k(),$w.getTypeDefinitionAtPosition(c.getTypeChecker(),O(it),K)}function je(it,K){return k(),ul.getImplementationsAtPosition(c,y,c.getSourceFiles(),O(it),K)}function Ge(it,K){return ma(qe(it,K,[it]),Pe=>Pe.highlightSpans.map(Z=>({fileName:Pe.fileName,textSpan:Z.textSpan,isWriteAccess:Z.kind==="writtenReference",...Z.isInString&&{isInString:!0},...Z.contextSpan&&{contextSpan:Z.contextSpan}})))}function qe(it,K,Pe){const Z=qo(it);D.assert(Pe.some(Rt=>qo(Rt)===Z)),k();const Re=ia(Pe,Rt=>c.getSourceFile(Rt)),q=O(it);return K9.getDocumentHighlights(c,y,q,K,Re)}function Oe(it,K,Pe,Z,Re){k();const q=O(it),Rt=c9(Df(q,K));if(IU.nodeIsEligibleForRename(Rt))if(He(Rt)&&(wh(Rt.parent)||zx(Rt.parent))&&dk(Rt.escapedText)){const{openingElement:gt,closingElement:ft}=Rt.parent.parent;return[gt,ft].map(_n=>{const $n=ad(_n.tagName,q);return{fileName:q.fileName,textSpan:$n,...ul.toContextSpan($n,q,_n.parent)}})}else return Ye(Rt,K,{findInStrings:Pe,findInComments:Z,providePrefixAndSuffixTextForRename:Re,use:ul.FindReferencesUse.Rename},(gt,ft,_n)=>ul.toRenameLocation(gt,ft,_n,Re||!1))}function Me(it,K){return k(),Ye(Df(O(it),K),K,{use:ul.FindReferencesUse.References},ul.toReferenceEntry)}function Ye(it,K,Pe,Z){k();const Re=Pe&&Pe.use===ul.FindReferencesUse.Rename?c.getSourceFiles().filter(q=>!c.isSourceFileDefaultLibrary(q)):c.getSourceFiles();return ul.findReferenceOrRenameEntries(c,y,Re,it,K,Pe,Z)}function ze(it,K){return k(),ul.findReferencedSymbols(c,y,c.getSourceFiles(),O(it),K)}function Fe(it){return k(),ul.Core.getReferencesForFileName(it,c,c.getSourceFiles()).map(ul.toReferenceEntry)}function st(it,K,Pe,Z=!1){k();const Re=Pe?[O(Pe)]:c.getSourceFiles();return c1e(Re,c.getTypeChecker(),y,it,K,Z)}function Ct(it,K,Pe){k();const Z=O(it),Re=e.getCustomTransformers&&e.getCustomTransformers();return Zye(c,Z,!!K,y,Re,Pe)}function Et(it,K,{triggerReason:Pe}=sm){k();const Z=O(it);return EP.getSignatureHelpItems(c,Z,K,Pe,y)}function jt(it){return s.getCurrentSourceFile(it)}function tt(it,K,Pe){const Z=s.getCurrentSourceFile(it),Re=Df(Z,K);if(Re===Z)return;switch(Re.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let q=Re;for(;;)if(eL(q)||E0e(q))q=q.parent;else if(lQ(q))if(q.parent.parent.kind===264&&q.parent.parent.body===q.parent)q=q.parent.parent.name;else break;else break;return hc(q.getStart(),Re.getEnd())}function at(it,K){const Pe=s.getCurrentSourceFile(it);return qZ.spanInSourceFileAtLocation(Pe,K)}function sn(it){return _1e(s.getCurrentSourceFile(it),y)}function Qt(it){return p1e(s.getCurrentSourceFile(it),y)}function On(it,K,Pe){return k(),(Pe||"original")==="2020"?yB.v2020.getSemanticClassifications(c,y,O(it),K):kbe(c.getTypeChecker(),y,O(it),c.getClassifiableNames(),K)}function jn(it,K,Pe){return k(),(Pe||"original")==="original"?sZ(c.getTypeChecker(),y,O(it),c.getClassifiableNames(),K):yB.v2020.getEncodedSemanticClassifications(c,y,O(it),K)}function In(it,K){return Nbe(y,s.getCurrentSourceFile(it),K)}function Zt(it,K){return lZ(y,s.getCurrentSourceFile(it),K)}function _r(it){const K=s.getCurrentSourceFile(it);return zne.collectElements(K,y)}const Ii=new Map(Object.entries({18:19,20:21,22:23,31:29}));Ii.forEach((it,K)=>Ii.set(it.toString(),Number(K)));function $i(it,K){const Pe=s.getCurrentSourceFile(it),Z=kw(Pe,K),Re=Z.getStart(Pe)===K?Ii.get(Z.kind.toString()):void 0,q=Re&&bs(Z.parent,Re,Pe);return q?[ad(Z,Pe),ad(q,Pe)].sort((Rt,gt)=>Rt.start-gt.start):rt}function Qi(it,K,Pe){let Z=il();const Re=F6(Pe),q=s.getCurrentSourceFile(it);E("getIndentationAtPosition: getCurrentSourceFile: "+(il()-Z)),Z=il();const Rt=Lc.SmartIndenter.getIndentation(K,q,Re);return E("getIndentationAtPosition: computeIndentation : "+(il()-Z)),Rt}function Or(it,K,Pe,Z){const Re=s.getCurrentSourceFile(it);return Lc.formatSelection(K,Pe,Re,Lc.getFormatContext(F6(Z),e))}function At(it,K){return Lc.formatDocument(s.getCurrentSourceFile(it),Lc.getFormatContext(F6(K),e))}function vn(it,K,Pe,Z){const Re=s.getCurrentSourceFile(it),q=Lc.getFormatContext(F6(Z),e);if(!wy(Re,K))switch(Pe){case"{":return Lc.formatOnOpeningCurly(K,Re,q);case"}":return Lc.formatOnClosingCurly(K,Re,q);case";":return Lc.formatOnSemicolon(K,Re,q);case` `:return Lc.formatOnEnter(K,Re,q)}return[]}function Wt(it,K,Pe,Z,Re,q=sm){k();const Rt=O(it),gt=hc(K,Pe),ft=Lc.getFormatContext(Re,e);return ma(xA(Z,H0,Ws),_n=>(y.throwIfCancellationRequested(),Wu.getFixes({errorCode:_n,sourceFile:Rt,span:gt,program:c,host:e,cancellationToken:y,formatContext:ft,preferences:q})))}function dn(it,K,Pe,Z=sm){k(),D.assert(it.type==="file");const Re=O(it.fileName),q=Lc.getFormatContext(Pe,e);return Wu.getAllFixes({fixId:K,sourceFile:Re,program:c,host:e,cancellationToken:y,formatContext:q,preferences:Z})}function rr(it,K,Pe=sm){var Z;k(),D.assert(it.type==="file");const Re=O(it.fileName),q=Lc.getFormatContext(K,e),Rt=(Z=it.mode)!=null?Z:it.skipDestructiveCodeActions?"SortAndCombine":"All";return Q_.organizeImports(Re,q,e,c,Pe,Rt)}function cr(it,K,Pe,Z=sm){return Fbe(G(),it,K,e,Lc.getFormatContext(Pe,e),Z,I)}function Pi(it,K){const Pe=typeof it=="string"?K:it;return Va(Pe)?Promise.all(Pe.map(Z=>gi(Z))):gi(Pe)}function gi(it){const K=Pe=>zs(Pe,h,L);return D.assertEqual(it.type,"install package"),e.installPackage?e.installPackage({fileName:K(it.file),packageName:it.packageName}):Promise.reject("Host does not implement `installPackage`")}function Rn(it,K,Pe,Z){const Re=Z?Lc.getFormatContext(Z,e).options:void 0;return pb.getDocCommentTemplateAtPosition(ub(e,Re),s.getCurrentSourceFile(it),K,Pe)}function an(it,K,Pe){if(Pe===60)return!1;const Z=s.getCurrentSourceFile(it);if(YT(Z,K))return!1;if(R0e(Z,K))return Pe===123;if(hQ(Z,K))return!1;switch(Pe){case 39:case 34:case 96:return!wy(Z,K)}return!0}function Pn(it,K){const Pe=s.getCurrentSourceFile(it),Z=Cc(K,Pe);if(!Z)return;const Re=Z.kind===31&&wh(Z.parent)?Z.parent.parent:Nx(Z)&&Cy(Z.parent)?Z.parent:void 0;if(Re&&Ce(Re))return{newText:`</${Re.openingElement.tagName.getText(Pe)}>`};const q=Z.kind===31&&Jx(Z.parent)?Z.parent.parent:Nx(Z)&&qx(Z.parent)?Z.parent:void 0;if(q&&pt(q))return{newText:"</>"}}function Ar(it,K){return{lineStarts:it.getLineStarts(),firstLine:it.getLineAndCharacterOfPosition(K.pos).line,lastLine:it.getLineAndCharacterOfPosition(K.end).line}}function Hr(it,K,Pe){const Z=s.getCurrentSourceFile(it),Re=[],{lineStarts:q,firstLine:Rt,lastLine:gt}=Ar(Z,K);let ft=Pe||!1,_n=Number.MAX_VALUE;const $n=new Map,oi=new RegExp(/\S/),Ai=d9(Z,q[Rt]),Ci=Ai?"{/*":"//";for(let ji=Rt;ji<=gt;ji++){const mo=Z.text.substring(q[ji],Z.getLineEndOfPosition(q[ji])),To=oi.exec(mo);To&&(_n=Math.min(_n,To.index),$n.set(ji.toString(),To.index),mo.substr(To.index,Ci.length)!==Ci&&(ft=Pe===void 0||Pe))}for(let ji=Rt;ji<=gt;ji++){if(Rt!==gt&&q[ji]===K.end)continue;const mo=$n.get(ji.toString());mo!==void 0&&(Ai?Re.push.apply(Re,we(it,{pos:q[ji]+_n,end:Z.getLineEndOfPosition(q[ji])},ft,Ai)):ft?Re.push({newText:Ci,span:{length:0,start:q[ji]+_n}}):Z.text.substr(q[ji]+mo,Ci.length)===Ci&&Re.push({newText:"",span:{length:Ci.length,start:q[ji]+mo}}))}return Re}function we(it,K,Pe,Z){var Re;const q=s.getCurrentSourceFile(it),Rt=[],{text:gt}=q;let ft=!1,_n=Pe||!1;const $n=[];let{pos:oi}=K;const Ai=Z!==void 0?Z:d9(q,oi),Ci=Ai?"{/*":"/*",ji=Ai?"*/}":"*/",mo=Ai?"\\{\\/\\*":"\\/\\*",To=Ai?"\\*\\/\\}":"\\*\\/";for(;oi<=K.end;){const io=gt.substr(oi,Ci.length)===Ci?Ci.length:0,ca=wy(q,oi+io);if(ca)Ai&&(ca.pos--,ca.end++),$n.push(ca.pos),ca.kind===3&&$n.push(ca.end),ft=!0,oi=ca.end+1;else{const Hi=gt.substring(oi,K.end).search(`(${mo})|(${To})`);_n=Pe!==void 0?Pe:_n||!J0e(gt,oi,Hi===-1?K.end:oi+Hi),oi=Hi===-1?K.end+1:oi+Hi+ji.length}}if(_n||!ft){((Re=wy(q,K.pos))==null?void 0:Re.kind)!==2&&yv($n,K.pos,Ws),yv($n,K.end,Ws);const io=$n[0];gt.substr(io,Ci.length)!==Ci&&Rt.push({newText:Ci,span:{length:0,start:io}});for(let ca=1;ca<$n.length-1;ca++)gt.substr($n[ca]-ji.length,ji.length)!==ji&&Rt.push({newText:ji,span:{length:0,start:$n[ca]}}),gt.substr($n[ca],Ci.length)!==Ci&&Rt.push({newText:Ci,span:{length:0,start:$n[ca]}});Rt.length%2!==0&&Rt.push({newText:ji,span:{length:0,start:$n[$n.length-1]}})}else for(const io of $n){const ca=io-ji.length>0?io-ji.length:0,Hi=gt.substr(ca,ji.length)===ji?ji.length:0;Rt.push({newText:"",span:{length:Ci.length,start:io-Hi}})}return Rt}function yt(it,K){const Pe=s.getCurrentSourceFile(it),{firstLine:Z,lastLine:Re}=Ar(Pe,K);return Z===Re&&K.pos!==K.end?we(it,K,!0):Hr(it,K,!0)}function Nt(it,K){const Pe=s.getCurrentSourceFile(it),Z=[],{pos:Re}=K;let{end:q}=K;Re===q&&(q+=d9(Pe,Re)?2:1);for(let Rt=Re;Rt<=q;Rt++){const gt=wy(Pe,Rt);if(gt){switch(gt.kind){case 2:Z.push.apply(Z,Hr(it,{end:gt.end,pos:gt.pos+1},!1));break;case 3:Z.push.apply(Z,we(it,{end:gt.end,pos:gt.pos+1},!1))}Rt=gt.end+1}}return Z}function Ce({openingElement:it,closingElement:K,parent:Pe}){return!lb(it.tagName,K.tagName)||Cy(Pe)&&lb(it.tagName,Pe.openingElement.tagName)&&Ce(Pe)}function pt({closingFragment:it,parent:K}){return!!(it.flags&131072)||qx(K)&&pt(K)}function pe(it,K,Pe){const Z=s.getCurrentSourceFile(it),Re=Lc.getRangeOfEnclosingComment(Z,K);return Re&&(!Pe||Re.kind===3)?Jv(Re):void 0}function ie(it,K){k();const Pe=O(it);y.throwIfCancellationRequested();const Z=Pe.text,Re=[];if(K.length>0&&!ft(Pe.fileName)){const _n=Rt();let $n;for(;$n=_n.exec(Z);){y.throwIfCancellationRequested();const oi=3;D.assert($n.length===K.length+oi);const Ai=$n[1],Ci=$n.index+Ai.length;if(!wy(Pe,Ci))continue;let ji;for(let To=0;To<K.length;To++)$n[To+oi]&&(ji=K[To]);if(ji===void 0)return D.fail();if(gt(Z.charCodeAt(Ci+ji.text.length)))continue;const mo=$n[2];Re.push({descriptor:ji,message:mo,position:Ci})}}return Re;function q(_n){return _n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rt(){const _n=/(?:\/\/+\s*)/.source,$n=/(?:\/\*+\s*)/.source,Ai="("+/(?:^(?:\s|\*)*)/.source+"|"+_n+"|"+$n+")",Ci="(?:"+Vt(K,ca=>"("+q(ca.text)+")").join("|")+")",ji=/(?:$|\*\/)/.source,mo=/(?:.*?)/.source,To="("+Ci+mo+")",io=Ai+To+ji;return new RegExp(io,"gim")}function gt(_n){return _n>=97&&_n<=122||_n>=65&&_n<=90||_n>=48&&_n<=57}function ft(_n){return pu(_n,"/node_modules/")}}function he(it,K,Pe){return k(),IU.getRenameInfo(c,O(it),K,Pe||{})}function j(it,K,Pe,Z,Re,q){const[Rt,gt]=typeof K=="number"?[K,void 0]:[K.pos,K.end];return{file:it,startPosition:Rt,endPosition:gt,program:G(),host:e,formatContext:Lc.getFormatContext(Z,e),cancellationToken:y,preferences:Pe,triggerReason:Re,kind:q}}function We(it,K,Pe){return{file:it,program:G(),host:e,span:K,preferences:Pe,cancellationToken:y}}function Ze(it,K){return Tre.getSmartSelectionRange(K,s.getCurrentSourceFile(it))}function Xe(it,K,Pe=sm,Z,Re){k();const q=O(it);return oD.getApplicableRefactors(j(q,K,Pe,sm,Z,Re))}function Ut(it,K,Pe,Z,Re,q=sm){k();const Rt=O(it);return oD.getEditsForRefactor(j(Rt,Pe,q,K),Z,Re)}function cn(it,K){return K===0?{line:0,character:0}:I.toLineColumnOffset(it,K)}function Sn(it,K){k();const Pe=u2.resolveCallHierarchyDeclaration(c,Df(O(it),K));return Pe&&gbe(Pe,Z=>u2.createCallHierarchyItem(c,Z))}function Er(it,K){k();const Pe=O(it),Z=YQ(u2.resolveCallHierarchyDeclaration(c,K===0?Pe:Df(Pe,K)));return Z?u2.getIncomingCalls(c,Z,y):[]}function ue(it,K){k();const Pe=O(it),Z=YQ(u2.resolveCallHierarchyDeclaration(c,K===0?Pe:Df(Pe,K)));return Z?u2.getOutgoingCalls(c,Z):[]}function mt(it,K,Pe=sm){k();const Z=O(it);return One.provideInlayHints(We(Z,K,Pe))}const zt={dispose:X,cleanupSemanticCache:te,getSyntacticDiagnostics:Y,getSemanticDiagnostics:P,getSuggestionDiagnostics:de,getCompilerOptionsDiagnostics:re,getSyntacticClassifications:In,getSemanticClassifications:On,getEncodedSyntacticClassifications:Zt,getEncodedSemanticClassifications:jn,getCompletionsAtPosition:ye,getCompletionEntryDetails:ae,getCompletionEntrySymbol:W,getSignatureHelpItems:Et,getQuickInfoAtPosition:ce,getDefinitionAtPosition:Se,getDefinitionAndBoundSpan:ee,getImplementationAtPosition:je,getTypeDefinitionAtPosition:Qe,getReferencesAtPosition:Me,findReferences:ze,getFileReferences:Fe,getOccurrencesAtPosition:Ge,getDocumentHighlights:qe,getNameOrDottedNameSpan:tt,getBreakpointStatementAtPosition:at,getNavigateToItems:st,getRenameInfo:he,getSmartSelectionRange:Ze,findRenameLocations:Oe,getNavigationBarItems:sn,getNavigationTree:Qt,getOutliningSpans:_r,getTodoComments:ie,getBraceMatchingAtPosition:$i,getIndentationAtPosition:Qi,getFormattingEditsForRange:Or,getFormattingEditsForDocument:At,getFormattingEditsAfterKeystroke:vn,getDocCommentTemplateAtPosition:Rn,isValidBraceCompletionAtPosition:an,getJsxClosingTagAtPosition:Pn,getSpanOfEnclosingComment:pe,getCodeFixesAtPosition:Wt,getCombinedCodeFix:dn,applyCodeActionCommand:Pi,organizeImports:rr,getEditsForFileRename:cr,getEmitOutput:Ct,getNonBoundSourceFile:jt,getProgram:G,getCurrentProgram:()=>c,getAutoImportProvider:V,updateIsDefinitionOfReferencedSymbols:H,getApplicableRefactors:Xe,getEditsForRefactor:Ut,toLineColumnOffset:cn,getSourceMapper:()=>I,clearSourceMapperCache:()=>I.clearCache(),prepareCallHierarchy:Sn,provideCallHierarchyIncomingCalls:Er,provideCallHierarchyOutgoingCalls:ue,toggleLineComment:Hr,toggleMultilineComment:we,commentSelection:yt,uncommentSelection:Nt,provideInlayHints:mt,getSupportedCodeFixes:U1e};switch(o){case 0:break;case 1:UZ.forEach(it=>zt[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:$1e.forEach(it=>zt[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.Syntactic`)});break;default:D.assertNever(o)}return zt}function MZ(e){return e.nameTable||kGe(e),e.nameTable}function kGe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(He(i)&&!oQ(i)&&i.escapedText||Xf(i)&&wGe(i)){const o=ck(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ni(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Ma(i,r),xf(i))for(const o of i.jsDoc)Ma(o,r)})}function wGe(e){return mg(e)||e.parent.kind===280||NGe(e)||XN(e)}function B6(e){const t=DGe(e);return t&&(Ls(t.parent)||F1(t.parent))?t:void 0}function DGe(e){switch(e.kind){case 10:case 14:case 8:if(e.parent.kind===164)return gz(e.parent.parent)?e.parent.parent:void 0;case 79:return gz(e.parent)&&(e.parent.parent.kind===207||e.parent.parent.kind===289)&&e.parent.name===e?e.parent:void 0}}function RGe(e,t){const r=B6(e);if(r){const i=t.getContextualType(r.parent),o=i&&cB(r,t,i,!1);if(o&&o.length===1)return us(o)}return t.getSymbolAtLocation(e)}function cB(e,t,r,i){const o=S6(e.name);if(!o)return rt;if(!r.isUnion()){const c=r.getProperty(o);return c?[c]:rt}const s=ia(r.types,c=>(Ls(e.parent)||F1(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(c,e.parent)?void 0:c.getProperty(o));if(i&&(s.length===0||s.length===r.types.length)){const c=r.getProperty(o);if(c)return[c]}return s.length===0?ia(r.types,c=>c.getProperty(o)):s}function NGe(e){return e&&e.parent&&e.parent.kind===209&&e.parent.argumentExpression===e}function OGe(e){if($c)return Bi(hi(qo($c.getExecutingFilePath())),zM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var FZ,uB,dB,H1e,BZ,fB,_B,W1e,z1e,q1e,J1e,K1e,X1e,Y1e,GZ,UZ,$1e,PGe=C({"src/services/services.ts"(){$r(),$r(),f1e(),O1e(),FZ="0.8",uB=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){D.assert(!em(this.pos)&&!em(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Zn(this)}getStart(e,t){return this.assertHasRealPosition(),dT(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=CGe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=nn(t,i=>i.kind<312||i.kind>353);return r.kind<163?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=tl(t);if(r)return r.kind<163?r:r.getLastToken(e)}forEachChild(e,t){return Ma(this,e,t)}},dB=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Zn(this)}getStart(e,t){return dT(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||rt}getFirstToken(){}getLastToken(){}forEachChild(){}},H1e=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Fl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=rt,!this.declarations&&Om(this)&&this.links.target&&Om(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=M6([t],e)}else this.documentationComment=M6(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(kv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=M6(lr(this.declarations,kv),t)),Ae(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(gy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=M6(lr(this.declarations,gy),t)),Ae(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=oB(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(kv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=oB(lr(this.declarations,kv),t)),Ae(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(gy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=oB(lr(this.declarations,gy),t)),Ae(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},BZ=class extends dB{constructor(e,t,r){super(t,r),this.kind=e}},fB=class extends dB{constructor(e,t,r){super(t,r),this.kind=79}get text(){return Mr(this)}},fB.prototype.kind=79,_B=class extends dB{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Mr(this)}},_B.prototype.kind=80,W1e=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(ti(this)&3)}isClass(){return!!(ti(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ti(this)&4)return this.checker.getTypeArguments(this)}},z1e=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&Mk(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=M6(ZE(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=oB(ZE(this.declaration),this.checker))}},q1e=class extends uB{constructor(e,t,r){super(e,t,r),this.kind=308}update(e,t){return RK(this,e,t)}getLineAndCharacterOfPosition(e){return ol(this,e)}getLineStarts(){return og(this)}getPositionOfLineAndCharacter(e,t,r){return FW(og(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===` `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=__();return this.forEachChild(o),e;function t(s){const c=i(s);c&&e.add(c,s)}function r(s){let c=e.get(s);return c||e.set(s,c=[]),c}function i(s){const c=zW(s);return c&&(As(c)&&Fr(c.expression)?c.expression.name.text:yl(c)?S6(c):void 0)}function o(s){switch(s.kind){case 259:case 215:case 171:case 170:const c=s,f=i(c);if(f){const h=r(f),E=tl(h);E&&c.parent===E.parent&&c.symbol===E.symbol?c.body&&!E.body&&(h[h.length-1]=c):h.push(c)}Ma(s,o);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(s),Ma(s,o);break;case 166:if(!Yr(s,16476))break;case 257:case 205:{const h=s;if(Xa(h.name)){Ma(h.name,o);break}h.initializer&&o(h.initializer)}case 302:case 169:case 168:t(s);break;case 275:const d=s;d.exportClause&&(K_(d.exportClause)?Ue(d.exportClause.elements,o):o(d.exportClause.name));break;case 269:const y=s.importClause;y&&(y.name&&t(y.name),y.namedBindings&&(y.namedBindings.kind===271?t(y.namedBindings):Ue(y.namedBindings.elements,o)));break;case 223:Ll(s)!==0&&t(s);default:Ma(s,o)}}}},J1e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ol(this,e)}},K1e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,c,f,d;const y=this.host.getScriptSnapshot(e);if(!y)throw new Error("Could not find file: '"+e+"'.");const h=FQ(e,this.host),E=this.host.getScriptVersion(e);let A;if(this.currentFileName!==e){const L={languageVersion:99,impliedNodeFormat:wF(zs(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Z0(this.host)),(d=(f=(c=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:c.getModuleResolutionCache)==null?void 0:f.call(c))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:mO(this.host.getCompilationSettings())};A=lB(e,y,L,E,!0,h)}else if(this.currentFileVersion!==E){const L=y.getChangeRange(this.currentFileScriptSnapshot);A=PZ(this.currentSourceFile,y,E,L)}return A&&(this.currentFileVersion=E,this.currentFileName=e,this.currentFileScriptSnapshot=y,this.currentSourceFile=A),this.currentSourceFile}},X1e={isCancellationRequested:a1,throwIfCancellationRequested:oo},Y1e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=bi)==null||e.instant(bi.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new II}},GZ=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=il();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=bi)==null||e.instant(bi.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new II}},UZ=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],$1e=[...UZ,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],h_e(IGe())}});function MGe(e,t,r){const i=[];r=SZ(r,i);const o=Va(e)?e:[e],s=z8(void 0,void 0,N,r,o,t,!0);return s.diagnostics=ba(s.diagnostics,i),s}var FGe=C({"src/services/transform.ts"(){$r()}});function pB(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function BGe(e,t,r,i){let o;i&&(e.log(t),o=il());const s=r();if(i){const c=il();if(e.log(`${t} completed in ${c-o} msec`),Ha(s)){let f=s;f.length>128&&(f=f.substring(0,128)+"..."),e.log(` result.length=${f.length}, result='${JSON.stringify(f)}'`)}}return s}function VZ(e,t,r,i){return Q1e(e,t,!0,r,i)}function Q1e(e,t,r,i,o){try{const s=BGe(e,t,i,o);return r?JSON.stringify({result:s}):s}catch(s){return s instanceof II?JSON.stringify({canceled:!0}):(pB(e,s),s.description=t,JSON.stringify({error:s}))}}function jZ(e,t){return e.map(r=>GGe(r,t))}function GGe(e,t){return{message:zv(e.messageText,t),start:e.start,length:e.length,category:TM(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function HZ(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var mB,Z1e,WZ,zZ,hB,eEe,tEe,nEe,rEe,UGe=C({"src/services/shims.ts"(){$r(),mB=function(){return this}(),Z1e=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return aN(wc(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},WZ=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return Vt(t,o=>{const s=LR(i,o);return s?{resolvedFileName:s,extension:xO(s),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return Vt(t,o=>LR(i,Ha(o)?o:O_(o.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new Z1e(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new GZ(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,o){const s=Ik(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},zZ=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,o){const s=Ik(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},hB=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},eEe=class extends hB{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return VZ(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,mB&&mB.CollectGarbage&&(mB.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=ub(this.host,void 0);return jZ(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,wc(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,wc(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>HZ(this.languageService.getEncodedSyntacticClassifications(e,wc(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>HZ(this.languageService.getEncodedSemanticClassifications(e,wc(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,o){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${o})`,()=>this.languageService.findRenameLocations(e,t,r,i,o))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,()=>this.languageService.getOccurrencesAtPosition(e,t))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),o=O_(Qc(e));return lr(i,s=>O_(Qc(s.fileName))===o)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,o,s,c){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const f=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,f,o,s,c)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,o)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,o)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const{diagnostics:t,...r}=this.languageService.getEmitOutput(e);return{...r,diagnostics:this.realizeDiagnostics(t)}})}getEmitOutputObject(e){return Q1e(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},tEe=class extends hB{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=Ibe()}getEncodedLexicalClassifications(e,t,r=!1){return VZ(this.logger,"getEncodedLexicalClassifications",()=>HZ(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let o="";for(const s of i.entries)o+=s.length+` `,o+=s.classification+` `;return o+=i.finalLexState,o}},nEe=class extends hB{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return VZ(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),o=uw(t,Qc(e),i,this.host);let s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&o.resolvedModule.extension!==".ts"&&o.resolvedModule.extension!==".tsx"&&o.resolvedModule.extension!==".d.ts"&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations,affectingLocations:o.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),o=dX(t,Qc(e),i,this.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:o.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=$be(g9(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return z5(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:Qc(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=_8(e,g9(t)),i=Qc(e),o=y8(r,this.host,hi(i),{},i);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:jZ([...r.parseDiagnostics,...o.errors],`\r `)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>sB())}discoverTypings(e){const t=ru(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=qT.loadSafeList(this.host,zs(r.safeListPath,r.safeListPath,t))),qT.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,zs(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,sm)})}},rEe=class{constructor(){this._shims=[]}getServicesVersion(){return FZ}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=cZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new WZ(e),r=j1e(t,this.documentRegistry,!1);return new eEe(this,e,r)}catch(t){throw pB(e,t),t}}createClassifierShim(e){try{return new tEe(this,e)}catch(t){throw pB(e,t),t}}createCoreServicesShim(e){try{const t=new zZ(e);return new nEe(this,e,t)}catch(t){throw pB(e,t),t}}close(){Fi(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;t<this._shims.length;t++)if(this._shims[t]===e){delete this._shims[t];return}throw new Error("Invalid operation")}}}});function VGe(e,t){if(e.isDeclarationFile)return;let r=aa(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const E=Cc(r.pos,e);if(!E||e.getLineAndCharacterOfPosition(E.getEnd()).line!==i)return;r=E}if(r.flags&16777216)return;return h(r);function o(E,A){const L=Yx(E)?Li(E.modifiers,Bu):void 0,I=L?Jo(e.text,L.end):E.getStart(e);return hc(I,(A||E).getEnd())}function s(E,A){return o(E,XT(A,A.parent,e))}function c(E,A){return E&&i===e.getLineAndCharacterOfPosition(E.getStart(e)).line?h(E):h(A)}function f(E,A,L){if(E){const I=E.indexOf(A);if(I>=0){let O=I,k=I+1;for(;O>0&&L(E[O-1]);)O--;for(;k<E.length&&L(E[k]);)k++;return hc(Jo(e.text,E[O].pos),E[k-1].end)}}return o(A)}function d(E){return h(Cc(E.pos,e))}function y(E){return h(XT(E,E.parent,e))}function h(E){if(E){const{parent:ee}=E;switch(E.kind){case 240:return L(E.declarationList.declarations[0]);case 257:case 169:case 168:return L(E);case 166:return O(E);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return G(E);case 238:if(pT(E))return V(E);case 265:return H(E);case 295:return H(E.block);case 241:return o(E.expression);case 250:return o(E.getChildAt(0),E.expression);case 244:return s(E,E.expression);case 243:return h(E.statement);case 256:return o(E.getChildAt(0));case 242:return s(E,E.expression);case 253:return h(E.statement);case 249:case 248:return o(E.getChildAt(0),E.label);case 245:return X(E);case 246:return s(E,E.expression);case 247:return te(E);case 252:return s(E,E.expression);case 292:case 293:return h(E.statements[0]);case 255:return H(E.tryBlock);case 254:return o(E,E.expression);case 274:return o(E,E.expression);case 268:return o(E,E.moduleReference);case 269:return o(E,E.moduleSpecifier);case 275:return o(E,E.moduleSpecifier);case 264:if(Eg(E)!==1)return;case 260:case 263:case 302:case 205:return o(E);case 251:return h(E.statement);case 167:return f(ee.modifiers,E,Bu);case 203:case 204:return Y(E);case 261:case 262:return;case 26:case 1:return c(Cc(E.pos,e));case 27:return d(E);case 18:return de(E);case 19:return re(E);case 23:return ye(E);case 20:return ae(E);case 21:return W(E);case 58:return ce(E);case 31:case 29:return me(E);case 115:return ve(E);case 91:case 83:case 96:return y(E);case 162:return Se(E);default:if(Dy(E))return P(E);if((E.kind===79||E.kind===227||E.kind===299||E.kind===300)&&Dy(ee))return o(E);if(E.kind===223){const{left:Qe,operatorToken:je}=E;if(Dy(Qe))return P(Qe);if(je.kind===63&&Dy(E.parent))return o(E);if(je.kind===27)return h(Qe)}if(_g(E))switch(ee.kind){case 243:return d(E);case 167:return h(E.parent);case 245:case 247:return o(E);case 223:if(E.parent.operatorToken.kind===27)return o(E);break;case 216:if(E.parent.body===E)return o(E);break}switch(E.parent.kind){case 299:if(E.parent.name===E&&!Dy(E.parent.parent))return h(E.parent.initializer);break;case 213:if(E.parent.type===E)return y(E.parent.type);break;case 257:case 166:{const{initializer:Qe,type:je}=E.parent;if(Qe===E||je===E||vy(E.kind))return d(E);break}case 223:{const{left:Qe}=E.parent;if(Dy(Qe)&&E!==Qe)return d(E);break}default:if(Ka(E.parent)&&E.parent.type===E)return d(E)}return h(E.parent)}}function A(ee){return Vu(ee.parent)&&ee.parent.declarations[0]===ee?o(Cc(ee.pos,e,ee.parent),ee):o(ee)}function L(ee){if(ee.parent.parent.kind===246)return h(ee.parent.parent);const Qe=ee.parent;if(Xa(ee.name))return Y(ee.name);if(cT(ee)&&ee.initializer||Yr(ee,1)||Qe.parent.kind===247)return A(ee);if(Vu(ee.parent)&&ee.parent.declarations[0]!==ee)return h(Cc(ee.pos,e,ee.parent))}function I(ee){return!!ee.initializer||ee.dotDotDotToken!==void 0||Yr(ee,12)}function O(ee){if(Xa(ee.name))return Y(ee.name);if(I(ee))return o(ee);{const Qe=ee.parent,je=Qe.parameters.indexOf(ee);return D.assert(je!==-1),je!==0?O(Qe.parameters[je-1]):h(Qe.body)}}function k(ee){return Yr(ee,1)||ee.parent.kind===260&&ee.kind!==173}function G(ee){if(ee.body)return k(ee)?o(ee):h(ee.body)}function V(ee){const Qe=ee.statements.length?ee.statements[0]:ee.getLastToken();return k(ee.parent)?c(ee.parent,Qe):h(Qe)}function H(ee){switch(ee.parent.kind){case 264:if(Eg(ee.parent)!==1)return;case 244:case 242:case 246:return c(ee.parent,ee.statements[0]);case 245:case 247:return c(Cc(ee.pos,e,ee.parent),ee.statements[0])}return h(ee.statements[0])}function te(ee){if(ee.initializer.kind===258){const Qe=ee.initializer;if(Qe.declarations.length>0)return h(Qe.declarations[0])}else return h(ee.initializer)}function X(ee){if(ee.initializer)return te(ee);if(ee.condition)return o(ee.condition);if(ee.incrementor)return o(ee.incrementor)}function Y(ee){const Qe=Ue(ee.elements,je=>je.kind!==229?je:void 0);return Qe?h(Qe):ee.parent.kind===205?o(ee.parent):A(ee.parent)}function P(ee){D.assert(ee.kind!==204&&ee.kind!==203);const Qe=ee.kind===206?ee.elements:ee.properties,je=Ue(Qe,Ge=>Ge.kind!==229?Ge:void 0);return je?h(je):o(ee.parent.kind===223?ee.parent:ee)}function de(ee){switch(ee.parent.kind){case 263:const Qe=ee.parent;return c(Cc(ee.pos,e,ee.parent),Qe.members.length?Qe.members[0]:Qe.getLastToken(e));case 260:const je=ee.parent;return c(Cc(ee.pos,e,ee.parent),je.members.length?je.members[0]:je.getLastToken(e));case 266:return c(ee.parent.parent,ee.parent.clauses[0])}return h(ee.parent)}function re(ee){switch(ee.parent.kind){case 265:if(Eg(ee.parent.parent)!==1)return;case 263:case 260:return o(ee);case 238:if(pT(ee.parent))return o(ee);case 295:return h(tl(ee.parent.statements));case 266:const Qe=ee.parent,je=tl(Qe.clauses);return je?h(tl(je.statements)):void 0;case 203:const Ge=ee.parent;return h(tl(Ge.elements)||Ge);default:if(Dy(ee.parent)){const qe=ee.parent;return o(tl(qe.properties)||qe)}return h(ee.parent)}}function ye(ee){switch(ee.parent.kind){case 204:const Qe=ee.parent;return o(tl(Qe.elements)||Qe);default:if(Dy(ee.parent)){const je=ee.parent;return o(tl(je.elements)||je)}return h(ee.parent)}}function ae(ee){return ee.parent.kind===243||ee.parent.kind===210||ee.parent.kind===211?d(ee):ee.parent.kind===214?y(ee):h(ee.parent)}function W(ee){switch(ee.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return d(ee);default:return h(ee.parent)}}function ce(ee){return Ka(ee.parent)||ee.parent.kind===299||ee.parent.kind===166?d(ee):h(ee.parent)}function me(ee){return ee.parent.kind===213?y(ee):h(ee.parent)}function ve(ee){return ee.parent.kind===243?s(ee,ee.parent.expression):h(ee.parent)}function Se(ee){return ee.parent.kind===247?y(ee):h(ee.parent)}}}var jGe=C({"src/services/breakpoints.ts"(){$r()}}),qZ={};ne(qZ,{spanInSourceFileAtLocation:()=>VGe});var HGe=C({"src/services/_namespaces/ts.BreakpointResolver.ts"(){jGe()}});function WGe(e){return(Bs(e)||Uu(e))&&gu(e)}function Vw(e){return(Bs(e)||Js(e)||Uu(e))&&Ki(e.parent)&&e===e.parent.initializer&&He(e.parent.name)&&!!(gp(e.parent)&2)}function iEe(e){return qi(e)||Jl(e)||yc(e)||Bs(e)||Nc(e)||Uu(e)||kl(e)||ac(e)||Ch(e)||q_(e)||e_(e)}function c2(e){return qi(e)||Jl(e)&&He(e.name)||yc(e)||Nc(e)||kl(e)||ac(e)||Ch(e)||q_(e)||e_(e)||WGe(e)||Vw(e)}function aEe(e){return qi(e)?e:gu(e)?e.name:Vw(e)?e.parent.name:D.checkDefined(e.modifiers&&nn(e.modifiers,oEe))}function oEe(e){return e.kind===88}function sEe(e,t){const r=aEe(t);return r&&e.getSymbolAtLocation(r)}function zGe(e,t){if(qi(t))return{text:t.fileName,pos:0,end:0};if((yc(t)||Nc(t))&&!gu(t)){const o=t.modifiers&&nn(t.modifiers,oEe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(kl(t)){const o=t.getSourceFile(),s=Jo(o.text,Zp(t).pos),c=s+6,f=e.getTypeChecker(),d=f.getSymbolAtLocation(t.parent);return{text:`${d?`${f.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:c}}const r=Vw(t)?t.parent.name:D.checkDefined(ka(t),"Expected call hierarchy item to have a name");let i=He(r)?Mr(r):Xf(r)?r.text:As(r)&&Xf(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=K8();i=YI(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function qGe(e){var t,r;if(Vw(e))return rm(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 174:case 175:case 171:return e.parent.kind===207?(t=qW(e.parent))==null?void 0:t.getText():(r=ka(e.parent))==null?void 0:r.getText();case 259:case 260:case 264:if(rm(e.parent)&&He(e.parent.parent.name))return e.parent.parent.name.getText()}}function lEe(e,t){if(t.body)return t;if(ql(t))return Th(t.parent);if(yc(t)||ac(t)){const r=sEe(e,t);return r&&r.valueDeclaration&&Qs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function cEe(e,t){const r=sEe(e,t);let i;if(r&&r.declarations){const o=xR(r.declarations),s=Vt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,y)=>Ou(s[d].file,s[y].file)||s[d].pos-s[y].pos);const c=Vt(o,d=>r.declarations[d]);let f;for(const d of c)c2(d)&&((!f||f.parent!==d.parent||f.end!==d.pos)&&(i=Fn(i,d)),f=d)}return i}function gB(e,t){var r,i,o;return kl(t)?t:Qs(t)?(i=(r=lEe(e,t))!=null?r:cEe(e,t))!=null?i:t:(o=cEe(e,t))!=null?o:t}function uEe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(c2(t))return gB(r,t);if(iEe(t)){const o=nr(t,c2);return o&&gB(r,o)}if(mg(t)){if(c2(t.parent))return gB(r,t.parent);if(iEe(t.parent)){const o=nr(t.parent,c2);return o&&gB(r,o)}return Ki(t.parent)&&t.parent.initializer&&Vw(t.parent.initializer)?t.parent.initializer:void 0}if(ql(t))return c2(t.parent)?t.parent:void 0;if(t.kind===124&&kl(t.parent)){t=t.parent;continue}if(Ki(t)&&t.initializer&&Vw(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 JZ(e,t){const r=t.getSourceFile(),i=zGe(e,t),o=qGe(t),s=X1(t),c=ww(t),f=hc(Jo(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=hc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:c,name:i.text,containerName:o,span:f,selectionSpan:d}}function JGe(e){return e!==void 0}function KGe(e){if(e.kind===ul.EntryKind.Node){const{node:t}=e;if(rQ(t,!0,!0)||g0e(t,!0,!0)||y0e(t,!0,!0)||v0e(t,!0,!0)||eL(t)||sQ(t)){const r=t.getSourceFile();return{declaration:nr(t,c2)||r,range:xQ(t,r)}}}}function dEe(e){return ms(e.declaration)}function XGe(e,t){return{from:e,fromSpans:t}}function YGe(e,t){return XGe(JZ(e,t[0].declaration),Vt(t,r=>Jv(r.range)))}function $Ge(e,t,r){if(qi(t)||Jl(t)||kl(t))return[];const i=aEe(t),o=lr(ul.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ul.FindReferencesUse.References},KGe),JGe);return o?SI(o,dEe,s=>YGe(e,s)):[]}function QGe(e,t){function r(o){const s=kT(o)?o.tag:ed(o)?o.tagName:ll(o)||kl(o)?o:o.expression,c=uEe(e,s);if(c){const f=xQ(s,o.getSourceFile());if(Va(c))for(const d of c)t.push({declaration:d,range:f});else t.push({declaration:c,range:f})}}function i(o){if(o&&!(o.flags&16777216)){if(c2(o)){if(di(o))for(const s of o.members)s.name&&As(s.name)&&i(s.name.expression);return}switch(o.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:r(o);return;case 213:case 231:i(o.expression);return;case 257:case 166:i(o.name),i(o.initializer);return;case 210:r(o),i(o.expression),Ue(o.arguments,i);return;case 211:r(o),i(o.expression),Ue(o.arguments,i);return;case 212:r(o),i(o.tag),i(o.template);return;case 283:case 282:r(o),i(o.tagName),i(o.attributes);return;case 167:r(o),i(o.expression);return;case 208:case 209:r(o),Ma(o,i);break;case 235:i(o.expression);return}vh(o)||Ma(o,i)}}return i}function ZGe(e,t){Ue(e.statements,t)}function eUe(e,t){!Yr(e,2)&&e.body&&rm(e.body)&&Ue(e.body.statements,t)}function tUe(e,t,r){const i=lEe(e,t);i&&(Ue(i.parameters,r),r(i.body))}function nUe(e,t){t(e.body)}function rUe(e,t){Ue(e.modifiers,t);const r=A1(e);r&&t(r.expression);for(const i of e.members)X_(i)&&Ue(i.modifiers,t),to(i)?t(i.initializer):ql(i)&&i.body?(Ue(i.parameters,t),t(i.body)):kl(i)&&t(i)}function iUe(e,t){const r=[],i=QGe(e,r);switch(t.kind){case 308:ZGe(t,i);break;case 264:eUe(t,i);break;case 259:case 215:case 216:case 171:case 174:case 175:tUe(e.getTypeChecker(),t,i);break;case 260:case 228:rUe(t,i);break;case 172:nUe(t,i);break;default:D.assertNever(t)}return r}function aUe(e,t){return{to:e,fromSpans:t}}function oUe(e,t){return aUe(JZ(e,t[0].declaration),Vt(t,r=>Jv(r.range)))}function sUe(e,t){return t.flags&16777216||Ch(t)?[]:SI(iUe(e,t),dEe,r=>oUe(e,r))}var lUe=C({"src/services/callHierarchy.ts"(){$r()}}),u2={};ne(u2,{createCallHierarchyItem:()=>JZ,getIncomingCalls:()=>$Ge,getOutgoingCalls:()=>sUe,resolveCallHierarchyDeclaration:()=>uEe});var cUe=C({"src/services/_namespaces/ts.CallHierarchy.ts"(){lUe()}});function uUe(e,t,r,i){const o=fEe(e,t,r,i);D.assert(o.spans.length%3===0);const s=o.spans,c=[];for(let f=0;f<s.length;f+=3)c.push({textSpan:wc(s[f],s[f+1]),classificationType:s[f+2]});return c}function fEe(e,t,r,i){return{spans:dUe(e,r,i,t),endOfLineState:0}}function dUe(e,t,r,i){const o=[];return e&&t&&fUe(e,t,r,(c,f,d)=>{o.push(c.getStart(t),c.getWidth(t),(f+1<<8)+d)},i),o}function fUe(e,t,r,i,o){const s=e.getTypeChecker();let c=!1;function f(d){switch(d.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:o.throwIfCancellationRequested()}if(!d||!JM(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const y=c;if((Cy(d)||Wx(d))&&(c=!0),Qk(d)&&(c=!1),He(d)&&!c&&!hUe(d)&&!Pk(d.escapedText)){let h=s.getSymbolAtLocation(d);if(h){h.flags&2097152&&(h=s.getAliasedSymbol(h));let E=_Ue(h,JT(d));if(E!==void 0){let A=0;d.parent&&(ps(d.parent)||$Z.get(d.parent.kind)===E)&&d.parent.name===d&&(A=1),E===6&&pEe(d)&&(E=9),E=pUe(s,d,E);const L=h.valueDeclaration;if(L){const I=py(L),O=gp(L);I&32&&(A|=2),I&512&&(A|=4),E!==0&&E!==2&&(I&64||O&2||h.getFlags()&8)&&(A|=8),(E===7||E===10)&&mUe(L,t)&&(A|=32),e.isSourceFileDefaultLibrary(L.getSourceFile())&&(A|=16)}else h.declarations&&h.declarations.some(I=>e.isSourceFileDefaultLibrary(I.getSourceFile()))&&(A|=16);i(d,E,A)}}}Ma(d,f),c=y}f(t)}function _Ue(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&ps(i)&&(i=_Ee(i)),i&&$Z.get(i.kind)}function pUe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||gUe(t))return r===9?11:10}}return r}function mUe(e,t){return ps(e)&&(e=_Ee(e)),Ki(e)?(!qi(e.parent.parent.parent)||NC(e.parent))&&e.getSourceFile()===t:yc(e)?!qi(e.parent)&&e.getSourceFile()===t:!1}function _Ee(e){for(;;)if(ps(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function hUe(e){const t=e.parent;return t&&(Wm(t)||Ld(t)||Uv(t))}function gUe(e){for(;pEe(e);)e=e.parent;return no(e.parent)&&e.parent.expression===e}function pEe(e){return Cd(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e}var KZ,XZ,YZ,$Z,yUe=C({"src/services/classifier2020.ts"(){$r(),KZ=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(KZ||{}),XZ=(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))(XZ||{}),YZ=(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))(YZ||{}),$Z=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),mEe={};ne(mEe,{TokenEncodingConsts:()=>KZ,TokenModifier:()=>YZ,TokenType:()=>XZ,getEncodedSemanticClassifications:()=>fEe,getSemanticClassifications:()=>uUe});var vUe=C({"src/services/_namespaces/ts.classifier.v2020.ts"(){yUe()}}),yB={};ne(yB,{v2020:()=>mEe});var bUe=C({"src/services/_namespaces/ts.classifier.ts"(){vUe()}});function Cp(e,t,r){return ZZ(e,o2(r),t,void 0,void 0)}function ro(e,t,r,i,o,s){return ZZ(e,o2(r),t,i,o2(o),s)}function QZ(e,t,r,i,o,s){return ZZ(e,o2(r),t,i,o&&o2(o),s)}function ZZ(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function po(e){for(const t of e.errorCodes)vB.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)D.assert(!bB.has(t)),bB.set(t,e)}function EUe(){return Ro(vB.keys())}function TUe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(jr(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:c,...f})=>o?f:{...f,fixId:s,fixAllDescription:c}}function SUe(e){const t=gEe(e),r=vB.get(String(e.errorCode));return ma(r,i=>Vt(i.getCodeActions(e),TUe(i,t)))}function xUe(e){return bB.get(ao(e.fixId,Ha)).getAllCodeActions(e)}function d2(e,t){return{changes:e,commands:t}}function hEe(e,t){return{fileName:e,textChanges:t}}function Cs(e,t,r){const i=[],o=gr.ChangeTracker.with(e,s=>f2(e,t,c=>r(s,c,i)));return d2(o,i.length===0?void 0:i)}function f2(e,t,r){for(const i of gEe(e))jr(t,i.code)&&r(i)}function gEe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...vZ(t,e,r)]}var vB,bB,AUe=C({"src/services/codeFixProvider.ts"(){$r(),vB=__(),bB=new Map}});function yEe(e,t,r){const i=KO(r)?N.createAsExpression(r.expression,N.createKeywordTypeNode(157)):N.createTypeAssertion(N.createKeywordTypeNode(157),r.expression);e.replaceNode(t,r.expression,i)}function vEe(e,t){if(!fr(e))return nr(aa(e,t),r=>KO(r)||Upe(r))}var EB,eee,CUe=C({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){$r(),Eo(),EB="addConvertToUnknownForNonOverlappingTypes",eee=[_.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],po({errorCodes:eee,getCodeActions:function(t){const r=vEe(t.sourceFile,t.span.start);if(r===void 0)return;const i=gr.ChangeTracker.with(t,o=>yEe(o,t.sourceFile,r));return[ro(EB,i,_.Add_unknown_conversion_for_non_overlapping_types,EB,_.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[EB],getAllCodeActions:e=>Cs(e,eee,(t,r)=>{const i=vEe(r.file,r.start);i&&yEe(t,r.file,i)})})}}),LUe=C({"src/services/codefixes/addEmptyExportDeclaration.ts"(){$r(),Eo(),po({errorCodes:[_.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,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=gr.ChangeTracker.with(t,o=>{const s=N.createExportDeclaration(void 0,!1,N.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Cp("addEmptyExportDeclaration",i,_.Add_export_to_make_this_file_into_a_module)]}})}});function bEe(e,t,r,i){const o=r(s=>IUe(s,e.sourceFile,t,i));return ro(TB,o,_.Add_async_modifier_to_containing_function,TB,_.Add_all_missing_async_modifiers)}function IUe(e,t,r,i){if(i&&i.has(ms(r)))return;i==null||i.add(ms(r));const o=N.updateModifiers(Dl(r,!0),N.createNodeArray(N.createModifiersFromModifierFlags(Ov(r)|512)));e.replaceNode(t,r,o)}function EEe(e,t){if(!t)return;const r=aa(e,t.start);return nr(r,o=>o.getStart(e)<t.start||o.getEnd()>iu(t)?"quit":(Js(o)||ac(o)||Bs(o)||yc(o))&&iL(t,ad(o,e)))}function kUe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>cy(r)&&cy(i)&&iL({start:r,length:i},e)&&s===t&&!!o&&kt(o,c=>c.code===_.Did_you_mean_to_mark_this_function_as_async.code)}var TB,tee,wUe=C({"src/services/codefixes/addMissingAsync.ts"(){$r(),Eo(),TB="addMissingAsync",tee=[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_comparable_to_type_1.code],po({fixIds:[TB],errorCodes:tee,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:c}=t,f=nn(s.getTypeChecker().getDiagnostics(r,o),kUe(c,i)),d=f&&f.relatedInformation&&nn(f.relatedInformation,E=>E.code===_.Did_you_mean_to_mark_this_function_as_async.code),y=EEe(r,d);return y?[bEe(t,y,E=>gr.ChangeTracker.with(t,E))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Cs(e,tee,(i,o)=>{const s=o.relatedInformation&&nn(o.relatedInformation,d=>d.code===_.Did_you_mean_to_mark_this_function_as_async.code),c=EEe(t,s);return c?bEe(e,c,d=>(d(i),[]),r):void 0})}})}});function TEe(e,t,r,i,o){const s=XQ(e,r);return s&&DUe(e,t,r,i,o)&&AEe(s)?s:void 0}function SEe(e,t,r,i,o,s){const{sourceFile:c,program:f,cancellationToken:d}=e,y=RUe(t,c,d,f,i);if(y){const h=o(E=>{Ue(y.initializers,({expression:A})=>nee(E,r,c,i,A,s)),s&&y.needsSecondPassForFixAll&&nee(E,r,c,i,t,s)});return Cp("addMissingAwaitToInitializer",h,y.initializers.length===1?[_.Add_await_to_initializer_for_0,y.initializers[0].declarationSymbol.name]:_.Add_await_to_initializers)}}function xEe(e,t,r,i,o,s){const c=o(f=>nee(f,r,e.sourceFile,i,t,s));return ro(SB,c,_.Add_await,SB,_.Fix_all_expressions_possibly_missing_await)}function DUe(e,t,r,i,o){const c=o.getTypeChecker().getDiagnostics(e,i);return kt(c,({start:f,length:d,relatedInformation:y,code:h})=>cy(f)&&cy(d)&&iL({start:f,length:d},r)&&h===t&&!!y&&kt(y,E=>E.code===_.Did_you_forget_to_use_await.code))}function RUe(e,t,r,i,o){const s=NUe(e,o);if(!s)return;let c=s.isCompleteFix,f;for(const d of s.identifiers){const y=o.getSymbolAtLocation(d);if(!y)continue;const h=ai(y.valueDeclaration,Ki),E=h&&ai(h.name,He),A=Q0(h,240);if(!h||!A||h.type||!h.initializer||A.getSourceFile()!==t||Yr(A,1)||!E||!AEe(h.initializer)){c=!1;continue}const L=i.getSemanticDiagnostics(t,r);if(ul.Core.eachSymbolReferenceInFile(E,o,t,O=>d!==O&&!OUe(O,L,t,o))){c=!1;continue}(f||(f=[])).push({expression:h.initializer,declarationSymbol:y})}return f&&{initializers:f,needsSecondPassForFixAll:!c}}function NUe(e,t){if(Fr(e.parent)&&He(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(He(e))return{identifiers:[e],isCompleteFix:!0};if(br(e)){let r,i=!0;for(const o of[e.left,e.right]){const 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 OUe(e,t,r,i){const o=Fr(e.parent)?e.parent.name:br(e.parent)?e.parent:e,s=nn(t,c=>c.start===o.getStart(r)&&c.start+c.length===o.getEnd());return s&&jr(xB,s.code)||i.getTypeAtLocation(o).flags&1}function AEe(e){return e.kind&32768||!!nr(e,t=>t.parent&&Js(t.parent)&&t.parent.body===t||lo(t)&&(t.parent.kind===259||t.parent.kind===215||t.parent.kind===216||t.parent.kind===171))}function nee(e,t,r,i,o,s){if(XO(o.parent)&&!o.parent.awaitModifier){const c=i.getTypeAtLocation(o),f=i.getAsyncIterableType();if(f&&i.isTypeAssignableTo(c,f)){const d=o.parent;e.replaceNode(r,d,N.updateForOfStatement(d,N.createToken(133),d.initializer,d.expression,d.statement));return}}if(br(o))for(const c of[o.left,o.right]){if(s&&He(c)){const y=i.getSymbolAtLocation(c);if(y&&s.has(bo(y)))continue}const f=i.getTypeAtLocation(c),d=i.getPromisedTypeOfPromise(f)?N.createAwaitExpression(c):c;e.replaceNode(r,c,d)}else if(t===ree&&Fr(o.parent)){if(s&&He(o.parent.expression)){const c=i.getSymbolAtLocation(o.parent.expression);if(c&&s.has(bo(c)))return}e.replaceNode(r,o.parent.expression,N.createParenthesizedExpression(N.createAwaitExpression(o.parent.expression))),CEe(e,o.parent.expression,r)}else if(jr(iee,t)&&ug(o.parent)){if(s&&He(o)){const c=i.getSymbolAtLocation(o);if(c&&s.has(bo(c)))return}e.replaceNode(r,o,N.createParenthesizedExpression(N.createAwaitExpression(o))),CEe(e,o,r)}else{if(s&&Ki(o.parent)&&He(o.parent.name)){const c=i.getSymbolAtLocation(o.parent.name);if(c&&!gv(s,bo(c)))return}e.replaceNode(r,o,N.createAwaitExpression(o))}}function CEe(e,t,r){const i=Cc(t.pos,r);i&&w9(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var SB,ree,iee,xB,PUe=C({"src/services/codefixes/addMissingAwait.ts"(){$r(),Eo(),SB="addMissingAwait",ree=_.Property_0_does_not_exist_on_type_1.code,iee=[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],xB=[_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.Operator_0_cannot_be_applied_to_type_1.code,_.Operator_0_cannot_be_applied_to_types_1_and_2.code,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_.Type_0_is_not_an_array_type.code,_.Type_0_is_not_an_array_type_or_a_string_type.code,_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ree,...iee],po({fixIds:[SB],errorCodes:xB,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:c}=t,f=TEe(r,i,o,s,c);if(!f)return;const d=t.program.getTypeChecker(),y=h=>gr.ChangeTracker.with(t,h);return CR([SEe(t,f,i,d,y),xEe(t,f,i,d,y)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Cs(e,xB,(c,f)=>{const d=TEe(t,f.code,f,i,r);if(!d)return;const y=h=>(h(c),[]);return SEe(e,d,f.code,o,y,s)||xEe(e,d,f.code,o,y,s)})}})}});function LEe(e,t,r,i,o){const s=aa(t,r),c=nr(s,y=>BA(y.parent)?y.parent.initializer===y:MUe(y)?!1:"quit");if(c)return AB(e,c,t,o);const f=s.parent;if(br(f)&&f.operatorToken.kind===63&&ou(f.parent))return AB(e,s,t,o);if(Gu(f)){const y=i.getTypeChecker();return Yn(f.elements,h=>FUe(h,y))?AB(e,f,t,o):void 0}const d=nr(s,y=>ou(y.parent)?!0:BUe(y)?!1:"quit");if(d){const y=i.getTypeChecker();return IEe(d,y)?AB(e,d,t,o):void 0}}function AB(e,t,r,i){(!i||gv(i,t))&&e.insertModifierBefore(r,85,t)}function MUe(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function FUe(e,t){const r=He(e)?e:nd(e,!0)&&He(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function BUe(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}function IEe(e,t){return br(e)?e.operatorToken.kind===27?Yn([e.left,e.right],r=>IEe(r,t)):e.operatorToken.kind===63&&He(e.left)&&!t.getSymbolAtLocation(e.left):!1}var CB,aee,GUe=C({"src/services/codefixes/addMissingConst.ts"(){$r(),Eo(),CB="addMissingConst",aee=[_.Cannot_find_name_0.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],po({errorCodes:aee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>LEe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ro(CB,r,_.Add_const_to_unresolved_variable,CB,_.Add_const_to_all_unresolved_variables)]},fixIds:[CB],getAllCodeActions:e=>{const t=new Set;return Cs(e,aee,(r,i)=>LEe(r,i.file,i.start,e.program,t))}})}});function kEe(e,t,r,i){const o=aa(t,r);if(!He(o))return;const s=o.parent;s.kind===169&&(!i||gv(i,s))&&e.insertModifierBefore(t,136,s)}var LB,oee,UUe=C({"src/services/codefixes/addMissingDeclareProperty.ts"(){$r(),Eo(),LB="addMissingDeclareProperty",oee=[_.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],po({errorCodes:oee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>kEe(i,t.sourceFile,t.span.start));if(r.length>0)return[ro(LB,r,_.Prefix_with_declare,LB,_.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LB],getAllCodeActions:e=>{const t=new Set;return Cs(e,oee,(r,i)=>kEe(r,i.file,i.start,t))}})}});function wEe(e,t,r){const i=aa(t,r),o=nr(i,Bu);D.assert(!!o,"Expected position to be owned by a decorator.");const s=N.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var IB,see,VUe=C({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){$r(),Eo(),IB="addMissingInvocationForDecorator",see=[_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],po({errorCodes:see,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>wEe(i,t.sourceFile,t.span.start));return[ro(IB,r,_.Call_decorator_expression,IB,_.Add_to_all_uncalled_decorators)]},fixIds:[IB],getAllCodeActions:e=>Cs(e,see,(t,r)=>wEe(t,r.file,r.start))})}});function DEe(e,t,r){const i=aa(t,r),o=i.parent;if(!Ba(o))return D.fail("Tried to add a parameter name to a non-parameter: "+D.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);D.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),D.assert(s>-1,"Parameter not found in parent parameter list.");const c=N.createTypeReferenceNode(o.name,void 0),f=N.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken?N.createArrayTypeNode(c):c,o.initializer);e.replaceNode(t,o,f)}var kB,lee,jUe=C({"src/services/codefixes/addNameToNamelessParameter.ts"(){$r(),Eo(),kB="addNameToNamelessParameter",lee=[_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],po({errorCodes:lee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>DEe(i,t.sourceFile,t.span.start));return[ro(kB,r,_.Add_parameter_name,kB,_.Add_names_to_all_parameters_without_names)]},fixIds:[kB],getAllCodeActions:e=>Cs(e,lee,(t,r)=>DEe(t,r.file,r.start))})}});function HUe(e,t,r){var i,o;const s=REe(XQ(e,t),r);if(!s)return rt;const{source:c,target:f}=s,d=WUe(c,f,r)?r.getTypeAtLocation(f.expression):r.getTypeAtLocation(f);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(y=>Zn(y).fileName.match(/\.d\.ts$/))?rt:r.getExactOptionalProperties(d)}function WUe(e,t,r){return Fr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function REe(e,t){var r;if(e){if(br(e.parent)&&e.parent.operatorToken.kind===63)return{source:e.parent.right,target:e.parent.left};if(Ki(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(no(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!cx(i.valueDeclaration.kind)||!vt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(He(s))return{source:e,target:s}}else if(qc(e.parent)&&He(e.parent.name)||t_(e.parent)){const i=REe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:qc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function zUe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(If(i)||to(i))&&i.type){const o=N.createUnionTypeNode([...i.type.kind===189?i.type.types:[i.type],N.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var cee,NEe,qUe=C({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){$r(),Eo(),cee="addOptionalPropertyUndefined",NEe=[_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.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],po({errorCodes:NEe,getCodeActions(e){const t=e.program.getTypeChecker(),r=HUe(e.sourceFile,e.span,t);if(!r.length)return;const i=gr.ChangeTracker.with(e,o=>zUe(o,r));return[Cp(cee,i,_.Add_undefined_to_optional_property_type)]},fixIds:[cee]})}});function OEe(e,t){const r=aa(e,t);return ai(Ba(r.parent)?r.parent.parent:r.parent,PEe)}function PEe(e){return JUe(e)&&MEe(e)}function MEe(e){return Qs(e)?e.parameters.some(MEe)||!e.type&&!!sN(e):!e.type&&!!Av(e)}function FEe(e,t,r){if(Qs(r)&&(sN(r)||r.parameters.some(i=>!!Av(i)))){if(!r.typeParameters){const o=$3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Js(r)&&!bs(r,20,t);i&&e.insertNodeBefore(t,us(r.parameters),N.createToken(20));for(const o of r.parameters)if(!o.type){const s=Av(o);s&&e.tryInsertTypeAnnotation(t,o,lt(s,_b,Gi))}if(i&&e.insertNodeAfter(t,zo(r.parameters),N.createToken(21)),!r.type){const o=sN(r);o&&e.tryInsertTypeAnnotation(t,r,lt(o,_b,Gi))}}else{const i=D.checkDefined(Av(r),"A JSDocType for this declaration should exist");D.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,lt(i,_b,Gi))}}function JUe(e){return Qs(e)||e.kind===257||e.kind===168||e.kind===169}function _b(e){switch(e.kind){case 315:case 316:return N.createTypeReferenceNode("any",rt);case 319:return XUe(e);case 318:return _b(e.type);case 317:return YUe(e);case 321:return $Ue(e);case 320:return QUe(e);case 180:return eVe(e);case 325:return KUe(e);default:const t=Bn(e,_b,Tg);return or(t,1),t}}function KUe(e){const t=N.createTypeLiteralNode(Vt(e.jsDocPropertyTags,r=>N.createPropertySignature(void 0,He(r.name)?r.name:r.name.right,LO(r)?N.createToken(57):void 0,r.typeExpression&<(r.typeExpression.type,_b,Gi)||N.createKeywordTypeNode(131))));return or(t,1),t}function XUe(e){return N.createUnionTypeNode([lt(e.type,_b,Gi),N.createTypeReferenceNode("undefined",rt)])}function YUe(e){return N.createUnionTypeNode([lt(e.type,_b,Gi),N.createTypeReferenceNode("null",rt)])}function $Ue(e){return N.createArrayTypeNode(lt(e.type,_b,Gi))}function QUe(e){var t;return N.createFunctionTypeNode(rt,e.parameters.map(ZUe),(t=e.type)!=null?t:N.createKeywordTypeNode(131))}function ZUe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===321&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?N.createToken(25):e.dotDotDotToken;return N.createParameterDeclaration(e.modifiers,o,i,e.questionToken,lt(e.type,_b,Gi),e.initializer)}function eVe(e){let t=e.typeName,r=e.typeArguments;if(He(e.typeName)){if(M3(e))return tVe(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=N.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=N.createNodeArray([N.createTypeReferenceNode("any",rt)]):r=Jn(e.typeArguments,_b,Gi)}return N.createTypeReferenceNode(t,r)}function tVe(e){const t=N.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===148?"n":"s",void 0,N.createTypeReferenceNode(e.typeArguments[0].kind===148?"number":"string",[]),void 0),r=N.createTypeLiteralNode([N.createIndexSignature(void 0,[t],e.typeArguments[1])]);return or(r,1),r}var wB,uee,nVe=C({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){$r(),Eo(),wB="annotateWithTypeFromJSDoc",uee=[_.JSDoc_types_may_be_moved_to_TypeScript_types.code],po({errorCodes:uee,getCodeActions(e){const t=OEe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>FEe(i,e.sourceFile,t));return[ro(wB,r,_.Annotate_with_type_from_JSDoc,wB,_.Annotate_everything_with_types_from_JSDoc)]},fixIds:[wB],getAllCodeActions:e=>Cs(e,uee,(t,r)=>{const i=OEe(r.file,r.start);i&&FEe(t,r.file,i)})})}});function BEe(e,t,r,i,o,s){const c=i.getSymbolAtLocation(aa(t,r));if(!c||!c.valueDeclaration||!(c.flags&19))return;const f=c.valueDeclaration;if(yc(f)||Bs(f))e.replaceNode(t,f,h(f));else if(Ki(f)){const E=y(f);if(!E)return;const A=f.parent.parent;Vu(f.parent)&&f.parent.declarations.length>1?(e.delete(t,f),e.insertNodeAfter(t,A,E)):e.replaceNode(t,A,E)}function d(E){const A=[];return E.exports&&E.exports.forEach(O=>{if(O.name==="prototype"&&O.declarations){const k=O.declarations[0];if(O.declarations.length===1&&Fr(k)&&br(k.parent)&&k.parent.operatorToken.kind===63&&Ls(k.parent.right)){const G=k.parent.right;I(G.symbol,void 0,A)}}else I(O,[N.createToken(124)],A)}),E.members&&E.members.forEach((O,k)=>{var G,V,H,te;if(k==="constructor"&&O.valueDeclaration){const X=(te=(H=(V=(G=E.exports)==null?void 0:G.get("prototype"))==null?void 0:V.declarations)==null?void 0:H[0])==null?void 0:te.parent;X&&br(X)&&Ls(X.right)&&kt(X.right.properties,RB)||e.delete(t,O.valueDeclaration.parent);return}I(O,void 0,A)}),A;function L(O,k){return ll(O)?Fr(O)&&RB(O)?!0:Ka(k):Yn(O.properties,G=>!!(ac(G)||$M(G)||qc(G)&&Bs(G.initializer)&&G.name||RB(G)))}function I(O,k,G){if(!(O.flags&8192)&&!(O.flags&4096))return;const V=O.valueDeclaration,H=V.parent,te=H.right;if(!L(V,te)||kt(G,re=>{const ye=ka(re);return!!(ye&&He(ye)&&Mr(ye)===Fl(O))}))return;const X=H.parent&&H.parent.kind===241?H.parent:H;if(e.delete(t,X),!te){G.push(N.createPropertyDeclaration(k,O.name,void 0,void 0,void 0));return}if(ll(V)&&(Bs(te)||Js(te))){const re=Ap(t,o),ye=rVe(V,s,re);ye&&Y(G,te,ye);return}else if(Ls(te)){Ue(te.properties,re=>{(ac(re)||$M(re))&&G.push(re),qc(re)&&Bs(re.initializer)&&Y(G,re.initializer,re.name),RB(re)});return}else{if(td(t)||!Fr(V))return;const re=N.createPropertyDeclaration(k,V.name,void 0,void 0,te);oL(H.parent,re,t),G.push(re);return}function Y(re,ye,ae){return Bs(ye)?P(re,ye,ae):de(re,ye,ae)}function P(re,ye,ae){const W=ba(k,DB(ye,132)),ce=N.createMethodDeclaration(W,void 0,ae,void 0,void 0,ye.parameters,void 0,ye.body);oL(H,ce,t),re.push(ce)}function de(re,ye,ae){const W=ye.body;let ce;W.kind===238?ce=W:ce=N.createBlock([N.createReturnStatement(W)]);const me=ba(k,DB(ye,132)),ve=N.createMethodDeclaration(me,void 0,ae,void 0,void 0,ye.parameters,void 0,ce);oL(H,ve,t),re.push(ve)}}}function y(E){const A=E.initializer;if(!A||!Bs(A)||!He(E.name))return;const L=d(E.symbol);A.body&&L.unshift(N.createConstructorDeclaration(void 0,A.parameters,A.body));const I=DB(E.parent.parent,93);return N.createClassDeclaration(I,E.name,void 0,void 0,L)}function h(E){const A=d(c);E.body&&A.unshift(N.createConstructorDeclaration(void 0,E.parameters,E.body));const L=DB(E,93);return N.createClassDeclaration(L,E.name,void 0,void 0,A)}}function DB(e,t){return X_(e)?lr(e.modifiers,r=>r.kind===t):void 0}function RB(e){return e.name?!!(He(e.name)&&e.name.text==="constructor"):!1}function rVe(e,t,r){if(Fr(e))return e.name;const i=e.argumentExpression;if(b_(i))return i;if(xs(i))return M_(i.text,es(t))?N.createIdentifier(i.text):Ox(i)?N.createStringLiteral(i.text,r===0):i}var NB,dee,iVe=C({"src/services/codefixes/convertFunctionToEs6Class.ts"(){$r(),Eo(),NB="convertFunctionToEs6Class",dee=[_.This_constructor_function_may_be_converted_to_a_class_declaration.code],po({errorCodes:dee,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>BEe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ro(NB,t,_.Convert_function_to_an_ES2015_class,NB,_.Convert_all_constructor_functions_to_classes)]},fixIds:[NB],getAllCodeActions:e=>Cs(e,dee,(t,r)=>BEe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function GEe(e,t,r,i){const o=aa(t,r);let s;if(He(o)&&Ki(o.parent)&&o.parent.initializer&&Qs(o.parent.initializer)?s=o.parent.initializer:s=ai(Cf(aa(t,r)),TZ),!s)return;const c=new Map,f=fr(s),d=oVe(s,i),y=sVe(s,i,c);if(!bZ(y,i))return;const h=y.body&&lo(y.body)?aVe(y.body,i):rt,E={checker:i,synthNamesMap:c,setOfExpressionsToReturn:d,isInJSFile:f};if(!h.length)return;const A=Jo(t.text,Zp(s).pos);e.insertModifierAt(t,A,132,{suffix:" "});for(const L of h)if(Ma(L,function I(O){if(no(O)){const k=_2(O,O,E,!1);if(eS())return!0;e.replaceNodeWithNodes(t,L,k)}else if(!Ka(O)&&(Ma(O,I),eS()))return!0}),eS())return}function aVe(e,t){const r=[];return _T(e,i=>{Z9(i,t)&&r.push(i)}),r}function oVe(e,t){if(!e.body)return new Set;const r=new Set;return Ma(e.body,function i(o){jw(o,t,"then")?(r.add(ms(o)),Ue(o.arguments,i)):jw(o,t,"catch")||jw(o,t,"finally")?(r.add(ms(o)),Ma(o,i)):VEe(o,t)?r.add(ms(o)):Ma(o,i)}),r}function jw(e,t,r){if(!no(e))return!1;const o=d6(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function UEe(e,t){return(ti(e)&4)!==0&&e.target===t}function OB(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(UEe(i,r.getPromiseType())||UEe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===uy(e.arguments,0))return uy(e.typeArguments,0);if(t===uy(e.arguments,1))return uy(e.typeArguments,1)}else return uy(e.typeArguments,0)}function VEe(e,t){return vt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function sVe(e,t,r){const i=new Map,o=__();return Ma(e,function s(c){if(!He(c)){Ma(c,s);return}const f=t.getSymbolAtLocation(c);if(f){const d=t.getTypeAtLocation(c),y=JEe(d,t),h=bo(f).toString();if(y&&!Ba(c.parent)&&!Qs(c.parent)&&!r.has(h)){const E=Yc(y.parameters),A=(E==null?void 0:E.valueDeclaration)&&Ba(E.valueDeclaration)&&ai(E.valueDeclaration.name,He)||N.createUniqueName("result",16),L=jEe(A,o);r.set(h,L),o.add(A.text,f)}else if(c.parent&&(Ba(c.parent)||Ki(c.parent)||ps(c.parent))){const E=c.text,A=o.get(E);if(A&&A.some(L=>L!==f)){const L=jEe(c,o);i.set(h,L.identifier),r.set(h,L),o.add(E,f)}else{const L=Dl(c);r.set(h,cL(L)),o.add(E,f)}}}}),I6(e,!0,s=>{if(ps(s)&&He(s.name)&&Hm(s.parent)){const c=t.getSymbolAtLocation(s.name),f=c&&i.get(String(bo(c)));if(f&&f.text!==(s.name||s.propertyName).getText())return N.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,f,s.initializer)}else if(He(s)){const c=t.getSymbolAtLocation(s),f=c&&i.get(String(bo(c)));if(f)return N.createIdentifier(f.text)}})}function jEe(e,t){const r=(t.get(e.text)||rt).length,i=r===0?e:N.createIdentifier(e.text+"_"+r);return cL(i)}function eS(){return!U6}function $v(){return U6=!1,rt}function _2(e,t,r,i,o){if(jw(t,r.checker,"then"))return uVe(t,uy(t.arguments,0),uy(t.arguments,1),r,i,o);if(jw(t,r.checker,"catch"))return zEe(t,uy(t.arguments,0),r,i,o);if(jw(t,r.checker,"finally"))return cVe(t,uy(t.arguments,0),r,i,o);if(Fr(t))return _2(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(D.assertNode(Sl(t).parent,Fr),dVe(e,t,r,i,o)):$v()}function PB({checker:e},t){if(t.kind===104)return!0;if(He(t)&&!xl(t)&&Mr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function lVe(e){const t=N.createUniqueName(e.identifier.text,16);return cL(t)}function HEe(e,t,r){let i;return r&&!Ww(e,t)&&(Hw(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const c=lVe(r);t.synthNamesMap.set(s,c)}})):i=cL(N.createUniqueName("result",16),r.types),mee(i)),i}function WEe(e,t,r,i,o){const s=[];let c;if(i&&!Ww(e,t)){c=Dl(mee(i));const f=i.types,d=t.checker.getUnionType(f,2),y=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),h=[N.createVariableDeclaration(c,void 0,y)],E=N.createVariableStatement(void 0,N.createVariableDeclarationList(h,1));s.push(E)}return s.push(r),o&&c&&pVe(o)&&s.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Dl($Ee(o)),void 0,void 0,c)],2))),s}function cVe(e,t,r,i,o){if(!t||PB(r,t))return _2(e,e.expression.expression,r,i,o);const s=HEe(e,r,o),c=_2(e,e.expression.expression,r,!0,s);if(eS())return $v();const f=_ee(t,i,void 0,void 0,e,r);if(eS())return $v();const d=N.createBlock(c),y=N.createBlock(f),h=N.createTryStatement(d,void 0,y);return WEe(e,r,h,s,o)}function zEe(e,t,r,i,o){if(!t||PB(r,t))return _2(e,e.expression.expression,r,i,o);const s=XEe(t,r),c=HEe(e,r,o),f=_2(e,e.expression.expression,r,!0,c);if(eS())return $v();const d=_ee(t,i,c,s,e,r);if(eS())return $v();const y=N.createBlock(f),h=N.createCatchClause(s&&Dl(G6(s)),N.createBlock(d)),E=N.createTryStatement(y,h,void 0);return WEe(e,r,E,c,o)}function uVe(e,t,r,i,o,s){if(!t||PB(i,t))return zEe(e,r,i,o,s);if(r&&!PB(i,r))return $v();const c=XEe(t,i),f=_2(e.expression.expression,e.expression.expression,i,!0,c);if(eS())return $v();const d=_ee(t,o,s,c,e,i);return eS()?$v():ba(f,d)}function dVe(e,t,r,i,o){if(Ww(e,r)){let s=Dl(t);return i&&(s=N.createAwaitExpression(s)),[N.createReturnStatement(s)]}return MB(o,N.createAwaitExpression(t),void 0)}function MB(e,t,r){return!e||YEe(e)?[N.createExpressionStatement(t)]:Hw(e)&&e.hasBeenDeclared?[N.createExpressionStatement(N.createAssignment(Dl(pee(e)),t))]:[N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Dl(G6(e)),void 0,r,t)],2))]}function fee(e,t){if(t&&e){const r=N.createUniqueName("result",16);return[...MB(cL(r),e,t),N.createReturnStatement(r)]}return[N.createReturnStatement(e)]}function _ee(e,t,r,i,o,s){var c;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;const f=N.createCallExpression(Dl(e),void 0,Hw(i)?[pee(i)]:[]);if(Ww(o,s))return fee(f,OB(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),y=s.checker.getSignaturesOfType(d,0);if(!y.length)return $v();const h=y[0].getReturnType(),E=MB(r,N.createAwaitExpression(f),OB(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(h)||h),E;case 215:case 216:{const A=e.body,L=(c=JEe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:c.getReturnType();if(lo(A)){let I=[],O=!1;for(const k of A.statements)if(Ep(k))if(O=!0,Z9(k,s.checker))I=I.concat(KEe(s,k,t,r));else{const G=L&&k.expression?qEe(s.checker,L,k.expression):k.expression;I.push(...fee(G,OB(o,e,s.checker)))}else{if(t&&_T(k,o1))return $v();I.push(k)}return Ww(o,s)?I.map(k=>Dl(k)):fVe(I,r,s,O)}else{const I=EZ(A,s.checker)?KEe(s,N.createReturnStatement(A),t,r):rt;if(I.length>0)return I;if(L){const O=qEe(s.checker,L,A);if(Ww(o,s))return fee(O,OB(o,e,s.checker));{const k=MB(r,O,void 0);return r&&r.types.push(s.checker.getAwaitedType(L)||L),k}}else return $v()}}default:return $v()}return rt}function qEe(e,t,r){const i=Dl(r);return e.getPromisedTypeOfPromise(t)?N.createAwaitExpression(i):i}function JEe(e,t){const r=t.getSignaturesOfType(e,0);return tl(r)}function fVe(e,t,r,i){const o=[];for(const s of e)if(Ep(s)){if(s.expression){const c=VEe(s.expression,r.checker)?N.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(N.createExpressionStatement(c)):Hw(t)&&t.hasBeenDeclared?o.push(N.createExpressionStatement(N.createAssignment(pee(t),c))):o.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(G6(t),void 0,void 0,c)],2)))}}else o.push(Dl(s));return!i&&t!==void 0&&o.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(G6(t),void 0,void 0,N.createIdentifier("undefined"))],2))),o}function KEe(e,t,r,i){let o=[];return Ma(t,function s(c){if(no(c)){const f=_2(c,c,e,r,i);if(o=o.concat(f),o.length>0)return}else Ka(c)||Ma(c,s)}),o}function XEe(e,t){const r=[];let i;if(Qs(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else He(e)?i=s(e):Fr(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);const y=ma(d.elements,h=>Rc(h)?[]:[o(h.name)]);return _Ve(d,y)}function s(d){const y=f(d),h=c(y);return h&&t.synthNamesMap.get(bo(h).toString())||cL(d,r)}function c(d){var y,h;return(h=(y=ai(d,Rm))==null?void 0:y.symbol)!=null?h:t.checker.getSymbolAtLocation(d)}function f(d){return d.original?d.original:d}}function YEe(e){return e?Hw(e)?!e.identifier.text:Yn(e.elements,YEe):!0}function cL(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function _Ve(e,t=rt,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function pee(e){return e.hasBeenReferenced=!0,e.identifier}function G6(e){return Hw(e)?mee(e):$Ee(e)}function $Ee(e){for(const t of e.elements)G6(t);return e.bindingPattern}function mee(e){return e.hasBeenDeclared=!0,e.identifier}function Hw(e){return e.kind===0}function pVe(e){return e.kind===1}function Ww(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ms(e.original))}var FB,hee,U6,mVe=C({"src/services/codefixes/convertToAsyncFunction.ts"(){$r(),Eo(),FB="convertToAsyncFunction",hee=[_.This_may_be_converted_to_an_async_function.code],U6=!0,po({errorCodes:hee,getCodeActions(e){U6=!0;const t=gr.ChangeTracker.with(e,r=>GEe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return U6?[ro(FB,t,_.Convert_to_async_function,FB,_.Convert_all_to_async_functions)]:[]},fixIds:[FB],getAllCodeActions:e=>Cs(e,hee,(t,r)=>GEe(t,r.file,r.start,e.program.getTypeChecker()))})}});function hVe(e,t,r,i){for(const o of e.imports){const s=VA(e,o.text,Sp(e,o));if(!s||s.resolvedFileName!==t.fileName)continue;const c=VN(o);switch(c.kind){case 268:r.replaceNode(e,c,Ry(c.name,void 0,o,i));break;case 210:xd(c,!1)&&r.replaceNode(e,c,N.createPropertyAccessExpression(Dl(c),"default"));break}}}function gVe(e,t,r,i,o){const s={original:wVe(e),additional:new Set},c=yVe(e,t,s);vVe(e,c,r);let f=!1,d;for(const y of lr(e.statements,uc)){const h=ZEe(e,y,r,t,s,i,o);h&&yN(h,d??(d=new Map))}for(const y of lr(e.statements,h=>!uc(h))){const h=bVe(e,y,t,r,s,i,c,d,o);f=f||h}return d==null||d.forEach((y,h)=>{r.replaceNode(e,h,y)}),f}function yVe(e,t,r){const i=new Map;return QEe(e,o=>{const{text:s}=o.name;!i.has(s)&&(W3(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,BB(`_${s}`,r))}),i}function vVe(e,t,r){QEe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,N.createIdentifier(t.get(s)||s))})}function QEe(e,t){e.forEachChild(function r(i){if(Fr(i)&&V1(e,i.expression)&&He(i.name)){const{parent:o}=i;t(i,br(o)&&o.left===i&&o.operatorToken.kind===63)}i.forEachChild(r)})}function bVe(e,t,r,i,o,s,c,f,d){switch(t.kind){case 240:return ZEe(e,t,i,r,o,s,d),!1;case 241:{const{expression:y}=t;switch(y.kind){case 210:return xd(y,!0)&&i.replaceNode(e,t,Ry(void 0,void 0,y.arguments[0],d)),!1;case 223:{const{operatorToken:h}=y;return h.kind===63&&TVe(e,r,y,i,c,f)}}}default:return!1}}function ZEe(e,t,r,i,o,s,c){const{declarationList:f}=t;let d=!1;const y=Vt(f.declarations,h=>{const{name:E,initializer:A}=h;if(A){if(V1(e,A))return d=!0,uL([]);if(xd(A,!0))return d=!0,IVe(E,A.arguments[0],i,o,s,c);if(Fr(A)&&xd(A.expression,!0))return d=!0,EVe(E,A.name.text,A.expression.arguments[0],o,c)}return uL([N.createVariableStatement(void 0,N.createVariableDeclarationList([h],f.flags))])});if(d){r.replaceNodeWithNodes(e,t,ma(y,E=>E.newImports));let h;return Ue(y,E=>{E.useSitesToUnqualify&&yN(E.useSitesToUnqualify,h??(h=new Map))}),h}}function EVe(e,t,r,i,o){switch(e.kind){case 203:case 204:{const s=BB(t,i);return uL([rTe(s,t,r,o),GB(void 0,e,N.createIdentifier(s))])}case 79:return uL([rTe(e.text,t,r,o)]);default:return D.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function TVe(e,t,r,i,o,s){const{left:c,right:f}=r;if(!Fr(c))return!1;if(V1(e,c))if(V1(e,f))i.delete(e,r.parent);else{const d=Ls(f)?SVe(f,s):xd(f,!0)?AVe(f.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,g_(c.getStart(e),f.pos),"export default"),!0)}else V1(e,c.expression)&&xVe(e,r,i,o);return!1}function SVe(e,t){const r=KS(e.properties,i=>{switch(i.kind){case 174:case 175:case 300:case 301:return;case 299:return He(i.name)?LVe(i.name.text,i.initializer,t):void 0;case 171:return He(i.name)?nTe(i.name.text,[N.createToken(93)],i,t):void 0;default:D.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function xVe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const c=[GB(void 0,s,t.right),vee([N.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,c)}else CVe(t,e,r)}function AVe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:hM;return o.has("export=")?[[gee(r)],!0]:o.has("default")?o.size>1?[[eTe(r),gee(r)],!0]:[[gee(r)],!0]:[[eTe(r)],!1]}function eTe(e){return vee(void 0,e)}function gee(e){return vee([N.createExportSpecifier(!1,void 0,"default")],e)}function CVe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Bs(t)||Js(t)||Uu(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},N.createToken(93),{suffix:" "}),t.name||o.insertName(i,t,s);const c=bs(r,26,i);c&&o.delete(i,c)}else o.replaceNodeRangeWithNodes(i,e.expression,bs(e,24,i),[N.createToken(93),N.createToken(85)],{joiner:" ",suffix:" "})}function LVe(e,t,r){const i=[N.createToken(93)];switch(t.kind){case 215:{const{name:s}=t;if(s&&s.text!==e)return o()}case 216:return nTe(e,i,t,r);case 228:return RVe(e,i,t,r);default:return o()}function o(){return GB(i,N.createIdentifier(e),yee(t,r))}}function yee(e,t){if(!t||!kt(Ro(t.keys()),i=>uf(e,i)))return e;return Va(e)?GQ(e,!0,r):I6(e,!0,r);function r(i){if(i.kind===208){const o=t.get(i);return t.delete(i),o}}}function IVe(e,t,r,i,o,s){switch(e.kind){case 203:{const c=KS(e.elements,f=>f.dotDotDotToken||f.initializer||f.propertyName&&!He(f.propertyName)||!He(f.name)?void 0:iTe(f.propertyName&&f.propertyName.text,f.name.text));if(c)return uL([Ry(void 0,c,t,s)])}case 204:{const c=BB(wee(t.text,o),i);return uL([Ry(N.createIdentifier(c),void 0,t,s),GB(void 0,Dl(e),N.createIdentifier(c))])}case 79:return kVe(e,t,r,i,s);default:return D.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function kVe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),c=new Map;let f=!1,d;for(const h of i.original.get(e.text)){if(r.getSymbolAtLocation(h)!==s||h===e)continue;const{parent:E}=h;if(Fr(E)){const{name:{text:A}}=E;if(A==="default"){f=!0;const L=h.getText();(d??(d=new Map)).set(E,N.createIdentifier(L))}else{D.assert(E.expression===h,"Didn't expect expression === use");let L=c.get(A);L===void 0&&(L=BB(A,i),c.set(A,L)),(d??(d=new Map)).set(E,N.createIdentifier(L))}}else f=!0}const y=c.size===0?void 0:Ro(_o(c.entries(),([h,E])=>N.createImportSpecifier(!1,h===E?void 0:N.createIdentifier(h),N.createIdentifier(E))));return y||(f=!0),uL([Ry(f?Dl(e):void 0,y,t,o)],d)}function BB(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function wVe(e){const t=__();return tTe(e,r=>t.add(r.text,r)),t}function tTe(e,t){He(e)&&DVe(e)&&t(e),e.forEachChild(r=>tTe(r,t))}function DVe(e){const{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:return t.propertyName!==e;case 273:return t.propertyName!==e;default:return!0}}function nTe(e,t,r,i){return N.createFunctionDeclaration(ba(t,Y1(r.modifiers)),Dl(r.asteriskToken),e,Y1(r.typeParameters),Y1(r.parameters),Dl(r.type),N.converters.convertToFunctionBlock(yee(r.body,i)))}function RVe(e,t,r,i){return N.createClassDeclaration(ba(t,Y1(r.modifiers)),e,Y1(r.typeParameters),Y1(r.heritageClauses),yee(r.members,i))}function rTe(e,t,r,i){return t==="default"?Ry(N.createIdentifier(e),void 0,r,i):Ry(void 0,[iTe(t,e)],r,i)}function iTe(e,t){return N.createImportSpecifier(!1,e!==void 0&&e!==t?N.createIdentifier(e):void 0,N.createIdentifier(t))}function GB(e,t,r){return N.createVariableStatement(e,N.createVariableDeclarationList([N.createVariableDeclaration(t,void 0,void 0,r)],2))}function vee(e,t){return N.createExportDeclaration(void 0,!1,e&&N.createNamedExports(e),t===void 0?void 0:N.createStringLiteral(t))}function uL(e,t){return{newImports:e,useSitesToUnqualify:t}}var NVe=C({"src/services/codefixes/convertToEsModule.ts"(){$r(),Eo(),po({errorCodes:[_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=gr.ChangeTracker.with(e,s=>{if(gVe(t,r.getTypeChecker(),s,es(r.getCompilerOptions()),Ap(t,i)))for(const f of r.getSourceFiles())hVe(f,t,s,Ap(f,i))});return[Cp("convertToEsModule",o,_.Convert_to_ES_module)]}})}});function aTe(e,t){const r=nr(aa(e,t),Cd);return D.assert(!!r,"Expected position to be owned by a qualified name."),He(r.left)?r:void 0}function oTe(e,t,r){const i=r.right.text,o=N.createIndexedAccessTypeNode(N.createTypeReferenceNode(r.left,void 0),N.createLiteralTypeNode(N.createStringLiteral(i)));e.replaceNode(t,r,o)}var UB,bee,OVe=C({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){$r(),Eo(),UB="correctQualifiedNameToIndexedAccessType",bee=[_.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],po({errorCodes:bee,getCodeActions(e){const t=aTe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,o=>oTe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ro(UB,r,[_.Rewrite_as_the_indexed_access_type_0,i],UB,_.Rewrite_all_as_indexed_access_types)]},fixIds:[UB],getAllCodeActions:e=>Cs(e,bee,(t,r)=>{const i=aTe(r.file,r.start);i&&oTe(t,r.file,i)})})}});function sTe(e,t){return ai(aa(t,e.start).parent,dd)}function lTe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=PVe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,154,i);else{const c=N.updateExportDeclaration(o,o.modifiers,!1,N.updateNamedExports(i,lr(i.elements,d=>!jr(s,d))),o.moduleSpecifier,void 0),f=N.createExportDeclaration(void 0,!0,N.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,c,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,f)}}function PVe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=hbe(ad(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return lr(r.elements,o=>{var s;return o===e||((s=mbe(o,i))==null?void 0:s.code)===VB[0]})}var VB,jB,MVe=C({"src/services/codefixes/convertToTypeOnlyExport.ts"(){$r(),Eo(),VB=[_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],jB="convertToTypeOnlyExport",po({errorCodes:VB,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>lTe(i,sTe(t.span,t.sourceFile),t));if(r.length)return[ro(jB,r,_.Convert_to_type_only_export,jB,_.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[jB],getAllCodeActions:function(t){const r=new Map;return Cs(t,VB,(i,o)=>{const s=sTe(o,t.sourceFile);s&&bp(r,ms(s.parent.parent))&&lTe(i,s,t)})}})}});function cTe(e,t){const{parent:r}=aa(e,t);return Ld(r)||zc(r)&&r.importClause?r:void 0}function uTe(e,t,r){if(Ld(r))e.replaceNode(t,r,N.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const i=r.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,r,[N.createImportDeclaration(Y1(r.modifiers,!0),N.createImportClause(!0,Dl(i.name,!0),void 0),Dl(r.moduleSpecifier,!0),Dl(r.assertClause,!0)),N.createImportDeclaration(Y1(r.modifiers,!0),N.createImportClause(!0,void 0,Dl(i.namedBindings,!0)),Dl(r.moduleSpecifier,!0),Dl(r.assertClause,!0))]);else{const o=N.updateImportDeclaration(r,r.modifiers,N.updateImportClause(i,!0,i.name,i.namedBindings),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,o)}}}var Eee,HB,FVe=C({"src/services/codefixes/convertToTypeOnlyImport.ts"(){$r(),Eo(),Eee=[_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],HB="convertToTypeOnlyImport",po({errorCodes:Eee,getCodeActions:function(t){const r=cTe(t.sourceFile,t.span.start);if(r){const i=gr.ChangeTracker.with(t,o=>uTe(o,t.sourceFile,r));return[ro(HB,i,_.Convert_to_type_only_import,HB,_.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[HB],getAllCodeActions:function(t){return Cs(t,Eee,(r,i)=>{const o=cTe(i.file,i.start);o&&uTe(r,i.file,o)})}})}});function dTe(e,t){const r=aa(e,t);if(He(r)){const i=ao(r.parent.parent,If),o=r.getText(e);return{container:ao(i.parent,cf),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function fTe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,N.createMappedTypeNode(void 0,N.createTypeParameterDeclaration(void 0,s,N.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var WB,Tee,BVe=C({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){$r(),Eo(),WB="convertLiteralTypeToMappedType",Tee=[_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],po({errorCodes:Tee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=dTe(r,i.start);if(!o)return;const{name:s,constraint:c}=o,f=gr.ChangeTracker.with(t,d=>fTe(d,r,o));return[ro(WB,f,[_.Convert_0_to_1_in_0,c,s],WB,_.Convert_all_type_literals_to_mapped_type)]},fixIds:[WB],getAllCodeActions:e=>Cs(e,Tee,(t,r)=>{const i=dTe(r.file,r.start);i&&fTe(t,r.file,i)})})}});function _Te(e,t){return D.checkDefined(Ac(aa(e,t)),"There should be a containing class")}function pTe(e){return!e.valueDeclaration||!(Fu(e.valueDeclaration)&8)}function mTe(e,t,r,i,o,s){const c=e.program.getTypeChecker(),f=GVe(i,c),d=c.getTypeAtLocation(t),h=c.getPropertiesOfType(d).filter(_M(pTe,k=>!f.has(k.escapedName))),E=c.getTypeAtLocation(i),A=nn(i.members,k=>ql(k));E.getNumberIndexType()||I(d,1),E.getStringIndexType()||I(d,0);const L=tS(r,e.program,s,e.host);Ite(i,h,r,e,s,L,k=>O(r,i,k)),L.writeFixes(o);function I(k,G){const V=c.getIndexInfoOfType(k,G);V&&O(r,i,c.indexInfoToIndexSignatureDeclaration(V,i,void 0,p2(e)))}function O(k,G,V){A?o.insertNodeAfter(k,A,V):o.insertMemberAtStart(k,G,V)}}function GVe(e,t){const r=$p(e);if(!r)return so();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return so(o.filter(pTe))}var See,zB,UVe=C({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){$r(),Eo(),See=[_.Class_0_incorrectly_implements_interface_1.code,_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],zB="fixClassIncorrectlyImplementsInterface",po({errorCodes:See,getCodeActions(e){const{sourceFile:t,span:r}=e,i=_Te(t,r.start);return ia(iC(i),o=>{const s=gr.ChangeTracker.with(e,c=>mTe(e,o,t,i,c,e.preferences));return s.length===0?void 0:ro(zB,s,[_.Implement_interface_0,o.getText(t)],zB,_.Implement_all_unimplemented_interfaces)})},fixIds:[zB],getAllCodeActions(e){const t=new Map;return Cs(e,See,(r,i)=>{const o=_Te(i.file,i.start);if(bp(t,ms(o)))for(const s of iC(o))mTe(e,s,i.file,o,r,e.preferences)})}})}});function tS(e,t,r,i,o){return hTe(e,t,!1,r,i,o)}function hTe(e,t,r,i,o,s){const c=t.getCompilerOptions(),f=[],d=[],y=new Map,h=new Map;return{addImportFromDiagnostic:E,addImportFromExportedSymbol:A,writeFixes:I,hasFixes:O};function E(k,G){const V=TTe(G,k.code,k.start,r);!V||!V.length||L(us(V))}function A(k,G){const V=D.checkDefined(k.parent),H=B9(k,es(c)),te=t.getTypeChecker(),X=te.getMergedSymbol(lf(k,te)),Y=vTe(e,X,H,V,!1,t,o,i,s),P=JB(e,t),de=gTe(e,D.checkDefined(Y),t,void 0,!!G,P,o,i);de&&L({fix:de,symbolName:H,errorIdentifierText:void 0})}function L(k){var G,V;const{fix:H,symbolName:te}=k;switch(H.kind){case 0:f.push(H);break;case 1:d.push(H);break;case 2:{const{importClauseOrBindingPattern:de,importKind:re,addAsTypeOnly:ye}=H,ae=String(ms(de));let W=y.get(ae);if(W||y.set(ae,W={importClauseOrBindingPattern:de,defaultImport:void 0,namedImports:new Map}),re===0){const ce=W==null?void 0:W.namedImports.get(te);W.namedImports.set(te,X(ce,ye))}else D.assert(W.defaultImport===void 0||W.defaultImport.name===te,"(Add to Existing) Default import should be missing or match symbolName"),W.defaultImport={name:te,addAsTypeOnly:X((G=W.defaultImport)==null?void 0:G.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:de,importKind:re,useRequire:ye,addAsTypeOnly:ae}=H,W=Y(de,re,ye,ae);switch(D.assert(W.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),re){case 1:D.assert(W.defaultImport===void 0||W.defaultImport.name===te,"(Add new) Default import should be missing or match symbolName"),W.defaultImport={name:te,addAsTypeOnly:X((V=W.defaultImport)==null?void 0:V.addAsTypeOnly,ae)};break;case 0:const ce=(W.namedImports||(W.namedImports=new Map)).get(te);W.namedImports.set(te,X(ce,ae));break;case 3:case 2:D.assert(W.namespaceLikeImport===void 0||W.namespaceLikeImport.name===te,"Namespacelike import shoudl be missing or match symbolName"),W.namespaceLikeImport={importKind:re,name:te,addAsTypeOnly:ae};break}break}case 4:break;default:D.assertNever(H,`fix wasn't never - got kind ${H.kind}`)}function X(de,re){return Math.max(de??0,re)}function Y(de,re,ye,ae){const W=P(de,!0),ce=P(de,!1),me=h.get(W),ve=h.get(ce),Se={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return re===1&&ae===2?me||(h.set(W,Se),Se):ae===1&&(me||ve)?me||ve:ve||(h.set(ce,Se),Se)}function P(de,re){return`${re?1:0}|${de}`}}function I(k){const G=Ap(e,i);for(const H of f)Iee(k,e,H);for(const H of d)kTe(k,e,H,G);y.forEach(({importClauseOrBindingPattern:H,defaultImport:te,namedImports:X})=>{ITe(k,e,H,te,Ro(X.entries(),([Y,P])=>({addAsTypeOnly:P,name:Y})),c,i)});let V;h.forEach(({useRequire:H,defaultImport:te,namedImports:X,namespaceLikeImport:Y},P)=>{const de=P.slice(2),ye=(H?RTe:DTe)(de,G,te,X&&Ro(X.entries(),([ae,W])=>({addAsTypeOnly:W,name:ae})),Y,c);V=AA(V,ye)}),V&&x9(k,e,V,!0,i)}function O(){return f.length>0||d.length>0||y.size>0||h.size>0}}function VVe(e,t,r,i){const o=Fw(e,i,r),s=bTe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(f,d,y,h){const{fixes:E,computedWithoutCacheCount:A}=qB(f,d,y,!1,t,e,r,i,s,h),L=STe(E,e,t,o,r);return L&&{...L,computedWithoutCacheCount:A}}}function jVe(e,t,r,i,o,s,c,f,d,y,h,E){const A=f.getCompilerOptions();let L;r?(L=R6(i,c,f,h,E).get(i.path,r),D.assertIsDefined(L,"Some exportInfo should match the specified exportMapKey")):(L=wW(j_(t.name))?[WVe(e,o,t,f,c)]:vTe(i,e,o,t,s,f,c,h,E),D.assertIsDefined(L,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=JB(i,f),O=kx(aa(i,y)),k=D.checkDefined(gTe(i,L,f,y,O,I,c,h));return{moduleSpecifier:k.moduleSpecifier,codeAction:yTe(Lee({host:c,formatContext:d,preferences:h},i,o,k,!1,A,h))}}function HVe(e,t,r,i,o,s){const c=r.getCompilerOptions(),f=sH(Cee(e,r.getTypeChecker(),t,c)),d=CTe(e,t,f,r),y=f!==t.text;return d&&yTe(Lee({host:i,formatContext:o,preferences:s},e,f,d,y,c,s))}function gTe(e,t,r,i,o,s,c,f){const d=Fw(e,f,c);return STe(qB(t,i,o,s,r,e,c,f).fixes,e,r,d,c)}function yTe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function vTe(e,t,r,i,o,s,c,f,d){const y=ETe(s,c);return R6(e,c,s,f,d).search(e.path,o,h=>h===r,h=>{if(lf(h[0].symbol,y(h[0].isFromPackageJson))===t&&h.some(E=>E.moduleSymbol===i||E.symbol.parent===i))return h})}function WVe(e,t,r,i,o){var s,c;const f=i.getCompilerOptions(),d=h(i.getTypeChecker(),!1);if(d)return d;const y=(c=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:c.getTypeChecker();return D.checkDefined(y&&h(y,!0),"Could not find symbol in specified module for code actions");function h(E,A){const L=q9(r,E,f);if(L&&lf(L.symbol,E)===e)return{symbol:L.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:L.exportKind,targetFlags:lf(e,E).flags,isFromPackageJson:A};const I=E.tryGetMemberInModuleExportsAndProperties(t,r);if(I&&lf(I,E)===e)return{symbol:I,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:lf(e,E).flags,isFromPackageJson:A}}}function qB(e,t,r,i,o,s,c,f,d=bTe(o.getTypeChecker(),s,o.getCompilerOptions()),y){const h=o.getTypeChecker(),E=ma(e,d.getImportsForExportInfo),A=t!==void 0&&zVe(E,t),L=JVe(E,r,h,o.getCompilerOptions());if(L)return{computedWithoutCacheCount:0,fixes:[...A?[A]:rt,L]};const{fixes:I,computedWithoutCacheCount:O=0}=XVe(e,E,o,s,t,r,i,c,f,y);return{computedWithoutCacheCount:O,fixes:[...A?[A]:rt,...I]}}function zVe(e,t){return Kt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=qVe(r),c=s&&((o=UN(r))==null?void 0:o.text);if(c)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:c}})}function qVe(e){var t,r,i;switch(e.kind){case 257:return(t=ai(e.name,He))==null?void 0:t.text;case 268:return e.name.text;case 269:return(i=ai((r=e.importClause)==null?void 0:r.namedBindings,Uv))==null?void 0:i.name.text;default:return D.assertNever(e)}}function xee(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||o7(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function JVe(e,t,r,i){return Kt(e,({declaration:o,importKind:s,symbol:c,targetFlags:f})=>{if(s===3||s===2||o.kind===268)return;if(o.kind===257)return(s===0||s===1)&&o.name.kind===203?{kind:2,importClauseOrBindingPattern:o.name,importKind:s,moduleSpecifier:o.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=o;if(!d||!xs(o.moduleSpecifier))return;const{name:y,namedBindings:h}=d;if(d.isTypeOnly&&!(s===0&&h))return;const E=xee(t,!1,c,f,r,i);if(!(s===1&&(y||E===2&&h))&&!(s===0&&(h==null?void 0:h.kind)===271))return{kind:2,importClauseOrBindingPattern:d,importKind:s,moduleSpecifier:o.moduleSpecifier.text,addAsTypeOnly:E}})}function bTe(e,t,r){let i;for(const o of t.imports){const s=VN(o);if($z(s.parent)){const c=e.resolveExternalModuleName(o);c&&(i||(i=__())).add(bo(c),s.parent)}else if(s.kind===269||s.kind===268){const c=e.getSymbolAtLocation(o);c&&(i||(i=__())).add(bo(c),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:c,symbol:f})=>{if(!(c&111551)&&td(t))return rt;const d=i==null?void 0:i.get(bo(o));if(!d)return rt;const y=Aee(t,s,r);return d.map(h=>({declaration:h,importKind:y,symbol:f,targetFlags:c}))}}}function JB(e,t){if(!td(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return au(r)<5;for(const i of t.getSourceFiles())if(!(i===e||!td(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function ETe(e,t){return Lm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function KVe(e,t,r,i,o,s,c,f,d){const y=td(t),h=e.getCompilerOptions(),E=i2(e,c),A=ETe(e,c),L=vl(h),I=y9(L),O=d?V=>({moduleSpecifiers:j1.tryGetModuleSpecifiersFromCache(V,t,E,f),computedWithoutCache:!1}):(V,H)=>j1.getModuleSpecifiersWithCacheInfo(V,H,h,t,E,f);let k=0;const G=ma(s,(V,H)=>{const te=A(V.isFromPackageJson),{computedWithoutCache:X,moduleSpecifiers:Y}=O(V.moduleSymbol,te),P=!!(V.targetFlags&111551),de=xee(i,!0,V.symbol,V.targetFlags,te,h);return k+=X?1:0,ia(Y,re=>{var ye;if(I&&Zx(re))return;if(!P&&y&&r!==void 0)return{kind:1,moduleSpecifier:re,usagePosition:r,exportInfo:V,isReExport:H>0};const ae=Aee(t,V.exportKind,h);let W;if(r!==void 0&&ae===3&&V.exportKind===0){const ce=te.resolveExternalModuleSymbol(V.moduleSymbol);let me;ce!==V.moduleSymbol&&(me=(ye=J9(ce,te,h))==null?void 0:ye.name),me||(me=kee(V.moduleSymbol,es(h),!1)),W={namespacePrefix:me,usagePosition:r}}return{kind:3,moduleSpecifier:re,importKind:ae,useRequire:o,addAsTypeOnly:de,exportInfo:V,isReExport:H>0,qualification:W}})});return{computedWithoutCacheCount:k,fixes:G}}function XVe(e,t,r,i,o,s,c,f,d,y){const h=Kt(t,E=>YVe(E,s,c,r.getTypeChecker(),r.getCompilerOptions()));return h?{fixes:[h]}:KVe(r,i,o,s,c,e,f,d,y)}function YVe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,c,f){var d;const y=(d=UN(e))==null?void 0:d.text;if(y){const h=s?4:xee(o,!0,r,i,c,f);return{kind:3,moduleSpecifier:y,importKind:t,addAsTypeOnly:h,useRequire:s}}}function TTe(e,t,r,i){const o=aa(e.sourceFile,r);let s;if(t===_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=eje(e,o);else if(He(o))if(t===_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const f=sH(Cee(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=CTe(e.sourceFile,o,f,e.program);return d&&[{fix:d,symbolName:f,errorIdentifierText:o.text}]}else s=rje(e,o,i);else return;const c=Fw(e.sourceFile,e.preferences,e.host);return s&&$Ve(s,e.sourceFile,e.program,c,e.host)}function $Ve(e,t,r,i,o){const s=c=>zs(c,o.getCurrentDirectory(),Z0(o));return TI(e,(c,f)=>s1(!!c.isJsxNamespaceFix,!!f.isJsxNamespaceFix)||Ws(c.fix.kind,f.fix.kind)||xTe(c.fix,f.fix,t,r,i.allowsImportingSpecifier,s))}function STe(e,t,r,i,o){if(kt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,c)=>xTe(c,s,t,r,i.allowsImportingSpecifier,f=>zs(f,o.getCurrentDirectory(),Z0(o)))===-1?c:s)}function xTe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?s1(o(t.moduleSpecifier),o(e.moduleSpecifier))||ZVe(e.moduleSpecifier,t.moduleSpecifier,r,i)||s1(ATe(e,r,i.getCompilerOptions(),s),ATe(t,r,i.getCompilerOptions(),s))||EO(e.moduleSpecifier,t.moduleSpecifier):0}function ATe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&vl(r)===2&&QVe(e.exportInfo.moduleFileName)){const s=i(hi(e.exportInfo.moduleFileName));return xa(t.path,s)}return!1}function QVe(e){return mu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function ZVe(e,t,r,i){return xa(e,"node:")&&!xa(t,"node:")?U9(r,i)?-1:1:xa(t,"node:")&&!xa(e,"node:")?U9(r,i)?1:-1:0}function eje({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),c=tje(o,s);if(!c)return;const f=s.getAliasedSymbol(c),d=c.name,y=[{symbol:c,moduleSymbol:f,moduleFileName:void 0,exportKind:3,targetFlags:f.flags,isFromPackageJson:!1}],h=JB(e,t);return qB(y,void 0,!1,h,t,e,r,i).fixes.map(A=>{var L;return{fix:A,symbolName:d,errorIdentifierText:(L=ai(o,He))==null?void 0:L.text}})}function tje(e,t){const r=He(e)?t.getSymbolAtLocation(e):void 0;if(n7(r))return r;const{parent:i}=e;if(ed(i)&&i.tagName===e||Jx(i)){const o=t.resolveName(t.getJsxNamespace(i),ed(i)?e:i,111551,!1);if(n7(o))return o}}function Aee(e,t,r,i){if(r.verbatimModuleSyntax&&(au(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return oje(e,r,!!i);case 3:return nje(e,r,!!i);default:return D.assertNever(t)}}function nje(e,t,r){if(AT(t))return 1;const i=au(t);switch(i){case 2:case 1:case 3:return fr(e)&&(Zl(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return D.assertNever(i,`Unexpected moduleKind ${i}`)}}function rje({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,c){const f=t.getTypeChecker(),d=t.getCompilerOptions();return ma(Cee(e,f,s,d),y=>{if(y==="default")return;const h=kx(s),E=JB(e,t),A=aje(y,rk(s),JT(s),r,e,t,c,i,o);return Ro(d_(A.values(),L=>qB(L,s.getStart(e),h,E,t,e,i,o).fixes),L=>({fix:L,symbolName:y,errorIdentifierText:s.text,isJsxNamespaceFix:y!==s.text}))})}function CTe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const c=o.getTypeOnlyAliasDeclaration(s);if(!(!c||Zn(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Cee(e,t,r,i){const o=r.parent;if((ed(o)||zx(o))&&o.tagName===r&&ZQ(i.jsx)){const s=t.getJsxNamespace(e);if(ije(s,r,t))return!dk(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function ije(e,t,r){if(dk(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||kt(i.declarations,g1)&&!(i.flags&111551)}function aje(e,t,r,i,o,s,c,f,d){var y;const h=__(),E=Fw(o,d,f),A=(y=f.getModuleSpecifierCache)==null?void 0:y.call(f),L=Lm(O=>i2(O?f.getPackageJsonAutoImportProvider():s,f));function I(O,k,G,V,H,te){const X=L(te);if(k&&rZ(H,o,k,d,E,X,A)||!k&&E.allowsImportingAmbientModule(O,X)){const Y=H.getTypeChecker();h.add(ibe(G,Y).toString(),{symbol:G,moduleSymbol:O,moduleFileName:k==null?void 0:k.fileName,exportKind:V,targetFlags:lf(G,Y).flags,isFromPackageJson:te})}}return iZ(s,f,d,c,(O,k,G,V)=>{const H=G.getTypeChecker();i.throwIfCancellationRequested();const te=G.getCompilerOptions(),X=q9(O,H,te);X&&(X.name===e||kee(O,es(te),t)===e)&&OTe(X.resolvedSymbol,r)&&I(O,k,X.symbol,X.exportKind,G,V);const Y=H.tryGetMemberInModuleExportsAndProperties(e,O);Y&&OTe(Y,r)&&I(O,k,Y,0,G,V)}),h}function oje(e,t,r){const i=AT(t),o=fr(e);if(!o&&au(t)>=5)return i?1:2;if(o)return Zl(e)||r?i?1:2:3;for(const s of e.statements)if(su(s)&&!Cl(s.moduleReference))return 3;return i?1:3}function Lee(e,t,r,i,o,s,c){let f;const d=gr.ChangeTracker.with(e,y=>{f=sje(y,t,r,i,o,s,c)});return ro(Dee,d,f,Ree,_.Add_all_missing_imports)}function sje(e,t,r,i,o,s,c){const f=Ap(t,c);switch(i.kind){case 0:return Iee(e,t,i),[_.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return kTe(e,t,i,f),[_.Change_0_to_1,r,wTe(i.moduleSpecifier,f)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:y,addAsTypeOnly:h,moduleSpecifier:E}=i;ITe(e,t,d,y===1?{name:r,addAsTypeOnly:h}:void 0,y===0?[{name:r,addAsTypeOnly:h}]:rt,s,c);const A=j_(E);return o?[_.Import_0_from_1,r,A]:[_.Update_import_from_0,A]}case 3:{const{importKind:d,moduleSpecifier:y,addAsTypeOnly:h,useRequire:E,qualification:A}=i,L=E?RTe:DTe,I=d===1?{name:r,addAsTypeOnly:h}:void 0,O=d===0?[{name:r,addAsTypeOnly:h}]:void 0,k=d===2||d===3?{importKind:d,name:(A==null?void 0:A.namespacePrefix)||r,addAsTypeOnly:h}:void 0;return x9(e,t,L(y,f,I,O,k,s),!0,c),A&&Iee(e,t,A),o?[_.Import_0_from_1,r,y]:[_.Add_import_from_0,y]}case 4:{const{typeOnlyAliasDeclaration:d}=i,y=lje(e,d,s,t,c);return y.kind===273?[_.Remove_type_from_import_of_0_from_1,r,LTe(y.parent.parent)]:[_.Remove_type_from_import_declaration_from_0,LTe(y)]}default:return D.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function LTe(e){var t,r;return e.kind===268?((r=ai((t=ai(e.moduleReference,zm))==null?void 0:t.expression,xs))==null?void 0:r.text)||e.moduleReference.getText():ao(e.parent.moduleSpecifier,Vo).text}function lje(e,t,r,i,o){const s=o7(r);switch(t.kind){case 273:if(t.isTypeOnly){const f=Q_.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&f){e.delete(i,t);const d=N.updateImportSpecifier(t,!1,t.propertyName,t.name),y=Q_.getOrganizeImportsComparer(o,f===2),h=Q_.getImportSpecifierInsertionIndex(t.parent.elements,d,y);e.insertImportSpecifierAtIndex(i,d,t.parent,h)}else e.deleteRange(i,t.getFirstToken());return t}else return D.assert(t.parent.parent.isTypeOnly),c(t.parent.parent),t.parent.parent;case 270:return c(t),t;case 271:return c(t.parent),t.parent;case 268:return e.deleteRange(i,t.getChildAt(1)),t;default:D.failBadSyntaxKind(t)}function c(f){if(e.delete(i,wQ(f,i)),s){const d=ai(f.namedBindings,Ay);if(d&&d.elements.length>1){Q_.detectImportSpecifierSorting(d.elements,o)&&t.kind===273&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const y of d.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,154,y)}}}}function ITe(e,t,r,i,o,s,c){var f;if(r.kind===203){i&&E(r,i.name,"default");for(const A of o)E(r,A.name,void 0);return}const d=r.isTypeOnly&&kt([i,...o],A=>(A==null?void 0:A.addAsTypeOnly)===4),y=r.namedBindings&&((f=ai(r.namedBindings,Ay))==null?void 0:f.elements),h=d&&o7(s);if(i&&(D.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),N.createIdentifier(i.name),{suffix:", "})),o.length){let A;if(typeof c.organizeImportsIgnoreCase=="boolean")A=c.organizeImportsIgnoreCase;else if(y){const k=Q_.detectImportSpecifierSorting(y,c);k!==3&&(A=k===2)}A===void 0&&(A=Q_.detectSorting(t,c)===2);const L=Q_.getOrganizeImportsComparer(c,A),I=ly(o.map(k=>N.createImportSpecifier((!r.isTypeOnly||d)&&V6(k),void 0,N.createIdentifier(k.name))),(k,G)=>Q_.compareImportOrExportSpecifiers(k,G,L)),O=(y==null?void 0:y.length)&&Q_.detectImportSpecifierSorting(y,c);if(O&&!(A&&O===1))for(const k of I){const G=h&&!k.isTypeOnly?0:Q_.getImportSpecifierInsertionIndex(y,k,L);e.insertImportSpecifierAtIndex(t,k,r.namedBindings,G)}else if(y!=null&&y.length)for(const k of I)e.insertNodeInListAfter(t,zo(y),k,y);else if(I.length){const k=N.createNamedImports(I);r.namedBindings?e.replaceNode(t,r.namedBindings,k):e.insertNodeAfter(t,D.checkDefined(r.name,"Import clause must have either named imports or a default import"),k)}}if(d&&(e.delete(t,wQ(r,t)),h&&y))for(const A of y)e.insertModifierBefore(t,154,A);function E(A,L,I){const O=N.createBindingElement(void 0,I,L);A.elements.length?e.insertNodeInListAfter(t,zo(A.elements),O):e.replaceNode(t,A,N.createObjectBindingPattern([O]))}}function Iee(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function kTe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,wTe(r,o))}function wTe(e,t){const r=q0e(t);return`import(${r}${e}${r}).`}function V6({addAsTypeOnly:e}){return e===2}function DTe(e,t,r,i,o,s){const c=v9(e,t);let f;if(r!==void 0||i!=null&&i.length){const d=(!r||V6(r))&&Yn(i,V6)||s.verbatimModuleSyntax&&(r==null?void 0:r.addAsTypeOnly)!==4&&!kt(i,y=>y.addAsTypeOnly===4);f=AA(f,Ry(r&&N.createIdentifier(r.name),i==null?void 0:i.map(({addAsTypeOnly:y,name:h})=>N.createImportSpecifier(!d&&y===2,void 0,N.createIdentifier(h))),e,t,d))}if(o){const d=o.importKind===3?N.createImportEqualsDeclaration(void 0,V6(o),N.createIdentifier(o.name),N.createExternalModuleReference(c)):N.createImportDeclaration(void 0,N.createImportClause(V6(o),void 0,N.createNamespaceImport(N.createIdentifier(o.name))),c,void 0);f=AA(f,d)}return D.checkDefined(f)}function RTe(e,t,r,i,o){const s=v9(e,t);let c;if(r||i!=null&&i.length){const f=(i==null?void 0:i.map(({name:y})=>N.createBindingElement(void 0,void 0,y)))||[];r&&f.unshift(N.createBindingElement(void 0,"default",r.name));const d=NTe(N.createObjectBindingPattern(f),s);c=AA(c,d)}if(o){const f=NTe(o.name,s);c=AA(c,f)}return D.checkDefined(c)}function NTe(e,t){return N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(typeof e=="string"?N.createIdentifier(e):e,void 0,void 0,N.createCallExpression(N.createIdentifier("require"),void 0,[t]))],2))}function OTe({declarations:e},t){return kt(e,r=>!!(u6(r)&t))}function kee(e,t,r){return wee(Gd(j_(e.name)),t,r)}function wee(e,t,r){const i=mu(CA(e,"/index"));let o="",s=!0;const c=i.charCodeAt(0);hh(c,t)?(o+=String.fromCharCode(c),r&&(o=o.toUpperCase())):s=!1;for(let f=1;f<i.length;f++){const d=i.charCodeAt(f),y=z0(d,t);if(y){let h=String.fromCharCode(d);s||(h=h.toUpperCase()),o+=h}s=y}return vx(o)?`_${o}`:o||"_"}var Dee,Ree,Nee,cje=C({"src/services/codefixes/importFixes.ts"(){$r(),Eo(),Dee="import",Ree="fixMissingImport",Nee=[_.Cannot_find_name_0.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_.Cannot_find_namespace_0.code,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],po({errorCodes:Nee,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,c=TTe(e,t,o.start,!0);if(c)return c.map(({fix:f,symbolName:d,errorIdentifierText:y})=>Lee(e,i,d,f,d!==y,s.getCompilerOptions(),r))},fixIds:[Ree],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,c=hTe(t,r,!0,i,o,s);return f2(e,Nee,f=>c.addImportFromDiagnostic(f,e)),d2(gr.ChangeTracker.with(e,c.writeFixes))}})}});function PTe(e,t,r){const i=nn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=nn(i.relatedInformation,c=>c.code===_.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=Pte(o.file,wc(o.start,o.length));if(s!==void 0&&(He(s)&&Bl(s.parent)&&(s=s.parent),Bl(s))){if(Kk(s.parent))return;const c=aa(t,r.start),f=e.getTypeChecker();return{constraint:dje(f,c)||uje(o.messageText),declaration:s,token:c}}}function MTe(e,t,r,i,o,s){const{declaration:c,constraint:f}=s,d=t.getTypeChecker();if(Ha(f))e.insertText(o,c.name.end,` extends ${f}`);else{const y=es(t.getCompilerOptions()),h=p2({program:t,host:i}),E=tS(o,t,r,i),A=wG(d,E,f,void 0,y,void 0,h);A&&(e.replaceNode(o,c,N.updateTypeParameterDeclaration(c,void 0,c.name,A,c.default)),E.writeFixes(e))}}function uje(e){const[t,r]=zv(e,` `,0).match(/`extends (.*)`/)||[];return r}function dje(e,t){return Gi(t.parent)?e.getTypeArgumentConstraint(t.parent):(vt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var KB,Oee,fje=C({"src/services/codefixes/fixAddMissingConstraint.ts"(){$r(),Eo(),KB="addMissingConstraint",Oee=[_.Type_0_is_not_comparable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Type_0_is_not_assignable_to_type_1.code,_.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,_.Property_0_is_incompatible_with_index_signature.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Type_0_does_not_satisfy_the_constraint_1.code],po({errorCodes:Oee,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,c=PTe(i,t,r);if(c===void 0)return;const f=gr.ChangeTracker.with(e,d=>MTe(d,i,o,s,t,c));return[ro(KB,f,_.Add_extends_constraint,KB,_.Add_extends_constraint_to_all_type_parameters)]},fixIds:[KB],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return d2(gr.ChangeTracker.with(e,s=>{f2(e,Oee,c=>{const f=PTe(t,c.file,wc(c.start,c.length));if(f&&bp(o,ms(f.declaration)))return MTe(s,t,r,i,c.file,f)})}))}})}});function FTe(e,t,r,i){switch(r){case _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return _je(e,t.sourceFile,i);case _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return pje(e,t.sourceFile,i);default:D.fail("Unexpected error code: "+r)}}function _je(e,t,r){const i=GTe(t,r);if(td(t)){e.addJSDocTags(t,i,[N.createJSDocOverrideTag(N.createIdentifier("override"))]);return}const o=i.modifiers||rt,s=nn(o,Px),c=nn(o,Ppe),f=nn(o,E=>EQ(E.kind)),d=Li(o,Bu),y=c?c.end:s?s.end:f?f.end:d?Jo(t.text,d.end):i.getStart(t),h=f||s||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,y,161,h)}function pje(e,t,r){const i=GTe(t,r);if(td(t)){e.filterJSDocTags(t,i,pM(_5));return}const o=nn(i.modifiers,Mpe);D.assertIsDefined(o),e.deleteModifier(t,o)}function BTe(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return tf(e,e.parent);default:return!1}}function GTe(e,t){const r=aa(e,t),i=nr(r,o=>di(o)?"quit":BTe(o));return D.assert(i&&BTe(i)),i}var Pee,dL,zw,Mee,Fee,mje=C({"src/services/codefixes/fixOverrideModifier.ts"(){$r(),Eo(),Pee="fixOverrideModifier",dL="fixAddOverrideModifier",zw="fixRemoveOverrideModifier",Mee=[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Fee={[_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:dL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:dL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:zw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:zw,fixAllDescriptions:_.Remove_override_modifier},[_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:dL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:dL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:dL,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:zw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:zw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers}},po({errorCodes:Mee,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Fee[r];if(!o)return rt;const{descriptions:s,fixId:c,fixAllDescriptions:f}=o,d=gr.ChangeTracker.with(t,y=>FTe(y,t,r,i.start));return[QZ(Pee,d,s,c,f)]},fixIds:[Pee,dL,zw],getAllCodeActions:e=>Cs(e,Mee,(t,r)=>{const{code:i,start:o}=r,s=Fee[i];!s||s.fixId!==e.fixId||FTe(t,e,i,o)})})}});function UTe(e,t,r,i){const o=Ap(t,i),s=N.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,QM(r)?N.createElementAccessChain(r.expression,r.questionDotToken,s):N.createElementAccessExpression(r.expression,s))}function VTe(e,t){return ao(aa(e,t).parent,Fr)}var XB,Bee,hje=C({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){$r(),Eo(),XB="fixNoPropertyAccessFromIndexSignature",Bee=[_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],po({errorCodes:Bee,fixIds:[XB],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=VTe(t,r.start),s=gr.ChangeTracker.with(e,c=>UTe(c,e.sourceFile,o,i));return[ro(XB,s,[_.Use_element_access_for_0,o.name.text],XB,_.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Cs(e,Bee,(t,r)=>UTe(t,r.file,VTe(r.file,r.start),e.preferences))})}});function jTe(e,t,r,i){const o=aa(t,r);if(!tL(o))return;const s=Sd(o,!1,!1);if(!(!yc(s)&&!Bs(s))&&!qi(Sd(s,!1,!1))){const c=D.checkDefined(bs(s,98,t)),{name:f}=s,d=D.checkDefined(s.body);return Bs(s)?f&&ul.Core.isSymbolReferencedInFile(f,i,t,d)?void 0:(e.delete(t,c),f&&e.delete(t,f),e.insertText(t,d.pos," =>"),[_.Convert_function_expression_0_to_arrow_function,f?f.text:z9]):(e.replaceNode(t,c,N.createToken(85)),e.insertText(t,f.end," = "),e.insertText(t,d.pos," =>"),[_.Convert_function_declaration_0_to_arrow_function,f.text])}}var YB,Gee,gje=C({"src/services/codefixes/fixImplicitThis.ts"(){$r(),Eo(),YB="fixImplicitThis",Gee=[_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],po({errorCodes:Gee,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const c=gr.ChangeTracker.with(t,f=>{s=jTe(f,r,o.start,i.getTypeChecker())});return s?[ro(YB,c,s,YB,_.Fix_all_implicit_this_errors)]:rt},fixIds:[YB],getAllCodeActions:e=>Cs(e,Gee,(t,r)=>{jTe(t,r.file,r.start,e.program.getTypeChecker())})})}});function HTe(e,t,r){var i;const o=aa(e,t);if(He(o)){const s=nr(o,zc);if(s===void 0)return;const c=Vo(s.moduleSpecifier)?s.moduleSpecifier.text:void 0;if(c===void 0)return;const f=VA(e,c,void 0);if(f===void 0)return;const d=r.getSourceFile(f.resolvedFileName);if(d===void 0||Bw(r,d))return;const y=d.symbol,h=(i=ai(y.valueDeclaration,Nm))==null?void 0:i.locals;if(h===void 0)return;const E=h.get(o.escapedText);if(E===void 0)return;const A=vje(E);return A===void 0?void 0:{exportName:{node:o,isTypeOnly:yC(A)},node:A,moduleSourceFile:d,moduleSpecifier:c}}}function yje(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=$B(o,r.isTypeOnly);s?WTe(e,t,o,s,[r]):CO(i)?e.insertExportModifier(o,i):zTe(e,t,o,[r])}function Uee(e,t,r,i,o){Ae(i)&&(o?WTe(e,t,r,o,i):zTe(e,t,r,i))}function $B(e,t){const r=i=>eu(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Li(e.statements,r)}function WTe(e,t,r,i,o){const s=i.exportClause&&K_(i.exportClause)?i.exportClause.elements:N.createNodeArray([]),c=!i.isTypeOnly&&!!(H_(t.getCompilerOptions())||nn(s,f=>f.isTypeOnly));e.replaceNode(r,i,N.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,N.createNamedExports(N.createNodeArray([...s,...qTe(o,c)],s.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function zTe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,N.createExportDeclaration(void 0,!1,N.createNamedExports(qTe(i,H_(t.getCompilerOptions()))),void 0,void 0))}function qTe(e,t){return N.createNodeArray(Vt(e,r=>N.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function vje(e){if(e.valueDeclaration===void 0)return Yc(e.declarations);const t=e.valueDeclaration,r=Ki(t)?ai(t.parent.parent,uc):void 0;return r&&Ae(r.declarationList.declarations)===1?r:t}var QB,Vee,bje=C({"src/services/codefixes/fixImportNonExportedMember.ts"(){$r(),Eo(),QB="fixImportNonExportedMember",Vee=[_.Module_0_declares_1_locally_but_it_is_not_exported.code],po({errorCodes:Vee,fixIds:[QB],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=HTe(t,r.start,i);if(o===void 0)return;const s=gr.ChangeTracker.with(e,c=>yje(c,i,o));return[ro(QB,s,[_.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],QB,_.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return d2(gr.ChangeTracker.with(e,r=>{const i=new Map;f2(e,Vee,o=>{const s=HTe(o.file,o.start,t);if(s===void 0)return;const{exportName:c,node:f,moduleSourceFile:d}=s;if($B(d,c.isTypeOnly)===void 0&&CO(f))r.insertExportModifier(d,f);else{const y=i.get(d)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?y.typeOnlyExports.push(c):y.exports.push(c),i.set(d,y)}}),i.forEach((o,s)=>{const c=$B(s,!0);c&&c.isTypeOnly?(Uee(r,t,s,o.typeOnlyExports,c),Uee(r,t,s,o.exports,$B(s,!1))):Uee(r,t,s,[...o.exports,...o.typeOnlyExports],c)})}))}})}});function Eje(e,t){const r=aa(e,t);return nr(r,i=>i.kind===199)}function Tje(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===187||i.kind===188||i.kind===193;)i.kind===187?o=!0:i.kind===188&&(s=!0),i=i.type;const c=N.updateNamedTupleMember(r,r.dotDotDotToken||(s?N.createToken(25):void 0),r.name,r.questionToken||(o?N.createToken(57):void 0),i);c!==r&&e.replaceNode(t,r,c)}var ZB,JTe,Sje=C({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){$r(),Eo(),ZB="fixIncorrectNamedTupleSyntax",JTe=[_.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,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],po({errorCodes:JTe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Eje(r,i.start),s=gr.ChangeTracker.with(t,c=>Tje(c,r,o));return[ro(ZB,s,_.Move_labeled_tuple_element_modifiers_to_labels,ZB,_.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[ZB]})}});function KTe(e,t,r,i){const o=aa(e,t),s=o.parent;if((i===_.No_overload_matches_this_call.code||i===_.Type_0_is_not_assignable_to_type_1.code)&&!im(s))return;const c=r.program.getTypeChecker();let f;if(Fr(s)&&s.name===o){D.assert(lg(o),"Expected an identifier for spelling (property access)");let d=c.getTypeAtLocation(s.expression);s.flags&32&&(d=c.getNonNullableType(d)),f=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(br(s)&&s.operatorToken.kind===101&&s.left===o&&Ni(o)){const d=c.getTypeAtLocation(s.right);f=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Cd(s)&&s.right===o){const d=c.getSymbolAtLocation(s.left);d&&d.flags&1536&&(f=c.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Ld(s)&&s.name===o){D.assertNode(o,He,"Expected an identifier for spelling (import)");const d=nr(o,zc),y=Aje(e,r,d);y&&y.symbol&&(f=c.getSuggestedSymbolForNonexistentModule(o,y.symbol))}else if(im(s)&&s.name===o){D.assertNode(o,He,"Expected an identifier for JSX attribute");const d=nr(o,ed),y=c.getContextualTypeForArgumentAtIndex(d,0);f=c.getSuggestedSymbolForNonexistentJSXAttribute(o,y)}else if(Yr(s,16384)&&Vc(s)&&s.name===o){const d=nr(o,di),y=d?$p(d):void 0,h=y?c.getTypeAtLocation(y):void 0;h&&(f=c.getSuggestedSymbolForNonexistentClassMember(xc(o),h))}else{const d=JT(o),y=xc(o);D.assert(y!==void 0,"name should be defined"),f=c.getSuggestedSymbolForNonexistentSymbol(o,y,xje(d))}return f===void 0?void 0:{node:o,suggestedSymbol:f}}function XTe(e,t,r,i,o){const s=Fl(i);if(!M_(s,o)&&Fr(r.parent)){const c=i.valueDeclaration;c&&gu(c)&&Ni(c.name)?e.replaceNode(t,r,N.createIdentifier(s)):e.replaceNode(t,r.parent,N.createElementAccessExpression(r.parent.expression,N.createStringLiteral(s)))}else e.replaceNode(t,r,N.createIdentifier(s))}function xje(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function Aje(e,t,r){if(!r||!xs(r.moduleSpecifier))return;const i=VA(e,r.moduleSpecifier.text,Sp(e,r.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var jee,Hee,Cje=C({"src/services/codefixes/fixSpelling.ts"(){$r(),Eo(),jee="fixSpelling",Hee=[_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Could_not_find_name_0_Did_you_mean_1.code,_.Cannot_find_namespace_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_._0_has_no_exported_member_named_1_Did_you_mean_2.code,_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.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,_.No_overload_matches_this_call.code,_.Type_0_is_not_assignable_to_type_1.code],po({errorCodes:Hee,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=KTe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,c=es(e.host.getCompilationSettings()),f=gr.ChangeTracker.with(e,d=>XTe(d,t,o,s,c));return[ro("spelling",f,[_.Change_spelling_to_0,Fl(s)],jee,_.Fix_all_detected_spelling_errors)]},fixIds:[jee],getAllCodeActions:e=>Cs(e,Hee,(t,r)=>{const i=KTe(r.file,r.start,e,r.code),o=es(e.host.getCompilationSettings());i&&XTe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function YTe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=so([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Wee(e,t,r,i){if(!t.body||!lo(t.body)||Ae(t.body.statements)!==1)return;const o=us(t.body.statements);if(ou(o)&&zee(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(M1(o)&&ou(o.statement)){const s=N.createObjectLiteralExpression([N.createPropertyAssignment(o.label,o.statement.expression)]),c=YTe(e,o.label,o.statement.expression);if(zee(e,t,c,r,i))return Js(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(lo(o)&&Ae(o.statements)===1){const s=us(o.statements);if(M1(s)&&ou(s.statement)){const c=N.createObjectLiteralExpression([N.createPropertyAssignment(s.label,s.statement.expression)]),f=YTe(e,s.label,s.statement.expression);if(zee(e,t,f,r,i))return{declaration:t,kind:0,expression:c,statement:o,commentSource:s}}}}function zee(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Yr(t,512)&&(r=e.createPromiseType(r));const c=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,so(),[c],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function $Te(e,t,r,i){const o=aa(t,r);if(!o.parent)return;const s=nr(o.parent,Qs);switch(i){case _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!uf(s.type,o)?void 0:Wee(e,s,e.getTypeFromTypeNode(s.type),!1);case _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!no(s.parent)||!s.body)return;const c=s.parent.arguments.indexOf(s),f=e.getContextualTypeForArgumentAtIndex(s.parent,c);return f?Wee(e,s,f,!0):void 0;case _.Type_0_is_not_assignable_to_type_1.code:if(!mg(o)||!JA(o.parent)&&!im(o.parent))return;const d=Lje(o.parent);return!d||!Qs(d)||!d.body?void 0:Wee(e,d,e.getTypeAtLocation(o.parent),!0)}}function Lje(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(Qk(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}function QTe(e,t,r,i){Wd(r);const o=D9(t);e.replaceNode(t,i,N.createReturnStatement(r),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function ZTe(e,t,r,i,o,s){const c=s||jQ(i)?N.createParenthesizedExpression(i):i;Wd(o),$T(o,c),e.replaceNode(t,r.body,c)}function eSe(e,t,r,i){e.replaceNode(t,r.body,N.createParenthesizedExpression(i))}function Ije(e,t,r){const i=gr.ChangeTracker.with(e,o=>QTe(o,e.sourceFile,t,r));return ro(eG,i,_.Add_a_return_statement,tG,_.Add_all_missing_return_statement)}function kje(e,t,r,i){const o=gr.ChangeTracker.with(e,s=>ZTe(s,e.sourceFile,t,r,i,!1));return ro(eG,o,_.Remove_braces_from_arrow_function_body,nG,_.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function wje(e,t,r){const i=gr.ChangeTracker.with(e,o=>eSe(o,e.sourceFile,t,r));return ro(eG,i,_.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,rG,_.Wrap_all_object_literal_with_parentheses)}var eG,tG,nG,rG,qee,Dje=C({"src/services/codefixes/returnValueCorrect.ts"(){$r(),Eo(),eG="returnValueCorrect",tG="fixAddReturnStatement",nG="fixRemoveBracesFromArrowFunctionBody",rG="fixWrapTheBlockWithParen",qee=[_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],po({errorCodes:qee,fixIds:[tG,nG,rG],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,c=$Te(r.getTypeChecker(),i,o,s);if(c)return c.kind===0?Fn([Ije(t,c.expression,c.statement)],Js(c.declaration)?kje(t,c.declaration,c.expression,c.commentSource):void 0):[wje(t,c.declaration,c.expression)]},getAllCodeActions:e=>Cs(e,qee,(t,r)=>{const i=$Te(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case tG:QTe(t,r.file,i.expression,i.statement);break;case nG:if(!Js(i.declaration))return;ZTe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case rG:if(!Js(i.declaration))return;eSe(t,r.file,i.declaration,i.expression);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function tSe(e,t,r,i,o){var s;const c=aa(e,t),f=c.parent;if(r===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===18&&Ls(f)&&no(f.parent)))return;const L=mi(f.parent.arguments,G=>G===f);if(L<0)return;const I=i.getResolvedSignature(f.parent);if(!(I&&I.declaration&&I.parameters[L]))return;const O=I.parameters[L].valueDeclaration;if(!(O&&Ba(O)&&He(O.name)))return;const k=Ro(i.getUnmatchedProperties(i.getTypeAtLocation(f),i.getParameterType(I,L),!1,!1));return Ae(k)?{kind:3,token:O.name,properties:k,parentDeclaration:f}:void 0}if(!lg(c))return;if(He(c)&&wv(f)&&f.initializer&&Ls(f.initializer)){const L=Ro(i.getUnmatchedProperties(i.getTypeAtLocation(f.initializer),i.getTypeAtLocation(c),!1,!1));return Ae(L)?{kind:3,token:c,properties:L,parentDeclaration:f.initializer}:void 0}if(He(c)&&ed(c.parent)){const L=es(o.getCompilerOptions()),I=Bje(i,L,c.parent);return Ae(I)?{kind:4,token:c,attributes:I,parentDeclaration:c.parent}:void 0}if(He(c)){const L=(s=i.getContextualType(c))==null?void 0:s.getNonNullableType();if(L&&ti(L)&16){const I=Yc(i.getSignaturesOfType(L,0));return I===void 0?void 0:{kind:5,token:c,signature:I,sourceFile:e,parentDeclaration:fSe(c)}}if(no(f)&&f.expression===c)return{kind:2,token:c,call:f,sourceFile:e,modifierFlags:0,parentDeclaration:fSe(c)}}if(!Fr(f))return;const d=CQ(i.getTypeAtLocation(f.expression)),y=d.symbol;if(!y||!y.declarations)return;if(He(c)&&no(f.parent)){const L=nn(y.declarations,Jl),I=L==null?void 0:L.getSourceFile();if(L&&I&&!Bw(o,I))return{kind:2,token:c,call:f.parent,sourceFile:e,modifierFlags:1,parentDeclaration:L};const O=nn(y.declarations,qi);if(e.commonJsModuleIndicator)return;if(O&&!Bw(o,O))return{kind:2,token:c,call:f.parent,sourceFile:O,modifierFlags:1,parentDeclaration:O}}const h=nn(y.declarations,di);if(!h&&Ni(c))return;const E=h||nn(y.declarations,L=>id(L)||cf(L));if(E&&!Bw(o,E.getSourceFile())){const L=!cf(E)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(y);if(L&&(Ni(c)||id(E)))return;const I=E.getSourceFile(),O=cf(E)?0:(L?32:0)|(QQ(c.text)?8:0),k=td(I),G=ai(f.parent,no);return{kind:0,token:c,call:G,modifierFlags:O,parentDeclaration:E,declSourceFile:I,isJSFile:k}}const A=nn(y.declarations,ob);if(A&&!(d.flags&1056)&&!Ni(c)&&!Bw(o,A.getSourceFile()))return{kind:1,token:c,parentDeclaration:A}}function Rje(e,t){return t.isJSFile?ZE(Nje(e,t)):Oje(e,t)}function Nje(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(id(t)||cf(t))return;const s=gr.ChangeTracker.with(e,f=>nSe(f,r,t,o,!!(i&32)));if(s.length===0)return;const c=i&32?_.Initialize_static_property_0:Ni(o)?_.Declare_a_private_field_named_0:_.Initialize_property_0_in_the_constructor;return ro(Ny,s,[c,o.text],Ny,_.Add_all_missing_members)}function nSe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===228)return;const c=r.name.getText(),f=rSe(N.createIdentifier(c),s);e.insertNodeAfter(t,r,f)}else if(Ni(i)){const c=N.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),f=oSe(r);f?e.insertNodeAfter(t,f,c):e.insertMemberAtStart(t,r,c)}else{const c=Th(r);if(!c)return;const f=rSe(N.createThis(),s);e.insertNodeAtConstructorEnd(t,c,f)}}function rSe(e,t){return N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(e,t),nS()))}function Oje(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,c=i&32,f=iSe(e.program.getTypeChecker(),t,o),d=h=>gr.ChangeTracker.with(e,E=>aSe(E,r,t,s,f,h)),y=[ro(Ny,d(i&32),[c?_.Declare_static_property_0:_.Declare_property_0,s],Ny,_.Add_all_missing_members)];return c||Ni(o)||(i&8&&y.unshift(Cp(Ny,d(8),[_.Declare_private_property_0,s])),y.push(Pje(e,r,t,o.text,f))),y}function iSe(e,t,r){let i;if(r.parent.parent.kind===223){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(c,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||N.createKeywordTypeNode(131)}function aSe(e,t,r,i,o,s){const c=s?N.createNodeArray(N.createModifiersFromModifierFlags(s)):void 0,f=di(r)?N.createPropertyDeclaration(c,i,void 0,o,void 0):N.createPropertySignature(void 0,i,void 0,o),d=oSe(r);d?e.insertNodeAfter(t,d,f):e.insertMemberAtStart(t,r,f)}function oSe(e){let t;for(const r of e.members){if(!to(r))break;t=r}return t}function Pje(e,t,r,i,o){const s=N.createKeywordTypeNode(152),c=N.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),f=N.createIndexSignature(void 0,[c],o),d=gr.ChangeTracker.with(e,y=>y.insertMemberAtStart(t,r,f));return Cp(Ny,d,[_.Add_index_signature_for_property_0,i])}function Mje(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:c}=t;if(c===void 0||Ni(s))return;const f=s.text,d=h=>gr.ChangeTracker.with(e,E=>sSe(e,E,c,s,h,r,i)),y=[ro(Ny,d(o&32),[o&32?_.Declare_static_method_0:_.Declare_method_0,f],Ny,_.Add_all_missing_members)];return o&8&&y.unshift(Cp(Ny,d(8),[_.Declare_private_method_0,f])),y}function sSe(e,t,r,i,o,s,c){const f=tS(c,e.program,e.preferences,e.host),d=di(s)?171:170,y=kte(d,e,f,r,i,o,s),h=Gje(s,r);h?t.insertNodeAfter(c,h,y):t.insertMemberAtStart(c,s,y),f.writeFixes(t)}function lSe(e,t,{token:r,parentDeclaration:i}){const o=kt(i.members,c=>{const f=t.getTypeAtLocation(c);return!!(f&&f.flags&402653316)}),s=N.createEnumMember(r,o?N.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,N.updateEnumDeclaration(i,i.modifiers,i.name,ba(i.members,ZE(s))),{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Exclude})}function cSe(e,t,r){const i=Ap(t.sourceFile,t.preferences),o=tS(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?kte(259,t,o,r.call,Mr(r.token),r.modifierFlags,r.parentDeclaration):kG(259,t,i,r.signature,K6(_.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&D.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Ep(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function uSe(e,t,r){const i=tS(t.sourceFile,t.program,t.preferences,t.host),o=Ap(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),c=r.parentDeclaration.attributes,f=kt(c.properties,RT),d=Vt(r.attributes,E=>{const A=iG(t,s,i,o,s.getTypeOfSymbol(E),r.parentDeclaration),L=N.createIdentifier(E.name),I=N.createJsxAttribute(L,N.createJsxExpression(void 0,A));return Uo(L,I),I}),y=N.createJsxAttributes(f?[...d,...c.properties]:[...c.properties,...d]),h={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,y,h),i.writeFixes(e)}function dSe(e,t,r){const i=tS(t.sourceFile,t.program,t.preferences,t.host),o=Ap(t.sourceFile,t.preferences),s=es(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),f=Vt(r.properties,y=>{const h=iG(t,c,i,o,c.getTypeOfSymbol(y),r.parentDeclaration);return N.createPropertyAssignment(Uje(y,s,o,c),h)}),d={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,N.createObjectLiteralExpression([...r.parentDeclaration.properties,...f],!0),d),i.writeFixes(e)}function iG(e,t,r,i,o,s){if(o.flags&3)return nS();if(o.flags&134217732)return N.createStringLiteral("",i===0);if(o.flags&8)return N.createNumericLiteral(0);if(o.flags&64)return N.createBigIntLiteral("0n");if(o.flags&16)return N.createFalse();if(o.flags&1056){const c=o.symbol.exports?oM(o.symbol.exports.values()):o.symbol,f=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return c===void 0||f===void 0?N.createNumericLiteral(0):N.createPropertyAccessExpression(f,t.symbolToString(c))}if(o.flags&256)return N.createNumericLiteral(o.value);if(o.flags&2048)return N.createBigIntLiteral(o.value);if(o.flags&128)return N.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?N.createFalse():N.createTrue();if(o.flags&65536)return N.createNull();if(o.flags&1048576){const c=Kt(o.types,f=>iG(e,t,r,i,f,s));return c??nS()}if(t.isArrayLikeType(o))return N.createArrayLiteralExpression();if(Fje(o)){const c=Vt(t.getPropertiesOfType(o),f=>{const d=iG(e,t,r,i,t.getTypeOfSymbol(f),s);return N.createPropertyAssignment(f.name,d)});return N.createObjectLiteralExpression(c,!0)}if(ti(o)&16){if(nn(o.symbol.declarations||rt,Im(Lh,Ch,ac))===void 0)return nS();const f=t.getSignaturesOfType(o,0);if(f===void 0)return nS();const d=kG(215,e,i,f[0],K6(_.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return d??nS()}if(ti(o)&1){const c=gg(o.symbol);if(c===void 0||k1(c))return nS();const f=Th(c);return f&&Ae(f.parameters)?nS():N.createNewExpression(N.createIdentifier(o.symbol.name),void 0,void 0)}return nS()}function nS(){return N.createIdentifier("undefined")}function Fje(e){return e.flags&524288&&(ti(e)&128||e.symbol&&ai(Am(e.symbol.declarations),cf))}function Bje(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return rt;const o=i.getProperties();if(!Ae(o))return rt;const s=new Set;for(const c of r.attributes.properties)if(im(c)&&s.add(c.name.escapedText),RT(c)){const f=e.getTypeAtLocation(c.expression);for(const d of f.getProperties())s.add(d.escapedName)}return lr(o,c=>M_(c.name,t,1)&&!(c.flags&16777216||Il(c)&48||s.has(c.escapedName)))}function Gje(e,t){if(cf(e))return;const r=nr(t,i=>ac(i)||ql(i));return r&&r.parent===e?r:void 0}function Uje(e,t,r,i){if(Om(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&As(o))return o}return g7(e.name,t,r===0)}function fSe(e){if(nr(e,Qk)){const t=nr(e.parent,Ep);if(t)return t}return Zn(e)}var Ny,j6,H6,W6,Jee,Vje=C({"src/services/codefixes/fixAddMissingMember.ts"(){$r(),Eo(),Ny="fixMissingMember",j6="fixMissingProperties",H6="fixMissingAttributes",W6="fixMissingFunctionDeclaration",Jee=[_.Property_0_does_not_exist_on_type_1.code,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Cannot_find_name_0.code],po({errorCodes:Jee,getCodeActions(e){const t=e.program.getTypeChecker(),r=tSe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=gr.ChangeTracker.with(e,o=>dSe(o,e,r));return[ro(j6,i,_.Add_missing_properties,j6,_.Add_all_missing_properties)]}if(r.kind===4){const i=gr.ChangeTracker.with(e,o=>uSe(o,e,r));return[ro(H6,i,_.Add_missing_attributes,H6,_.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=gr.ChangeTracker.with(e,o=>cSe(o,e,r));return[ro(W6,i,[_.Add_missing_function_declaration_0,r.token.text],W6,_.Add_all_missing_function_declarations)]}if(r.kind===1){const i=gr.ChangeTracker.with(e,o=>lSe(o,e.program.getTypeChecker(),r));return[ro(Ny,i,[_.Add_missing_enum_member_0,r.token.text],Ny,_.Add_all_missing_members)]}return ba(Mje(e,r),Rje(e,r))}},fixIds:[Ny,W6,j6,H6],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return d2(gr.ChangeTracker.with(e,c=>{f2(e,Jee,f=>{const d=tSe(f.file,f.start,f.code,i,e.program);if(!(!d||!bp(o,ms(d.parentDeclaration)+"#"+d.token.text))){if(r===W6&&(d.kind===2||d.kind===5))cSe(c,e,d);else if(r===j6&&d.kind===3)dSe(c,e,d);else if(r===H6&&d.kind===4)uSe(c,e,d);else if(d.kind===1&&lSe(c,i,d),d.kind===0){const{parentDeclaration:y,token:h}=d,E=SA(s,y,()=>[]);E.some(A=>A.token.text===h.text)||E.push(d)}}}),s.forEach((f,d)=>{const y=cf(d)?void 0:Fte(d,i);for(const h of f){if(y!=null&&y.some(G=>{const V=s.get(G);return!!V&&V.some(({token:H})=>H.text===h.token.text)}))continue;const{parentDeclaration:E,declSourceFile:A,modifierFlags:L,token:I,call:O,isJSFile:k}=h;if(O&&!Ni(I))sSe(e,c,O,I,L&32,E,A);else if(k&&!id(E)&&!cf(E))nSe(c,A,E,I,!!(L&32));else{const G=iSe(i,E,I);aSe(c,A,E,I.text,G,L&32)}}})}))}})}});function _Se(e,t,r){const i=ao(jje(t,r),no),o=N.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function jje(e,t){let r=aa(e,t.start);const i=iu(t);for(;r.end<i;)r=r.parent;return r}var aG,Kee,Hje=C({"src/services/codefixes/fixAddMissingNewOperator.ts"(){$r(),Eo(),aG="addMissingNewOperator",Kee=[_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],po({errorCodes:Kee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gr.ChangeTracker.with(e,o=>_Se(o,t,r));return[ro(aG,i,_.Add_missing_new_operator_to_call,aG,_.Add_missing_new_operator_to_all_calls)]},fixIds:[aG],getAllCodeActions:e=>Cs(e,Kee,(t,r)=>_Se(t,e.sourceFile,r))})}});function pSe(e,t){return{type:"install package",file:e,packageName:t}}function mSe(e,t){const r=ai(aa(e,t),Vo);if(!r)return;const i=r.text,{packageName:o}=EX(i);return Uc(o)?void 0:o}function hSe(e,t,r){var i;return r===Xee?qT.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?Z5(e):void 0}var gSe,oG,Xee,Yee,Wje=C({"src/services/codefixes/fixCannotFindModule.ts"(){$r(),Eo(),gSe="fixCannotFindModule",oG="installTypesPackage",Xee=_.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Yee=[Xee,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],po({errorCodes:Yee,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=mSe(i,o);if(s===void 0)return;const c=hSe(s,r,t.errorCode);return c===void 0?[]:[ro(gSe,[],[_.Install_0,c],oG,_.Install_all_missing_types_packages,pSe(i.fileName,c))]},fixIds:[oG],getAllCodeActions:e=>Cs(e,Yee,(t,r,i)=>{const o=mSe(r.file,r.start);if(o!==void 0)switch(e.fixId){case oG:{const s=hSe(o,e.host,r.code);s&&i.push(pSe(r.file.fileName,s));break}default:D.fail(`Bad fixId: ${e.fixId}`)}})})}});function ySe(e,t){const r=aa(e,t);return ao(r.parent,di)}function vSe(e,t,r,i,o){const s=$p(e),c=r.program.getTypeChecker(),f=c.getTypeAtLocation(s),d=c.getPropertiesOfType(f).filter(zje),y=tS(t,r.program,o,r.host);Ite(e,d,t,r,o,y,h=>i.insertMemberAtStart(t,e,h)),y.writeFixes(i)}function zje(e){const t=Ov(us(e.getDeclarations()));return!(t&8)&&!!(t&256)}var $ee,sG,qje=C({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){$r(),Eo(),$ee=[_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],sG="fixClassDoesntImplementInheritedAbstractMember",po({errorCodes:$ee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=gr.ChangeTracker.with(t,s=>vSe(ySe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ro(sG,o,_.Implement_inherited_abstract_class,sG,_.Implement_all_inherited_abstract_classes)]},fixIds:[sG],getAllCodeActions:function(t){const r=new Map;return Cs(t,$ee,(i,o)=>{const s=ySe(o.file,o.start);bp(r,ms(s))&&vSe(s,t.sourceFile,t,i,t.preferences)})}})}});function bSe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function ESe(e,t){const r=aa(e,t);if(r.kind!==108)return;const i=Cf(r),o=TSe(i.body);return o&&!o.expression.arguments.some(s=>Fr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function TSe(e){return ou(e)&&zA(e.expression)?e:Ka(e)?void 0:Ma(e,TSe)}var lG,Qee,Jje=C({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){$r(),Eo(),lG="classSuperMustPrecedeThisAccess",Qee=[_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],po({errorCodes:Qee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=ESe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,c=gr.ChangeTracker.with(e,f=>bSe(f,t,o,s));return[ro(lG,c,_.Make_super_call_the_first_statement_in_the_constructor,lG,_.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[lG],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Cs(e,Qee,(i,o)=>{const s=ESe(o.file,o.start);if(!s)return;const{constructor:c,superCall:f}=s;bp(r,ms(c.parent))&&bSe(i,t,c,f)})}})}});function SSe(e,t){const r=aa(e,t);return D.assert(ql(r.parent),"token should be at the constructor declaration"),r.parent}function xSe(e,t,r){const i=N.createExpressionStatement(N.createCallExpression(N.createSuper(),void 0,rt));e.insertNodeAtConstructorStart(t,r,i)}var cG,Zee,Kje=C({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){$r(),Eo(),cG="constructorForDerivedNeedSuperCall",Zee=[_.Constructors_for_derived_classes_must_contain_a_super_call.code],po({errorCodes:Zee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=SSe(t,r.start),o=gr.ChangeTracker.with(e,s=>xSe(s,t,i));return[ro(cG,o,_.Add_missing_super_call,cG,_.Add_all_missing_super_calls)]},fixIds:[cG],getAllCodeActions:e=>Cs(e,Zee,(t,r)=>xSe(t,e.sourceFile,SSe(r.file,r.start)))})}});function ASe(e,t){Nte(e,t,"jsx",N.createStringLiteral("react"))}var ete,tte,Xje=C({"src/services/codefixes/fixEnableJsxFlag.ts"(){$r(),Eo(),ete="fixEnableJsxFlag",tte=[_.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],po({errorCodes:tte,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=gr.ChangeTracker.with(t,o=>ASe(o,r));return[Cp(ete,i,_.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[ete],getAllCodeActions:e=>Cs(e,tte,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&ASe(t,r)})})}});function CSe(e,t,r){const i=nn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=nn(i.relatedInformation,c=>c.code===_.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=Pte(o.file,wc(o.start,o.length));if(s!==void 0&&vt(s)&&br(s.parent))return{suggestion:Yje(o.messageText),expression:s.parent,arg:s}}function LSe(e,t,r,i){const o=N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Number"),N.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===37||s===35?N.createPrefixUnaryExpression(53,o):o)}function Yje(e){const[t,r]=zv(e,` `,0).match(/\'(.*)\'/)||[];return r}var uG,nte,$je=C({"src/services/codefixes/fixNaNEquality.ts"(){$r(),Eo(),uG="fixNaNEquality",nte=[_.This_condition_will_always_return_0.code],po({errorCodes:nte,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=CSe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:c,arg:f}=o,d=gr.ChangeTracker.with(e,y=>LSe(y,t,f,c));return[ro(uG,d,[_.Use_0,s],uG,_.Use_Number_isNaN_in_all_conditions)]},fixIds:[uG],getAllCodeActions:e=>Cs(e,nte,(t,r)=>{const i=CSe(e.program,r.file,wc(r.start,r.length));i&&LSe(t,r.file,i.arg,i.expression)})})}}),Qje=C({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){$r(),Eo(),po({errorCodes:[_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=au(r);if(s>=5&&s<99){const y=gr.ChangeTracker.with(t,h=>{Nte(h,i,"module",N.createStringLiteral("esnext"))});o.push(Cp("fixModuleOption",y,[_.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const f=es(r);if(f<4||f>99){const y=gr.ChangeTracker.with(t,h=>{if(!tk(i))return;const A=[["target",N.createStringLiteral("es2017")]];s===1&&A.push(["module",N.createStringLiteral("commonjs")]),Rte(h,i,A)});o.push(Cp("fixTargetOption",y,[_.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function ISe(e,t,r){e.replaceNode(t,r,N.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function kSe(e,t){return ao(aa(e,t).parent,t_)}var dG,rte,Zje=C({"src/services/codefixes/fixPropertyAssignment.ts"(){$r(),Eo(),dG="fixPropertyAssignment",rte=[_.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],po({errorCodes:rte,fixIds:[dG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=kSe(t,r.start),o=gr.ChangeTracker.with(e,s=>ISe(s,e.sourceFile,i));return[ro(dG,o,[_.Change_0_to_1,"=",":"],dG,[_.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Cs(e,rte,(t,r)=>ISe(t,r.file,kSe(r.file,r.start)))})}});function wSe(e,t){const r=aa(e,t),i=Ac(r).heritageClauses,o=i[0].getFirstToken();return o.kind===94?{extendsToken:o,heritageClauses:i}:void 0}function DSe(e,t,r,i){if(e.replaceNode(t,r,N.createToken(117)),i.length===2&&i[0].token===94&&i[1].token===117){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},N.createToken(27));const c=t.text;let f=o.end;for(;f<c.length&&Dm(c.charCodeAt(f));)f++;e.deleteRange(t,{pos:o.getStart(),end:f})}}var fG,ite,eHe=C({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){$r(),Eo(),fG="extendsInterfaceBecomesImplements",ite=[_.Cannot_extend_an_interface_0_Did_you_mean_implements.code],po({errorCodes:ite,getCodeActions(e){const{sourceFile:t}=e,r=wSe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=gr.ChangeTracker.with(e,c=>DSe(c,t,i,o));return[ro(fG,s,_.Change_extends_to_implements,fG,_.Change_all_extended_interfaces_to_implements)]},fixIds:[fG],getAllCodeActions:e=>Cs(e,ite,(t,r)=>{const i=wSe(r.file,r.start);i&&DSe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function RSe(e,t,r){const i=aa(e,t);if(He(i)||Ni(i))return{node:i,className:r===ate?Ac(i).name.text:void 0}}function NSe(e,t,{node:r,className:i}){Wd(r),e.replaceNode(t,r,N.createPropertyAccessExpression(i?N.createIdentifier(i):N.createThis(),r))}var _G,ate,ote,tHe=C({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){$r(),Eo(),_G="forgottenThisPropertyAccess",ate=_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ote=[_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.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,ate],po({errorCodes:ote,getCodeActions(e){const{sourceFile:t}=e,r=RSe(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,o=>NSe(o,t,r));return[ro(_G,i,[_.Add_0_to_unresolved_variable,r.className||"this"],_G,_.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[_G],getAllCodeActions:e=>Cs(e,ote,(t,r)=>{const i=RSe(r.file,r.start,r.code);i&&NSe(t,e.sourceFile,i)})})}});function nHe(e){return Ps(cte,e)}function ste(e,t,r,i,o){const s=r.getText()[i];if(!nHe(s))return;const c=o?cte[s]:`{${Pw(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var pG,z6,lte,cte,rHe=C({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){$r(),Eo(),pG="fixInvalidJsxCharacters_expression",z6="fixInvalidJsxCharacters_htmlEntity",lte=[_.Unexpected_token_Did_you_mean_or_gt.code,_.Unexpected_token_Did_you_mean_or_rbrace.code],po({errorCodes:lte,fixIds:[pG,z6],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=gr.ChangeTracker.with(e,c=>ste(c,r,t,i.start,!1)),s=gr.ChangeTracker.with(e,c=>ste(c,r,t,i.start,!0));return[ro(pG,o,_.Wrap_invalid_character_in_an_expression_container,pG,_.Wrap_all_invalid_characters_in_an_expression_container),ro(z6,s,_.Convert_invalid_character_to_its_html_entity_code,z6,_.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Cs(e,lte,(t,r)=>ste(t,e.preferences,r.file,r.start,e.fixId===z6))}}),cte={">":">","}":"}"}}});function iHe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=gr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,c=>c!==i));return ro(q6,o,[_.Delete_unused_param_tag_0,t.getText(e.sourceFile)],q6,_.Delete_all_unused_param_tags)}function aHe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Ae(i.parameters))return;const s=e.sourceFile,c=m1(i),f=new Set;for(const E of c)am(E)&&He(E.name)&&f.add(E.name.escapedText);const d=Kt(i.parameters,E=>He(E.name)&&!f.has(E.name.escapedText)?E.name.getText(s):void 0);if(d===void 0)return;const y=N.updateJSDocParameterTag(o,o.tagName,N.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),h=gr.ChangeTracker.with(e,E=>E.replaceJSDocComment(s,r,Vt(c,A=>A===o?y:A)));return Cp(ute,h,[_.Rename_param_tag_name_0_to_1,t.getText(s),d])}function OSe(e,t){const r=aa(e,t);if(r.parent&&am(r.parent)&&He(r.parent.name)){const i=r.parent,o=yx(i),s=$0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var q6,ute,dte,oHe=C({"src/services/codefixes/fixUnmatchedParameter.ts"(){$r(),Eo(),q6="deleteUnmatchedParameter",ute="renameUnmatchedParameter",dte=[_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],po({fixIds:[q6,ute],errorCodes:dte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=OSe(r,i.start);if(s)return Fn(o,iHe(t,s)),Fn(o,aHe(t,s)),o},getAllCodeActions:function(t){const r=new Map;return d2(gr.ChangeTracker.with(t,i=>{f2(t,dte,({file:o,start:s})=>{const c=OSe(o,s);c&&r.set(c.signature,Fn(r.get(c.signature),c.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===q6){const c=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,f=>!c.has(f))}})}))}})}});function sHe(e,t,r){const i=ai(aa(e,r),He);if(!i||i.parent.kind!==180)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return nn((s==null?void 0:s.declarations)||rt,Im(Wm,Ld,su))}function lHe(e,t,r,i){if(r.kind===268){e.insertModifierBefore(t,154,r.name);return}const o=r.kind===270?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();V3(o,f=>{if(lf(f.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,154,o)}function cHe(e,t,r,i){oD.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var mG,PSe,uHe=C({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){$r(),Eo(),mG="fixUnreferenceableDecoratorMetadata",PSe=[_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],po({errorCodes:PSe,getCodeActions:e=>{const t=sHe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,s=>t.kind===273&&cHe(s,e.sourceFile,t,e.program)),i=gr.ChangeTracker.with(e,s=>lHe(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Fn(o,Cp(mG,r,_.Convert_named_imports_to_namespace_import))),i.length&&(o=Fn(o,Cp(mG,i,_.Convert_to_type_only_import))),o},fixIds:[mG]})}});function MSe(e,t,r){e.replaceNode(t,r.parent,N.createKeywordTypeNode(157))}function qw(e,t){return ro(Jw,e,t,yG,_.Delete_all_unused_declarations)}function FSe(e,t,r){e.delete(t,D.checkDefined(ao(r.parent,Bz).typeParameters,"The type parameter to delete should exist"))}function fte(e){return e.kind===100||e.kind===79&&(e.parent.kind===273||e.parent.kind===270)}function BSe(e){return e.kind===100?ai(e.parent,zc):void 0}function GSe(e,t){return Vu(t.parent)&&us(t.parent.getChildren(e))===t}function USe(e,t,r){e.delete(t,r.parent.kind===240?r.parent:r)}function dHe(e,t,r){Ue(r.elements,i=>e.delete(t,i))}function VSe(e,t,r,i){t!==_.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===138&&(i=ao(i.parent,IC).typeParameter.name),He(i)&&fHe(i)&&(e.replaceNode(r,i,N.createIdentifier(`_${i.text}`)),Ba(i.parent)&&GI(i.parent).forEach(o=>{He(o.name)&&e.replaceNode(r,o.name,N.createIdentifier(`_${o.name.text}`))})))}function fHe(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}function hG(e,t,r,i,o,s,c,f){_He(t,r,e,i,o,s,c,f),He(t)&&ul.Core.eachSymbolReferenceInFile(t,i,e,d=>{Fr(d.parent)&&d.parent.name===d&&(d=d.parent),!f&&gHe(d)&&r.delete(e,d.parent.parent)})}function _He(e,t,r,i,o,s,c,f){const{parent:d}=e;if(Ba(d))pHe(t,r,d,i,o,s,c,f);else if(!(f&&He(e)&&ul.Core.isSymbolReferencedInFile(e,i,r))){const y=Wm(d)?e:As(d)?d.parent:d;D.assert(y!==r,"should not delete whole source file"),t.delete(r,y)}}function pHe(e,t,r,i,o,s,c,f=!1){if(mHe(i,t,r,o,s,c,f))if(r.modifiers&&r.modifiers.length>0&&(!He(r.name)||ul.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)uo(d)&&e.deleteModifier(t,d);else!r.initializer&&jSe(r,i,o)&&e.delete(t,r)}function jSe(e,t,r){const i=e.parent.parameters.indexOf(e);return!ul.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function mHe(e,t,r,i,o,s,c){const{parent:f}=r;switch(f.kind){case 171:case 173:const d=f.parameters.indexOf(r),y=ac(f)?f.name:f,h=ul.Core.getReferencedSymbolsForNode(f.pos,y,o,i,s);if(h){for(const E of h)for(const A of E.references)if(A.kind===ul.EntryKind.Node){const L=Hk(A.node)&&no(A.node.parent)&&A.node.parent.arguments.length>d,I=Fr(A.node.parent)&&Hk(A.node.parent.expression)&&no(A.node.parent.parent)&&A.node.parent.parent.arguments.length>d,O=(ac(A.node.parent)||Ch(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>d;if(L||I||O)return!1}}return!0;case 259:return f.name&&hHe(e,t,f.name)?HSe(f,r,c):!0;case 215:case 216:return HSe(f,r,c);case 175:return!1;case 174:return!0;default:return D.failBadSyntaxKind(f)}}function hHe(e,t,r){return!!ul.Core.eachSymbolReferenceInFile(r,e,t,i=>He(i)&&no(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function HSe(e,t,r){const i=e.parameters,o=i.indexOf(t);return D.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 gHe(e){return(br(e.parent)&&e.parent.left===e||(nK(e.parent)||Gv(e.parent))&&e.parent.operand===e)&&ou(e.parent.parent)}var Jw,gG,yG,J6,vG,_te,yHe=C({"src/services/codefixes/fixUnusedIdentifier.ts"(){$r(),Eo(),Jw="unusedIdentifier",gG="unusedIdentifier_prefix",yG="unusedIdentifier_delete",J6="unusedIdentifier_deleteImports",vG="unusedIdentifier_infer",_te=[_._0_is_declared_but_its_value_is_never_read.code,_._0_is_declared_but_never_used.code,_.Property_0_is_declared_but_its_value_is_never_read.code,_.All_imports_in_import_declaration_are_unused.code,_.All_destructured_elements_are_unused.code,_.All_variables_are_unused.code,_.All_type_parameters_are_unused.code],po({errorCodes:_te,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),c=i.getSourceFiles(),f=aa(r,e.span.start);if(Tp(f))return[qw(gr.ChangeTracker.with(e,E=>E.delete(r,f)),_.Remove_template_tag)];if(f.kind===29){const E=gr.ChangeTracker.with(e,A=>FSe(A,r,f));return[qw(E,_.Remove_type_parameters)]}const d=BSe(f);if(d){const E=gr.ChangeTracker.with(e,A=>A.delete(r,d));return[ro(Jw,E,[_.Remove_import_from_0,f_e(d)],J6,_.Delete_all_unused_imports)]}else if(fte(f)){const E=gr.ChangeTracker.with(e,A=>hG(r,f,A,s,c,i,o,!1));if(E.length)return[ro(Jw,E,[_.Remove_unused_declaration_for_Colon_0,f.getText(r)],J6,_.Delete_all_unused_imports)]}if(Hm(f.parent)||kC(f.parent)){if(Ba(f.parent.parent)){const E=f.parent.elements,A=[E.length>1?_.Remove_unused_declarations_for_Colon_0:_.Remove_unused_declaration_for_Colon_0,Vt(E,L=>L.getText(r)).join(", ")];return[qw(gr.ChangeTracker.with(e,L=>dHe(L,r,f.parent)),A)]}return[qw(gr.ChangeTracker.with(e,E=>E.delete(r,f.parent.parent)),_.Remove_unused_destructuring_declaration)]}if(GSe(r,f))return[qw(gr.ChangeTracker.with(e,E=>USe(E,r,f.parent)),_.Remove_variable_statement)];const y=[];if(f.kind===138){const E=gr.ChangeTracker.with(e,L=>MSe(L,r,f)),A=ao(f.parent,IC).typeParameter.name.text;y.push(ro(Jw,E,[_.Replace_infer_0_with_unknown,A],vG,_.Replace_all_unused_infer_with_unknown))}else{const E=gr.ChangeTracker.with(e,A=>hG(r,f,A,s,c,i,o,!1));if(E.length){const A=As(f.parent)?f.parent:f;y.push(qw(E,[_.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}const h=gr.ChangeTracker.with(e,E=>VSe(E,t,r,f));return h.length&&y.push(ro(Jw,h,[_.Prefix_0_with_an_underscore,f.getText(r)],gG,_.Prefix_all_unused_declarations_with_where_possible)),y},fixIds:[gG,yG,J6,vG],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Cs(e,_te,(c,f)=>{const d=aa(t,f.start);switch(e.fixId){case gG:VSe(c,f.code,t,d);break;case J6:{const y=BSe(d);y?c.delete(t,y):fte(d)&&hG(t,d,c,o,s,r,i,!0);break}case yG:{if(d.kind===138||fte(d))break;if(Tp(d))c.delete(t,d);else if(d.kind===29)FSe(c,t,d);else if(Hm(d.parent)){if(d.parent.parent.initializer)break;(!Ba(d.parent.parent)||jSe(d.parent.parent,o,s))&&c.delete(t,d.parent.parent)}else{if(kC(d.parent.parent)&&d.parent.parent.parent.initializer)break;GSe(t,d)?USe(c,t,d.parent):hG(t,d,c,o,s,r,i,!0)}break}case vG:d.kind===138&&MSe(c,t,d);break;default:D.fail(JSON.stringify(e.fixId))}})}})}});function WSe(e,t,r,i,o){const s=aa(t,r),c=nr(s,wa);if(c.getStart(t)!==s.getStart(t)){const d=JSON.stringify({statementKind:D.formatSyntaxKind(c.kind),tokenKind:D.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});D.fail("Token and statement should start at the same point. "+d)}const f=(lo(c.parent)?c.parent:c).parent;if(!lo(c.parent)||c===us(c.parent.statements))switch(f.kind){case 242:if(f.elseStatement){if(lo(c.parent))break;e.replaceNode(t,c,N.createBlock(rt));return}case 244:case 245:e.delete(t,f);return}if(lo(c.parent)){const d=r+i,y=D.checkDefined(vHe(rJ(c.parent.statements,c),h=>h.pos<d),"Some statement should be last");e.deleteNodeRange(t,c,y)}else e.delete(t,c)}function vHe(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var bG,pte,bHe=C({"src/services/codefixes/fixUnreachableCode.ts"(){$r(),Eo(),bG="fixUnreachableCode",pte=[_.Unreachable_code_detected.code],po({errorCodes:pte,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=gr.ChangeTracker.with(e,i=>WSe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ro(bG,r,_.Remove_unreachable_code,bG,_.Remove_all_unreachable_code)]},fixIds:[bG],getAllCodeActions:e=>Cs(e,pte,(t,r)=>WSe(t,r.file,r.start,r.length,r.code))})}});function zSe(e,t,r){const i=aa(t,r),o=ao(i.parent,M1),s=i.getStart(t),c=o.statement.getStart(t),f=y_(s,c,t)?c:Jo(t.text,bs(o,58,t).end,!0);e.deleteRange(t,{pos:s,end:f})}var EG,mte,EHe=C({"src/services/codefixes/fixUnusedLabel.ts"(){$r(),Eo(),EG="fixUnusedLabel",mte=[_.Unused_label.code],po({errorCodes:mte,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>zSe(r,e.sourceFile,e.span.start));return[ro(EG,t,_.Remove_unused_label,EG,_.Remove_all_unused_labels)]},fixIds:[EG],getAllCodeActions:e=>Cs(e,mte,(t,r)=>zSe(t,r.file,r.start))})}});function qSe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function JSe(e,t,r){const i=nr(aa(e,t),THe),o=i&&i.type;return o&&{typeNode:o,type:SHe(r,o)}}function THe(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function SHe(e,t){if(OC(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Fn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var hte,TG,gte,xHe=C({"src/services/codefixes/fixJSDocTypes.ts"(){$r(),Eo(),hte="fixJSDocTypes_plain",TG="fixJSDocTypes_nullable",gte=[_.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],po({errorCodes:gte,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=JSe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,c=o.getText(t),f=[d(s,hte,_.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===317&&f.push(d(s,TG,_.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f;function d(y,h,E){const A=gr.ChangeTracker.with(e,L=>qSe(L,t,o,y,r));return ro("jdocTypes",A,[_.Change_0_to_1,c,r.typeToString(y)],h,E)}},fixIds:[hte,TG],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Cs(e,gte,(s,c)=>{const f=JSe(c.file,c.start,o);if(!f)return;const{typeNode:d,type:y}=f,h=d.kind===317&&t===TG?o.getNullableType(y,32768):y;qSe(s,i,d,h,o)})}})}});function KSe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function XSe(e,t){const r=aa(e,t);if(Fr(r.parent)){let i=r.parent;for(;Fr(i.parent);)i=i.parent;return i.name}if(He(r))return r}var SG,yte,AHe=C({"src/services/codefixes/fixMissingCallParentheses.ts"(){$r(),Eo(),SG="fixMissingCallParentheses",yte=[_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],po({errorCodes:yte,fixIds:[SG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=XSe(t,r.start);if(!i)return;const o=gr.ChangeTracker.with(e,s=>KSe(s,e.sourceFile,i));return[ro(SG,o,_.Add_missing_call_parentheses,SG,_.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Cs(e,yte,(t,r)=>{const i=XSe(r.file,r.start);i&&KSe(t,r.file,i)})})}});function CHe(e){if(e.type)return e.type;if(Ki(e.parent)&&e.parent.type&&Lh(e.parent.type))return e.parent.type.type}function YSe(e,t){const r=aa(e,t),i=Cf(r);if(!i)return;let o;switch(i.kind){case 171:o=i.name;break;case 259:case 215:o=bs(i,98,e);break;case 216:const s=i.typeParameters?29:20;o=bs(i,s,e)||us(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:CHe(i)}}function $Se(e,t,{insertBefore:r,returnType:i}){if(i){const o=IN(i);(!o||o.kind!==79||o.text!=="Promise")&&e.replaceNode(t,i,N.createTypeReferenceNode("Promise",N.createNodeArray([i])))}e.insertModifierBefore(t,132,r)}var xG,vte,LHe=C({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){$r(),Eo(),xG="fixAwaitInSyncFunction",vte=[_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],po({errorCodes:vte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=YSe(t,r.start);if(!i)return;const o=gr.ChangeTracker.with(e,s=>$Se(s,t,i));return[ro(xG,o,_.Add_async_modifier_to_containing_function,xG,_.Add_all_missing_async_modifiers)]},fixIds:[xG],getAllCodeActions:function(t){const r=new Map;return Cs(t,vte,(i,o)=>{const s=YSe(o.file,o.start);!s||!bp(r,ms(s.insertBefore))||$Se(i,t.sourceFile,s)})}})}});function QSe(e,t,r,i,o){let s,c;if(i===_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,c=t+r;else if(i===_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const f=o.program.getTypeChecker(),d=aa(e,t).parent;D.assert(J0(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const y=d.parent;D.assert(di(y),"erroneous accessors should only be inside classes");const h=Am(Fte(y,f));if(!h)return[];const E=ta(HA(d.name)),A=f.getPropertyOfType(f.getTypeAtLocation(h),E);if(!A||!A.valueDeclaration)return[];s=A.valueDeclaration.pos,c=A.valueDeclaration.end,e=Zn(A.valueDeclaration)}else D.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return _xe(e,o.program,s,c,o,_.Generate_get_and_set_accessors.message)}var bte,AG,IHe=C({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){$r(),Eo(),bte=[_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],AG="fixPropertyOverrideAccessor",po({errorCodes:bte,getCodeActions(e){const t=QSe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ro(AG,t,_.Generate_get_and_set_accessors,AG,_.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[AG],getAllCodeActions:e=>Cs(e,bte,(t,r)=>{const i=QSe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function kHe(e,t){switch(e){case _.Parameter_0_implicitly_has_an_1_type.code:case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e_(Cf(t))?_.Infer_type_of_0_from_usage:_.Infer_parameter_types_from_usage;case _.Rest_parameter_0_implicitly_has_an_any_type.code:case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Infer_parameter_types_from_usage;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _.Infer_this_type_of_0_from_usage;default:return _.Infer_type_of_0_from_usage}}function wHe(e){switch(e){case _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_an_1_type.code;case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Parameter_0_implicitly_has_an_1_type.code;case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Rest_parameter_0_implicitly_has_an_any_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Member_0_implicitly_has_an_1_type.code}return e}function ZSe(e,t,r,i,o,s,c,f,d){if(!zI(r.kind)&&r.kind!==79&&r.kind!==25&&r.kind!==108)return;const{parent:y}=r,h=tS(t,o,d,f);switch(i=wHe(i),i){case _.Member_0_implicitly_has_an_1_type.code:case _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ki(y)&&c(y)||to(y)||If(y))return exe(e,h,t,y,o,f,s),h.writeFixes(e),y;if(Fr(y)){const L=Kw(y.name,o,s),I=Mw(L,y,o,f);if(I){const O=N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(I),void 0);e.addJSDocTags(t,ao(y.parent.parent,ou),[O])}return h.writeFixes(e),y}return;case _.Variable_0_implicitly_has_an_1_type.code:{const L=o.getTypeChecker().getSymbolAtLocation(r);return L&&L.valueDeclaration&&Ki(L.valueDeclaration)&&c(L.valueDeclaration)?(exe(e,h,Zn(L.valueDeclaration),L.valueDeclaration,o,f,s),h.writeFixes(e),L.valueDeclaration):void 0}}const E=Cf(r);if(E===void 0)return;let A;switch(i){case _.Parameter_0_implicitly_has_an_1_type.code:if(e_(E)){txe(e,h,t,E,o,f,s),A=E;break}case _.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(E)){const L=ao(y,Ba);DHe(e,h,t,L,E,o,f,s),A=L}break;case _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:q_(E)&&He(E.name)&&(CG(e,h,t,E,Kw(E.name,o,s),o,f),A=E);break;case _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e_(E)&&(txe(e,h,t,E,o,f,s),A=E);break;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:gr.isThisTypeAnnotatable(E)&&c(E)&&(RHe(e,t,E,o,f,s),A=E);break;default:return D.fail(String(i))}return h.writeFixes(e),A}function exe(e,t,r,i,o,s,c){He(i.name)&&CG(e,t,r,i,Kw(i.name,o,c),o,s)}function DHe(e,t,r,i,o,s,c,f){if(!He(i.name))return;const d=PHe(o,r,s,f);if(D.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),fr(o))nxe(e,r,d,s,c);else{const y=Js(o)&&!bs(o,20,r);y&&e.insertNodeBefore(r,us(o.parameters),N.createToken(20));for(const{declaration:h,type:E}of d)h&&!h.type&&!h.initializer&&CG(e,t,r,h,E,s,c);y&&e.insertNodeAfter(r,zo(o.parameters),N.createToken(21))}}function RHe(e,t,r,i,o,s){const c=rxe(r,t,i,s);if(!c||!c.length)return;const f=Tte(i,c,s).thisParameter(),d=Mw(f,r,i,o);d&&(fr(r)?NHe(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function NHe(e,t,r,i){e.addJSDocTags(t,r,[N.createJSDocThisTag(void 0,N.createJSDocTypeExpression(i))])}function txe(e,t,r,i,o,s,c){const f=Yc(i.parameters);if(f&&He(i.name)&&He(f.name)){let d=Kw(i.name,o,c);d===o.getTypeChecker().getAnyType()&&(d=Kw(f.name,o,c)),fr(i)?nxe(e,r,[{declaration:f,type:d}],o,s):CG(e,t,r,f,d,o,s)}}function CG(e,t,r,i,o,s,c){const f=Mw(o,i,s,c);if(f)if(fr(r)&&i.kind!==168){const d=Ki(i)?ai(i.parent.parent,uc):i;if(!d)return;const y=N.createJSDocTypeExpression(f),h=q_(i)?N.createJSDocReturnTag(void 0,y,void 0):N.createJSDocTypeTag(void 0,y,void 0);e.addJSDocTags(r,d,[h])}else OHe(f,i,r,e,t,es(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,f)}function OHe(e,t,r,i,o,s){const c=rS(e,s);return c&&i.tryInsertTypeAnnotation(r,t,c.typeNode)?(Ue(c.symbols,f=>o.addImportFromExportedSymbol(f,!0)),!0):!1}function nxe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const c=ia(r,f=>{const d=f.declaration;if(d.initializer||Av(d)||!He(d.name))return;const y=f.type&&Mw(f.type,d,i,o);if(y){const h=N.cloneNode(d.name);return or(h,7168),{name:N.cloneNode(d.name),param:d,isOptional:!!f.isOptional,typeNode:y}}});if(c.length)if(Js(s)||Bs(s)){const f=Js(s)&&!bs(s,20,t);f&&e.insertNodeBefore(t,us(s.parameters),N.createToken(20)),Ue(c,({typeNode:d,param:y})=>{const h=N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(d)),E=N.createJSDocComment(void 0,[h]);e.insertNodeAt(t,y.getStart(t),E,{suffix:" "})}),f&&e.insertNodeAfter(t,zo(s.parameters),N.createToken(21))}else{const f=Vt(c,({name:d,typeNode:y,isOptional:h})=>N.createJSDocParameterTag(void 0,d,!!h,N.createJSDocTypeExpression(y),!1,void 0));e.addJSDocTags(t,s,f)}}function Ete(e,t,r){return ia(ul.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==ul.EntryKind.Span?ai(i.node,He):void 0)}function Kw(e,t,r){const i=Ete(e,t,r);return Tte(t,i,r).single()}function PHe(e,t,r,i){const o=rxe(e,t,r,i);return o&&Tte(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:He(s.name)?Kw(s.name,r,i):r.getTypeChecker().getAnyType()}))}function rxe(e,t,r,i){let o;switch(e.kind){case 173:o=bs(e,135,t);break;case 216:case 215:const s=e.parent;o=(Ki(s)||to(s))&&He(s.name)?s.name:e.name;break;case 259:case 171:case 170:o=e.name;break}if(o)return Ete(o,r,i)}function Tte(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Oe=>i.createArrayType(Oe),Promise:Oe=>i.createPromiseType(Oe)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:y,thisParameter:h};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(Oe){const Me=new Map;for(const ze of Oe)ze.properties&&ze.properties.forEach((Fe,st)=>{Me.has(st)||Me.set(st,[]),Me.get(st).push(Fe)});const Ye=new Map;return Me.forEach((ze,Fe)=>{Ye.set(Fe,f(ze))}),{isNumber:Oe.some(ze=>ze.isNumber),isString:Oe.some(ze=>ze.isString),isNumberOrString:Oe.some(ze=>ze.isNumberOrString),candidateTypes:ma(Oe,ze=>ze.candidateTypes),properties:Ye,calls:ma(Oe,ze=>ze.calls),constructs:ma(Oe,ze=>ze.constructs),numberIndex:Ue(Oe,ze=>ze.numberIndex),stringIndex:Ue(Oe,ze=>ze.stringIndex),candidateThisTypes:ma(Oe,ze=>ze.candidateThisTypes),inferredTypes:void 0}}function d(){return re(E(t))}function y(Oe){if(t.length===0||!Oe.parameters)return;const Me=c();for(const ze of t)r.throwIfCancellationRequested(),A(ze,Me);const Ye=[...Me.constructs||[],...Me.calls||[]];return Oe.parameters.map((ze,Fe)=>{const st=[],Ct=yh(ze);let Et=!1;for(const tt of Ye)if(tt.argumentTypes.length<=Fe)Et=fr(Oe),st.push(i.getUndefinedType());else if(Ct)for(let at=Fe;at<tt.argumentTypes.length;at++)st.push(i.getBaseTypeOfLiteralType(tt.argumentTypes[at]));else st.push(i.getBaseTypeOfLiteralType(tt.argumentTypes[Fe]));if(He(ze.name)){const tt=E(Ete(ze.name,e,r));st.push(...Ct?ia(tt,i.getElementTypeOfArrayType):tt)}const jt=re(st);return{type:Ct?i.createArrayType(jt):jt,isOptional:Et&&!Ct,declaration:ze}})}function h(){const Oe=c();for(const Me of t)r.throwIfCancellationRequested(),A(Me,Oe);return re(Oe.candidateThisTypes||rt)}function E(Oe){const Me=c();for(const Ye of Oe)r.throwIfCancellationRequested(),A(Ye,Me);return ae(Me)}function A(Oe,Me){for(;yk(Oe);)Oe=Oe.parent;switch(Oe.parent.kind){case 241:I(Oe,Me);break;case 222:Me.isNumber=!0;break;case 221:O(Oe.parent,Me);break;case 223:k(Oe,Oe.parent,Me);break;case 292:case 293:G(Oe.parent,Me);break;case 210:case 211:Oe.parent.expression===Oe?V(Oe.parent,Me):L(Oe,Me);break;case 208:H(Oe.parent,Me);break;case 209:te(Oe.parent,Oe,Me);break;case 299:case 300:X(Oe.parent,Me);break;case 169:Y(Oe.parent,Me);break;case 257:{const{name:Ye,initializer:ze}=Oe.parent;if(Oe===Ye){ze&&Ge(Me,i.getTypeAtLocation(ze));break}}default:return L(Oe,Me)}}function L(Oe,Me){_g(Oe)&&Ge(Me,i.getContextualType(Oe))}function I(Oe,Me){Ge(Me,no(Oe)?i.getVoidType():i.getAnyType())}function O(Oe,Me){switch(Oe.operator){case 45:case 46:case 40:case 54:Me.isNumber=!0;break;case 39:Me.isNumberOrString=!0;break}}function k(Oe,Me,Ye){switch(Me.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const ze=i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left);ze.flags&1056?Ge(Ye,ze):Ye.isNumber=!0;break;case 64:case 39:const Fe=i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left);Fe.flags&1056?Ge(Ye,Fe):Fe.flags&296?Ye.isNumber=!0:Fe.flags&402653316?Ye.isString=!0:Fe.flags&1||(Ye.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:Ge(Ye,i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left));break;case 101:Oe===Me.left&&(Ye.isString=!0);break;case 56:case 60:Oe===Me.left&&(Oe.parent.parent.kind===257||nd(Oe.parent.parent,!0))&&Ge(Ye,i.getTypeAtLocation(Me.right));break}}function G(Oe,Me){Ge(Me,i.getTypeAtLocation(Oe.parent.parent.expression))}function V(Oe,Me){const Ye={argumentTypes:[],return_:c()};if(Oe.arguments)for(const ze of Oe.arguments)Ye.argumentTypes.push(i.getTypeAtLocation(ze));A(Oe,Ye.return_),Oe.kind===210?(Me.calls||(Me.calls=[])).push(Ye):(Me.constructs||(Me.constructs=[])).push(Ye)}function H(Oe,Me){const Ye=sl(Oe.name.text);Me.properties||(Me.properties=new Map);const ze=Me.properties.get(Ye)||c();A(Oe,ze),Me.properties.set(Ye,ze)}function te(Oe,Me,Ye){if(Me===Oe.argumentExpression){Ye.isNumberOrString=!0;return}else{const ze=i.getTypeAtLocation(Oe.argumentExpression),Fe=c();A(Oe,Fe),ze.flags&296?Ye.numberIndex=Fe:Ye.stringIndex=Fe}}function X(Oe,Me){const Ye=Ki(Oe.parent.parent)?Oe.parent.parent:Oe.parent;qe(Me,i.getTypeAtLocation(Ye))}function Y(Oe,Me){qe(Me,i.getTypeAtLocation(Oe.parent))}function P(Oe,Me){const Ye=[];for(const ze of Oe)for(const{high:Fe,low:st}of Me)Fe(ze)&&(D.assert(!st(ze),"Priority can't have both low and high"),Ye.push(st));return Oe.filter(ze=>Ye.every(Fe=>!Fe(ze)))}function de(Oe){return re(ae(Oe))}function re(Oe){if(!Oe.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let ze=P(Oe,[{high:st=>st===i.getStringType()||st===i.getNumberType(),low:st=>st===Me},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!(ti(st)&16),low:st=>!!(ti(st)&16)}]);const Fe=ze.filter(st=>ti(st)&16);return Fe.length&&(ze=ze.filter(st=>!(ti(st)&16)),ze.push(ye(Fe))),i.getWidenedType(i.getUnionType(ze.map(i.getBaseTypeOfLiteralType),2))}function ye(Oe){if(Oe.length===1)return Oe[0];const Me=[],Ye=[],ze=[],Fe=[];let st=!1,Ct=!1;const Et=__();for(const at of Oe){for(const On of i.getPropertiesOfType(at))Et.add(On.name,On.valueDeclaration?i.getTypeOfSymbolAtLocation(On,On.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(at,0)),Ye.push(...i.getSignaturesOfType(at,1));const sn=i.getIndexInfoOfType(at,0);sn&&(ze.push(sn.type),st=st||sn.isReadonly);const Qt=i.getIndexInfoOfType(at,1);Qt&&(Fe.push(Qt.type),Ct=Ct||Qt.isReadonly)}const jt=_ce(Et,(at,sn)=>{const Qt=sn.length<Oe.length?16777216:0,On=i.createSymbol(4|Qt,at);return On.links.type=i.getUnionType(sn),[at,On]}),tt=[];return ze.length&&tt.push(i.createIndexInfo(i.getStringType(),i.getUnionType(ze),st)),Fe.length&&tt.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Fe),Ct)),i.createAnonymousType(Oe[0].symbol,jt,Me,Ye,tt)}function ae(Oe){var Me,Ye,ze;const Fe=[];Oe.isNumber&&Fe.push(i.getNumberType()),Oe.isString&&Fe.push(i.getStringType()),Oe.isNumberOrString&&Fe.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Oe.numberIndex&&Fe.push(i.createArrayType(de(Oe.numberIndex))),((Me=Oe.properties)!=null&&Me.size||(Ye=Oe.constructs)!=null&&Ye.length||Oe.stringIndex)&&Fe.push(W(Oe));const st=(Oe.candidateTypes||[]).map(Et=>i.getBaseTypeOfLiteralType(Et)),Ct=(ze=Oe.calls)!=null&&ze.length?W(Oe):void 0;return Ct&&st?Fe.push(i.getUnionType([Ct,...st],2)):(Ct&&Fe.push(Ct),Ae(st)&&Fe.push(...st)),Fe.push(...ce(Oe)),Fe}function W(Oe){const Me=new Map;Oe.properties&&Oe.properties.forEach((st,Ct)=>{const Et=i.createSymbol(4,Ct);Et.links.type=de(st),Me.set(Ct,Et)});const Ye=Oe.calls?[je(Oe.calls)]:[],ze=Oe.constructs?[je(Oe.constructs)]:[],Fe=Oe.stringIndex?[i.createIndexInfo(i.getStringType(),de(Oe.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,Ye,ze,Fe)}function ce(Oe){if(!Oe.properties||!Oe.properties.size)return[];const Me=s.filter(Ye=>me(Ye,Oe));return 0<Me.length&&Me.length<3?Me.map(Ye=>ve(Ye,Oe)):[]}function me(Oe,Me){return Me.properties?!af(Me.properties,(Ye,ze)=>{const Fe=i.getTypeOfPropertyOfType(Oe,ze);return Fe?Ye.calls?!i.getSignaturesOfType(Fe,0).length||!i.isTypeAssignableTo(Fe,Qe(Ye.calls)):!i.isTypeAssignableTo(Fe,de(Ye)):!0}):!1}function ve(Oe,Me){if(!(ti(Oe)&4)||!Me.properties)return Oe;const Ye=Oe.target,ze=Am(Ye.typeParameters);if(!ze)return Oe;const Fe=[];return Me.properties.forEach((st,Ct)=>{const Et=i.getTypeOfPropertyOfType(Ye,Ct);D.assert(!!Et,"generic should have all the properties of its reference."),Fe.push(...Se(Et,de(st),ze))}),o[Oe.symbol.escapedName](re(Fe))}function Se(Oe,Me,Ye){if(Oe===Ye)return[Me];if(Oe.flags&3145728)return ma(Oe.types,st=>Se(st,Me,Ye));if(ti(Oe)&4&&ti(Me)&4){const st=i.getTypeArguments(Oe),Ct=i.getTypeArguments(Me),Et=[];if(st&&Ct)for(let jt=0;jt<st.length;jt++)Ct[jt]&&Et.push(...Se(st[jt],Ct[jt],Ye));return Et}const ze=i.getSignaturesOfType(Oe,0),Fe=i.getSignaturesOfType(Me,0);return ze.length===1&&Fe.length===1?ee(ze[0],Fe[0],Ye):[]}function ee(Oe,Me,Ye){var ze;const Fe=[];for(let Et=0;Et<Oe.parameters.length;Et++){const jt=Oe.parameters[Et],tt=Me.parameters[Et],at=Oe.declaration&&yh(Oe.declaration.parameters[Et]);if(!tt)break;let sn=jt.valueDeclaration?i.getTypeOfSymbolAtLocation(jt,jt.valueDeclaration):i.getAnyType();const Qt=at&&i.getElementTypeOfArrayType(sn);Qt&&(sn=Qt);const On=((ze=ai(tt,Om))==null?void 0:ze.links.type)||(tt.valueDeclaration?i.getTypeOfSymbolAtLocation(tt,tt.valueDeclaration):i.getAnyType());Fe.push(...Se(sn,On,Ye))}const st=i.getReturnTypeOfSignature(Oe),Ct=i.getReturnTypeOfSignature(Me);return Fe.push(...Se(st,Ct,Ye)),Fe}function Qe(Oe){return i.createAnonymousType(void 0,so(),[je(Oe)],rt,rt)}function je(Oe){const Me=[],Ye=Math.max(...Oe.map(Fe=>Fe.argumentTypes.length));for(let Fe=0;Fe<Ye;Fe++){const st=i.createSymbol(1,sl(`arg${Fe}`));st.links.type=re(Oe.map(Ct=>Ct.argumentTypes[Fe]||i.getUndefinedType())),Oe.some(Ct=>Ct.argumentTypes[Fe]===void 0)&&(st.flags|=16777216),Me.push(st)}const ze=de(f(Oe.map(Fe=>Fe.return_)));return i.createSignature(void 0,void 0,void 0,Me,ze,void 0,Ye,0)}function Ge(Oe,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Oe.candidateTypes||(Oe.candidateTypes=[])).push(Me)}function qe(Oe,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Oe.candidateThisTypes||(Oe.candidateThisTypes=[])).push(Me)}}var LG,Ste,MHe=C({"src/services/codefixes/inferFromUsage.ts"(){$r(),Eo(),LG="inferFromUsage",Ste=[_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_.Variable_0_implicitly_has_an_1_type.code,_.Parameter_0_implicitly_has_an_1_type.code,_.Rest_parameter_0_implicitly_has_an_any_type.code,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_.Member_0_implicitly_has_an_1_type.code,_.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],po({errorCodes:Ste,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:c,preferences:f}=e,d=aa(t,i);let y;const h=gr.ChangeTracker.with(e,A=>{y=ZSe(A,t,d,o,r,s,o1,c,f)}),E=y&&ka(y);return!E||h.length===0?void 0:[ro(LG,h,[kHe(o,d),xc(E)],LG,_.Infer_all_types_from_usage)]},fixIds:[LG],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,c=nL();return Cs(e,Ste,(f,d)=>{ZSe(f,t,aa(d.file,d.start),d.code,r,i,c,o,s)})}})}});function ixe(e,t,r){if(fr(e))return;const i=aa(e,r),o=nr(i,Qs),s=o==null?void 0:o.type;if(!s)return;const c=t.getTypeFromTypeNode(s),f=t.getAwaitedType(c)||t.getVoidType(),d=t.typeToTypeNode(f,s,void 0);if(d)return{returnTypeNode:s,returnType:c,promisedTypeNode:d,promisedType:f}}function axe(e,t,r,i){e.replaceNode(t,r,N.createTypeReferenceNode("Promise",[i]))}var IG,xte,FHe=C({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){$r(),Eo(),IG="fixReturnTypeInAsyncFunction",xte=[_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],po({errorCodes:xte,fixIds:[IG],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),c=ixe(r,i.getTypeChecker(),o.start);if(!c)return;const{returnTypeNode:f,returnType:d,promisedTypeNode:y,promisedType:h}=c,E=gr.ChangeTracker.with(t,A=>axe(A,r,f,y));return[ro(IG,E,[_.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(h)],IG,_.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Cs(e,xte,(t,r)=>{const i=ixe(r.file,e.program.getTypeChecker(),r.start);i&&axe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function oxe(e,t,r,i){const{line:o}=ol(t,r);(!i||gv(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Ate,Cte,Lte,BHe=C({"src/services/codefixes/disableJsDiagnostics.ts"(){$r(),Eo(),Ate="disableJsDiagnostics",Cte="disableJsDiagnostics",Lte=ia(Object.keys(_),e=>{const t=_[e];return t.category===1?t.code:void 0}),po({errorCodes:Lte,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:c}=t;if(!fr(r)||!AO(r,i.getCompilerOptions()))return;const f=r.checkJsDirective?"":ub(s,c.options),d=[Cp(Ate,[hEe(r.fileName,[b6(r.checkJsDirective?hc(r.checkJsDirective.pos,r.checkJsDirective.end):wc(0,0),`// @ts-nocheck${f}`)])],_.Disable_checking_for_this_file)];return gr.isValidLocationToAddComment(r,o.start)&&d.unshift(ro(Ate,gr.ChangeTracker.with(t,y=>oxe(y,r,o.start)),_.Ignore_this_error_message,Cte,_.Add_ts_ignore_to_all_error_messages)),d},fixIds:[Cte],getAllCodeActions:e=>{const t=new Set;return Cs(e,Lte,(r,i)=>{gr.isValidLocationToAddComment(i.file,i.start)&&oxe(r,i.file,i.start,t)})}})}});function Ite(e,t,r,i,o,s,c){const f=e.symbol.members;for(const d of t)f.has(d.escapedName)||sxe(d,e,r,i,o,s,c,void 0)}function p2(e){return{trackSymbol:()=>!1,moduleResolverHost:IQ(e.program,e.host)}}function sxe(e,t,r,i,o,s,c,f,d=3,y=!1){var h;const E=e.getDeclarations(),A=E==null?void 0:E[0],L=i.program.getTypeChecker(),I=es(i.program.getCompilerOptions()),O=(h=A==null?void 0:A.kind)!=null?h:168,k=Dl(ka(A),!1),G=A?Fu(A):0;let V=G&4?4:G&16?16:0;A&&rf(A)&&(V|=128);const H=re(),te=L.getWidenedType(L.getTypeOfSymbolAtLocation(e,t)),X=!!(e.flags&16777216),Y=!!(t.flags&16777216)||y,P=Ap(r,o);switch(O){case 168:case 169:const me=P===0?268435456:void 0;let ve=L.typeToTypeNode(te,t,me,p2(i));if(s){const ee=rS(ve,I);ee&&(ve=ee.typeNode,m2(s,ee.symbols))}c(N.createPropertyDeclaration(H,A?ae(k):e.getName(),X&&d&2?N.createToken(57):void 0,ve,void 0));break;case 174:case 175:{D.assertIsDefined(E);let ee=L.typeToTypeNode(te,t,void 0,p2(i));const Qe=ST(E,A),je=Qe.secondAccessor?[Qe.firstAccessor,Qe.secondAccessor]:[Qe.firstAccessor];if(s){const Ge=rS(ee,I);Ge&&(ee=Ge.typeNode,m2(s,Ge.symbols))}for(const Ge of je)if(q_(Ge))c(N.createGetAccessorDeclaration(H,ae(k),rt,ce(ee),W(f,P,Y)));else{D.assertNode(Ge,e_,"The counterpart to a getter should be a setter");const qe=pk(Ge),Oe=qe&&He(qe.name)?Mr(qe.name):void 0;c(N.createSetAccessorDeclaration(H,ae(k),wte(1,[Oe],[ce(ee)],1,!1),W(f,P,Y)))}break}case 170:case 171:D.assertIsDefined(E);const Se=te.isUnion()?ma(te.types,ee=>ee.getCallSignatures()):te.getCallSignatures();if(!kt(Se))break;if(E.length===1){D.assert(Se.length===1,"One declaration implies one signature");const ee=Se[0];de(P,ee,H,ae(k),W(f,P,Y));break}for(const ee of Se)de(P,ee,H,ae(k));if(!Y)if(E.length>Se.length){const ee=L.getSignatureFromDeclaration(E[E.length-1]);de(P,ee,H,ae(k),W(f,P))}else D.assert(E.length===Se.length,"Declarations and signatures should match count"),c(VHe(L,i,t,Se,ae(k),X&&!!(d&1),H,P,f));break}function de(me,ve,Se,ee,Qe){const je=kG(171,i,me,ve,Qe,ee,Se,X&&!!(d&1),t,s);je&&c(je)}function re(){let me;return V&&(me=AA(me,N.createModifiersFromModifierFlags(V))),ye()&&(me=Fn(me,N.createToken(161))),me&&N.createNodeArray(me)}function ye(){return!!(i.program.getCompilerOptions().noImplicitOverride&&A&&k1(A))}function ae(me){return He(me)&&me.escapedText==="constructor"?N.createComputedPropertyName(N.createStringLiteral(Mr(me),P===0)):Dl(me,!1)}function W(me,ve,Se){return Se?void 0:Dl(me,!1)||Dte(ve)}function ce(me){return Dl(me,!1)}}function kG(e,t,r,i,o,s,c,f,d,y){const h=t.program,E=h.getTypeChecker(),A=es(h.getCompilerOptions()),L=fr(d),I=524545|(r===0?268435456:0),O=E.signatureToSignatureDeclaration(i,e,d,I,p2(t));if(!O)return;let k=L?void 0:O.typeParameters,G=O.parameters,V=L?void 0:O.type;if(y){if(k){const Y=pa(k,P=>{let de=P.constraint,re=P.default;if(de){const ye=rS(de,A);ye&&(de=ye.typeNode,m2(y,ye.symbols))}if(re){const ye=rS(re,A);ye&&(re=ye.typeNode,m2(y,ye.symbols))}return N.updateTypeParameterDeclaration(P,P.modifiers,P.name,de,re)});k!==Y&&(k=ht(N.createNodeArray(Y,k.hasTrailingComma),k))}const X=pa(G,Y=>{let P=L?void 0:Y.type;if(P){const de=rS(P,A);de&&(P=de.typeNode,m2(y,de.symbols))}return N.updateParameterDeclaration(Y,Y.modifiers,Y.dotDotDotToken,Y.name,L?void 0:Y.questionToken,P,Y.initializer)});if(G!==X&&(G=ht(N.createNodeArray(X,G.hasTrailingComma),G)),V){const Y=rS(V,A);Y&&(V=Y.typeNode,m2(y,Y.symbols))}}const H=f?N.createToken(57):void 0,te=O.asteriskToken;if(Bs(O))return N.updateFunctionExpression(O,c,O.asteriskToken,ai(s,He),k,G,V,o??O.body);if(Js(O))return N.updateArrowFunction(O,c,k,G,V,O.equalsGreaterThanToken,o??O.body);if(ac(O))return N.updateMethodDeclaration(O,c,te,s??N.createIdentifier(""),H,k,G,V,o);if(yc(O))return N.updateFunctionDeclaration(O,c,O.asteriskToken,ai(s,He),k,G,V,o??O.body)}function kte(e,t,r,i,o,s,c){const f=Ap(t.sourceFile,t.preferences),d=es(t.program.getCompilerOptions()),y=p2(t),h=t.program.getTypeChecker(),E=fr(c),{typeArguments:A,arguments:L,parent:I}=i,O=E?void 0:h.getContextualType(i),k=Vt(L,re=>He(re)?re.text:Fr(re)&&He(re.name)?re.name.text:void 0),G=E?[]:Vt(L,re=>h.getTypeAtLocation(re)),{argumentTypeNodes:V,argumentTypeParameters:H}=uxe(h,r,G,c,d,void 0,y),te=s?N.createNodeArray(N.createModifiersFromModifierFlags(s)):void 0,X=l5(I)?N.createToken(41):void 0,Y=E?void 0:GHe(h,H,A),P=wte(L.length,k,V,void 0,E),de=E||O===void 0?void 0:h.typeToTypeNode(O,c,void 0,y);switch(e){case 171:return N.createMethodDeclaration(te,X,o,void 0,Y,P,de,Dte(f));case 170:return N.createMethodSignature(te,o,void 0,Y,P,de===void 0?N.createKeywordTypeNode(157):de);case 259:return N.createFunctionDeclaration(te,X,o,Y,P,de,K6(_.Function_not_implemented.message,f));default:D.fail("Unexpected kind")}}function GHe(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(f=>!t.some(d=>{var y;return e.getTypeAtLocation(f)===((y=d[1])==null?void 0:y.argumentType)})),c=i.size+s.length;for(let f=0;i.size<c;f+=1)i.add(lxe(f))}return Ro(i.values(),s=>{var c;return N.createTypeParameterDeclaration(void 0,s,(c=o.get(s))==null?void 0:c.constraint)})}function lxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function wG(e,t,r,i,o,s,c){let f=e.typeToTypeNode(r,i,s,c);if(f&&vg(f)){const d=rS(f,o);d&&(m2(t,d.symbols),f=d.typeNode)}return Dl(f)}function cxe(e){return e.isUnionOrIntersection()?e.types.some(cxe):e.flags&262144}function uxe(e,t,r,i,o,s,c){const f=[],d=new Map;for(let y=0;y<r.length;y+=1){const h=r[y];if(h.isUnionOrIntersection()&&h.types.some(cxe)){const O=lxe(y);f.push(N.createTypeReferenceNode(O)),d.set(O,void 0);continue}const E=e.getBaseTypeOfLiteralType(h),A=wG(e,t,E,i,o,s,c);if(!A)continue;f.push(A);const L=dxe(h),I=h.isTypeParameter()&&h.constraint&&!UHe(h.constraint)?wG(e,t,h.constraint,i,o,s,c):void 0;L&&d.set(L,{argumentType:h,constraint:I})}return{argumentTypeNodes:f,argumentTypeParameters:Ro(d.entries())}}function UHe(e){return e.flags&524288&&e.objectFlags===16}function dxe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=dxe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function wte(e,t,r,i,o){const s=[],c=new Map;for(let f=0;f<e;f++){const d=(t==null?void 0:t[f])||`arg${f}`,y=c.get(d);c.set(d,(y||0)+1);const h=N.createParameterDeclaration(void 0,void 0,d+(y||""),i!==void 0&&f>=i?N.createToken(57):void 0,o?void 0:(r==null?void 0:r[f])||N.createKeywordTypeNode(157),void 0);s.push(h)}return s}function VHe(e,t,r,i,o,s,c,f,d){let y=i[0],h=i[0].minArgumentCount,E=!1;for(const O of i)h=Math.min(O.minArgumentCount,h),Eu(O)&&(E=!0),O.parameters.length>=y.parameters.length&&(!Eu(O)||Eu(y))&&(y=O);const A=y.parameters.length-(Eu(y)?1:0),L=y.parameters.map(O=>O.name),I=wte(A,L,void 0,h,!1);if(E){const O=N.createParameterDeclaration(void 0,N.createToken(25),L[A]||"rest",A>=h?N.createToken(57):void 0,N.createArrayTypeNode(N.createKeywordTypeNode(157)),void 0);I.push(O)}return HHe(c,o,s,void 0,I,jHe(i,e,t,r),f,d)}function jHe(e,t,r,i){if(Ae(e)){const o=t.getUnionType(Vt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,p2(r))}}function HHe(e,t,r,i,o,s,c,f){return N.createMethodDeclaration(e,void 0,t,r?N.createToken(57):void 0,i,o,s,f||Dte(c))}function Dte(e){return K6(_.Method_not_implemented.message,e)}function K6(e,t){return N.createBlock([N.createThrowStatement(N.createNewExpression(N.createIdentifier("Error"),void 0,[N.createStringLiteral(e,t===0)]))],!0)}function Rte(e,t,r){const i=tk(t);if(!i)return;const o=Ote(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,DG("compilerOptions",N.createObjectLiteralExpression(r.map(([c,f])=>DG(c,f)),!0)));return}const s=o.initializer;if(Ls(s))for(const[c,f]of r){const d=Ote(s,c);d===void 0?e.insertNodeAtObjectStart(t,s,DG(c,f)):e.replaceNode(t,d.initializer,f)}}function Nte(e,t,r,i){Rte(e,t,[[r,i]])}function DG(e,t){return N.createPropertyAssignment(N.createStringLiteral(e),t)}function Ote(e,t){return nn(e.properties,r=>qc(r)&&!!r.name&&Vo(r.name)&&r.name.text===t)}function rS(e,t){let r;const i=lt(e,o,Gi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(K0(s)&&s.qualifier){const c=Lf(s.qualifier),f=B9(c.symbol,t),d=f!==c.text?fxe(s.qualifier,N.createIdentifier(f)):s.qualifier;r=Fn(r,c.symbol);const y=Jn(s.typeArguments,o,Gi);return N.createTypeReferenceNode(d,y)}return Bn(s,o,Tg)}}function fxe(e,t){return e.kind===79?t:N.createQualifiedName(fxe(e.left,t),e.right)}function m2(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Pte(e,t){const r=iu(t);let i=aa(e,t.start);for(;i.end<r;)i=i.parent;return i}var Mte,WHe=C({"src/services/codefixes/helpers.ts"(){$r(),Mte=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Mte||{})}});function _xe(e,t,r,i,o,s){const c=hxe(e,t,r,i);if(!c||oD.isRefactorErrorInfo(c))return;const f=gr.ChangeTracker.fromContext(o),{isStatic:d,isReadonly:y,fieldName:h,accessorName:E,originalName:A,type:L,container:I,declaration:O}=c;Wd(h),Wd(E),Wd(O),Wd(I);let k,G;if(di(I)){const H=Fu(O);if(td(e)){const te=N.createModifiersFromModifierFlags(H);k=te,G=te}else k=N.createModifiersFromModifierFlags(JHe(H)),G=N.createModifiersFromModifierFlags(KHe(H));Yx(O)&&(G=ba(xv(O),G))}ZHe(f,e,O,L,h,G);const V=XHe(h,E,L,k,d,I);if(Wd(V),gxe(f,e,V,O,I),y){const H=Th(I);H&&eWe(f,e,H,h.text,A)}else{const H=YHe(h,E,L,k,d,I);Wd(H),gxe(f,e,H,O,I)}return f.getChanges()}function zHe(e){return He(e)||Vo(e)}function qHe(e){return tf(e,e.parent)||to(e)||qc(e)}function pxe(e,t){return He(t)?N.createIdentifier(e):N.createStringLiteral(e)}function mxe(e,t,r){const i=t?r.name:N.createThis();return He(e)?N.createPropertyAccessExpression(i,e):N.createElementAccessExpression(i,N.createStringLiteralFromNode(e))}function JHe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function KHe(e){return e&=-5,e&=-17,e|=8,e}function hxe(e,t,r,i,o=!0){const s=aa(e,r),c=r===i&&o,f=nr(s.parent,qHe),d=124;if(!f||!(dQ(f.name,e,r,i)||c))return{error:No(_.Could_not_find_property_for_which_to_generate_accessor)};if(!zHe(f.name))return{error:No(_.Name_is_not_valid)};if((Fu(f)&126975|d)!==d)return{error:No(_.Can_only_convert_property_with_modifier)};const y=f.name.text,h=QQ(y),E=pxe(h?y:QT(`_${y}`,e),f.name),A=pxe(h?QT(y.substring(1),e):y,f.name);return{isStatic:gc(f),isReadonly:mk(f),type:tWe(f,t),container:f.kind===166?f.parent.parent:f.parent,originalName:f.name.text,declaration:f,fieldName:E,accessorName:A,renameAccessor:h}}function XHe(e,t,r,i,o,s){return N.createGetAccessorDeclaration(i,t,[],r,N.createBlock([N.createReturnStatement(mxe(e,o,s))],!0))}function YHe(e,t,r,i,o,s){return N.createSetAccessorDeclaration(i,t,[N.createParameterDeclaration(void 0,void 0,N.createIdentifier("value"),void 0,r)],N.createBlock([N.createExpressionStatement(N.createAssignment(mxe(e,o,s),N.createIdentifier("value")))],!0))}function $He(e,t,r,i,o,s){const c=N.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,c)}function QHe(e,t,r,i){let o=N.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=N.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function ZHe(e,t,r,i,o,s){to(r)?$He(e,t,r,i,o,s):qc(r)?QHe(e,t,r,o):e.replaceNode(t,r,N.updateParameterDeclaration(r,s,r.dotDotDotToken,ao(o,He),r.questionToken,r.type,r.initializer))}function gxe(e,t,r,i,o){tf(i,i.parent)?e.insertMemberAtStart(t,o,r):qc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function eWe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(c){cl(c)&&c.expression.kind===108&&Vo(c.argumentExpression)&&c.argumentExpression.text===o&&Sk(c)&&e.replaceNode(t,c.argumentExpression,N.createStringLiteral(i)),Fr(c)&&c.expression.kind===108&&c.name.text===o&&Sk(c)&&e.replaceNode(t,c.name,N.createIdentifier(i)),!Ka(c)&&!di(c)&&c.forEachChild(s)})}function tWe(e,t){const r=Gfe(e);if(to(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=Fx(r)?r.types:[r];return N.createUnionTypeNode([...s,N.createKeywordTypeNode(155)])}}return r}function Fte(e,t){const r=[];for(;e;){const i=A1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,c=s.declarations&&nn(s.declarations,di);if(!c)break;r.push(c),e=c}return r}var nWe=C({"src/services/codefixes/generateAccessors.ts"(){$r()}});function rWe(e,t){const r=Zn(t),i=ZA(t),o=e.program.getCompilerOptions(),s=[];return s.push(yxe(e,r,t,Ry(i.name,void 0,t.moduleSpecifier,Ap(r,e.preferences)))),au(o)===1&&s.push(yxe(e,r,t,N.createImportEqualsDeclaration(void 0,!1,i.name,N.createExternalModuleReference(t.moduleSpecifier)))),s}function yxe(e,t,r,i){const o=gr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Cp(Bte,o,[_.Replace_import_with_0,o[0].textChanges[0].newText])}function iWe(e){const t=e.sourceFile,r=_.This_expression_is_not_callable.code===e.errorCode?210:211,i=nr(aa(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return vxe(e,o)}function aWe(e){const t=e.sourceFile,r=nr(aa(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?vxe(e,r):[]}function vxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&Om(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(sf(o)||Ti(i,rWe(e,o)),vt(t)&&!(gu(t.parent)&&t.parent.name===t)){const s=e.sourceFile,c=gr.ChangeTracker.with(e,f=>f.replaceNode(s,t,N.createPropertyAccessExpression(t,"default"),{}));i.push(Cp(Bte,c,_.Use_synthetic_default_member))}return i}var Bte,oWe=C({"src/services/codefixes/fixInvalidImportSyntax.ts"(){$r(),Eo(),Bte="invalidImportSyntax",po({errorCodes:[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],getCodeActions:iWe}),po({errorCodes:[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_does_not_satisfy_the_constraint_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_predicate_0_is_not_assignable_to_1.code,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:aWe})}});function bxe(e,t){const r=aa(e,t);if(He(r)&&to(r.parent)){const i=Zc(r.parent);if(i)return{type:i,prop:r.parent,isJs:fr(r.parent)}}}function sWe(e,t){if(t.isJs)return;const r=gr.ChangeTracker.with(e,i=>Exe(i,e.sourceFile,t.prop));return ro(RG,r,[_.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],NG,_.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Exe(e,t,r){Wd(r);const i=N.updatePropertyDeclaration(r,r.modifiers,r.name,N.createToken(53),r.type,r.initializer);e.replaceNode(t,r,i)}function lWe(e,t){const r=gr.ChangeTracker.with(e,i=>Txe(i,e.sourceFile,t));return ro(RG,r,[_.Add_undefined_type_to_property_0,t.prop.name.getText()],OG,_.Add_undefined_type_to_all_uninitialized_properties)}function Txe(e,t,r){const i=N.createKeywordTypeNode(155),o=Fx(r.type)?r.type.types.concat(i):[r.type,i],s=N.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function cWe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=xxe(r,t.prop);if(!i)return;const o=gr.ChangeTracker.with(e,s=>Sxe(s,e.sourceFile,t.prop,i));return ro(RG,o,[_.Add_initializer_to_property_0,t.prop.name.getText()],PG,_.Add_initializers_to_all_uninitialized_properties)}function Sxe(e,t,r,i){Wd(r);const o=N.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function xxe(e,t){return Axe(e,e.getTypeFromTypeNode(t.type))}function Axe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?N.createFalse():N.createTrue();if(t.isStringLiteral())return N.createStringLiteral(t.value);if(t.isNumberLiteral())return N.createNumericLiteral(t.value);if(t.flags&2048)return N.createBigIntLiteral(t.value);if(t.isUnion())return Kt(t.types,r=>Axe(e,r));if(t.isClass()){const r=gg(t.symbol);if(!r||Yr(r,256))return;const i=Th(r);return i&&i.parameters.length?void 0:N.createNewExpression(N.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return N.createArrayLiteralExpression()}var RG,NG,OG,PG,Gte,uWe=C({"src/services/codefixes/fixStrictClassInitialization.ts"(){$r(),Eo(),RG="strictClassInitialization",NG="addMissingPropertyDefiniteAssignmentAssertions",OG="addMissingPropertyUndefinedType",PG="addMissingPropertyInitializer",Gte=[_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],po({errorCodes:Gte,getCodeActions:function(t){const r=bxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Fn(i,lWe(t,r)),Fn(i,sWe(t,r)),Fn(i,cWe(t,r)),i},fixIds:[NG,OG,PG],getAllCodeActions:e=>Cs(e,Gte,(t,r)=>{const i=bxe(r.file,r.start);if(i)switch(e.fixId){case NG:Exe(t,r.file,i.prop);break;case OG:Txe(t,r.file,i);break;case PG:const o=e.program.getTypeChecker(),s=xxe(o,i.prop);if(!s)return;Sxe(t,r.file,i.prop,s);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function Cxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:c,required:f}=r;e.replaceNode(t,c,o&&!i?N.createImportEqualsDeclaration(void 0,!1,o,N.createExternalModuleReference(f)):N.createImportDeclaration(void 0,N.createImportClause(!1,o,s),f,void 0))}function Lxe(e,t,r){const{parent:i}=aa(e,r);if(!xd(i,!0))throw D.failBadSyntaxKind(i);const o=ao(i.parent,Ki),s=ai(o.name,He),c=Hm(o.name)?dWe(o.name):void 0;if(s||c)return{allowSyntheticDefaults:AT(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:ao(o.parent.parent,uc),required:us(i.arguments)}}function dWe(e){const t=[];for(const r of e.elements){if(!He(r.name)||r.initializer)return;t.push(N.createImportSpecifier(!1,ai(r.propertyName,He),r.name))}if(t.length)return N.createNamedImports(t)}var MG,Ute,fWe=C({"src/services/codefixes/requireInTs.ts"(){$r(),Eo(),MG="requireInTs",Ute=[_.require_call_may_be_converted_to_an_import.code],po({errorCodes:Ute,getCodeActions(e){const t=Lxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>Cxe(i,e.sourceFile,t));return[ro(MG,r,_.Convert_require_to_import,MG,_.Convert_all_require_to_import)]},fixIds:[MG],getAllCodeActions:e=>Cs(e,Ute,(t,r)=>{const i=Lxe(r.file,e.program,r.start);i&&Cxe(t,e.sourceFile,i)})})}});function Ixe(e,t){const r=aa(e,t);if(!He(r))return;const{parent:i}=r;if(su(i)&&zm(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Uv(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function kxe(e,t,r,i){e.replaceNode(t,r.importNode,Ry(r.name,void 0,r.moduleSpecifier,Ap(t,i)))}var FG,Vte,_We=C({"src/services/codefixes/useDefaultImport.ts"(){$r(),Eo(),FG="useDefaultImport",Vte=[_.Import_may_be_converted_to_a_default_import.code],po({errorCodes:Vte,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=Ixe(t,r);if(!i)return;const o=gr.ChangeTracker.with(e,s=>kxe(s,t,i,e.preferences));return[ro(FG,o,_.Convert_to_default_import,FG,_.Convert_all_to_default_imports)]},fixIds:[FG],getAllCodeActions:e=>Cs(e,Vte,(t,r)=>{const i=Ixe(r.file,r.start);i&&kxe(t,r.file,i,e.preferences)})})}});function wxe(e,t,r){const i=ai(aa(t,r.start),b_);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,N.createBigIntLiteral(o))}var BG,jte,pWe=C({"src/services/codefixes/useBigintLiteral.ts"(){$r(),Eo(),BG="useBigintLiteral",jte=[_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],po({errorCodes:jte,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>wxe(i,t.sourceFile,t.span));if(r.length>0)return[ro(BG,r,_.Convert_to_a_bigint_numeric_literal,BG,_.Convert_all_to_bigint_numeric_literals)]},fixIds:[BG],getAllCodeActions:e=>Cs(e,jte,(t,r)=>wxe(t,r.file,r))})}});function Dxe(e,t){const r=aa(e,t);return D.assert(r.kind===100,"This token should be an ImportKeyword"),D.assert(r.parent.kind===202,"Token parent should be an ImportType"),r.parent}function Rxe(e,t,r){const i=N.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var Nxe,GG,Hte,mWe=C({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){$r(),Eo(),Nxe="fixAddModuleReferTypeMissingTypeof",GG=Nxe,Hte=[_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],po({errorCodes:Hte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Dxe(r,i.start),s=gr.ChangeTracker.with(t,c=>Rxe(c,r,o));return[ro(GG,s,_.Add_missing_typeof,GG,_.Add_missing_typeof)]},fixIds:[GG],getAllCodeActions:e=>Cs(e,Hte,(t,r)=>Rxe(t,e.sourceFile,Dxe(r.file,r.start)))})}});function Oxe(e,t){let o=aa(e,t).parent.parent;if(!(!br(o)&&(o=o.parent,!br(o)))&&Cl(o.operatorToken))return o}function Pxe(e,t,r){const i=hWe(r);i&&e.replaceNode(t,r,N.createJsxFragment(N.createJsxOpeningFragment(),i,N.createJsxJsxClosingFragment()))}function hWe(e){const t=[];let r=e;for(;;)if(br(r)&&Cl(r.operatorToken)&&r.operatorToken.kind===27){if(t.push(r.left),gN(r.right))return t.push(r.right),t;if(br(r.right)){r=r.right;continue}else return}else return}var UG,Wte,gWe=C({"src/services/codefixes/wrapJsxInFragment.ts"(){$r(),Eo(),UG="wrapJsxInFragment",Wte=[_.JSX_expressions_must_have_one_parent_element.code],po({errorCodes:Wte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Oxe(r,i.start);if(!o)return;const s=gr.ChangeTracker.with(t,c=>Pxe(c,r,o));return[ro(UG,s,_.Wrap_in_JSX_fragment,UG,_.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[UG],getAllCodeActions:e=>Cs(e,Wte,(t,r)=>{const i=Oxe(e.sourceFile,r.start);i&&Pxe(t,e.sourceFile,i)})})}});function Mxe(e,t){const r=aa(e,t),i=ai(r.parent.parent,Mx);if(!i)return;const o=id(i.parent)?i.parent:ai(i.parent.parent,nm);if(o)return{indexSignature:i,container:o}}function yWe(e,t){return N.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function Fxe(e,t,{indexSignature:r,container:i}){const s=(id(i)?i.members:i.type.members).filter(h=>!Mx(h)),c=us(r.parameters),f=N.createTypeParameterDeclaration(void 0,ao(c.name,He),c.type),d=N.createMappedTypeNode(mk(r)?N.createModifier(146):void 0,f,void 0,r.questionToken,r.type,void 0),y=N.createIntersectionTypeNode([...sk(i),d,...s.length?[N.createTypeLiteralNode(s)]:rt]);e.replaceNode(t,i,yWe(i,y))}var VG,zte,vWe=C({"src/services/codefixes/convertToMappedObjectType.ts"(){$r(),Eo(),VG="fixConvertToMappedObjectType",zte=[_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],po({errorCodes:zte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Mxe(r,i.start);if(!o)return;const s=gr.ChangeTracker.with(t,f=>Fxe(f,r,o)),c=Mr(o.container.name);return[ro(VG,s,[_.Convert_0_to_mapped_object_type,c],VG,[_.Convert_0_to_mapped_object_type,c])]},fixIds:[VG],getAllCodeActions:e=>Cs(e,zte,(t,r)=>{const i=Mxe(r.file,r.start);i&&Fxe(t,r.file,i)})})}}),qte,Bxe,bWe=C({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){$r(),Eo(),qte="removeAccidentalCallParentheses",Bxe=[_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],po({errorCodes:Bxe,getCodeActions(e){const t=nr(aa(e.sourceFile,e.span.start),no);if(!t)return;const r=gr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Cp(qte,r,_.Remove_parentheses)]},fixIds:[qte]})}});function Gxe(e,t,r){const i=ai(aa(t,r.start),f=>f.kind===133),o=i&&ai(i.parent,DC);if(!o)return;let s=o;if(Ud(o.parent)){const f=Ak(o.expression,!1);if(He(f)){const d=Cc(o.parent.pos,t);d&&d.kind!==103&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var jG,Jte,EWe=C({"src/services/codefixes/removeUnnecessaryAwait.ts"(){$r(),Eo(),jG="removeUnnecessaryAwait",Jte=[_.await_has_no_effect_on_the_type_of_this_expression.code],po({errorCodes:Jte,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>Gxe(i,t.sourceFile,t.span));if(r.length>0)return[ro(jG,r,_.Remove_unnecessary_await,jG,_.Remove_all_unnecessary_uses_of_await)]},fixIds:[jG],getAllCodeActions:e=>Cs(e,Jte,(t,r)=>Gxe(t,r.file,r))})}});function Uxe(e,t){return nr(aa(e,t.start),zc)}function Vxe(e,t,r){if(!t)return;const i=D.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,N.updateImportDeclaration(t,t.modifiers,N.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,N.createImportDeclaration(void 0,N.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var Kte,HG,TWe=C({"src/services/codefixes/splitTypeOnlyImport.ts"(){$r(),Eo(),Kte=[_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],HG="splitTypeOnlyImport",po({errorCodes:Kte,fixIds:[HG],getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>Vxe(i,Uxe(t.sourceFile,t.span),t));if(r.length)return[ro(HG,r,_.Split_into_two_separate_import_declarations,HG,_.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Cs(e,Kte,(t,r)=>{Vxe(t,Uxe(e.sourceFile,r),e)})})}});function jxe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(aa(e,t));if(s===void 0)return;const c=ai((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Vu);if(c===void 0)return;const f=bs(c,85,e);if(f!==void 0)return{symbol:s,token:f}}function Hxe(e,t,r){e.replaceNode(t,r,N.createToken(119))}var WG,Xte,SWe=C({"src/services/codefixes/convertConstToLet.ts"(){$r(),Eo(),WG="fixConvertConstToLet",Xte=[_.Cannot_assign_to_0_because_it_is_a_constant.code],po({errorCodes:Xte,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=jxe(r,i.start,o);if(s===void 0)return;const c=gr.ChangeTracker.with(t,f=>Hxe(f,r,s.token));return[QZ(WG,c,_.Convert_const_to_let,WG,_.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return d2(gr.ChangeTracker.with(e,i=>{f2(e,Xte,o=>{const s=jxe(o.file,o.start,t);if(s&&bp(r,bo(s.symbol)))return Hxe(i,o.file,s.token)})}))},fixIds:[WG]})}});function Wxe(e,t,r){const i=aa(e,t);return i.kind===26&&i.parent&&(Ls(i.parent)||Gu(i.parent))?{node:i}:void 0}function zxe(e,t,{node:r}){const i=N.createToken(27);e.replaceNode(t,r,i)}var zG,qxe,Yte,xWe=C({"src/services/codefixes/fixExpectedComma.ts"(){$r(),Eo(),zG="fixExpectedComma",qxe=_._0_expected.code,Yte=[qxe],po({errorCodes:Yte,getCodeActions(e){const{sourceFile:t}=e,r=Wxe(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,o=>zxe(o,t,r));return[ro(zG,i,[_.Change_0_to_1,";",","],zG,[_.Change_0_to_1,";",","])]},fixIds:[zG],getAllCodeActions:e=>Cs(e,Yte,(t,r)=>{const i=Wxe(r.file,r.start,r.code);i&&zxe(t,e.sourceFile,i)})})}});function Jxe(e,t,r,i,o){const s=aa(t,r.start);if(!He(s)||!no(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const c=i.getTypeChecker(),f=c.getSymbolAtLocation(s),d=f==null?void 0:f.valueDeclaration;if(!d||!Ba(d)||!P1(d.parent.parent)||o!=null&&o.has(d))return;o==null||o.add(d);const y=AWe(d.parent.parent);if(kt(y)){const h=y[0],E=!Fx(h)&&!Bx(h)&&Bx(N.createUnionTypeNode([h,N.createKeywordTypeNode(114)]).types[0]);E&&e.insertText(t,h.pos,"("),e.insertText(t,h.end,E?") | void":" | void")}else{const h=c.getResolvedSignature(s.parent),E=h==null?void 0:h.parameters[0],A=E&&c.getTypeOfSymbolAtLocation(E,d.parent.parent);fr(d)?(!A||A.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,Jo(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!A||A.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function AWe(e){var t;if(fr(e)){if(Ud(e.parent)){const r=(t=p1(e.parent))==null?void 0:t.typeExpression.type;if(r&&J_(r)&&He(r.typeName)&&Mr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var Kxe,$te,Qte,CWe=C({"src/services/codefixes/fixAddVoidToPromise.ts"(){$r(),Eo(),Kxe="addVoidToPromise",$te="addVoidToPromise",Qte=[_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],po({errorCodes:Qte,fixIds:[$te],getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>Jxe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ro(Kxe,t,_.Add_void_to_Promise_resolved_without_a_value,$te,_.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Cs(e,Qte,(t,r)=>Jxe(t,r.file,r,e.program,new Set))}})}}),Wu={};ne(Wu,{PreserveOptionalFlags:()=>Mte,addNewNodeForMemberSymbol:()=>sxe,codeFixAll:()=>Cs,createCodeFixAction:()=>ro,createCodeFixActionMaybeFixAll:()=>QZ,createCodeFixActionWithoutFixAll:()=>Cp,createCombinedCodeActions:()=>d2,createFileTextChanges:()=>hEe,createImportAdder:()=>tS,createImportSpecifierResolver:()=>VVe,createJsonPropertyAssignment:()=>DG,createMissingMemberNodes:()=>Ite,createSignatureDeclarationFromCallExpression:()=>kte,createSignatureDeclarationFromSignature:()=>kG,createStubbedBody:()=>K6,eachDiagnostic:()=>f2,findAncestorMatchingSpan:()=>Pte,findJsonProperty:()=>Ote,generateAccessorFromProperty:()=>_xe,getAccessorConvertiblePropertyAtPosition:()=>hxe,getAllFixes:()=>xUe,getAllSupers:()=>Fte,getArgumentTypesAndTypeParameters:()=>uxe,getFixes:()=>SUe,getImportCompletionAction:()=>jVe,getImportKind:()=>Aee,getNoopSymbolTrackerWithResolver:()=>p2,getPromoteTypeOnlyCompletionAction:()=>HVe,getSupportedErrorCodes:()=>EUe,importFixName:()=>Dee,importSymbols:()=>m2,moduleSpecifierToValidIdentifier:()=>wee,moduleSymbolToValidIdentifier:()=>kee,parameterShouldGetTypeFromJSDoc:()=>PEe,registerCodeFix:()=>po,setJsonCompilerOptionValue:()=>Nte,setJsonCompilerOptionValues:()=>Rte,tryGetAutoImportableReferenceFromTypeNode:()=>rS,typeToAutoImportableTypeNode:()=>wG});var Eo=C({"src/services/_namespaces/ts.codefix.ts"(){AUe(),CUe(),LUe(),wUe(),PUe(),GUe(),UUe(),VUe(),jUe(),qUe(),nVe(),iVe(),mVe(),NVe(),OVe(),MVe(),FVe(),BVe(),UVe(),cje(),fje(),mje(),hje(),gje(),bje(),Sje(),Cje(),Dje(),Vje(),Hje(),Wje(),qje(),Jje(),Kje(),Xje(),$je(),Qje(),Zje(),eHe(),tHe(),rHe(),oHe(),uHe(),yHe(),bHe(),EHe(),xHe(),AHe(),LHe(),IHe(),MHe(),FHe(),BHe(),WHe(),nWe(),oWe(),uWe(),fWe(),_We(),pWe(),mWe(),gWe(),vWe(),bWe(),EWe(),TWe(),SWe(),xWe(),CWe()}});function LWe(e){return!!(e.kind&1)}function IWe(e){return!!(e.kind&2)}function X6(e){return!!(e&&e.kind&4)}function fL(e){return!!(e&&e.kind===32)}function kWe(e){return X6(e)||fL(e)||Zte(e)}function wWe(e){return(X6(e)||fL(e))&&!!e.isFromPackageJson}function DWe(e){return!!(e.kind&8)}function RWe(e){return!!(e.kind&16)}function Xxe(e){return!!(e&&e.kind&64)}function Yxe(e){return!!(e&&e.kind&128)}function NWe(e){return!!(e&&e.kind&256)}function Zte(e){return!!(e&&e.kind&512)}function $xe(e,t,r,i,o,s,c,f,d){var y,h,E;const A=il(),L=c||Lx(vl(i.getCompilerOptions()));let I=!1,O=0,k=0,G=0,V=0;const H=d({tryResolve:X,skippedAny:()=>I,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>eU}),te=V?` (${(G/V*100).toFixed(1)}% hit rate)`:"";return(y=t.log)==null||y.call(t,`${e}: resolved ${k} module specifiers, plus ${O} ambient and ${G} from cache${te}`),(h=t.log)==null||h.call(t,`${e}: response is ${I?"incomplete":"complete"}`),(E=t.log)==null||E.call(t,`${e}: ${il()-A}`),H;function X(Y,P){if(P){const ae=r.getModuleSpecifierForBestExportInfo(Y,o,f);return ae&&O++,ae||"failed"}const de=L||s.allowIncompleteCompletions&&k<eU,re=!de&&s.allowIncompleteCompletions&&V<une,ye=de||re?r.getModuleSpecifierForBestExportInfo(Y,o,f,re):void 0;return(!de&&!re||re&&!ye)&&(I=!0),k+=(ye==null?void 0:ye.computedWithoutCacheCount)||0,G+=Y.length-((ye==null?void 0:ye.computedWithoutCacheCount)||0),re&&V++,ye||(L?"failed":"skipped")}}function OWe(e,t,r,i,o,s,c,f,d,y,h=!1){var E;const{previousToken:A}=KG(o,i);if(c&&!YT(i,o,A)&&!pze(i,c,A,o))return;if(c===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const L=t.getCompilerOptions(),I=s.allowIncompleteCompletions?(E=e.getIncompleteCompletionsCache)==null?void 0:E.call(e):void 0;if(I&&f===3&&A&&He(A)){const G=PWe(I,i,A,t,e,s,d,o);if(G)return G}else I==null||I.clear();const O=tU.getStringLiteralCompletions(i,o,A,L,e,t,r,s,h);if(O)return O;if(A&&HI(A.parent)&&(A.kind===81||A.kind===86||A.kind===79))return ZWe(A.parent);const k=s2e(t,r,i,L,o,s,void 0,e,y,d);if(k)switch(k.kind){case 0:const G=GWe(i,e,t,L,r,k,s,y,o,h);return G!=null&&G.isIncomplete&&(I==null||I.set(G)),G;case 1:return ene(pb.getJSDocTagNameCompletions());case 2:return ene(pb.getJSDocTagCompletions());case 3:return ene(pb.getJSDocParameterNameCompletions(k.tag));case 4:return FWe(k.keywordCompletions,k.isNewIdentifierLocation);default:return D.assertNever(k)}}function Y6(e,t){var r,i;let o=DR(e.sortText,t.sortText);return o===0&&(o=DR(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=EO(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function Qxe(e){return!!(e!=null&&e.moduleSpecifier)}function PWe(e,t,r,i,o,s,c,f){const d=e.get();if(!d)return;const y=Df(t,f),h=r.text.toLowerCase(),E=R6(t,o,i,s,c),A=$xe("continuePreviousIncompleteResponse",o,Wu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,kx(r),L=>{const I=ia(d.entries,O=>{var k;if(!O.hasAction||!O.source||!O.data||Qxe(O.data))return O;if(!b2e(O.name,h))return;const{origin:G}=D.checkDefined(l2e(O.name,O.data,i,o)),V=E.get(t.path,O.data.exportMapKey),H=V&&L.tryResolve(V,!Uc(j_(G.moduleSymbol.name)));if(H==="skipped")return O;if(!H||H==="failed"){(k=o.log)==null||k.call(o,`Unexpected failure resolving auto import for '${O.name}' from '${O.source}'`);return}const te={...G,kind:32,moduleSpecifier:H.moduleSpecifier};return O.data=i2e(te),O.source=rne(te),O.sourceDisplay=[Rf(te.moduleSpecifier)],O});return L.skippedAny()||(d.isIncomplete=void 0),I});return d.entries=A,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=e2e(y),d}function ene(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function MWe(e){return{name:yo(e),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords}}function FWe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function Zxe(e,t,r){return{kind:4,keywordCompletions:c2e(e,t),isNewIdentifierLocation:r}}function BWe(e){switch(e){case 154:return 8;default:D.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function e2e(e){return(e==null?void 0:e.kind)===79?ad(e):void 0}function GWe(e,t,r,i,o,s,c,f,d,y){const{symbols:h,contextToken:E,completionKind:A,isInSnippetScope:L,isNewIdentifierLocation:I,location:O,propertyAccessToConvert:k,keywordFilters:G,symbolToOriginInfoMap:V,recommendedCompletion:H,isJsxInitializer:te,isTypeOnlyLocation:X,isJsxIdentifierExpected:Y,isRightOfOpenTag:P,isRightOfDotOrQuestionDot:de,importStatementCompletion:re,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:ae,hasUnresolvedAutoImports:W}=s;let ce=s.literals;const me=r.getTypeChecker();if(pO(e.scriptKind)===1){const Ge=VWe(O,e);if(Ge)return Ge}const ve=nr(E,Zk);if(ve&&(Bpe(E)||vT(E,ve.expression))){const Ge=j9(me,ve.parent.clauses);ce=ce.filter(qe=>!Ge.hasValue(qe)),h.forEach((qe,Oe)=>{if(qe.valueDeclaration&&B1(qe.valueDeclaration)){const Me=me.getConstantValue(qe.valueDeclaration);Me!==void 0&&Ge.hasValue(Me)&&(V[Oe]={kind:256})}})}const Se=iH(),ee=t2e(e,i);if(ee&&!I&&(!h||h.length===0)&&G===0)return;const Qe=ine(h,Se,void 0,E,O,d,e,t,r,es(i),o,A,c,i,f,X,k,Y,te,re,H,V,ae,Y,P,y);if(G!==0)for(const Ge of c2e(G,!ye&&td(e)))(X&&Dw(rT(Ge.name))||!Qe.has(Ge.name))&&(Qe.add(Ge.name),yv(Se,Ge,Y6,!0));for(const Ge of cze(E,d))Qe.has(Ge.name)||(Qe.add(Ge.name),yv(Se,Ge,Y6,!0));for(const Ge of ce){const qe=HWe(e,c,Ge);Qe.add(qe.name),yv(Se,qe,Y6,!0)}ee||jWe(e,O.pos,Qe,es(i),Se);let je;if(c.includeCompletionsWithInsertText&&E&&!P&&!de&&(je=nr(E,QO))){const Ge=n2e(je,e,c,i,t,r,f);Ge&&Se.push(Ge.entry)}return{flags:s.flags,isGlobalCompletion:L,isIncomplete:c.allowIncompleteCompletions&&W?!0:void 0,isMemberCompletion:UWe(A),isNewIdentifierLocation:I,optionalReplacementSpan:e2e(O),entries:Se}}function t2e(e,t){return!td(e)||!!AO(e,t)}function n2e(e,t,r,i,o,s,c){const f=e.clauses,d=s.getTypeChecker(),y=d.getTypeAtLocation(e.parent.expression);if(y&&y.isUnion()&&Yn(y.types,h=>h.isLiteral())){const h=j9(d,f),E=es(i),A=Ap(t,r),L=Wu.createImportAdder(t,s,r,o),I=[];for(const X of y.types)if(X.flags&1024){D.assert(X.symbol,"An enum member type should have a symbol"),D.assert(X.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const Y=X.symbol.valueDeclaration&&d.getConstantValue(X.symbol.valueDeclaration);if(Y!==void 0){if(h.hasValue(Y))continue;h.addValue(Y)}const P=Wu.typeToAutoImportableTypeNode(d,L,X,e,E);if(!P)return;const de=qG(P,E,A);if(!de)return;I.push(de)}else if(!h.hasValue(X.value))switch(typeof X.value){case"object":I.push(X.value.negative?N.createPrefixUnaryExpression(40,N.createBigIntLiteral({negative:!1,base10Value:X.value.base10Value})):N.createBigIntLiteral(X.value));break;case"number":I.push(X.value<0?N.createPrefixUnaryExpression(40,N.createNumericLiteral(-X.value)):N.createNumericLiteral(X.value));break;case"string":I.push(N.createStringLiteral(X.value,A===0));break}if(I.length===0)return;const O=Vt(I,X=>N.createCaseClause(X,[])),k=ub(o,c==null?void 0:c.options),G=nne({removeComments:!0,module:i.module,target:i.target,newLine:D6(k)}),V=c?X=>G.printAndFormatNode(4,X,t,c):X=>G.printNode(4,X,t),H=Vt(O,(X,Y)=>r.includeCompletionsWithSnippetText?`${V(X)}$${Y+1}`:`${V(X)}`).join(k);return{entry:{name:`${G.printNode(4,O[0],t)} ...`,kind:"",sortText:lu.GlobalsOrKeywords,insertText:H,hasAction:L.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:L}}}function qG(e,t,r){switch(e.kind){case 180:const i=e.typeName;return JG(i,t,r);case 196:const o=qG(e.objectType,t,r),s=qG(e.indexType,t,r);return o&&s&&N.createElementAccessExpression(o,s);case 198:const c=e.literal;switch(c.kind){case 10:return N.createStringLiteral(c.text,r===0);case 8:return N.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 193:const f=qG(e.type,t,r);return f&&(He(f)?f:N.createParenthesizedExpression(f));case 183:return JG(e.exprName,t,r);case 202:D.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function JG(e,t,r){if(He(e))return e;const i=ta(e.right.escapedText);return dJ(i,t)?N.createPropertyAccessExpression(JG(e.left,t,r),i):N.createElementAccessExpression(JG(e.left,t,r),N.createStringLiteral(i,r===0))}function UWe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function VWe(e,t){const r=nr(e,i=>{switch(i.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(r){const i=!!bs(r,31,t),c=r.parent.openingElement.tagName.getText(t)+(i?"":">"),f=ad(r.tagName),d={name:c,kind:"class",kindModifiers:void 0,sortText:lu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:f,entries:[d]}}}function jWe(e,t,r,i,o){MZ(e).forEach((s,c)=>{if(s===t)return;const f=ta(c);!r.has(f)&&M_(f,i)&&(r.add(f),yv(o,{name:f,kind:"warning",kindModifiers:"",sortText:lu.JavascriptIdentifiers,isFromUncheckedFile:!0},Y6))})}function tne(e,t,r){return typeof r=="object"?R1(r)+"n":Ha(r)?Pw(e,t,r):JSON.stringify(r)}function HWe(e,t,r){return{name:tne(e,t,r),kind:"string",kindModifiers:"",sortText:lu.LocationPriority}}function WWe(e,t,r,i,o,s,c,f,d,y,h,E,A,L,I,O,k,G,V,H,te,X,Y,P){let de,re=TQ(r),ye,ae,W=rne(E),ce,me,ve;const Se=d.getTypeChecker(),ee=E&&RWe(E),Qe=E&&IWe(E)||h;if(E&&LWe(E))de=h?`this${ee?"?.":""}[${a2e(c,V,y)}]`:`this${ee?"?.":"."}${y}`;else if((Qe||ee)&&L){de=Qe?h?`[${a2e(c,V,y)}]`:`[${y}]`:y,(ee||L.questionDotToken)&&(de=`?.${de}`);const je=bs(L,24,c)||bs(L,28,c);if(!je)return;const Ge=xa(y,L.name.text)?L.name.end:je.end;re=hc(je.getStart(c),Ge)}if(I&&(de===void 0&&(de=y),de=`{${de}}`,typeof I!="boolean"&&(re=ad(I,c))),E&&DWe(E)&&L){de===void 0&&(de=y);const je=Cc(L.pos,c);let Ge="";je&&w9(je.end,je.parent,c)&&(Ge=";"),Ge+=`(await ${L.expression.getText()})`,de=h?`${Ge}${de}`:`${Ge}${ee?"?.":"."}${de}`;const Oe=ai(L.parent,DC)?L.parent:L.expression;re=hc(Oe.getStart(c),L.end)}if(fL(E)&&(ce=[Rf(E.moduleSpecifier)],O&&({insertText:de,replacementSpan:re}=$We(y,O,E,k,c,G,V),ae=V.includeCompletionsWithSnippetText?!0:void 0)),(E==null?void 0:E.kind)===64&&(me=!0),V.includeCompletionsWithClassMemberSnippets&&V.includeCompletionsWithInsertText&&H===3&&zWe(e,o,c)){let je;({insertText:de,isSnippet:ae,importAdder:je,replacementSpan:re}=r2e(f,d,G,V,y,e,o,s,i,te)),t=lu.ClassMemberSnippets,je!=null&&je.hasFixes()&&(me=!0,W="ClassMemberSnippet/")}if(E&&Yxe(E)&&({insertText:de,isSnippet:ae,labelDetails:ve}=E,V.useLabelDetailsInCompletionEntries||(y=y+ve.detail,ve=void 0),W="ObjectLiteralMethodSnippet/",t=lu.SortBelow(t)),X&&!Y&&V.includeCompletionsWithSnippetText&&V.jsxAttributeCompletionStyle&&V.jsxAttributeCompletionStyle!=="none"&&!(im(o.parent)&&o.parent.initializer)){let je=V.jsxAttributeCompletionStyle==="braces";const Ge=Se.getTypeOfSymbolAtLocation(e,o);V.jsxAttributeCompletionStyle==="auto"&&!(Ge.flags&528)&&!(Ge.flags&1048576&&nn(Ge.types,qe=>!!(qe.flags&528)))&&(Ge.flags&402653316||Ge.flags&1048576&&Yn(Ge.types,qe=>!!(qe.flags&402686084||F0e(qe)))?(de=`${LT(y)}=${Pw(c,V,"$1")}`,ae=!0):je=!0),je&&(de=`${LT(y)}={$1}`,ae=!0)}if(!(de!==void 0&&!V.includeCompletionsWithInsertText))return(X6(E)||fL(E))&&(ye=i2e(E),me=!O),{name:y,kind:Oy.getSymbolKind(Se,e,o),kindModifiers:Oy.getSymbolModifiers(Se,e),sortText:t,source:W,hasAction:me?!0:void 0,isRecommended:QWe(e,A,Se)||void 0,insertText:de,replacementSpan:re,sourceDisplay:ce,labelDetails:ve,isSnippet:ae,isPackageJsonImport:wWe(E)||void 0,isImportStatementCompletion:!!O||void 0,data:ye,...P?{symbol:e}:void 0}}function zWe(e,t,r){if(fr(t))return!1;const i=106500;return!!(e.flags&i)&&(di(t)||t.parent&&t.parent.parent&&Vc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&FC(t)&&di(t.parent))}function r2e(e,t,r,i,o,s,c,f,d,y){const h=nr(c,di);if(!h)return{insertText:o};let E,A,L=o;const I=t.getTypeChecker(),O=c.getSourceFile(),k=nne({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:D6(ub(e,y==null?void 0:y.options))}),G=Wu.createImportAdder(O,t,i,e);let V;if(i.includeCompletionsWithSnippetText){E=!0;const de=N.createEmptyStatement();V=N.createBlock([de],!0),HJ(de,{kind:0,order:0})}else V=N.createBlock([],!0);let H=0;const{modifiers:te,span:X}=qWe(d,O,f),Y=!!(te&256),P=[];return Wu.addNewNodeForMemberSymbol(s,h,O,{program:t,host:e},i,G,de=>{let re=0;Y&&(re|=256),Vc(de)&&I.getMemberOverrideModifierStatus(h,de,s)===1&&(re|=16384),P.length||(H=de.modifierFlagsCache|re|te),de=N.updateModifiers(de,H),P.push(de)},V,Wu.PreserveOptionalFlags.Property,Y),P.length&&(A=X,y?L=k.printAndFormatSnippetList(131073,N.createNodeArray(P),O,y):L=k.printSnippetList(131073,N.createNodeArray(P),O)),{insertText:L,isSnippet:E,importAdder:G,replacementSpan:A}}function qWe(e,t,r){if(!e||ol(t,r).line>ol(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;return(s=JWe(e))&&(i|=xx(s),o=ad(e)),to(e.parent)&&(i|=Gm(e.parent.modifiers)&126975,o=ad(e.parent)),{modifiers:i,span:o}}function JWe(e){if(uo(e))return e.kind;if(He(e)){const t=q0(e);if(t&&my(t))return t}}function KWe(e,t,r,i,o,s,c,f){const d=c.includeCompletionsWithSnippetText||void 0;let y=t;const h=r.getSourceFile(),E=XWe(e,r,h,i,o,c);if(!E)return;const A=nne({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:D6(ub(o,f==null?void 0:f.options))});f?y=A.printAndFormatSnippetList(80,N.createNodeArray([E],!0),h,f):y=A.printSnippetList(80,N.createNodeArray([E],!0),h);const L=q1({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),I=N.createMethodSignature(void 0,"",E.questionToken,E.typeParameters,E.parameters,E.type),O={detail:L.printNode(4,I,h)};return{isSnippet:d,insertText:y,labelDetails:O}}function XWe(e,t,r,i,o,s){const c=e.getDeclarations();if(!(c&&c.length))return;const f=i.getTypeChecker(),d=c[0],y=Dl(ka(d),!1),h=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),A=33554432|(Ap(r,s)===0?268435456:0);switch(d.kind){case 168:case 169:case 170:case 171:{let L=h.flags&1048576&&h.types.length<10?f.getUnionType(h.types,2):h;if(L.flags&1048576){const V=lr(L.types,H=>f.getSignaturesOfType(H,0).length>0);if(V.length===1)L=V[0];else return}if(f.getSignaturesOfType(L,0).length!==1)return;const O=f.typeToTypeNode(L,t,A,Wu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!O||!Lh(O))return;let k;if(s.includeCompletionsWithSnippetText){const V=N.createEmptyStatement();k=N.createBlock([V],!0),HJ(V,{kind:0,order:0})}else k=N.createBlock([],!0);const G=O.parameters.map(V=>N.createParameterDeclaration(void 0,V.dotDotDotToken,V.name,void 0,void 0,V.initializer));return N.createMethodDeclaration(void 0,void 0,y,void 0,void 0,G,void 0,k)}default:return}}function nne(e){let t;const r=gr.createWriter(tb(e)),i=q1(e,r),o={...r,write:A=>s(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>s(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>s(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,L)=>s(A,()=>r.writeSymbol(A,L)),writeParameter:A=>s(A,()=>r.writeParameter(A)),writeComment:A=>s(A,()=>r.writeComment(A)),writeProperty:A=>s(A,()=>r.writeProperty(A))};return{printSnippetList:c,printAndFormatSnippetList:d,printNode:y,printAndFormatNode:E};function s(A,L){const I=LT(A);if(I!==A){const O=r.getTextPos();L();const k=r.getTextPos();t=Fn(t||(t=[]),{newText:I,span:{start:O,length:k-O}})}else L()}function c(A,L,I){const O=f(A,L,I);return t?gr.applyChanges(O,t):O}function f(A,L,I){return t=void 0,o.clear(),i.writeList(A,L,I,o),o.getText()}function d(A,L,I,O){const k={text:f(A,L,I),getLineAndCharacterOfPosition(te){return ol(this,te)}},G=V9(O,I),V=ma(L,te=>{const X=gr.assignPositionsToNode(te);return Lc.formatNodeGivenIndentation(X,k,I.languageVariant,0,0,{...O,options:G})}),H=t?ly(ba(V,t),(te,X)=>lM(te.span,X.span)):V;return gr.applyChanges(k.text,H)}function y(A,L,I){const O=h(A,L,I);return t?gr.applyChanges(O,t):O}function h(A,L,I){return t=void 0,o.clear(),i.writeNode(A,L,I,o),o.getText()}function E(A,L,I,O){const k={text:h(A,L,I),getLineAndCharacterOfPosition(X){return ol(this,X)}},G=V9(O,I),V=gr.assignPositionsToNode(L),H=Lc.formatNodeGivenIndentation(V,k,I.languageVariant,0,0,{...O,options:G}),te=t?ly(ba(H,t),(X,Y)=>lM(X.span,Y.span)):H;return gr.applyChanges(k.text,te)}}function i2e(e){const t=e.fileName?void 0:j_(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return fL(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:j_(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function YWe(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return Qxe(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 $We(e,t,r,i,o,s,c){const f=t.replacementSpan,d=Pw(o,c,LT(r.moduleSpecifier)),y=r.isDefaultExport?1:r.exportName==="export="?2:0,h=c.includeCompletionsWithSnippetText?"$1":"",E=Wu.getImportKind(o,y,s,!0),A=t.couldBeTypeOnlyImportSpecifier,L=t.isTopLevelTypeOnly?` ${yo(154)} `:" ",I=A?`${yo(154)} `:"",O=i?";":"";switch(E){case 3:return{replacementSpan:f,insertText:`import${L}${LT(e)}${h} = require(${d})${O}`};case 1:return{replacementSpan:f,insertText:`import${L}${LT(e)}${h} from ${d}${O}`};case 2:return{replacementSpan:f,insertText:`import${L}* as ${LT(e)} from ${d}${O}`};case 0:return{replacementSpan:f,insertText:`import${L}{ ${I}${LT(e)}${h} } from ${d}${O}`}}}function a2e(e,t,r){return/^\d+$/.test(r)?r:Pw(e,t,r)}function QWe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function rne(e){if(X6(e))return j_(e.moduleSymbol.name);if(fL(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function ine(e,t,r,i,o,s,c,f,d,y,h,E,A,L,I,O,k,G,V,H,te,X,Y,P,de,re=!1){var ye;const ae=il(),W=vze(o),ce=D9(c),me=d.getTypeChecker(),ve=new Map;for(let ee=0;ee<e.length;ee++){const Qe=e[ee],je=X==null?void 0:X[ee],Ge=XG(Qe,y,je,E,!!G);if(!Ge||ve.get(Ge.name)&&(!je||!Yxe(je))||E===1&&Y&&!Se(Qe,Y))continue;const{name:qe,needsConvertPropertyAccess:Oe}=Ge,Me=(ye=Y==null?void 0:Y[bo(Qe)])!=null?ye:lu.LocationPriority,Ye=Eze(Qe,me)?lu.Deprecated(Me):Me,ze=WWe(Qe,Ye,r,i,o,s,c,f,d,qe,Oe,je,te,k,V,H,ce,L,A,E,I,P,de,re);if(!ze)continue;const Fe=(!je||Xxe(je))&&!(Qe.parent===void 0&&!kt(Qe.declarations,st=>st.getSourceFile()===o.getSourceFile()));ve.set(qe,Fe),yv(t,ze,Y6,!0)}return h("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(il()-ae)),{has:ee=>ve.has(ee),add:ee=>ve.set(ee,!0)};function Se(ee,Qe){let je=ee.flags;if(!qi(o)){if(Gl(o.parent))return!0;if(W&&ee.valueDeclaration===W)return!1;const Ge=lf(ee,me);if(c.externalModuleIndicator&&!L.allowUmdGlobalAccess&&Qe[bo(ee)]===lu.GlobalsOrKeywords&&(Qe[bo(Ge)]===lu.AutoImportSuggestions||Qe[bo(Ge)]===lu.LocationPriority))return!1;if(je|=Tk(Ge),e9(o))return!!(je&1920);if(O)return cne(ee,me)}return!!(je&111551)}}function ZWe(e){const t=eze(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function eze(e){const t=[],r=new Map;let i=e;for(;i&&!Ka(i);){if(M1(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:lu.LocationPriority}))}i=i.parent}return t}function o2e(e,t,r,i,o,s,c){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const H=l2e(o.name,o.data,e,s);if(H){const{contextToken:te,previousToken:X}=KG(i,r);return{type:"symbol",symbol:H.symbol,location:Df(r,i),previousToken:X,contextToken:te,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:H.origin}}}const f=e.getCompilerOptions(),d=s2e(e,t,r,f,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};const{symbols:y,literals:h,location:E,completionKind:A,symbolToOriginInfoMap:L,contextToken:I,previousToken:O,isJsxInitializer:k,isTypeOnlyLocation:G}=d,V=nn(h,H=>tne(r,c,H)===o.name);return V!==void 0?{type:"literal",literal:V}:Kt(y,(H,te)=>{const X=L[te],Y=XG(H,es(f),X,A,d.isJsxIdentifierExpected);return Y&&Y.name===o.name&&(o.source==="ClassMemberSnippet/"&&H.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&H.flags&8196||rne(X)===o.source)?{type:"symbol",symbol:H,location:E,origin:X,contextToken:I,previousToken:O,isJsxInitializer:k,isTypeOnlyLocation:G}:void 0})||{type:"none"}}function tze(e,t,r,i,o,s,c,f,d){const y=e.getTypeChecker(),h=e.getCompilerOptions(),{name:E,source:A,data:L}=o,{previousToken:I,contextToken:O}=KG(i,r);if(YT(r,i,I))return tU.getStringLiteralCompletionDetails(E,r,i,I,y,h,s,d,f);const k=o2e(e,t,r,i,o,s,f);switch(k.type){case"request":{const{request:G}=k;switch(G.kind){case 1:return pb.getJSDocTagNameCompletionDetails(E);case 2:return pb.getJSDocTagCompletionDetails(E);case 3:return pb.getJSDocParameterNameCompletionDetails(E);case 4:return kt(G.keywordCompletions,V=>V.name===E)?ane(E,"keyword",5):void 0;default:return D.assertNever(G)}}case"symbol":{const{symbol:G,location:V,contextToken:H,origin:te,previousToken:X}=k,{codeActions:Y,sourceDisplay:P}=nze(E,V,H,te,G,e,s,h,r,i,X,c,f,L,A,d),de=Zte(te)?te.symbolName:G.name;return one(G,de,y,r,V,d,Y,P)}case"literal":{const{literal:G}=k;return ane(tne(r,f,G),"string",typeof G=="string"?8:7)}case"cases":{const{entry:G,importAdder:V}=n2e(O.parent,r,f,e.getCompilerOptions(),s,e,void 0);if(V.hasFixes()){const H=gr.ChangeTracker.with({host:s,formatContext:c,preferences:f},V.writeFixes);return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:H,description:o2([_.Includes_imports_of_types_referenced_by_0,E])}]}}return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return pne().some(G=>G.name===E)?ane(E,"keyword",5):void 0;default:D.assertNever(k)}}function ane(e,t,r){return $6(e,"",t,[Id(e,r)])}function one(e,t,r,i,o,s,c,f){const{displayParts:d,documentation:y,symbolKind:h,tags:E}=r.runWithCancellationToken(s,A=>Oy.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,i,o,o,7));return $6(t,Oy.getSymbolModifiers(r,e),h,d,y,E,c,f)}function $6(e,t,r,i,o,s,c,f){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:c,source:f,sourceDisplay:f}}function nze(e,t,r,i,o,s,c,f,d,y,h,E,A,L,I,O){if(L!=null&&L.moduleSpecifier&&h&&h2e(r||h).replacementSpan)return{codeActions:void 0,sourceDisplay:[Rf(L.moduleSpecifier)]};if(I==="ClassMemberSnippet/"){const{importAdder:Y}=r2e(c,s,f,A,e,o,t,y,r,E);if(Y)return{sourceDisplay:void 0,codeActions:[{changes:gr.ChangeTracker.with({host:c,formatContext:E,preferences:A},Y.writeFixes),description:o2([_.Includes_imports_of_types_referenced_by_0,e])}]}}if(Xxe(i)){const Y=Wu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,c,E,A);return D.assertIsDefined(Y,"Expected to have a code action for promoting type-only alias"),{codeActions:[Y],sourceDisplay:void 0}}if(!i||!(X6(i)||fL(i)))return{codeActions:void 0,sourceDisplay:void 0};const k=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:G}=i,V=k.getMergedSymbol(lf(o.exportSymbol||o,k)),H=(r==null?void 0:r.kind)===29&&ed(r.parent),{moduleSpecifier:te,codeAction:X}=Wu.getImportCompletionAction(V,G,L==null?void 0:L.exportMapKey,d,e,H,c,s,E,h&&He(h)?h.getStart(d):y,A,O);return D.assert(!(L!=null&&L.moduleSpecifier)||te===L.moduleSpecifier),{sourceDisplay:[Rf(te)],codeActions:[X]}}function rze(e,t,r,i,o,s,c){const f=o2e(e,t,r,i,o,s,c);return f.type==="symbol"?f.symbol:void 0}function ize(e,t,r){return Kt(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!d_e(o)?sne(o,e,r):void 0})}function aze(e,t,r,i){const{parent:o}=e;switch(e.kind){case 79:return L9(e,i);case 63:switch(o.kind){case 257:return i.getContextualType(o.initializer);case 223:return i.getTypeAtLocation(o.left);case 288:return i.getContextualTypeForJsxAttribute(o);default:return}case 103:return i.getContextualType(o);case 82:const s=ai(o,Zk);return s?WQ(s,i):void 0;case 18:return Qk(o)&&!Cy(o.parent)&&!qx(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const c=EP.getArgumentInfoForCompletions(e,t,r);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex+(e.kind===27?1:0)):I9(e.kind)&&br(o)&&I9(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e)}}function sne(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?us(i):e.parent&&(oze(e.parent)?e:sne(e.parent,t,r))}function oze(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function s2e(e,t,r,i,o,s,c,f,d,y){const h=e.getTypeChecker(),E=t2e(r,i);let A=il(),L=aa(r,o);t("getCompletionData: Get current token: "+(il()-A)),A=il();const I=wy(r,o,L);t("getCompletionData: Is inside comment: "+(il()-A));let O=!1,k=!1;if(I){if(P0e(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Re=S_(o,r);if(!/[^\*|\s(/)]/.test(r.text.substring(Re,o)))return{kind:2}}}const Z=uze(L,o);if(Z){if(Z.tagName.pos<=o&&o<=Z.tagName.end)return{kind:1};const Re=sn(Z);if(Re&&(L=aa(r,o),(!L||!mg(L)&&(L.parent.kind!==351||L.parent.name!==L))&&(O=Pe(Re))),!O&&am(Z)&&(Cl(Z.name)||Z.name.pos<=o&&o<=Z.name.end))return{kind:3,tag:Z}}if(!O){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=il();const G=!O&&td(r),V=KG(o,r),H=V.previousToken;let te=V.contextToken;t("getCompletionData: Get previous token: "+(il()-A));let X=L,Y,P=!1,de=!1,re=!1,ye=!1,ae=!1,W=!1,ce,me=Df(r,o),ve=0,Se=!1,ee=0;if(te){const Z=h2e(te);if(Z.keywordCompletion){if(Z.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[MWe(Z.keywordCompletion)],isNewIdentifierLocation:Z.isNewIdentifierLocation};ve=BWe(Z.keywordCompletion)}if(Z.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ee|=2,ce=Z,Se=Z.isNewIdentifierLocation),!Z.replacementSpan&&an(te))return t("Returning an empty list because completion was requested in an invalid position."),ve?Zxe(ve,G,Ar()):void 0;let Re=te.parent;if(te.kind===24||te.kind===28)switch(P=te.kind===24,de=te.kind===28,Re.kind){case 208:Y=Re,X=Y.expression;const q=xk(Y);if(Cl(q)||(no(X)||Ka(X))&&X.end===te.pos&&X.getChildCount(r)&&zo(X.getChildren(r)).kind!==21)return;break;case 163:X=Re.left;break;case 264:X=Re.name;break;case 202:X=Re;break;case 233:X=Re.getFirstToken(r),D.assert(X.kind===100||X.kind===103);break;default:return}else if(!ce){if(Re&&Re.kind===208&&(te=Re,Re=Re.parent),L.parent===me)switch(L.kind){case 31:(L.parent.kind===281||L.parent.kind===283)&&(me=L);break;case 43:L.parent.kind===282&&(me=L);break}switch(Re.kind){case 284:te.kind===43&&(ye=!0,me=te);break;case 223:if(!m2e(Re))break;case 282:case 281:case 283:W=!0,te.kind===29&&(re=!0,me=te);break;case 291:case 290:(H.kind===19||H.kind===79&&H.parent.kind===288)&&(W=!0);break;case 288:if(Re.initializer===H&&H.end<o){W=!0;break}switch(H.kind){case 63:ae=!0;break;case 79:W=!0,Re!==H.parent&&!Re.initializer&&bs(Re,63,r)&&(ae=H)}break}}}const Qe=il();let je=5,Ge=!1,qe=!1,Oe=[],Me;const Ye=[],ze=[],Fe=new Map,st=vn(),Ct=Lm(Z=>i2(Z?f.getPackageJsonAutoImportProvider():e,f));if(P||de)Qt();else if(re)Oe=h.getJsxIntrinsicTagNamesAt(me),D.assertEachIsDefined(Oe,"getJsxIntrinsicTagNames() should all be defined"),Zt(),je=1,ve=0;else if(ye){const Z=te.parent.parent.openingElement.tagName,Re=h.getSymbolAtLocation(Z);Re&&(Oe=[Re]),je=1,ve=0}else if(!Zt())return ve?Zxe(ve,G,Se):void 0;t("getCompletionData: Semantic work: "+(il()-Qe));const Et=H&&aze(H,o,r,h),jt=ia(Et&&(Et.isUnion()?Et.types:[Et]),Z=>Z.isLiteral()&&!(Z.flags&1024)?Z.value:void 0),tt=H&&Et&&ize(H,Et,h);return{kind:0,symbols:Oe,completionKind:je,isInSnippetScope:k,propertyAccessToConvert:Y,isNewIdentifierLocation:Se,location:me,keywordFilters:ve,literals:jt,symbolToOriginInfoMap:Ye,recommendedCompletion:tt,previousToken:H,contextToken:te,isJsxInitializer:ae,insideJsDocTagTypeExpression:O,symbolToSortTextMap:ze,isTypeOnlyLocation:st,isJsxIdentifierExpected:W,isRightOfOpenTag:re,isRightOfDotOrQuestionDot:P||de,importStatementCompletion:ce,hasUnresolvedAutoImports:qe,flags:ee};function at(Z){switch(Z.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!Z.constraint;default:return!1}}function sn(Z){if(at(Z)){const Re=Tp(Z)?Z.constraint:Z.typeExpression;return Re&&Re.kind===312?Re:void 0}if(MC(Z)||hK(Z))return Z.class}function Qt(){je=2;const Z=K0(X),Re=O||Z&&!X.isTypeOf||vh(X.parent)||y6(te,r,h),q=e9(X);if(nf(X)||Z||Fr(X)){const Rt=Jl(X.parent);Rt&&(Se=!0);let gt=h.getSymbolAtLocation(X);if(gt&&(gt=lf(gt,h),gt.flags&1920)){const ft=h.getExportsOfModule(gt);D.assertEachIsDefined(ft,"getExportsOfModule() should all be defined");const _n=Ai=>h.isValidPropertyAccess(Z?X:X.parent,Ai.name),$n=Ai=>cne(Ai,h),oi=Rt?Ai=>{var Ci;return!!(Ai.flags&1920)&&!((Ci=Ai.declarations)!=null&&Ci.every(ji=>ji.parent===X.parent))}:q?Ai=>$n(Ai)||_n(Ai):Re?$n:_n;for(const Ai of ft)oi(Ai)&&Oe.push(Ai);if(!Re&>.declarations&>.declarations.some(Ai=>Ai.kind!==308&&Ai.kind!==264&&Ai.kind!==263)){let Ai=h.getTypeOfSymbolAtLocation(gt,X).getNonOptionalType(),Ci=!1;if(Ai.isNullableType()){const ji=P&&!de&&s.includeAutomaticOptionalChainCompletions!==!1;(ji||de)&&(Ai=Ai.getNonNullableType(),ji&&(Ci=!0))}On(Ai,!!(X.flags&32768),Ci)}return}}if(!Re){h.tryGetThisTypeAt(X,!1);let Rt=h.getTypeAtLocation(X).getNonOptionalType(),gt=!1;if(Rt.isNullableType()){const ft=P&&!de&&s.includeAutomaticOptionalChainCompletions!==!1;(ft||de)&&(Rt=Rt.getNonNullableType(),ft&&(gt=!0))}On(Rt,!!(X.flags&32768),gt)}}function On(Z,Re,q){Se=!!Z.getStringIndexType(),de&&kt(Z.getCallSignatures())&&(Se=!0);const Rt=X.kind===202?X:X.parent;if(E)for(const gt of Z.getApparentProperties())h.isValidPropertyAccessForCompletions(Rt,Z,gt)&&jn(gt,!1,q);else Oe.push(...lr(QG(Z,h),gt=>h.isValidPropertyAccessForCompletions(Rt,Z,gt)));if(Re&&s.includeCompletionsWithInsertText){const gt=h.getPromisedTypeOfPromise(Z);if(gt)for(const ft of gt.getApparentProperties())h.isValidPropertyAccessForCompletions(Rt,gt,ft)&&jn(ft,!0,q)}}function jn(Z,Re,q){var Rt;const gt=Kt(Z.declarations,oi=>ai(ka(oi),As));if(gt){const oi=In(gt.expression),Ai=oi&&h.getSymbolAtLocation(oi),Ci=Ai&&sne(Ai,te,h);if(Ci&&bp(Fe,bo(Ci))){const ji=Oe.length;Oe.push(Ci);const mo=Ci.parent;if(!mo||!E6(mo)||h.tryGetMemberInModuleExportsAndProperties(Ci.name,mo)!==Ci)Ye[ji]={kind:$n(2)};else{const To=Uc(j_(mo.name))?(Rt=d3(mo))==null?void 0:Rt.fileName:void 0,{moduleSpecifier:io}=(Me||(Me=Wu.createImportSpecifierResolver(r,e,f,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:To,isFromPackageJson:!1,moduleSymbol:mo,symbol:Ci,targetFlags:lf(Ci,h).flags}],o,kx(me))||{};if(io){const ca={kind:$n(6),moduleSymbol:mo,isDefaultExport:!1,symbolName:Ci.name,exportName:Ci.name,fileName:To,moduleSpecifier:io};Ye[ji]=ca}}}else s.includeCompletionsWithInsertText&&(_n(Z),ft(Z),Oe.push(Z))}else _n(Z),ft(Z),Oe.push(Z);function ft(oi){hze(oi)&&(ze[bo(oi)]=lu.LocalDeclarationPriority)}function _n(oi){s.includeCompletionsWithInsertText&&(Re&&bp(Fe,bo(oi))?Ye[Oe.length]={kind:$n(8)}:q&&(Ye[Oe.length]={kind:16}))}function $n(oi){return q?oi|16:oi}}function In(Z){return He(Z)?Z:Fr(Z)?In(Z.expression):void 0}function Zt(){return(we()||yt()||$i()||Nt()||Ce()||_r()||pt()||Ii()||(Qi(),1))===1}function _r(){return ie(te)?(je=5,Se=!0,ve=4,1):0}function Ii(){const Z=j(te),Re=Z&&h.getContextualType(Z.attributes);if(!Re)return 0;const q=Z&&h.getContextualType(Z.attributes,4);return Oe=ba(Oe,K($G(Re,q,Z.attributes,h),Z.attributes.properties)),ue(),je=3,Se=!1,1}function $i(){return ce?(Se=!0,rr(),1):0}function Qi(){ve=he(te)?5:1,je=1,Se=Ar(),H!==te&&D.assert(!!H,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Z=H!==te?H.getStart():o,Re=Rn(te,Z,r)||r;k=At(Re);const q=(st?0:111551)|788968|1920|2097152,Rt=H&&!kx(H);Oe=ba(Oe,h.getSymbolsInScope(Re,q)),D.assertEachIsDefined(Oe,"getSymbolsInScope() should all be defined");for(let gt=0;gt<Oe.length;gt++){const ft=Oe[gt];if(!h.isArgumentsSymbol(ft)&&!kt(ft.declarations,_n=>_n.getSourceFile()===r)&&(ze[bo(ft)]=lu.GlobalsOrKeywords),Rt&&!(ft.flags&111551)){const _n=ft.declarations&&nn(ft.declarations,iz);if(_n){const $n={kind:64,declaration:_n};Ye[gt]=$n}}}if(s.includeCompletionsWithInsertText&&Re.kind!==308){const gt=h.tryGetThisTypeAt(Re,!1,di(Re.parent)?Re:void 0);if(gt&&!mze(gt,r,h))for(const ft of QG(gt,h))Ye[Oe.length]={kind:1},Oe.push(ft),ze[bo(ft)]=lu.SuggestedClassMembers}rr(),st&&(ve=te&&lT(te.parent)?6:7)}function Or(){return ce?!0:Ge||!s.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||LQ(e.getCompilerOptions())?!0:H0e(e)}function At(Z){switch(Z.kind){case 308:case 225:case 291:case 238:return!0;default:return wa(Z)}}function vn(){return O||!!ce&&g1(me.parent)||!Wt(te)&&(y6(te,r,h)||vh(me)||dn(te))}function Wt(Z){return Z&&(Z.kind===112&&(Z.parent.kind===183||wC(Z.parent))||Z.kind===129&&Z.parent.kind===179)}function dn(Z){if(Z){const Re=Z.parent.kind;switch(Z.kind){case 58:return Re===169||Re===168||Re===166||Re===257||cx(Re);case 63:return Re===262;case 128:return Re===231;case 29:return Re===180||Re===213;case 94:return Re===165;case 150:return Re===235}}return!1}function rr(){var Z,Re;if(!Or()||(D.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;ee|=1;const Rt=H===te&&ce?"":H&&He(H)?H.text.toLowerCase():"",gt=(Z=f.getModuleSpecifierCache)==null?void 0:Z.call(f),ft=R6(r,f,e,s,y),_n=(Re=f.getPackageJsonAutoImportProvider)==null?void 0:Re.call(f),$n=c?void 0:Fw(r,s,f);$xe("collectAutoImports",f,Me||(Me=Wu.createImportSpecifierResolver(r,e,f,s)),e,o,s,!!ce,kx(me),Ai=>{ft.search(r.path,re,(Ci,ji)=>{if(!M_(Ci,es(f.getCompilationSettings()))||!c&&vx(Ci)||!st&&!ce&&!(ji&111551)||st&&!(ji&790504))return!1;const mo=Ci.charCodeAt(0);return re&&(mo<65||mo>90)?!1:c?!0:b2e(Ci,Rt)},(Ci,ji,mo,To)=>{if(c&&!kt(Ci,_i=>c.source===j_(_i.moduleSymbol.name))||(Ci=lr(Ci,oi),!Ci.length))return;const io=Ai.tryResolve(Ci,mo)||{};if(io==="failed")return;let ca=Ci[0],Hi;io!=="skipped"&&({exportInfo:ca=Ci[0],moduleSpecifier:Hi}=io);const Xr=ca.exportKind===1,ss=Xr&&uC(ca.symbol)||ca.symbol;cr(ss,{kind:Hi?32:4,moduleSpecifier:Hi,symbolName:ji,exportMapKey:To,exportName:ca.exportKind===2?"export=":ca.symbol.name,fileName:ca.moduleFileName,isDefaultExport:Xr,moduleSymbol:ca.moduleSymbol,isFromPackageJson:ca.isFromPackageJson})}),qe=Ai.skippedAny(),ee|=Ai.resolvedAny()?8:0,ee|=Ai.resolvedBeyondLimit()?16:0});function oi(Ai){const Ci=ai(Ai.moduleSymbol.valueDeclaration,qi);if(!Ci){const ji=j_(Ai.moduleSymbol.name);return qT.nodeCoreModules.has(ji)&&xa(ji,"node:")!==U9(r,e)?!1:$n?$n.allowsImportingAmbientModule(Ai.moduleSymbol,Ct(Ai.isFromPackageJson)):!0}return rZ(Ai.isFromPackageJson?_n:e,r,Ci,s,$n,Ct(Ai.isFromPackageJson),gt)}}function cr(Z,Re){const q=bo(Z);ze[q]!==lu.GlobalsOrKeywords&&(Ye[Oe.length]=Re,ze[q]=ce?lu.LocationPriority:lu.AutoImportSuggestions,Oe.push(Z))}function Pi(Z,Re){fr(me)||Z.forEach(q=>{if(!gi(q))return;const Rt=XG(q,es(i),void 0,0,!1);if(!Rt)return;const{name:gt}=Rt,ft=KWe(q,gt,Re,e,f,i,s,d);if(!ft)return;const _n={kind:128,...ft};ee|=32,Ye[Oe.length]=_n,Oe.push(q)})}function gi(Z){return!!(Z.flags&8196)}function Rn(Z,Re,q){let Rt=Z;for(;Rt&&!fQ(Rt,Re,q);)Rt=Rt.parent;return Rt}function an(Z){const Re=il(),q=Hr(Z)||We(Z)||Ut(Z)||Pn(Z)||t5(Z);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(il()-Re)),q}function Pn(Z){if(Z.kind===11)return!0;if(Z.kind===31&&Z.parent){if(me===Z.parent&&(me.kind===283||me.kind===282))return!1;if(Z.parent.kind===283)return me.parent.kind!==283;if(Z.parent.kind===284||Z.parent.kind===282)return!!Z.parent.parent&&Z.parent.parent.kind===281}return!1}function Ar(){if(te){const Z=te.parent.kind,Re=YG(te);switch(Re){case 27:return Z===210||Z===173||Z===211||Z===206||Z===223||Z===181||Z===207;case 20:return Z===210||Z===173||Z===211||Z===214||Z===193;case 22:return Z===206||Z===178||Z===164;case 142:case 143:case 100:return!0;case 24:return Z===264;case 18:return Z===260||Z===207;case 63:return Z===257||Z===223;case 15:return Z===225;case 16:return Z===236;case 132:return Z===171||Z===300;case 41:return Z===171}if(Q6(Re))return!0}return!1}function Hr(Z){return(KJ(Z)||az(Z))&&(p6(Z,o)||o===Z.end&&(!!Z.isUnterminated||KJ(Z)))}function we(){const Z=_ze(te);if(!Z)return 0;const q=(JO(Z.parent)?Z.parent:void 0)||Z,Rt=p2e(q,h);if(!Rt)return 0;const gt=h.getTypeFromTypeNode(q),ft=QG(Rt,h),_n=QG(gt,h),$n=new Set;return _n.forEach(oi=>$n.add(oi.escapedName)),Oe=ba(Oe,lr(ft,oi=>!$n.has(oi.escapedName))),je=0,Se=!0,1}function yt(){const Z=Oe.length,Re=sze(te);if(!Re)return 0;je=0;let q,Rt;if(Re.kind===207){const gt=gze(Re,h);if(gt===void 0)return Re.flags&33554432?2:(Ge=!0,0);const ft=h.getContextualType(Re,4),_n=(ft||gt).getStringIndexType(),$n=(ft||gt).getNumberIndexType();if(Se=!!_n||!!$n,q=$G(gt,ft,Re,h),Rt=Re.properties,q.length===0&&!$n)return Ge=!0,0}else{D.assert(Re.kind===203),Se=!1;const gt=Fm(Re.parent);if(!JA(gt))return D.fail("Root declaration is not variable-like.");let ft=wv(gt)||!!Zc(gt)||gt.parent.parent.kind===247;if(!ft&>.kind===166&&(vt(gt.parent)?ft=!!h.getContextualType(gt.parent):(gt.parent.kind===171||gt.parent.kind===175)&&(ft=vt(gt.parent.parent)&&!!h.getContextualType(gt.parent.parent))),ft){const _n=h.getTypeAtLocation(Re);if(!_n)return 2;q=h.getPropertiesOfType(_n).filter($n=>h.isPropertyAccessible(Re,!1,!1,_n,$n)),Rt=Re.elements}}if(q&&q.length>0){const gt=Sn(q,D.checkDefined(Rt));Oe=ba(Oe,gt),ue(),Re.kind===207&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(zt(Z),Pi(gt,Re))}return 1}function Nt(){if(!te)return 0;const Z=te.kind===18||te.kind===27?ai(te.parent,jq):h9(te)?ai(te.parent.parent,jq):void 0;if(!Z)return 0;h9(te)||(ve=8);const{moduleSpecifier:Re}=Z.kind===272?Z.parent.parent:Z.parent;if(!Re)return Se=!0,Z.kind===272?2:0;const q=h.getSymbolAtLocation(Re);if(!q)return Se=!0,2;je=3,Se=!1;const Rt=h.getExportsAndPropertiesOfModule(q),gt=new Set(Z.elements.filter(_n=>!Pe(_n)).map(_n=>(_n.propertyName||_n.name).escapedText)),ft=Rt.filter(_n=>_n.escapedName!=="default"&&!gt.has(_n.escapedName));return Oe=ba(Oe,ft),ft.length||(ve=0),1}function Ce(){var Z;const Re=te&&(te.kind===18||te.kind===27)?ai(te.parent,K_):void 0;if(!Re)return 0;const q=nr(Re,Im(qi,Jl));return je=5,Se=!1,(Z=q.locals)==null||Z.forEach((Rt,gt)=>{var ft,_n;Oe.push(Rt),(_n=(ft=q.symbol)==null?void 0:ft.exports)!=null&&_n.has(gt)&&(ze[bo(Rt)]=lu.OptionalMember)}),1}function pt(){const Z=fze(r,te,me,o);if(!Z)return 0;if(je=3,Se=!0,ve=te.kind===41?0:di(Z)?2:3,!di(Z))return 1;const Re=te.kind===26?te.parent.parent:te.parent;let q=Vc(Re)?Fu(Re):0;if(te.kind===79&&!Pe(te))switch(te.getText()){case"private":q=q|8;break;case"static":q=q|32;break;case"override":q=q|16384;break}if(kl(Re)&&(q|=32),!(q&8)){const Rt=di(Z)&&q&16384?ZE($p(Z)):sk(Z),gt=ma(Rt,ft=>{const _n=h.getTypeAtLocation(ft);return q&32?(_n==null?void 0:_n.symbol)&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(_n.symbol,Z)):_n&&h.getPropertiesOfType(_n)});Oe=ba(Oe,it(gt,Z.members,q)),Ue(Oe,(ft,_n)=>{const $n=ft==null?void 0:ft.valueDeclaration;if($n&&Vc($n)&&$n.name&&As($n.name)){const oi={kind:512,symbolName:h.symbolToString(ft)};Ye[_n]=oi}})}return 1}function pe(Z){return!!Z.parent&&Ba(Z.parent)&&ql(Z.parent.parent)&&(zI(Z.kind)||mg(Z))}function ie(Z){if(Z){const Re=Z.parent;switch(Z.kind){case 20:case 27:return ql(Z.parent)?Z.parent:void 0;default:if(pe(Z))return Re.parent}}}function he(Z){if(Z){let Re;const q=nr(Z.parent,Rt=>di(Rt)?"quit":Qs(Rt)&&Re===Rt.body?!0:(Re=Rt,!1));return q&&q}}function j(Z){if(Z){const Re=Z.parent;switch(Z.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Re&&(Re.kind===282||Re.kind===283)){if(Z.kind===31){const q=Cc(Z.pos,r,void 0);if(!Re.typeArguments||q&&q.kind===43)break}return Re}else if(Re.kind===288)return Re.parent.parent;break;case 10:if(Re&&(Re.kind===288||Re.kind===290))return Re.parent.parent;break;case 19:if(Re&&Re.kind===291&&Re.parent&&Re.parent.kind===288)return Re.parent.parent.parent;if(Re&&Re.kind===290)return Re.parent.parent;break}}}function We(Z){const Re=Z.parent,q=Re.kind;switch(Z.kind){case 27:return q===257||cn(Z)||q===240||q===263||Xe(q)||q===261||q===204||q===262||di(Re)&&!!Re.typeParameters&&Re.typeParameters.end>=Z.pos;case 24:return q===204;case 58:return q===205;case 22:return q===204;case 20:return q===295||Xe(q);case 18:return q===263;case 29:return q===260||q===228||q===261||q===262||cx(q);case 124:return q===169&&!di(Re.parent);case 25:return q===166||!!Re.parent&&Re.parent.kind===204;case 123:case 121:case 122:return q===166&&!ql(Re.parent);case 128:return q===273||q===278||q===271;case 137:case 151:return!ZG(Z);case 79:if(q===273&&Z===Re.name&&Z.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return q!==273;case 41:return Ka(Z.parent)&&!ac(Z.parent)}if(Q6(YG(Z))&&ZG(Z)||pe(Z)&&(!He(Z)||zI(YG(Z))||Pe(Z)))return!1;switch(YG(Z)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return to(Z.parent)}if(nr(Z.parent,di)&&Z===H&&Ze(Z,o))return!1;const gt=Q0(Z.parent,169);if(gt&&Z!==H&&di(H.parent.parent)&&o<=H.end){if(Ze(Z,H.end))return!1;if(Z.kind!==63&&(H8(gt)||l3(gt)))return!0}return mg(Z)&&!t_(Z.parent)&&!im(Z.parent)&&!(di(Z.parent)&&(Z!==H||o>H.end))}function Ze(Z,Re){return Z.kind!==63&&(Z.kind===26||!y_(Z.end,Re,r))}function Xe(Z){return cx(Z)&&Z!==173}function Ut(Z){if(Z.kind===8){const Re=Z.getFullText();return Re.charAt(Re.length-1)==="."}return!1}function cn(Z){return Z.parent.kind===258&&!y6(Z,r,h)}function Sn(Z,Re){if(Re.length===0)return Z;const q=new Set,Rt=new Set;for(const ft of Re){if(ft.kind!==299&&ft.kind!==300&&ft.kind!==205&&ft.kind!==171&&ft.kind!==174&&ft.kind!==175&&ft.kind!==301||Pe(ft))continue;let _n;if(Kx(ft))Er(ft,q);else if(ps(ft)&&ft.propertyName)ft.propertyName.kind===79&&(_n=ft.propertyName.escapedText);else{const $n=ka(ft);_n=$n&&U_($n)?ck($n):void 0}_n!==void 0&&Rt.add(_n)}const gt=Z.filter(ft=>!Rt.has(ft.escapedName));return mt(q,gt),gt}function Er(Z,Re){const q=Z.expression,Rt=h.getSymbolAtLocation(q),gt=Rt&&h.getTypeOfSymbolAtLocation(Rt,q),ft=gt&>.properties;ft&&ft.forEach(_n=>{Re.add(_n.name)})}function ue(){Oe.forEach(Z=>{var Re;if(Z.flags&16777216){const q=bo(Z);ze[q]=(Re=ze[q])!=null?Re:lu.OptionalMember}})}function mt(Z,Re){if(Z.size!==0)for(const q of Re)Z.has(q.name)&&(ze[bo(q)]=lu.MemberDeclaredBySpreadAssignment)}function zt(Z){var Re;for(let q=Z;q<Oe.length;q++){const Rt=Oe[q],gt=bo(Rt),ft=Ye==null?void 0:Ye[q],_n=es(i),$n=XG(Rt,_n,ft,0,!1);if($n){const oi=(Re=ze[gt])!=null?Re:lu.LocationPriority,{name:Ai}=$n;ze[gt]=lu.ObjectLiteralProperty(oi,Ai)}}}function it(Z,Re,q){const Rt=new Set;for(const gt of Re){if(gt.kind!==169&>.kind!==171&>.kind!==174&>.kind!==175||Pe(gt)||Bd(gt,8)||Ja(gt)!==!!(q&32))continue;const ft=C1(gt.name);ft&&Rt.add(ft)}return Z.filter(gt=>!Rt.has(gt.escapedName)&&!!gt.declarations&&!(Qf(gt)&8)&&!(gt.valueDeclaration&&Zu(gt.valueDeclaration)))}function K(Z,Re){const q=new Set,Rt=new Set;for(const ft of Re)Pe(ft)||(ft.kind===288?q.add(ft.name.escapedText):RT(ft)&&Er(ft,Rt));const gt=Z.filter(ft=>!q.has(ft.escapedName));return mt(Rt,gt),gt}function Pe(Z){return Z.getStart(r)<=o&&o<=Z.getEnd()}}function sze(e){if(e){const{parent:t}=e;switch(e.kind){case 18:case 27:if(Ls(t)||Hm(t))return t;break;case 41:return ac(t)?ai(t.parent,Ls):void 0;case 79:return e.text==="async"&&t_(e.parent)?e.parent.parent:void 0}}}function KG(e,t){const r=Cc(e,t);return r&&e<=r.end&&(lg(r)||Ad(r.kind))?{contextToken:Cc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function l2e(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),c=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(D.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let f=t.exportName==="export="?s.resolveExternalModuleSymbol(c):s.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return f?(f=t.exportName==="default"&&uC(f)||f,{symbol:f,origin:YWe(t,e,c)}):void 0}function XG(e,t,r,i,o){if(NWe(r))return;const s=kWe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&DN(s.charCodeAt(0))||ZN(e))return;const c={name:s,needsConvertPropertyAccess:!1};if(M_(s,t,o?1:0)||e.valueDeclaration&&Zu(e.valueDeclaration))return c;switch(i){case 3:return Zte(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 c;default:D.assertNever(i)}}function c2e(e,t){if(!t)return u2e(e);const r=e+8+1;return Z6[r]||(Z6[r]=u2e(e).filter(i=>!lze(rT(i.name))))}function u2e(e){return Z6[e]||(Z6[e]=pne().filter(t=>{const r=rT(t.name);switch(e){case 0:return!1;case 1:return f2e(r)||r===136||r===142||r===154||r===143||r===126||Dw(r)&&r!==155;case 5:return f2e(r);case 2:return Q6(r);case 3:return d2e(r);case 4:return zI(r);case 6:return Dw(r)||r===85;case 7:return Dw(r);case 8:return r===154;default:return D.assertNever(e)}}))}function lze(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function d2e(e){return e===146}function Q6(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return oz(e)}}function f2e(e){return e===132||e===133||e===128||e===150||e===154||!H3(e)&&!Q6(e)}function YG(e){var t;return He(e)?(t=q0(e))!=null?t:0:e.kind}function cze(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(zc(o)||eu(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===c&&r.push({name:yo(130),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords})}return r}function uze(e,t){return nr(e,r=>KI(r)&&_6(r,t)?!0:qm(r)?"quit":!1)}function $G(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,c=dze(s,r,i);return s.isClass()&&_2e(c)?[]:o?lr(c,f):c;function f(d){return Ae(d.declarations)?kt(d.declarations,y=>y.parent!==r):!0}}function dze(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(lr(e.types,i=>!(i.flags&134348796||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&_2e(i.getApparentProperties())))):e.getApparentProperties()}function _2e(e){return kt(e,t=>!!(Qf(t)&24))}function QG(e,t){return e.isUnion()?D.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):D.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function fze(e,t,r,i){var o;switch(r.kind){case 354:return ai(r.parent,Ax);case 1:const s=ai(tl(ao(r.parent,qi).statements),Ax);if(s&&!bs(s,19,e))return s;break;case 79:{if(q0(r)||to(r.parent)&&r.parent.initializer===r)return;if(ZG(r))return nr(r,Ax)}}if(t){if(r.kind===135||He(t)&&to(t.parent)&&di(r))return nr(t,di);switch(t.kind){case 63:return;case 26:case 19:return ZG(r)&&r.parent.name===r?r.parent.parent:ai(r,Ax);case 18:case 27:return ai(t.parent,Ax);default:if(Ax(r)){if(ol(e,t.getEnd()).line!==ol(e,i).line)return r;const s=di(t.parent.parent)?Q6:d2e;return s(t.kind)||t.kind===41||He(t)&&s((o=q0(t))!=null?o:0)?t.parent.parent:void 0}return}}}function _ze(e){if(!e)return;const t=e.parent;switch(e.kind){case 18:if(cf(t))return t;break;case 26:case 27:case 79:if(t.kind===168&&cf(t.parent))return t.parent;break}}function p2e(e,t){if(!e)return;if(Gi(e)&&c3(e.parent))return t.getTypeArgumentConstraint(e);const r=p2e(e.parent,t);if(r)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 190:case 184:case 189:return r}}function ZG(e){return e.parent&&r3(e.parent)&&Ax(e.parent.parent)}function pze(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&lbe(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ni(r)&&!!Ac(r);case"<":return!!r&&r.kind===29&&(!br(r.parent)||m2e(r.parent));case"/":return!!r&&(xs(r)?!!jN(r):r.kind===43&&zx(r.parent));case" ":return!!r&&Wk(r)&&r.parent.kind===308;default:return D.assertNever(t)}}function m2e({left:e}){return Cl(e)}function mze(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function hze(e){return!!(e.valueDeclaration&&Fu(e.valueDeclaration)&32&&di(e.valueDeclaration.parent))}function gze(e,t){const r=t.getContextualType(e);if(r)return r;const i=Rv(e.parent);if(br(i)&&i.operatorToken.kind===63&&e===i.left)return t.getTypeAtLocation(i);if(vt(i))return t.getContextualType(i)}function h2e(e){var t,r,i;let o,s=!1;const c=f();return{isKeywordOnlyCompletion:s,keywordCompletion:o,isNewIdentifierLocation:!!(c||o===154),isTopLevelTypeOnly:!!((r=(t=ai(c,zc))==null?void 0:t.importClause)!=null&&r.isTypeOnly)||!!((i=ai(c,su))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!c&&y2e(c,e),replacementSpan:yze(c)};function f(){const d=e.parent;if(su(d))return o=e.kind===154?void 0:154,lne(d.moduleReference)?d:void 0;if(y2e(d,e)&&v2e(d.parent))return d;if(Ay(d)||Uv(d)){if(!d.parent.isTypeOnly&&(e.kind===18||e.kind===100||e.kind===27)&&(o=154),v2e(d))if(e.kind===19||e.kind===79)s=!0,o=158;else return d.parent.parent;return}if(Wk(e)&&qi(d))return o=154,e;if(Wk(e)&&zc(d))return o=154,lne(d.moduleSpecifier)?d:void 0}}function yze(e){var t,r,i;if(!e)return;const o=(t=nr(e,Im(zc,su)))!=null?t:e,s=o.getSourceFile();if(xT(o,s))return ad(o,s);D.assert(o.kind!==100&&o.kind!==273);const c=o.kind===269?(i=g2e((r=o.importClause)==null?void 0:r.namedBindings))!=null?i:o.moduleSpecifier:o.moduleReference,f={pos:o.getFirstToken().getStart(),end:c.pos};if(xT(f,s))return Jv(f)}function g2e(e){var t;return nn((t=ai(e,Ay))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&vx(r.name.text)&&((i=Cc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==27})}function y2e(e,t){return Ld(e)&&(e.isTypeOnly||t===e.name&&h9(t))}function v2e(e){if(!lne(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Ay(e)){const t=g2e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function lne(e){var t;return Cl(e)?!0:!((t=ai(zm(e)?e.expression:e,xs))!=null&&t.text)}function vze(e){return nr(e,r=>pT(r)||bze(r)||Xa(r)?"quit":Ki(r))}function bze(e){return e.parent&&Js(e.parent)&&e.parent.body===e}function cne(e,t,r=new Map){return i(e)||i(lf(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&bp(r,bo(o))&&t.getExportsOfModule(o).some(s=>cne(s,t,r))}}function Eze(e,t){const r=lf(e,t).declarations;return!!Ae(r)&&Yn(r,G9)}function b2e(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let c=0;c<s;c++){const f=e.charCodeAt(c),d=t.charCodeAt(o);if((f===d||f===Tze(d))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=f&&f<=90||i===95&&f!==95),r&&o++,o===t.length))return!0;i=f}return!1}function Tze(e){return 97<=e&&e<=122?e-32:e}var eU,une,lu,dne,fne,_ne,Z6,pne,Sze=C({"src/services/completions.ts"(){$r(),bne(),eU=100,une=1e3,lu={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},dne=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(dne||{}),fne=(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))(fne||{}),_ne=(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))(_ne||{}),Z6=[],pne=Ed(()=>{const e=[];for(let t=81;t<=162;t++)e.push({name:yo(t),kind:"keyword",kindModifiers:"",sortText:lu.GlobalsOrKeywords});return e})}});function mne(){const e=new Map;function t(r){const i=e.get(r.name);(!i||vne[i.kind]<vne[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function xze(e,t,r,i,o,s,c,f,d){if(U0e(e,t)){const y=Uze(e,t,i,o);return y&&E2e(y)}if(YT(e,t,r)){if(!r||!xs(r))return;const y=S2e(e,r,t,s.getTypeChecker(),i,o,f);return Aze(y,r,e,o,s,c,i,f,t,d)}}function Aze(e,t,r,i,o,s,c,f,d,y){if(e===void 0)return;const h=SQ(t);switch(e.kind){case 0:return E2e(e.paths);case 1:{const E=iH();return ine(e.symbols,E,t,t,r,d,r,i,o,99,s,4,f,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:h,entries:E}}case 2:{const E=e.types.map(A=>({name:A.value,kindModifiers:"",kind:"string",sortText:lu.LocationPriority,replacementSpan:TQ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:h,entries:E}}default:return D.assertNever(e)}}function Cze(e,t,r,i,o,s,c,f,d){if(!i||!xs(i))return;const y=S2e(t,i,r,o,s,c,d);return y&&Lze(e,i,y,t,o,f)}function Lze(e,t,r,i,o,s){switch(r.kind){case 0:{const c=nn(r.paths,f=>f.name===e);return c&&$6(e,T2e(c.extension),c.kind,[Rf(e)])}case 1:{const c=nn(r.symbols,f=>f.name===e);return c&&one(c,c.name,o,i,t,s)}case 2:return nn(r.types,c=>c.value===e)?$6(e,"","string",[Rf(e)]):void 0;default:return D.assertNever(r)}}function E2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:c,extension:f})=>({name:o,kind:s,kindModifiers:T2e(f),sortText:lu.LocationPriority,replacementSpan:c}))}}function T2e(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 D.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return D.assertNever(e)}}function S2e(e,t,r,i,o,s,c){const f=x2e(t.parent);switch(f.kind){case 198:{const A=x2e(f.parent);switch(A.kind){case 230:case 180:{const O=nr(f,k=>k.parent===A);return O?{kind:2,types:eP(i.getTypeArgumentConstraint(O)),isNewIdentifier:!1}:void 0}case 196:const{indexType:L,objectType:I}=A;return _6(L,r)?A2e(i.getTypeFromTypeNode(I)):void 0;case 202:return{kind:0,paths:L2e(e,t,o,s,i,c)};case 189:{if(!J_(A.parent))return;const O=Ize(A,f);return{kind:2,types:eP(i.getTypeArgumentConstraint(A)).filter(G=>!jr(O,G.value)),isNewIdentifier:!1}}default:return}}case 299:return Ls(f.parent)&&f.name===t?wze(i,f.parent):d()||d(0);case 209:{const{expression:A,argumentExpression:L}=f;return t===js(L)?A2e(i.getTypeAtLocation(A)):void 0}case 210:case 211:case 288:if(!Wze(t)&&!sf(f)){const A=EP.getArgumentInfoForCompletions(f.kind===288?f.parent:t,r,e);return A&&kze(A.invocation,t,A,i)||d()}case 269:case 275:case 280:return{kind:0,paths:L2e(e,t,o,s,i,c)};case 292:const y=j9(i,f.parent.clauses),h=d();return h?{kind:2,types:h.types.filter(A=>!y.hasValue(A.value)),isNewIdentifier:!1}:void 0;default:return d()}function d(y=4){const h=eP(L9(t,i,y));if(h.length)return{kind:2,types:h,isNewIdentifier:!1}}}function x2e(e){switch(e.kind){case 193:return JN(e);case 214:return Rv(e);default:return e}}function Ize(e,t){return ia(e.types,r=>r!==t&&ab(r)&&Vo(r.literal)?r.literal.text:void 0)}function kze(e,t,r,i){let o=!1;const s=new Map,c=[],f=ed(e)?D.checkDefined(nr(t.parent,im)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,c);const d=ma(c,y=>{if(!Eu(y)&&r.argumentCount>y.parameters.length)return;let h=y.getTypeParameterAtPosition(r.argumentIndex);if(ed(e)){const E=i.getTypeOfPropertyOfType(h,f.name.text);E&&(h=E)}return o=o||!!(h.flags&4),eP(h,s)});return Ae(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function A2e(e){return e&&{kind:1,symbols:lr(e.getApparentProperties(),t=>!(t.valueDeclaration&&Zu(t.valueDeclaration))),hasIndexSignature:HQ(e)}}function wze(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:$G(r,i,t,e),hasIndexSignature:HQ(r)}}function eP(e,t=new Map){return e?(e=CQ(e),e.isUnion()?ma(e.types,r=>eP(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&bp(t,e.value)?[e]:rt):rt}function _L(e,t,r){return{name:e,kind:t,extension:r}}function hne(e){return _L(e,"directory",void 0)}function C2e(e,t,r){const i=jze(e,t),o=e.length===0?void 0:wc(t,e.length);return r.map(({name:s,kind:c,extension:f})=>Math.max(s.indexOf(Ms),s.indexOf(YR))!==-1?{name:s,kind:c,extension:f,span:o}:{name:s,kind:c,extension:f,span:i})}function L2e(e,t,r,i,o,s){return C2e(t.text,t.getStart(e)+1,Dze(e,t,r,i,o,s))}function Dze(e,t,r,i,o,s){const c=Qc(t.text),f=xs(t)?Sp(e,t):void 0,d=e.path,y=hi(d),h=gne(r,1,e,o,s,f);return Hze(c)||!r.baseUrl&&(km(c)||pue(c))?Rze(c,y,r,i,d,h):Mze(c,y,f,r,i,h,o)}function gne(e,t,r,i,o,s){return{extensionsToSearch:is(Nze(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function Rze(e,t,r,i,o,s){return r.rootDirs?Pze(r.rootDirs,e,t,s,r,i,o):Ro(Xw(e,t,s,i,!1,o).values())}function Nze(e,t){const r=t?ia(t.getAmbientModules(),s=>{const c=s.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...kk(e),r],o=vl(e);return y9(o)?vO(e,i):i}function Oze(e,t,r,i){e=e.map(s=>qo(km(s)?s:Bi(t,s)));const o=Kt(e,s=>Tv(s,r,t,i)?r.substr(s.length):void 0);return xA([...e.map(s=>Bi(s,o)),r],QS,Ou)}function Pze(e,t,r,i,o,s,c){const f=o.project||s.getCurrentDirectory(),d=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),y=Oze(e,f,r,d);return ma(y,h=>Ro(Xw(t,h,i,s,!0,c).values()))}function Xw(e,t,r,i,o,s,c=mne()){var f;e===void 0&&(e=""),e=Qc(e),bv(e)||(e=hi(e)),e===""&&(e="."+Ms),e=Pu(e);const d=Ev(t,e),y=bv(d)?d:hi(d);if(!o){const L=dbe(y,i);if(L){const O=vk(L,i).typesVersions;if(typeof O=="object"){const k=(f=W5(O))==null?void 0:f.paths;if(k){const G=hi(L),V=d.slice(Pu(G).length);if(k2e(c,V,G,r,i,k))return c}}}}const h=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!O9(i,y))return c;const E=qQ(i,y,r.extensionsToSearch,void 0,["./*"]);if(E)for(let L of E){if(L=qo(L),s&&nT(L,s,t,h)===0)continue;const{name:I,extension:O}=I2e(mu(L),i.getCompilationSettings(),r);c.add(_L(I,"script",O))}const A=R9(i,y);if(A)for(const L of A){const I=mu(qo(L));I!=="@types"&&c.add(hne(I))}return c}function I2e(e,t,r){const i=j1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:xh(i)};if(r.referenceKind===0)return{name:e,extension:xh(e)};const o=tJ(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(o===3){if(Sc(e,x7))return{name:e,extension:xh(e)};const c=j1.tryGetJSExtensionForFile(e,t);return c?{name:D1(e,c),extension:c}:{name:e,extension:xh(e)}}if((o===0||o===1)&&Sc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Gd(e),extension:xh(e)};const s=j1.tryGetJSExtensionForFile(e,t);return s?{name:D1(e,s),extension:s}:{name:e,extension:xh(e)}}function k2e(e,t,r,i,o,s){const c=d=>s[d],f=(d,y)=>{const h=pC(d),E=pC(y),A=typeof h=="object"?h.prefix.length:d.length,L=typeof E=="object"?E.prefix.length:y.length;return Ws(L,A)};return w2e(e,t,r,i,o,rg(s),c,f)}function w2e(e,t,r,i,o,s,c,f){let d=[],y;for(const h of s){if(h===".")continue;const E=h.replace(/^\.\//,""),A=c(h);if(A){const L=pC(E);if(!L)continue;const I=typeof L=="object"&&fM(L,t);I&&(y===void 0||f(h,y)===-1)&&(y=h,d=d.filter(k=>!k.matchedPattern)),(typeof L=="string"||y===void 0||f(h,y)!==1)&&d.push({matchedPattern:I,results:Fze(E,A,t,r,i,o).map(({name:k,kind:G,extension:V})=>_L(k,G,V))})}}return d.forEach(h=>h.results.forEach(E=>e.add(E))),y!==void 0}function Mze(e,t,r,i,o,s,c){const{baseUrl:f,paths:d}=i,y=mne(),h=vl(i);if(f){const A=i.project||o.getCurrentDirectory(),L=qo(Bi(A,f));Xw(e,L,s,o,!1,void 0,y),d&&k2e(y,e,L,s,o,d)}const E=R2e(e);for(const A of Gze(e,E,c))y.add(_L(A,"external module name",void 0));if(P2e(o,i,t,E,s,y),y9(h)){let A=!1;if(E===void 0)for(const L of Vze(o,t)){const I=_L(L,"external module name",void 0);y.has(I.name)||(A=!0,y.add(I))}if(!A){let L=I=>{const O=Bi(I,"node_modules");O9(o,O)&&Xw(e,O,s,o,!1,void 0,y)};if(E&&qq(i)){const I=L;L=O=>{const k=ld(e);k.shift();let G=k.shift();if(!G)return I(O);if(xa(G,"@")){const te=k.shift();if(!te)return I(O);G=Bi(G,te)}const V=Bi(O,"node_modules",G),H=Bi(V,"package.json");if(N9(o,H)){const X=vk(H,o).exports;if(X){if(typeof X!="object"||X===null)return;const Y=rg(X),P=k.join("/")+(k.length&&bv(e)?"/":""),de=r===99?["node","import","types"]:["node","require","types"];w2e(y,P,V,s,o,Y,re=>ZE(D2e(X[re],de)),SX);return}}return I(O)}}ag(t,L)}}return Ro(y.values())}function D2e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Va(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||O8(t,r)){const i=e[r];return D2e(i,t)}}}function R2e(e){return yne(e)?bv(e)?e:hi(e):void 0}function Fze(e,t,r,i,o,s){if(!ic(e,"*"))return pu(e,"*")?rt:d(e,"script");const c=e.slice(0,e.length-1),f=mH(r,c);if(f===void 0)return e[e.length-2]==="/"?d(c,"directory"):ma(t,h=>{var E;return(E=N2e("",i,h,o,s))==null?void 0:E.map(({name:A,...L})=>({name:c+A,...L}))});return ma(t,y=>N2e(f,i,y,o,s));function d(y,h){return xa(y,r)?[{name:tT(y),kind:h,extension:void 0}]:rt}}function N2e(e,t,r,i,o){if(!o.readDirectory)return;const s=pC(r);if(s===void 0||Ha(s))return;const c=Ev(s.prefix),f=bv(s.prefix)?c:hi(c),d=bv(s.prefix)?"":mu(c),y=yne(e),h=y?bv(e)?e:hi(e):void 0,E=y?Bi(f,d+h):f,A=qo(s.suffix),L=qo(Bi(t,E)),I=y?L:Pu(L)+d,O=A?"**/*"+A:"./*",k=ia(qQ(o,L,i.extensionsToSearch,void 0,[O]),H=>{const te=V(H);if(te){if(yne(te))return hne(ld(O2e(te))[1]);const{name:X,extension:Y}=I2e(te,o.getCompilationSettings(),i);return _L(X,"script",Y)}}),G=A?rt:ia(R9(o,L),H=>H==="node_modules"?void 0:hne(H));return[...k,...G];function V(H){const te=Bze(qo(H),I,A);return te===void 0?void 0:O2e(te)}}function Bze(e,t,r){return xa(e,t)&&ic(e,r)?e.slice(t.length,e.length-r.length):void 0}function O2e(e){return e[0]===Ms?e.slice(1):e}function Gze(e,t,r){const o=r.getAmbientModules().map(s=>j_(s.name)).filter(s=>xa(s,e)&&s.indexOf("*")<0);if(t!==void 0){const s=Pu(t);return o.map(c=>AI(c,s))}return o}function Uze(e,t,r,i){const o=aa(e,t),s=mh(e.text,o.pos),c=s&&nn(s,I=>t>=I.pos&&t<=I.end);if(!c)return;const f=e.text.slice(c.pos,t),d=M2e.exec(f);if(!d)return;const[,y,h,E]=d,A=hi(e.path),L=h==="path"?Xw(E,A,gne(r,0,e),i,!0,e.path):h==="types"?P2e(i,r,A,R2e(E),gne(r,1,e)):D.fail();return C2e(E,c.pos+y.length,Ro(L.values()))}function P2e(e,t,r,i,o,s=mne()){const c=new Map,f=P9(()=>D8(t,e))||rt;for(const y of f)d(y);for(const y of JQ(r,e)){const h=Bi(hi(y),"node_modules/@types");d(h)}return s;function d(y){if(O9(e,y))for(const h of R9(e,y)){const E=eF(h);if(!(t.types&&!jr(t.types,E)))if(i===void 0)c.has(E)||(s.add(_L(E,"external module name",void 0)),c.set(E,!0));else{const A=Bi(y,h),L=Xq(i,E,Z0(e));L!==void 0&&Xw(L,A,o,e,!1,void 0,s)}}}}function Vze(e,t){if(!e.readFile||!e.fileExists)return rt;const r=[];for(const i of JQ(t,e)){const o=vk(i,e);for(const s of F2e){const c=o[s];if(c)for(const f in c)Ps(c,f)&&!xa(f,"@types/")&&r.push(f)}}return r}function jze(e,t){const r=Math.max(e.lastIndexOf(Ms),e.lastIndexOf(YR)),i=r!==-1?r+1:0,o=e.length-i;return o===0||M_(e.substr(i,o),99)?void 0:wc(t+i,o)}function Hze(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function yne(e){return pu(e,Ms)}function Wze(e){return no(e.parent)&&Yc(e.parent.arguments)===e&&He(e.parent.expression)&&e.parent.expression.escapedText==="require"}var vne,M2e,F2e,zze=C({"src/services/stringCompletions.ts"(){$r(),bne(),vne={directory:0,script:1,"external module name":2},M2e=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,F2e=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),tU={};ne(tU,{getStringLiteralCompletionDetails:()=>Cze,getStringLiteralCompletions:()=>xze});var qze=C({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){zze()}}),h2={};ne(h2,{CompletionKind:()=>_ne,CompletionSource:()=>dne,SortText:()=>lu,StringCompletions:()=>tU,SymbolOriginInfoKind:()=>fne,createCompletionDetails:()=>$6,createCompletionDetailsForSymbol:()=>one,getCompletionEntriesFromSymbols:()=>ine,getCompletionEntryDetails:()=>tze,getCompletionEntrySymbol:()=>rze,getCompletionsAtPosition:()=>OWe,getPropertiesForObjectExpression:()=>$G,moduleSpecifierResolutionCacheAttemptLimit:()=>une,moduleSpecifierResolutionLimit:()=>eU});var bne=C({"src/services/_namespaces/ts.Completions.ts"(){Sze(),qze()}});function Ene(e,t,r,i){const o=Yze(e,r,i);return(s,c,f)=>{const{directImports:d,indirectUsers:y}=Jze(e,t,o,c,r,i);return{indirectUsers:y,...Kze(d,s,c.exportKind,r,f)}}}function Jze(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,c){const f=nL(),d=nL(),y=[],h=!!i.globalExports,E=h?void 0:[];return L(i),{directImports:y,indirectUsers:A()};function A(){if(h)return e;if(i.declarations)for(const H of i.declarations)b1(H)&&t.has(H.getSourceFile().fileName)&&G(H);return E.map(Zn)}function L(H){const te=V(H);if(te){for(const X of te)if(f(X))switch(c&&c.throwIfCancellationRequested(),X.kind){case 210:if(sf(X)){I(X);break}if(!h){const P=X.parent;if(o===2&&P.kind===257){const{name:de}=P;if(de.kind===79){y.push(de);break}}}break;case 79:break;case 268:k(X,X.name,Yr(X,1),!1);break;case 269:y.push(X);const Y=X.importClause&&X.importClause.namedBindings;Y&&Y.kind===271?k(X,Y.name,!1,!0):!h&&hx(X)&&G(tP(X));break;case 275:X.exportClause?X.exportClause.kind===277?G(tP(X),!0):y.push(X):L(tqe(X,s));break;case 202:!h&&X.isTypeOf&&!X.qualifier&&O(X)&&G(X.getSourceFile(),!0),y.push(X);break;default:D.failBadSyntaxKind(X,"Unexpected import kind.")}}}function I(H){const te=nr(H,nU)||H.getSourceFile();G(te,!!O(H,!0))}function O(H,te=!1){return nr(H,X=>te&&nU(X)?"quit":X_(X)&&kt(X.modifiers,i5))}function k(H,te,X,Y){if(o===2)Y||y.push(H);else if(!h){const P=tP(H);D.assert(P.kind===308||P.kind===264),X||Xze(P,te,s)?G(P,!0):G(P)}}function G(H,te=!1){if(D.assert(!h),!d(H)||(E.push(H),!te))return;const Y=s.getMergedSymbol(H.symbol);if(!Y)return;D.assert(!!(Y.flags&1536));const P=V(Y);if(P)for(const de of P)vg(de)||G(tP(de),!0)}function V(H){return r.get(bo(H).toString())}}function Kze(e,t,r,i,o){const s=[],c=[];function f(A,L){s.push([A,L])}if(e)for(const A of e)d(A);return{importSearches:s,singleReferences:c};function d(A){if(A.kind===268){Sne(A)&&y(A.name);return}if(A.kind===79){y(A);return}if(A.kind===202){if(A.qualifier){const O=Lf(A.qualifier);O.escapedText===Fl(t)&&c.push(O)}else r===2&&c.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==10)return;if(A.kind===275){A.exportClause&&K_(A.exportClause)&&h(A.exportClause);return}const{name:L,namedBindings:I}=A.importClause||{name:void 0,namedBindings:void 0};if(I)switch(I.kind){case 271:y(I.name);break;case 272:(r===0||r===1)&&h(I);break;default:D.assertNever(I)}if(L&&(r===1||r===2)&&(!o||L.escapedText===E9(t))){const O=i.getSymbolAtLocation(L);f(L,O)}}function y(A){r===2&&(!o||E(A.escapedText))&&f(A,i.getSymbolAtLocation(A))}function h(A){if(A)for(const L of A.elements){const{name:I,propertyName:O}=L;if(E((O||I).escapedText))if(O)c.push(O),(!o||I.escapedText===t.escapedName)&&f(I,i.getSymbolAtLocation(I));else{const k=L.kind===278&&L.propertyName?i.getExportSpecifierLocalTargetSymbol(L):i.getSymbolAtLocation(I);f(I,k)}}}function E(A){return A===t.escapedName||r!==0&&A==="default"}}function Xze(e,t,r){const i=r.getSymbolAtLocation(t);return!!G2e(e,o=>{if(!eu(o))return;const{exportClause:s,moduleSpecifier:c}=o;return!c&&s&&K_(s)&&s.elements.some(f=>r.getExportSpecifierLocalTargetSymbol(f)===i)})}function B2e(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const c of t){const f=r.valueDeclaration;if((f==null?void 0:f.kind)===308){for(const d of c.referencedFiles)e.getSourceFileFromReference(c,d)===f&&o.push({kind:"reference",referencingFile:c,ref:d});for(const d of c.typeReferenceDirectives){const y=(i=e.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;y!==void 0&&y.resolvedFileName===f.fileName&&o.push({kind:"reference",referencingFile:c,ref:d})}}U2e(c,(d,y)=>{s.getSymbolAtLocation(y)===r&&o.push({kind:"import",literal:y})})}return o}function Yze(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),U2e(o,(s,c)=>{const f=t.getSymbolAtLocation(c);if(f){const d=bo(f).toString();let y=i.get(d);y||i.set(d,y=[]),y.push(s)}});return i}function G2e(e,t){return Ue(e.kind===308?e.statements:e.body.statements,r=>t(r)||nU(r)&&Ue(r.body&&r.body.statements,t))}function U2e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(VN(r),r);else G2e(e,r=>{switch(r.kind){case 275:case 269:{const i=r;i.moduleSpecifier&&Vo(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 268:{const i=r;Sne(i)&&t(i,i.moduleReference.expression);break}}})}function V2e(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:y}=e,h=y.parent;if(t.exportSymbol)return y.kind===208?(d=t.declarations)!=null&&d.some(L=>L===y)&&br(h)?A(h,!1):void 0:c(t.exportSymbol,f(y));{const L=Qze(y,e);if(L&&Yr(L,1))return su(L)&&L.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(L.name)}:c(t,f(L));if(kh(y))return c(t,0);if(Gl(y))return E(y);if(Gl(h))return E(h);if(br(y))return A(y,!0);if(br(h))return A(h,!0);if(mK(y)||cK(y))return c(t,0)}function E(L){if(!L.symbol.parent)return;const I=L.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:L.symbol.parent,exportKind:I}}}function A(L,I){let O;switch(Ll(L)){case 1:O=0;break;case 2:O=2;break;default:return}const k=I?r.getSymbolAtLocation(__e(ao(L.left,ll))):t;return k&&c(k,O)}}function s(){if(!Zze(e))return;let y=r.getImmediateAliasedSymbol(t);if(!y||(y=eqe(y,r),y.escapedName==="export="&&(y=$ze(y,r),y===void 0)))return;const h=E9(y);if(h===void 0||h==="default"||h===t.escapedName)return{kind:0,symbol:y}}function c(d,y){const h=Tne(d,y,r);return h&&{kind:1,symbol:d,exportInfo:h}}function f(d){return Yr(d,1024)?1:0}}function $ze(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=D.checkDefined(e.valueDeclaration);if(Gl(o))return(r=ai(o.expression,Rm))==null?void 0:r.symbol;if(br(o))return(i=ai(o.right,Rm))==null?void 0:i.symbol;if(qi(o))return o.symbol}function Qze(e,t){const r=Ki(e)?e:ps(e)?RA(e):void 0;return r?e.name!==t||NC(r.parent)?void 0:uc(r.parent.parent)?r.parent.parent:void 0:e}function Zze(e){const{parent:t}=e;switch(t.kind){case 268:return t.name===e&&Sne(t);case 273:return!t.propertyName;case 270:case 271:return D.assert(t.name===e),!0;case 205:return fr(e)&&x1(t.parent.parent);default:return!1}}function Tne(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return E6(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function eqe(e,t){if(e.declarations)for(const r of e.declarations){if(dd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Fr(r)&&bh(r.expression)&&!Ni(r.name))return t.getSymbolAtLocation(r);if(t_(r)&&br(r.parent.parent)&&Ll(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function tqe(e,t){return t.getMergedSymbol(tP(e).symbol)}function tP(e){if(e.kind===210)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(D.assert(t.kind===265),ao(t.parent,nU))}function nU(e){return e.kind===264&&e.name.kind===10}function Sne(e){return e.moduleReference.kind===280&&e.moduleReference.expression.kind===10}var xne,Ane,nqe=C({"src/services/importTracker.ts"(){$r(),xne=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(xne||{}),Ane=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Ane||{})}});function Dh(e,t=1){return{kind:t,node:e.name||e,context:rqe(e)}}function j2e(e){return e&&e.kind===void 0}function rqe(e){if(vu(e))return $1(e);if(e.parent){if(!vu(e.parent)&&!Gl(e.parent)){if(fr(e)){const r=br(e.parent)?e.parent:ll(e.parent)&&br(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Ll(r)!==0)return $1(r)}if(wh(e.parent)||zx(e.parent))return e.parent.parent;if(Wx(e.parent)||M1(e.parent)||HI(e.parent))return e.parent;if(xs(e)){const r=jN(e);if(r){const i=nr(r,o=>vu(o)||wa(o)||KI(o));return vu(i)?$1(i):i}}const t=nr(e,As);return t?$1(t.parent):void 0}if(e.parent.name===e||ql(e.parent)||Gl(e.parent)||(sx(e.parent)||ps(e.parent))&&e.parent.propertyName===e||e.kind===88&&Yr(e.parent,1025))return $1(e.parent)}}function $1(e){if(e)switch(e.kind){case 257:return!Vu(e.parent)||e.parent.declarations.length!==1?e:uc(e.parent.parent)?e.parent.parent:BA(e.parent.parent)?$1(e.parent.parent):e.parent;case 205:return $1(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return ou(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return Dy(e.parent)?$1(nr(e.parent,t=>br(t)||BA(t))):e;default:return e}}function Cne(e,t,r){if(!r)return;const i=j2e(r)?rP(r.start,t,r.end):rP(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function iqe(e,t,r,i,o){const s=Df(i,o),c={use:1},f=iS.getReferencedSymbolsForNode(o,s,e,r,t,c),d=e.getTypeChecker(),y=iS.getAdjustedNode(s,c),h=aqe(y)?d.getSymbolAtLocation(y):void 0;return!f||!f.length?void 0:ia(f,({definition:E,references:A})=>E&&{definition:d.runWithCancellationToken(t,L=>lqe(E,L,s)),references:A.map(L=>uqe(L,h))})}function aqe(e){return e.kind===88||!!KN(e)||XN(e)||e.kind===135&&ql(e.parent)}function oqe(e,t,r,i,o){const s=Df(i,o);let c;const f=H2e(e,t,r,s,o);if(s.parent.kind===208||s.parent.kind===205||s.parent.kind===209||s.kind===106)c=f&&[...f];else if(f){const y=dH(f),h=new Map;for(;!y.isEmpty();){const E=y.dequeue();if(!bp(h,ms(E.node)))continue;c=Fn(c,E);const A=H2e(e,t,r,E.node,E.node.pos);A&&y.enqueue(...A)}}const d=e.getTypeChecker();return Vt(c,y=>fqe(y,d))}function H2e(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===300){const c=[];return iS.getReferenceEntriesForShorthandPropertyAssignment(i,s,f=>c.push(Dh(f))),c}else if(i.kind===106||ud(i.parent)){const c=s.getSymbolAtLocation(i);return c.valueDeclaration&&[Dh(c.valueDeclaration)]}else return W2e(o,i,e,r,t,{implementations:!0,use:1})}function sqe(e,t,r,i,o,s,c){return Vt(z2e(iS.getReferencedSymbolsForNode(o,i,e,r,t,s)),f=>c(f,i,e.getTypeChecker()))}function W2e(e,t,r,i,o,s={},c=new Set(i.map(f=>f.fileName))){return z2e(iS.getReferencedSymbolsForNode(e,t,r,i,o,s,c))}function z2e(e){return e&&ma(e,t=>t.references)}function lqe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:h}=e,{displayParts:E,kind:A}=q2e(h,t,r),L=E.map(k=>k.text).join(""),I=h.declarations&&Yc(h.declarations),O=I?ka(I)||I:r;return{...nP(O),name:L,kind:A,displayParts:E,context:$1(I)}}case 1:{const{node:h}=e;return{...nP(h),name:h.text,kind:"label",displayParts:[Id(h.text,17)]}}case 2:{const{node:h}=e,E=yo(h.kind);return{...nP(h),name:E,kind:"keyword",displayParts:[{text:E,kind:"keyword"}]}}case 3:{const{node:h}=e,E=t.getSymbolAtLocation(h),A=E&&Oy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,E,h.getSourceFile(),KT(h),h).displayParts||[Rf("this")];return{...nP(h),name:"this",kind:"var",displayParts:A}}case 4:{const{node:h}=e;return{...nP(h),name:h.text,kind:"var",displayParts:[Id(xc(h),8)]}}case 5:return{textSpan:Jv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Id(`"${e.reference.fileName}"`,8)]};default:return D.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:c,kind:f,displayParts:d,context:y}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:f,name:c,textSpan:s,displayParts:d,...Cne(s,o,y)}}function nP(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:rP(As(e)?e.expression:e,t)}}function q2e(e,t,r){const i=iS.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Yc(e.declarations)||r,{displayParts:s,symbolKind:c}=Oy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:c}}function cqe(e,t,r,i){return{...rU(e),...i&&dqe(e,t,r)}}function uqe(e,t){const r=J2e(e);return t?{...r,isDefinition:e.kind!==0&&X2e(e.node,t)}:r}function J2e(e){const t=rU(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:K2e(i),isInString:r===2?!0:void 0}}function rU(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=rP(e.node,t);return{textSpan:r,fileName:t.fileName,...Cne(r,t,e.context)}}}function dqe(e,t,r){if(e.kind!==0&&He(t)){const{node:i,kind:o}=e,s=i.parent,c=t.text,f=t_(s);if(f||x6(s)&&s.name===i&&s.dotDotDotToken===void 0){const d={prefixText:c+": "},y={suffixText:": "+c};if(o===3)return d;if(o===4)return y;if(f){const h=s.parent;return Ls(h)&&br(h.parent)&&bh(h.parent.left)?d:y}else return d}else if(Ld(s)&&!s.propertyName){const d=dd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return jr(d.declarations,s)?{prefixText:c+" as "}:sm}else if(dd(s)&&!s.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:c+" as "}:{suffixText:" as "+c}}return sm}function fqe(e,t){const r=rU(e);if(e.kind!==0){const{node:i}=e;return{...r,..._qe(i,t)}}else return{...r,kind:"",displayParts:[]}}function _qe(e,t){const r=t.getSymbolAtLocation(vu(e)&&e.name?e.name:e);return r?q2e(r,t,e):e.kind===207?{kind:"interface",displayParts:[Tu(20),Rf("object literal"),Tu(21)]}:e.kind===228?{kind:"local class",displayParts:[Tu(20),Rf("anonymous local class"),Tu(21)]}:{kind:X1(e),displayParts:[]}}function pqe(e){const t=rU(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=K2e(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 rP(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return xs(e)&&o-i>2&&(D.assert(r===void 0),i+=1,o-=1),hc(i,o)}function Lne(e){return e.kind===0?e.textSpan:rP(e.node,e.node.getSourceFile())}function K2e(e){const t=KN(e);return!!t&&mqe(t)||e.kind===88||Sk(e)}function X2e(e,t){var r;if(!t)return!1;const i=KN(e)||(e.kind===88?e.parent:XN(e)||e.kind===135&&ql(e.parent)?e.parent.parent:void 0),o=i&&br(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function mqe(e){if(e.flags&16777216)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!Dy(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||NC(e.parent);case 170:case 168:case 351:case 344:return!1;default:return D.failBadSyntaxKind(e)}}var Ine,kne,wne,iS,hqe=C({"src/services/findAllReferences.ts"(){$r(),Y2e(),Ine=(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))(Ine||{}),kne=(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))(kne||{}),wne=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(wne||{}),(e=>{function t(we,yt,Nt,Ce,pt,pe={},ie=new Set(Ce.map(he=>he.fileName))){var he,j,We;if(yt=r(yt,pe),qi(yt)){const ue=$w.getReferenceAtPosition(yt,we,Nt);if(!(ue!=null&&ue.file))return;const mt=Nt.getTypeChecker().getMergedSymbol(ue.file.symbol);if(mt)return y(Nt,mt,!1,Ce,ie);const zt=Nt.getFileIncludeReasons();return zt?[{definition:{type:5,reference:ue.reference,file:yt},references:o(ue.file,zt,Nt)||rt}]:void 0}if(!pe.implementations){const ue=E(yt,Ce,pt);if(ue)return ue}const Ze=Nt.getTypeChecker(),Xe=Ze.getSymbolAtLocation(ql(yt)&&yt.parent.name||yt);if(!Xe){if(!pe.implementations&&xs(yt)){if(T9(yt)){const ue=Nt.getFileIncludeReasons(),mt=(We=(j=(he=yt.getSourceFile().resolvedModules)==null?void 0:he.get(yt.text,Sp(yt.getSourceFile(),yt)))==null?void 0:j.resolvedModule)==null?void 0:We.resolvedFileName,zt=mt?Nt.getSourceFile(mt):void 0;if(zt)return[{definition:{type:4,node:yt},references:o(zt,ue,Nt)||rt}]}return At(yt,Ce,Ze,pt)}return}if(Xe.escapedName==="export=")return y(Nt,Xe.parent,!1,Ce,ie);const Ut=c(Xe,Nt,Ce,pt,pe,ie);if(Ut&&!(Xe.flags&33554432))return Ut;const cn=s(yt,Xe,Ze),Sn=cn&&c(cn,Nt,Ce,pt,pe,ie),Er=A(Xe,yt,Ce,ie,Ze,pt,pe);return f(Nt,Ut,Er,Sn)}e.getReferencedSymbolsForNode=t;function r(we,yt){return yt.use===1?we=_Q(we):yt.use===2&&(we=c9(we)),we}e.getAdjustedNode=r;function i(we,yt,Nt,Ce=new Set(Nt.map(pt=>pt.fileName))){var pt,pe;const ie=(pt=yt.getSourceFile(we))==null?void 0:pt.symbol;if(ie)return((pe=y(yt,ie,!1,Nt,Ce)[0])==null?void 0:pe.references)||rt;const he=yt.getFileIncludeReasons(),j=yt.getSourceFile(we);return j&&he&&o(j,he,yt)||rt}e.getReferencesForFileName=i;function o(we,yt,Nt){let Ce;const pt=yt.get(we.path)||rt;for(const pe of pt)if(cb(pe)){const ie=Nt.getSourceFileByPath(pe.file),he=Sw(Nt.getSourceFileByPath,pe);XC(he)&&(Ce=Fn(Ce,{kind:0,fileName:ie.fileName,textSpan:Jv(he)}))}return Ce}function s(we,yt,Nt){if(we.parent&&ZO(we.parent)){const Ce=Nt.getAliasedSymbol(yt),pt=Nt.getMergedSymbol(Ce);if(Ce!==pt)return pt}}function c(we,yt,Nt,Ce,pt,pe){const ie=we.flags&1536&&we.declarations&&nn(we.declarations,qi);if(!ie)return;const he=we.exports.get("export="),j=y(yt,we,!!he,Nt,pe);if(!he||!pe.has(ie.fileName))return j;const We=yt.getTypeChecker();return we=lf(he,We),f(yt,j,A(we,void 0,Nt,pe,We,Ce,pt))}function f(we,...yt){let Nt;for(const Ce of yt)if(!(!Ce||!Ce.length)){if(!Nt){Nt=Ce;continue}for(const pt of Ce){if(!pt.definition||pt.definition.type!==0){Nt.push(pt);continue}const pe=pt.definition.symbol,ie=mi(Nt,j=>!!j.definition&&j.definition.type===0&&j.definition.symbol===pe);if(ie===-1){Nt.push(pt);continue}const he=Nt[ie];Nt[ie]={definition:he.definition,references:he.references.concat(pt.references).sort((j,We)=>{const Ze=d(we,j),Xe=d(we,We);if(Ze!==Xe)return Ws(Ze,Xe);const Ut=Lne(j),cn=Lne(We);return Ut.start!==cn.start?Ws(Ut.start,cn.start):Ws(Ut.length,cn.length)})}}}return Nt}function d(we,yt){const Nt=yt.kind===0?we.getSourceFile(yt.fileName):yt.node.getSourceFile();return we.getSourceFiles().indexOf(Nt)}function y(we,yt,Nt,Ce,pt){D.assert(!!yt.valueDeclaration);const pe=ia(B2e(we,Ce,yt),he=>{if(he.kind==="import"){const j=he.literal.parent;if(ab(j)){const We=ao(j.parent,vg);if(Nt&&!We.qualifier)return}return Dh(he.literal)}else return{kind:0,fileName:he.referencingFile.fileName,textSpan:Jv(he.ref)}});if(yt.declarations)for(const he of yt.declarations)switch(he.kind){case 308:break;case 264:pt.has(he.getSourceFile().fileName)&&pe.push(Dh(he.name));break;default:D.assert(!!(yt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ie=yt.exports.get("export=");if(ie!=null&&ie.declarations)for(const he of ie.declarations){const j=he.getSourceFile();if(pt.has(j.fileName)){const We=br(he)&&Fr(he.left)?he.left.expression:Gl(he)?D.checkDefined(bs(he,93,j)):ka(he)||he;pe.push(Dh(We))}}return pe.length?[{definition:{type:0,symbol:yt},references:pe}]:rt}function h(we){return we.kind===146&&Gx(we.parent)&&we.parent.operator===146}function E(we,yt,Nt){if(Dw(we.kind))return we.kind===114&&Vx(we.parent)||we.kind===146&&!h(we)?void 0:je(yt,we.kind,Nt,we.kind===146?h:void 0);if(qA(we.parent)&&we.parent.name===we)return Qe(yt,Nt);if(Px(we)&&kl(we.parent))return[{definition:{type:2,node:we},references:[Dh(we)]}];if(f6(we)){const Ce=r9(we.parent,we.text);return Ce&&Se(Ce.parent,Ce)}else if(iQ(we))return Se(we.parent,we);if(tL(we))return Or(we,yt,Nt);if(we.kind===106)return $i(we)}function A(we,yt,Nt,Ce,pt,pe,ie){const he=yt&&O(we,yt,pt,!Hr(ie))||we,j=yt?Pi(yt,he):7,We=[],Ze=new V(Nt,Ce,yt?I(yt):0,pt,pe,j,ie,We),Xe=!Hr(ie)||!he.declarations?void 0:nn(he.declarations,dd);if(Xe)Ye(Xe.name,he,Xe,Ze.createSearch(yt,we,void 0),Ze,!0,!0);else if(yt&&yt.kind===88&&he.escapedName==="default"&&he.parent)Et(yt,he,Ze),H(yt,he,{exportingModuleSymbol:he.parent,exportKind:1},Ze);else{const Ut=Ze.createSearch(yt,he,void 0,{allSearchSymbols:yt?vn(he,yt,pt,ie.use===2,!!ie.providePrefixAndSuffixTextForRename,!!ie.implementations):[he]});L(he,Ze,Ut)}return We}function L(we,yt,Nt){const Ce=re(we);if(Ce)qe(Ce,Ce.getSourceFile(),Nt,yt,!(qi(Ce)&&!jr(yt.sourceFiles,Ce)));else for(const pt of yt.sourceFiles)yt.cancellationToken.throwIfCancellationRequested(),P(pt,Nt,yt)}function I(we){switch(we.kind){case 173:case 135:return 1;case 79:if(di(we.parent))return D.assert(we.parent.name===we),2;default:return 0}}function O(we,yt,Nt,Ce){const{parent:pt}=yt;return dd(pt)&&Ce?ze(yt,we,pt,Nt):Kt(we.declarations,pe=>{if(!pe.parent){if(we.flags&33554432)return;D.fail(`Unexpected symbol at ${D.formatSyntaxKind(yt.kind)}: ${D.formatSymbol(we)}`)}return cf(pe.parent)&&Fx(pe.parent.parent)?Nt.getPropertyOfType(Nt.getTypeFromTypeNode(pe.parent.parent),we.name):void 0})}let k;(we=>{we[we.None=0]="None",we[we.Constructor=1]="Constructor",we[we.Class=2]="Class"})(k||(k={}));function G(we){if(!(we.flags&33555968))return;const yt=we.declarations&&nn(we.declarations,Nt=>!qi(Nt)&&!Jl(Nt));return yt&&yt.symbol}class V{constructor(yt,Nt,Ce,pt,pe,ie,he,j){this.sourceFiles=yt,this.sourceFilesSet=Nt,this.specialSearchKind=Ce,this.checker=pt,this.cancellationToken=pe,this.searchMeaning=ie,this.options=he,this.result=j,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=nL(),this.markSeenReExportRHS=nL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(yt){return this.sourceFilesSet.has(yt.fileName)}getImportSearches(yt,Nt){return this.importTracker||(this.importTracker=Ene(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(yt,Nt,this.options.use===2)}createSearch(yt,Nt,Ce,pt={}){const{text:pe=j_(Fl(uC(Nt)||G(Nt)||Nt)),allSearchSymbols:ie=[Nt]}=pt,he=sl(pe),j=this.options.implementations&&yt?Ar(yt,Nt,this.checker):void 0;return{symbol:Nt,comingFrom:Ce,text:pe,escapedText:he,parents:j,allSearchSymbols:ie,includes:We=>jr(ie,We)}}referenceAdder(yt){const Nt=bo(yt);let Ce=this.symbolIdToReferences[Nt];return Ce||(Ce=this.symbolIdToReferences[Nt]=[],this.result.push({definition:{type:0,symbol:yt},references:Ce})),(pt,pe)=>Ce.push(Dh(pt,pe))}addStringOrCommentReference(yt,Nt){this.result.push({definition:void 0,references:[{kind:0,fileName:yt,textSpan:Nt}]})}markSearchedSymbols(yt,Nt){const Ce=ms(yt),pt=this.sourceFileToSeenSymbols[Ce]||(this.sourceFileToSeenSymbols[Ce]=new Set);let pe=!1;for(const ie of Nt)pe=gv(pt,bo(ie))||pe;return pe}}function H(we,yt,Nt,Ce){const{importSearches:pt,singleReferences:pe,indirectUsers:ie}=Ce.getImportSearches(yt,Nt);if(pe.length){const he=Ce.referenceAdder(yt);for(const j of pe)X(j,Ce)&&he(j)}for(const[he,j]of pt)Ge(he.getSourceFile(),Ce.createSearch(he,j,1),Ce);if(ie.length){let he;switch(Nt.exportKind){case 0:he=Ce.createSearch(we,yt,1);break;case 1:he=Ce.options.use===2?void 0:Ce.createSearch(we,yt,1,{text:"default"});break}if(he)for(const j of ie)P(j,he,Ce)}}function te(we,yt,Nt,Ce,pt,pe,ie,he){const j=Ene(we,new Set(we.map(Ut=>Ut.fileName)),yt,Nt),{importSearches:We,indirectUsers:Ze,singleReferences:Xe}=j(Ce,{exportKind:ie?1:0,exportingModuleSymbol:pt},!1);for(const[Ut]of We)he(Ut);for(const Ut of Xe)He(Ut)&&vg(Ut.parent)&&he(Ut);for(const Ut of Ze)for(const cn of me(Ut,ie?"default":pe)){const Sn=yt.getSymbolAtLocation(cn),Er=kt(Sn==null?void 0:Sn.declarations,ue=>!!ai(ue,Gl));He(cn)&&!sx(cn.parent)&&(Sn===Ce||Er)&&he(cn)}}e.eachExportReference=te;function X(we,yt){return Oe(we,yt)?yt.options.use!==2?!0:He(we)?!(sx(we.parent)&&we.escapedText==="default"):!1:!1}function Y(we,yt){if(we.declarations)for(const Nt of we.declarations){const Ce=Nt.getSourceFile();Ge(Ce,yt.createSearch(Nt,we,0),yt,yt.includesSourceFile(Ce))}}function P(we,yt,Nt){MZ(we).get(yt.escapedText)!==void 0&&Ge(we,yt,Nt)}function de(we,yt){return Dy(we.parent.parent)?yt.getPropertySymbolOfDestructuringAssignment(we):void 0}function re(we){const{declarations:yt,flags:Nt,parent:Ce,valueDeclaration:pt}=we;if(pt&&(pt.kind===215||pt.kind===228))return pt;if(!yt)return;if(Nt&8196){const he=nn(yt,j=>Bd(j,8)||Zu(j));return he?Q0(he,260):void 0}if(yt.some(x6))return;const pe=Ce&&!(we.flags&262144);if(pe&&!(E6(Ce)&&!Ce.globalExports))return;let ie;for(const he of yt){const j=KT(he);if(ie&&ie!==j||!j||j.kind===308&&!of(j))return;if(ie=j,Bs(ie)){let We;for(;We=iq(ie);)ie=We}}return pe?ie.getSourceFile():ie}function ye(we,yt,Nt,Ce=Nt){return ae(we,yt,Nt,()=>!0,Ce)||!1}e.isSymbolReferencedInFile=ye;function ae(we,yt,Nt,Ce,pt=Nt){const pe=tf(we.parent,we.parent.parent)?us(yt.getSymbolsOfParameterPropertyDeclaration(we.parent,we.text)):yt.getSymbolAtLocation(we);if(pe)for(const ie of me(Nt,pe.name,pt)){if(!He(ie)||ie===we||ie.escapedText!==we.escapedText)continue;const he=yt.getSymbolAtLocation(ie);if(he===pe||yt.getShorthandAssignmentValueSymbol(ie.parent)===pe||dd(ie.parent)&&ze(ie,he,ie.parent,yt)===pe){const j=Ce(ie);if(j)return j}}}e.eachSymbolReferenceInFile=ae;function W(we,yt){return lr(me(yt,we),pt=>!!KN(pt)).reduce((pt,pe)=>{const ie=Ce(pe);return!kt(pt.declarationNames)||ie===pt.depth?(pt.declarationNames.push(pe),pt.depth=ie):ie<pt.depth&&(pt.declarationNames=[pe],pt.depth=ie),pt},{depth:1/0,declarationNames:[]}).declarationNames;function Ce(pt){let pe=0;for(;pt;)pt=KT(pt),pe++;return pe}}e.getTopMostDeclarationNamesInFile=W;function ce(we,yt,Nt,Ce){if(!we.name||!He(we.name))return!1;const pt=D.checkDefined(Nt.getSymbolAtLocation(we.name));for(const pe of yt)for(const ie of me(pe,pt.name)){if(!He(ie)||ie===we.name||ie.escapedText!==we.name.escapedText)continue;const he=n9(ie),j=no(he.parent)&&he.parent.expression===he?he.parent:void 0,We=Nt.getSymbolAtLocation(ie);if(We&&Nt.getRootSymbols(We).some(Ze=>Ze===pt)&&Ce(ie,j))return!0}return!1}e.someSignatureUsage=ce;function me(we,yt,Nt=we){return ve(we,yt,Nt).map(Ce=>Df(we,Ce))}function ve(we,yt,Nt=we){const Ce=[];if(!yt||!yt.length)return Ce;const pt=we.text,pe=pt.length,ie=yt.length;let he=pt.indexOf(yt,Nt.pos);for(;he>=0&&!(he>Nt.end);){const j=he+ie;(he===0||!z0(pt.charCodeAt(he-1),99))&&(j===pe||!z0(pt.charCodeAt(j),99))&&Ce.push(he),he=pt.indexOf(yt,he+ie+1)}return Ce}function Se(we,yt){const Nt=we.getSourceFile(),Ce=yt.text,pt=ia(me(Nt,Ce,we),pe=>pe===yt||f6(pe)&&r9(pe,Ce)===yt?Dh(pe):void 0);return[{definition:{type:1,node:yt},references:pt}]}function ee(we,yt){switch(we.kind){case 80:if(sb(we.parent))return!0;case 79:return we.text.length===yt.length;case 14:case 10:{const Nt=we;return(i9(Nt)||lQ(we)||T0e(we)||no(we.parent)&&px(we.parent)&&we.parent.arguments[1]===we)&&Nt.text.length===yt.length}case 8:return i9(we)&&we.text.length===yt.length;case 88:return yt.length===7;default:return!1}}function Qe(we,yt){const Nt=ma(we,Ce=>(yt.throwIfCancellationRequested(),ia(me(Ce,"meta",Ce),pt=>{const pe=pt.parent;if(qA(pe))return Dh(pe)})));return Nt.length?[{definition:{type:2,node:Nt[0].node},references:Nt}]:void 0}function je(we,yt,Nt,Ce){const pt=ma(we,pe=>(Nt.throwIfCancellationRequested(),ia(me(pe,yo(yt),pe),ie=>{if(ie.kind===yt&&(!Ce||Ce(ie)))return Dh(ie)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ge(we,yt,Nt,Ce=!0){return Nt.cancellationToken.throwIfCancellationRequested(),qe(we,we,yt,Nt,Ce)}function qe(we,yt,Nt,Ce,pt){if(Ce.markSearchedSymbols(yt,Nt.allSearchSymbols))for(const pe of ve(yt,Nt.text,we))Me(yt,pe,Nt,Ce,pt)}function Oe(we,yt){return!!(JT(we)&yt.searchMeaning)}function Me(we,yt,Nt,Ce,pt){const pe=Df(we,yt);if(!ee(pe,Nt.text)){!Ce.options.implementations&&(Ce.options.findInStrings&&YT(we,yt)||Ce.options.findInComments&&V0e(we,yt))&&Ce.addStringOrCommentReference(we.fileName,wc(yt,Nt.text.length));return}if(!Oe(pe,Ce))return;let ie=Ce.checker.getSymbolAtLocation(pe);if(!ie)return;const he=pe.parent;if(Ld(he)&&he.propertyName===pe)return;if(dd(he)){D.assert(pe.kind===79),Ye(pe,ie,he,Nt,Ce,pt);return}const j=cr(Nt,ie,pe,Ce);if(!j){Ct(ie,Nt,Ce);return}switch(Ce.specialSearchKind){case 0:pt&&Et(pe,j,Ce);break;case 1:jt(pe,we,Nt,Ce);break;case 2:tt(pe,Nt,Ce);break;default:D.assertNever(Ce.specialSearchKind)}fr(pe)&&ps(pe.parent)&&x1(pe.parent.parent.parent)&&(ie=pe.parent.symbol,!ie)||st(pe,ie,Nt,Ce)}function Ye(we,yt,Nt,Ce,pt,pe,ie){D.assert(!ie||!!pt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:he,propertyName:j,name:We}=Nt,Ze=he.parent,Xe=ze(we,yt,Nt,pt.checker);if(!ie&&!Ce.includes(Xe))return;if(j?we===j?(Ze.moduleSpecifier||Ut(),pe&&pt.options.use!==2&&pt.markSeenReExportRHS(We)&&Et(We,D.checkDefined(Nt.symbol),pt)):pt.markSeenReExportRHS(we)&&Ut():pt.options.use===2&&We.escapedText==="default"||Ut(),!Hr(pt.options)||ie){const Sn=we.escapedText==="default"||Nt.name.escapedText==="default"?1:0,Er=D.checkDefined(Nt.symbol),ue=Tne(Er,Sn,pt.checker);ue&&H(we,Er,ue,pt)}if(Ce.comingFrom!==1&&Ze.moduleSpecifier&&!j&&!Hr(pt.options)){const cn=pt.checker.getExportSpecifierLocalTargetSymbol(Nt);cn&&Y(cn,pt)}function Ut(){pe&&Et(we,Xe,pt)}}function ze(we,yt,Nt,Ce){return Fe(we,Nt)&&Ce.getExportSpecifierLocalTargetSymbol(Nt)||yt}function Fe(we,yt){const{parent:Nt,propertyName:Ce,name:pt}=yt;return D.assert(Ce===we||pt===we),Ce?Ce===we:!Nt.parent.moduleSpecifier}function st(we,yt,Nt,Ce){const pt=V2e(we,yt,Ce.checker,Nt.comingFrom===1);if(!pt)return;const{symbol:pe}=pt;pt.kind===0?Hr(Ce.options)||Y(pe,Ce):H(we,pe,pt.exportInfo,Ce)}function Ct({flags:we,valueDeclaration:yt},Nt,Ce){const pt=Ce.checker.getShorthandAssignmentValueSymbol(yt),pe=yt&&ka(yt);!(we&33554432)&&pe&&Nt.includes(pt)&&Et(pe,pt,Ce)}function Et(we,yt,Nt){const{kind:Ce,symbol:pt}="kind"in yt?yt:{kind:void 0,symbol:yt};if(Nt.options.use===2&&we.kind===88)return;const pe=Nt.referenceAdder(pt);Nt.options.implementations?In(we,pe,Nt):pe(we,Ce)}function jt(we,yt,Nt,Ce){Cw(we)&&Et(we,Nt.symbol,Ce);const pt=()=>Ce.referenceAdder(Nt.symbol);if(di(we.parent))D.assert(we.kind===88||we.parent.name===we),at(Nt.symbol,yt,pt());else{const pe=Pn(we);pe&&(Qt(pe,pt()),jn(pe,Ce))}}function tt(we,yt,Nt){Et(we,yt.symbol,Nt);const Ce=we.parent;if(Nt.options.use===2||!di(Ce))return;D.assert(Ce.name===we);const pt=Nt.referenceAdder(yt.symbol);for(const pe of Ce.members)MA(pe)&&Ja(pe)&&pe.body&&pe.body.forEachChild(function ie(he){he.kind===108?pt(he):!Ka(he)&&!di(he)&&he.forEachChild(ie)})}function at(we,yt,Nt){const Ce=sn(we);if(Ce&&Ce.declarations)for(const pt of Ce.declarations){const pe=bs(pt,135,yt);D.assert(pt.kind===173&&!!pe),Nt(pe)}we.exports&&we.exports.forEach(pt=>{const pe=pt.valueDeclaration;if(pe&&pe.kind===171){const ie=pe.body;ie&&an(ie,108,he=>{Cw(he)&&Nt(he)})}})}function sn(we){return we.members&&we.members.get("__constructor")}function Qt(we,yt){const Nt=sn(we.symbol);if(Nt&&Nt.declarations)for(const Ce of Nt.declarations){D.assert(Ce.kind===173);const pt=Ce.body;pt&&an(pt,106,pe=>{nQ(pe)&&yt(pe)})}}function On(we){return!!sn(we.symbol)}function jn(we,yt){if(On(we))return;const Nt=we.symbol,Ce=yt.createSearch(void 0,Nt,void 0);L(Nt,yt,Ce)}function In(we,yt,Nt){if(mg(we)&&gi(we.parent)){yt(we);return}if(we.kind!==79)return;we.parent.kind===300&&Rn(we,Nt.checker,yt);const Ce=Zt(we);if(Ce){yt(Ce);return}const pt=nr(we,he=>!Cd(he.parent)&&!Gi(he.parent)&&!sT(he.parent)),pe=pt.parent;if(l3(pe)&&pe.type===pt&&Nt.markSeenContainingTypeReference(pe))if(wv(pe))ie(pe.initializer);else if(Ka(pe)&&pe.body){const he=pe.body;he.kind===238?_T(he,j=>{j.expression&&ie(j.expression)}):ie(he)}else lT(pe)&&ie(pe.expression);function ie(he){_r(he)&&yt(he)}}function Zt(we){return He(we)||Fr(we)?Zt(we.parent):xy(we)?ai(we.parent.parent,di):void 0}function _r(we){switch(we.kind){case 214:return _r(we.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function Ii(we,yt,Nt,Ce){if(we===yt)return!0;const pt=bo(we)+","+bo(yt),pe=Nt.get(pt);if(pe!==void 0)return pe;Nt.set(pt,!1);const ie=!!we.declarations&&we.declarations.some(he=>sk(he).some(j=>{const We=Ce.getTypeAtLocation(j);return!!We&&!!We.symbol&&Ii(We.symbol,yt,Nt,Ce)}));return Nt.set(pt,ie),ie}function $i(we){let yt=CN(we,!1);if(!yt)return;let Nt=32;switch(yt.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Nt&=Ov(yt),yt=yt.parent;break;default:return}const Ce=yt.getSourceFile(),pt=ia(me(Ce,"super",yt),pe=>{if(pe.kind!==106)return;const ie=CN(pe,!1);return ie&&Ja(ie)===!!Nt&&ie.parent.symbol===yt.symbol?Dh(pe):void 0});return[{definition:{type:0,symbol:yt.symbol},references:pt}]}function Qi(we){return we.kind===79&&we.parent.kind===166&&we.parent.name===we}function Or(we,yt,Nt){let Ce=Sd(we,!1,!1),pt=32;switch(Ce.kind){case 171:case 170:if(G_(Ce)){pt&=Ov(Ce),Ce=Ce.parent;break}case 169:case 168:case 173:case 174:case 175:pt&=Ov(Ce),Ce=Ce.parent;break;case 308:if(Zl(Ce)||Qi(we))return;case 259:case 215:break;default:return}const pe=ma(Ce.kind===308?yt:[Ce.getSourceFile()],he=>(Nt.throwIfCancellationRequested(),me(he,"this",qi(Ce)?he:Ce).filter(j=>{if(!tL(j))return!1;const We=Sd(j,!1,!1);if(!Rm(We))return!1;switch(Ce.kind){case 215:case 259:return Ce.symbol===We.symbol;case 171:case 170:return G_(Ce)&&Ce.symbol===We.symbol;case 228:case 260:case 207:return We.parent&&Rm(We.parent)&&Ce.symbol===We.parent.symbol&&Ja(We)===!!pt;case 308:return We.kind===308&&!Zl(We)&&!Qi(j)}}))).map(he=>Dh(he));return[{definition:{type:3,node:Kt(pe,he=>Ba(he.node.parent)?he.node:void 0)||we},references:pe}]}function At(we,yt,Nt,Ce){const pt=l9(we,Nt),pe=ma(yt,ie=>(Ce.throwIfCancellationRequested(),ia(me(ie,we.text),he=>{if(xs(he)&&he.text===we.text)if(pt){const j=l9(he,Nt);if(pt!==Nt.getStringType()&&pt===j)return Dh(he,2)}else return Ox(he)&&!xT(he,ie)?void 0:Dh(he,2)})));return[{definition:{type:4,node:we},references:pe}]}function vn(we,yt,Nt,Ce,pt,pe){const ie=[];return Wt(we,yt,Nt,Ce,!(Ce&&pt),(he,j,We)=>{We&&rr(we)!==rr(We)&&(We=void 0),ie.push(We||j||he)},()=>!pe),ie}function Wt(we,yt,Nt,Ce,pt,pe,ie){const he=B6(yt);if(he){const Sn=Nt.getShorthandAssignmentValueSymbol(yt.parent);if(Sn&&Ce)return pe(Sn,void 0,void 0,3);const Er=Nt.getContextualType(he.parent),ue=Er&&Kt(cB(he,Nt,Er,!0),K=>Ut(K,4));if(ue)return ue;const mt=de(yt,Nt),zt=mt&&pe(mt,void 0,void 0,4);if(zt)return zt;const it=Sn&&pe(Sn,void 0,void 0,3);if(it)return it}const j=s(yt,we,Nt);if(j){const Sn=pe(j,void 0,void 0,1);if(Sn)return Sn}const We=Ut(we);if(We)return We;if(we.valueDeclaration&&tf(we.valueDeclaration,we.valueDeclaration.parent)){const Sn=Nt.getSymbolsOfParameterPropertyDeclaration(ao(we.valueDeclaration,Ba),we.name);return D.assert(Sn.length===2&&!!(Sn[0].flags&1)&&!!(Sn[1].flags&4)),Ut(we.flags&1?Sn[1]:Sn[0])}const Ze=Al(we,278);if(!Ce||Ze&&!Ze.propertyName){const Sn=Ze&&Nt.getExportSpecifierLocalTargetSymbol(Ze);if(Sn){const Er=pe(Sn,void 0,void 0,1);if(Er)return Er}}if(!Ce){let Sn;return pt?Sn=x6(yt.parent)?S9(Nt,yt.parent):void 0:Sn=cn(we,Nt),Sn&&Ut(Sn,4)}if(D.assert(Ce),pt){const Sn=cn(we,Nt);return Sn&&Ut(Sn,4)}function Ut(Sn,Er){return Kt(Nt.getRootSymbols(Sn),ue=>pe(Sn,ue,void 0,Er)||(ue.parent&&ue.parent.flags&96&&ie(ue)?dn(ue.parent,ue.name,Nt,mt=>pe(Sn,ue,mt,Er)):void 0))}function cn(Sn,Er){const ue=Al(Sn,205);if(ue&&x6(ue))return S9(Er,ue)}}function dn(we,yt,Nt,Ce){const pt=new Map;return pe(we);function pe(ie){if(!(!(ie.flags&96)||!bp(pt,bo(ie))))return Kt(ie.declarations,he=>Kt(sk(he),j=>{const We=Nt.getTypeAtLocation(j),Ze=We&&We.symbol&&Nt.getPropertyOfType(We,yt);return We&&Ze&&(Kt(Nt.getRootSymbols(Ze),Ce)||pe(We.symbol))}))}}function rr(we){return we.valueDeclaration?!!(Fu(we.valueDeclaration)&32):!1}function cr(we,yt,Nt,Ce){const{checker:pt}=Ce;return Wt(yt,Nt,pt,!1,Ce.options.use!==2||!!Ce.options.providePrefixAndSuffixTextForRename,(pe,ie,he,j)=>(he&&rr(yt)!==rr(he)&&(he=void 0),we.includes(he||ie||pe)?{symbol:ie&&!(Il(pe)&6)?ie:pe,kind:j}:void 0),pe=>!(we.parents&&!we.parents.some(ie=>Ii(pe.parent,ie,Ce.inheritsFromCache,pt))))}function Pi(we,yt){let Nt=JT(we);const{declarations:Ce}=yt;if(Ce){let pt;do{pt=Nt;for(const pe of Ce){const ie=u6(pe);ie&Nt&&(Nt|=ie)}}while(Nt!==pt)}return Nt}e.getIntersectingMeaningFromDeclarations=Pi;function gi(we){return we.flags&16777216?!(id(we)||nm(we)):JA(we)?wv(we):Qs(we)?!!we.body:di(we)||mN(we)}function Rn(we,yt,Nt){const Ce=yt.getSymbolAtLocation(we),pt=yt.getShorthandAssignmentValueSymbol(Ce.valueDeclaration);if(pt)for(const pe of pt.getDeclarations())u6(pe)&1&&Nt(pe)}e.getReferenceEntriesForShorthandPropertyAssignment=Rn;function an(we,yt,Nt){Ma(we,Ce=>{Ce.kind===yt&&Nt(Ce),an(Ce,yt,Nt)})}function Pn(we){return Dq(n9(we).parent)}function Ar(we,yt,Nt){const Ce=eL(we)?we.parent:void 0,pt=Ce&&Nt.getTypeAtLocation(Ce.expression),pe=ia(pt&&(pt.isUnionOrIntersection()?pt.types:pt.symbol===yt.parent?void 0:[pt]),ie=>ie.symbol&&ie.symbol.flags&96?ie.symbol:void 0);return pe.length===0?void 0:pe}function Hr(we){return we.use===2&&we.providePrefixAndSuffixTextForRename}})(iS||(iS={}))}}),ul={};ne(ul,{Core:()=>iS,DefinitionKind:()=>Ine,EntryKind:()=>kne,ExportKind:()=>xne,FindReferencesUse:()=>wne,ImportExport:()=>Ane,createImportTracker:()=>Ene,findModuleReferences:()=>B2e,findReferenceOrRenameEntries:()=>sqe,findReferencedSymbols:()=>iqe,getContextNode:()=>$1,getExportInfo:()=>Tne,getImplementationsAtPosition:()=>oqe,getImportOrExportSymbol:()=>V2e,getReferenceEntriesForNode:()=>W2e,getTextSpanOfEntry:()=>Lne,isContextWithStartAndEndNode:()=>j2e,isDeclarationOfSymbol:()=>X2e,nodeEntry:()=>Dh,toContextSpan:()=>Cne,toHighlightSpan:()=>pqe,toReferenceEntry:()=>J2e,toRenameLocation:()=>cqe});var Y2e=C({"src/services/_namespaces/ts.FindAllReferences.ts"(){nqe(),hqe()}});function $2e(e,t,r,i,o){var s,c;const f=Z2e(t,r,e),d=f&&[Aqe(f.reference.fileName,f.fileName,f.unverified)]||rt;if(f!=null&&f.file)return d;const y=Df(t,r);if(y===t)return;const{parent:h}=y,E=e.getTypeChecker();if(y.kind===161||He(y)&&_5(h)&&h.tagName===y)return yqe(E,y)||rt;if(f6(y)){const k=r9(y.parent,y.text);return k?[Rne(E,k,"label",y.text,void 0)]:void 0}if(y.kind===105){const k=nr(y.parent,G=>kl(G)?"quit":Qs(G));return k?[iP(E,k)]:void 0}if(y.kind===133){const k=nr(y,V=>Qs(V));return k&&kt(k.modifiers,V=>V.kind===132)?[iP(E,k)]:void 0}if(y.kind===125){const k=nr(y,V=>Qs(V));return k&&k.asteriskToken?[iP(E,k)]:void 0}if(Px(y)&&kl(y.parent)){const k=y.parent.parent,{symbol:G,failedAliasResolution:V}=iU(k,E,o),H=lr(k.members,kl),te=G?E.symbolToString(G,k):"",X=y.getSourceFile();return Vt(H,Y=>{let{pos:P}=Zp(Y);return P=Jo(X.text,P),Rne(E,Y,"constructor","static {}",te,!1,V,{start:P,length:6})})}let{symbol:A,failedAliasResolution:L}=iU(y,E,o),I=y;if(i&&L){const k=Ue([y,...(A==null?void 0:A.declarations)||rt],V=>nr(V,Jde)),G=k&&UN(k);G&&({symbol:A,failedAliasResolution:L}=iU(G,E,o),I=G)}if(!A&&T9(I)){const k=(c=(s=t.resolvedModules)==null?void 0:s.get(I.text,Sp(t,I)))==null?void 0:c.resolvedModule;if(k)return[{name:I.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:wc(0,0),failedAliasResolution:L,isAmbient:fd(k.resolvedFileName),unverified:I!==y}]}if(!A)return ba(d,Tqe(y,E));if(i&&Yn(A.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const O=Lqe(E,y);if(O&&!(ed(y.parent)&&Iqe(O))){const k=iP(E,O,L);if(E.getRootSymbols(A).some(G=>gqe(G,O)))return[k];{const G=pL(E,A,y,L,O)||rt;return y.kind===106?[k,...G]:[...G,k]}}if(y.parent.kind===300){const k=E.getShorthandAssignmentValueSymbol(A.valueDeclaration),G=k!=null&&k.declarations?k.declarations.map(V=>Yw(V,E,k,y,!1,L)):rt;return ba(G,Q2e(E,y)||rt)}if(yl(y)&&ps(h)&&Hm(h.parent)&&y===(h.propertyName||h.name)){const k=S6(y),G=E.getTypeAtLocation(h.parent);return k===void 0?rt:ma(G.isUnion()?G.types:[G],V=>{const H=V.getProperty(k);return H&&pL(E,H,y)})}return ba(d,Q2e(E,y)||pL(E,A,y,L))}function gqe(e,t){var r;return e===t.symbol||e===t.symbol.parent||nd(t.parent)||!ux(t.parent)&&e===((r=ai(t.parent,Rm))==null?void 0:r.symbol)}function Q2e(e,t){const r=B6(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return ma(cB(r,e,i,!1),o=>pL(e,o,t))}}function yqe(e,t){const r=nr(t,Vc);if(!(r&&r.name))return;const i=nr(r,di);if(!i)return;const o=$p(i);if(!o)return;const s=js(o.expression),c=Uu(s)?s.symbol:e.getSymbolAtLocation(s);if(!c)return;const f=ta(HA(r.name)),d=gc(r)?e.getPropertyOfType(e.getTypeOfSymbol(c),f):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),f);if(d)return pL(e,d,t)}function Z2e(e,t,r){var i,o,s,c;const f=mL(e.referencedFiles,t);if(f){const h=r.getSourceFileFromReference(e,f);return h&&{reference:f,fileName:h.fileName,file:h,unverified:!1}}const d=mL(e.typeReferenceDirectives,t);if(d){const h=(i=r.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,E=h&&r.getSourceFile(h.resolvedFileName);return E&&{reference:d,fileName:E.fileName,file:E,unverified:!1}}const y=mL(e.libReferenceDirectives,t);if(y){const h=r.getLibFileFromReference(y);return h&&{reference:y,fileName:h.fileName,file:h,unverified:!1}}if((o=e.resolvedModules)!=null&&o.size()){const h=kw(e,t);if(T9(h)&&Uc(h.text)&&e.resolvedModules.has(h.text,Sp(e,h))){const E=(c=(s=e.resolvedModules.get(h.text,Sp(e,h)))==null?void 0:s.resolvedModule)==null?void 0:c.resolvedFileName,A=E||Ev(hi(e.fileName),h.text);return{file:r.getSourceFile(A),fileName:A,reference:{pos:h.getStart(),end:h.getEnd(),fileName:h.text},unverified:!E}}}}function vqe(e,t,r){const i=Df(t,r);if(i===t)return;if(qA(i.parent)&&i.parent.name===i)return Dne(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=iU(i,e,!1);if(!o)return;const c=e.getTypeOfSymbolAtLocation(o,i),f=bqe(o,c,e),d=f&&Dne(f,e,i,s),y=d&&d.length!==0?d:Dne(c,e,i,s);return y.length?y:!(o.flags&111551)&&o.flags&788968?pL(e,lf(o,e),i,s):void 0}function Dne(e,t,r,i){return ma(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&pL(t,o.symbol,r,i))}function bqe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ki(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(us(i))}}function Eqe(e,t,r){const i=$2e(e,t,r);if(!i||i.length===0)return;const o=mL(t.referencedFiles,r)||mL(t.typeReferenceDirectives,r)||mL(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:Jv(o)};const s=Df(t,r),c=wc(s.getStart(),s.getWidth());return{definitions:i,textSpan:c}}function Tqe(e,t){return ia(t.getIndexInfosAtLocation(e),r=>r.declaration&&iP(t,r.declaration))}function iU(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&Sqe(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Sqe(e,t){return e.kind!==79?!1:e.parent===t?!0:t.kind!==271}function xqe(e){if(!ak(e))return!1;const t=nr(e,r=>nd(r)?!0:ak(r)?!1:"quit");return!!t&&Ll(t)===5}function pL(e,t,r,i,o){const s=lr(t.declarations,E=>E!==o),c=lr(s,E=>!xqe(E)),f=kt(c)?c:s;return d()||y()||Vt(f,E=>Yw(E,e,t,r,!1,i));function d(){if(t.flags&32&&!(t.flags&19)&&(Cw(r)||r.kind===135)){const E=nn(s,di)||D.fail("Expected declaration to have at least one class-like declaration");return h(E.members,!0)}}function y(){return rQ(r)||cQ(r)?h(s,!1):void 0}function h(E,A){if(!E)return;const L=E.filter(A?ql:Ka),I=L.filter(O=>!!O.body);return L.length?I.length!==0?I.map(O=>Yw(O,e,t,r)):[Yw(zo(L),e,t,r,!1,i)]:void 0}}function Yw(e,t,r,i,o,s){const c=t.symbolToString(r),f=Oy.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return Rne(t,e,f,c,d,o,s)}function Rne(e,t,r,i,o,s,c,f){const d=t.getSourceFile();if(!f){const y=ka(t)||t;f=ad(y,d)}return{fileName:d.fileName,textSpan:f,kind:r,name:i,containerKind:void 0,containerName:o,...ul.toContextSpan(f,d,ul.getContextNode(t)),isLocal:!Nne(e,t),isAmbient:!!(t.flags&16777216),unverified:s,failedAliasResolution:c}}function Nne(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(wv(t.parent)&&t.parent.initializer===t)return Nne(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(Bd(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return Nne(e,t.parent);default:return!1}}function iP(e,t,r){return Yw(t,e,t.symbol,t,!1,r)}function mL(e,t){return nn(e,r=>qM(r,t))}function Aqe(e,t,r){return{fileName:t,textSpan:hc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Cqe(e){const t=nr(e,i=>!eL(i)),r=t==null?void 0:t.parent;return r&&ux(r)&&D3(r)===t?r:void 0}function Lqe(e,t){const r=Cqe(t),i=r&&e.getResolvedSignature(r);return ai(i&&i.declaration,o=>Ka(o)&&!Lh(o))}function Iqe(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}var kqe=C({"src/services/goToDefinition.ts"(){$r()}}),$w={};ne($w,{createDefinitionInfo:()=>Yw,findReferenceInPosition:()=>mL,getDefinitionAndBoundSpan:()=>Eqe,getDefinitionAtPosition:()=>$2e,getReferenceAtPosition:()=>Z2e,getTypeDefinitionAtPosition:()=>vqe});var wqe=C({"src/services/_namespaces/ts.GoToDefinition.ts"(){kqe()}});function Dqe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Rqe(e){return e.includeInlayParameterNameHints==="literals"}function Nqe(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,c=t.text,f=r.getCompilerOptions(),d=r.getTypeChecker(),y=[];return h(t),y;function h(me){if(!(!me||me.getFullWidth()===0)){switch(me.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:o.throwIfCancellationRequested()}if(JM(i,me.pos,me.getFullWidth())&&!(Gi(me)&&!xy(me)))return s.includeInlayVariableTypeHints&&Ki(me)||s.includeInlayPropertyDeclarationTypeHints&&to(me)?G(me):s.includeInlayEnumMemberValueHints&&B1(me)?O(me):Dqe(s)&&(no(me)||P1(me))?V(me):(s.includeInlayFunctionParameterTypeHints&&Qs(me)&&h7(me)&&de(me),s.includeInlayFunctionLikeReturnTypeHints&&E(me)&&Y(me)),Ma(me,h)}}function E(me){return Js(me)||Bs(me)||yc(me)||ac(me)||q_(me)}function A(me,ve,Se){y.push({text:`${Se?"...":""}${ye(me,aU)}:`,position:ve,kind:"Parameter",whitespaceAfter:!0})}function L(me,ve){y.push({text:`: ${ye(me,aU)}`,position:ve,kind:"Type",whitespaceBefore:!0})}function I(me,ve){y.push({text:`= ${ye(me,aU)}`,position:ve,kind:"Enum",whitespaceBefore:!0})}function O(me){if(me.initializer)return;const ve=d.getConstantValue(me);ve!==void 0&&I(ve.toString(),me.end)}function k(me){return me.symbol&&me.symbol.flags&1536}function G(me){if(!me.initializer||Xa(me.name)||Ki(me)&&!ce(me)||Zc(me))return;const Se=d.getTypeAtLocation(me);if(k(Se))return;const ee=ae(Se);if(ee){if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&$S(me.name.getText(),ee))return;L(ee,me.name.end)}}function V(me){const ve=me.arguments;if(!ve||!ve.length)return;const Se=[],ee=d.getResolvedSignatureForSignatureHelp(me,Se);if(!(!ee||!Se.length))for(let Qe=0;Qe<ve.length;++Qe){const je=ve[Qe],Ge=js(je);if(Rqe(s)&&!X(Ge))continue;const qe=d.getParameterIdentifierNameAtPosition(ee,Qe);if(qe){const[Oe,Me]=qe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!H(Ge,Oe))&&!Me)continue;const ze=ta(Oe);if(te(Ge,ze))continue;A(ze,je.getStart(),Me)}}}function H(me,ve){return He(me)?me.text===ve:Fr(me)?me.name.text===ve:!1}function te(me,ve){if(!M_(ve,f.target,pO(t.scriptKind)))return!1;const Se=mh(c,me.pos);if(!(Se!=null&&Se.length))return!1;const ee=eAe(ve);return kt(Se,Qe=>ee.test(c.substring(Qe.pos,Qe.end)))}function X(me){switch(me.kind){case 221:{const ve=me.operand;return oT(ve)||He(ve)&&Pk(ve.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const ve=me.escapedText;return W(ve)||Pk(ve)}}return oT(me)}function Y(me){if(Js(me)&&!bs(me,20,t)||vp(me)||!me.body)return;const Se=d.getSignatureFromDeclaration(me);if(!Se)return;const ee=d.getReturnTypeOfSignature(Se);if(k(ee))return;const Qe=ae(ee);Qe&&L(Qe,P(me))}function P(me){const ve=bs(me,21,t);return ve?ve.end:me.parameters.end}function de(me){const ve=d.getSignatureFromDeclaration(me);if(ve)for(let Se=0;Se<me.parameters.length&&Se<ve.parameters.length;++Se){const ee=me.parameters[Se];if(!ce(ee)||Zc(ee))continue;const je=re(ve.parameters[Se]);je&&L(je,ee.questionToken?ee.questionToken.end:ee.name.end)}}function re(me){const ve=me.valueDeclaration;if(!ve||!Ba(ve))return;const Se=d.getTypeOfSymbolAtLocation(me,ve);if(!k(Se))return ae(Se)}function ye(me,ve){return me.length>ve?me.substr(0,ve-3)+"...":me}function ae(me){const Se=J1();return YI(ee=>{const Qe=d.typeToTypeNode(me,void 0,71286784);D.assertIsDefined(Qe,"should always get typenode"),Se.writeNode(4,Qe,t,ee)})}function W(me){return me==="undefined"}function ce(me){if((bT(me)||Ki(me)&&fg(me))&&me.initializer){const ve=js(me.initializer);return!(X(ve)||P1(ve)||Ls(ve)||lT(ve))}return!0}}var aU,eAe,Oqe=C({"src/services/inlayHints.ts"(){$r(),aU=30,eAe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),One={};ne(One,{provideInlayHints:()=>Nqe});var Pqe=C({"src/services/_namespaces/ts.InlayHints.ts"(){Oqe()}});function Mqe(e,t){const r=[];return DQ(e,i=>{for(const o of Bqe(i)){const s=qm(o)&&o.tags&&nn(o.tags,f=>f.kind===330&&(f.tagName.escapedText==="inheritDoc"||f.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||qm(o)&&i.kind!==349&&i.kind!==341&&o.tags&&o.tags.some(f=>f.kind===349||f.kind===341)&&!o.tags.some(f=>f.kind===344||f.kind===345))continue;let c=o.comment?g2(o.comment,t):[];s&&s.comment&&(c=c.concat(g2(s.comment,t))),jr(r,c,Fqe)||r.push(c)}}),is(la(r,[aL()]))}function Fqe(e,t){return Zo(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Bqe(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return rq(e)}}function Gqe(e,t){const r=[];return DQ(e,i=>{const o=m1(i);if(!(o.some(s=>s.kind===349||s.kind===341)&&!o.some(s=>s.kind===344||s.kind===345)))for(const s of o)r.push({name:s.tagName.text,text:Uqe(s,t)})}),r}function g2(e,t){return typeof e=="string"?[Rf(e)]:ma(e,r=>r.kind===324?[Rf(r.text)]:tbe(r,t))}function Uqe(e,t){const{comment:r,kind:i}=e,o=Vqe(i);switch(i){case 352:const f=e.typeExpression;return f?s(f):r===void 0?void 0:g2(r,t);case 332:return s(e.class);case 331:return s(e.class);case 348:const d=e,y=[];if(d.constraint&&y.push(Rf(d.constraint.getText())),Ae(d.typeParameters)){Ae(y)&&y.push(bl());const E=d.typeParameters[d.typeParameters.length-1];Ue(d.typeParameters,A=>{y.push(o(A.getText())),E!==A&&y.push(Tu(27),bl())})}return r&&y.push(bl(),...g2(r,t)),y;case 347:case 353:return s(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:h}=e;return h?s(h):r===void 0?void 0:g2(r,t);default:return r===void 0?void 0:g2(r,t)}function s(f){return c(f.getText())}function c(f){return r?f.match(/^https?$/)?[Rf(f),...g2(r,t)]:[o(f),bl(),...g2(r,t)]:[Rf(f)]}}function Vqe(e){switch(e){case 344:return Y0e;case 351:return $0e;case 348:return Z0e;case 349:case 341:return Q0e;default:return Rf}}function jqe(){return nAe||(nAe=Vt(Mne,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:h2.SortText.LocationPriority})))}function Hqe(){return rAe||(rAe=Vt(Mne,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:h2.SortText.LocationPriority})))}function tAe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Rf(e)],documentation:rt,tags:void 0,codeActions:void 0}}function Wqe(e){if(!He(e.name))return rt;const t=e.name.text,r=e.parent,i=r.parent;return Ka(i)?ia(i.parameters,o=>{if(!He(o.name))return;const s=o.name.text;if(!(r.tags.some(c=>c!==e&&am(c)&&He(c.name)&&c.name.escapedText===s)||t!==void 0&&!xa(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:h2.SortText.LocationPriority}}):[]}function zqe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Rf(e)],documentation:rt,tags:void 0,codeActions:void 0}}function qqe(e,t,r,i){const o=aa(t,r),s=nr(o,qm);if(s&&(s.comment!==void 0||Ae(s.tags)))return;const c=o.getStart(t);if(!s&&c<r)return;const f=Yqe(o,i);if(!f)return;const{commentOwner:d,parameters:y,hasReturn:h}=f,E=xf(d)&&d.jsDoc?d.jsDoc:void 0,A=tl(E);if(d.getStart(t)<r||A&&s&&A!==s)return;const L=Jqe(t,r),I=Ix(t.fileName),O=(y?Kqe(y||[],I,L,e):"")+(h?Xqe(L,e):""),k="/**",G=" */",V=(E||[]).some(H=>!!H.tags);if(O&&!V){const H=k+e+L+" * ",te=c===r?e+L:"";return{newText:H+e+O+L+G+te,caretOffset:H.length}}return{newText:k+G,caretOffset:3}}function Jqe(e,t){const{text:r}=e,i=S_(t,e);let o=i;for(;o<=t&&Dm(r.charCodeAt(o));o++);return r.slice(i,o)}function Kqe(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},c)=>{const f=o.kind===79?o.text:"param"+c;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${f}${i}`}).join("")}function Xqe(e,t){return`${e} * @returns${t}`}function Yqe(e,t){return Dde(e,r=>Pne(r,t))}function Pne(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:aP(r,t)};case 299:return Pne(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const o=e;return o.type&&Lh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:aP(o.type,t)}:{commentOwner:e}}case 240:{const s=e.declarationList.declarations,c=s.length===1&&s[0].initializer?$qe(s[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:aP(c,t)}:{commentOwner:e}}case 308:return"quit";case 264:return e.parent.kind===264?void 0:{commentOwner:e};case 241:return Pne(e.expression,t);case 223:{const o=e;return Ll(o)===0?"quit":Ka(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:aP(o.right,t)}:{commentOwner:e}}case 169:const i=e.initializer;if(i&&(Bs(i)||Js(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:aP(i,t)}}}function aP(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Lh(e)||Js(e)&&vt(e.body)||Qs(e)&&e.body&&lo(e.body)&&!!_T(e.body,r=>r))}function $qe(e){for(;e.kind===214;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return nn(e.members,ql)}}var Mne,nAe,rAe,iAe,Qqe=C({"src/services/jsDoc.ts"(){$r(),Mne=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],iAe=tAe}}),pb={};ne(pb,{getDocCommentTemplateAtPosition:()=>qqe,getJSDocParameterNameCompletionDetails:()=>zqe,getJSDocParameterNameCompletions:()=>Wqe,getJSDocTagCompletionDetails:()=>tAe,getJSDocTagCompletions:()=>Hqe,getJSDocTagNameCompletionDetails:()=>iAe,getJSDocTagNameCompletions:()=>jqe,getJsDocCommentsFromDeclarations:()=>Mqe,getJsDocTagsFromDeclarations:()=>Gqe});var Zqe=C({"src/services/_namespaces/ts.JsDoc.ts"(){Qqe()}});function eJe(e,t,r,i,o,s){const c=gr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),f=s==="SortAndCombine"||s==="All",d=f,y=s==="RemoveUnused"||s==="All",h=Fne(e,e.statements.filter(zc)),E=gJe(o,f?()=>sAe(h,o)===2:void 0),A=I=>(y&&(I=nJe(I,e,i)),d&&(I=aAe(I,E,e)),f&&(I=ly(I,(O,k)=>jne(O,k,E))),I);if(h.forEach(I=>L(I,A)),s!=="RemoveUnused"){const I=e.statements.filter(eu);L(I,O=>Bne(O,E))}for(const I of e.statements.filter(Mu)){if(!I.body)continue;if(Fne(e,I.body.statements.filter(zc)).forEach(k=>L(k,A)),s!=="RemoveUnused"){const k=I.body.statements.filter(eu);L(k,G=>Bne(G,E))}}return c.getChanges();function L(I,O){if(Ae(I)===0)return;C9(I[0]);const k=d?SI(I,H=>oP(H.moduleSpecifier)):[I],G=f?ly(k,(H,te)=>Une(H[0].moduleSpecifier,te[0].moduleSpecifier,E)):k,V=ma(G,H=>oP(H[0].moduleSpecifier)?O(H):H);if(V.length===0)c.deleteNodes(e,I,{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include},!0);else{const H={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include,suffix:ub(r,t.options)};c.replaceNodeWithNodes(e,I[0],V,H);const te=c.nodeHasTrailingComment(e,I[0],H);c.deleteNodes(e,I.slice(1),{trailingTriviaOption:gr.TrailingTriviaOption.Include},te)}}}function Fne(e,t){const r=fy(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&tJe(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function tJe(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenPos()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function nJe(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),f=!!(t.transformFlags&2),d=[];for(const h of e){const{importClause:E,moduleSpecifier:A}=h;if(!E){d.push(h);continue}let{name:L,namedBindings:I}=E;if(L&&!y(L)&&(L=void 0),I)if(Uv(I))y(I.name)||(I=void 0);else{const O=I.elements.filter(k=>y(k.name));O.length<I.elements.length&&(I=O.length?N.updateNamedImports(I,O):void 0)}L||I?d.push(Qw(h,L,I)):rJe(t,A)&&(t.isDeclarationFile?d.push(N.createImportDeclaration(h.modifiers,void 0,A,void 0)):d.push(h))}return d;function y(h){return f&&(h.text===s||c&&h.text===c)&&ZQ(o.jsx)||ul.Core.isSymbolReferencedInFile(h,i,t)}}function rJe(e,t){const r=Vo(t)&&t.text;return Ha(r)&&kt(e.moduleAugmentations,i=>Vo(i)&&i.text===r)}function oP(e){return e!==void 0&&xs(e)?e.text:void 0}function iJe(e,t,r){const i=oU(t);return aAe(e,i,r)}function aAe(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:o,regularImports:s}=aJe(e),c=[];i&&c.push(i);for(const f of[s,o]){const d=f===o,{defaultImports:y,namespaceImports:h,namedImports:E}=f;if(!d&&y.length===1&&h.length===1&&E.length===0){const te=y[0];c.push(Qw(te,te.importClause.name,h[0].importClause.namedBindings));continue}const A=ly(h,(te,X)=>t(te.importClause.namedBindings.name.text,X.importClause.namedBindings.name.text));for(const te of A)c.push(Qw(te,void 0,te.importClause.namedBindings));const L=Yc(y),I=Yc(E),O=L??I;if(!O)continue;let k;const G=[];if(y.length===1)k=y[0].importClause.name;else for(const te of y)G.push(N.createImportSpecifier(!1,N.createIdentifier("default"),te.importClause.name));G.push(..._Je(E));const V=N.createNodeArray(oAe(G,t),I==null?void 0:I.importClause.namedBindings.elements.hasTrailingComma),H=V.length===0?k?void 0:N.createNamedImports(rt):I?N.updateNamedImports(I.importClause.namedBindings,V):N.createNamedImports(V);r&&H&&(I!=null&&I.importClause.namedBindings)&&!xT(I.importClause.namedBindings,r)&&or(H,2),d&&k&&H?(c.push(Qw(O,k,void 0)),c.push(Qw(I??O,void 0,H))):c.push(Qw(O,k,H))}return c}function aJe(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:c,namedBindings:f}=o.importClause;c&&s.defaultImports.push(o),f&&(Uv(f)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function oJe(e,t){const r=oU(t);return Bne(e,r)}function Bne(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=c(e),s=[];r&&s.push(r);for(const f of[i,o]){if(f.length===0)continue;const d=[];d.push(...ma(f,E=>E.exportClause&&K_(E.exportClause)?E.exportClause.elements:rt));const y=oAe(d,t),h=f[0];s.push(N.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,h.exportClause&&(K_(h.exportClause)?N.updateNamedExports(h.exportClause,y):N.updateNamespaceExport(h.exportClause,h.exportClause.name)),h.moduleSpecifier,h.assertClause))}return s;function c(f){let d;const y=[],h=[];for(const E of f)E.exportClause===void 0?d=d||E:E.isTypeOnly?h.push(E):y.push(E);return{exportWithoutClause:d,namedExports:y,typeOnlyExports:h}}}function Qw(e,t,r){return N.updateImportDeclaration(e,e.modifiers,N.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function oAe(e,t){return ly(e,(r,i)=>Gne(r,i,t))}function Gne(e,t,r){return s1(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function sJe(e,t,r){const i=oU(!!r);return Une(e,t,i)}function Une(e,t,r){const i=e===void 0?void 0:oP(e),o=t===void 0?void 0:oP(t);return s1(i===void 0,o===void 0)||s1(Uc(i),Uc(o))||r(i,o)}function Vne(e){var t;switch(e.kind){case 268:return(t=ai(e.moduleReference,zm))==null?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function lJe(e,t){return sAe(Fne(e,e.statements.filter(zc)),t)}function sAe(e,t){const r=y2(t,!1),i=y2(t,!0);let o=3,s=!1;for(const c of e){if(c.length>1){const d=aM(c,y=>{var h,E;return(E=(h=ai(y.moduleSpecifier,Vo))==null?void 0:h.text)!=null?E:""},r,i);if(d&&(o&=d,s=!0),!o)return o}const f=nn(c,d=>{var y,h;return((h=ai((y=d.importClause)==null?void 0:y.namedBindings,Ay))==null?void 0:h.elements.length)>1});if(f){const d=Hne(f.importClause.namedBindings.elements,t);if(d&&(o&=d,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function cJe(e,t){const r=y2(t,!1),i=y2(t,!0);return aM(e,o=>oP(Vne(o))||"",r,i)}function uJe(e,t,r){const i=vv(e,t,ml,(o,s)=>jne(o,s,r));return i<0?~i:i}function dJe(e,t,r){const i=vv(e,t,ml,(o,s)=>Gne(o,s,r));return i<0?~i:i}function jne(e,t,r){return Une(Vne(e),Vne(t),r)||fJe(e,t)}function fJe(e,t){return Ws(lAe(e),lAe(t))}function lAe(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===271?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function _Je(e){return ma(e,t=>Vt(pJe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?N.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function pJe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Ay(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function oU(e){return e?Cce:Ou}function mJe(e,t){var r,i,o;const s=hJe(t),c=(r=t.organizeImportsCaseFirst)!=null?r:!1,f=(i=t.organizeImportsNumericCollation)!=null?i:!1,d=(o=t.organizeImportsAccentCollation)!=null?o:!0,y=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:c||"false",sensitivity:y,numeric:f}).compare}function hJe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Lce()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function y2(e,t){var r;return((r=e.organizeImportsCollation)!=null?r:"ordinal")==="unicode"?mJe(t,e):oU(t)}function gJe(e,t){var r;const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(r=t==null?void 0:t())!=null?r:!1;return y2(e,i)}var cAe,Hne,yJe=C({"src/services/organizeImports.ts"(){$r(),cAe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},Hne=xce((e,t)=>{if(!pce(e,(o,s)=>s1(o.isTypeOnly,s.isTypeOnly)))return 0;const r=y2(t,!1),i=y2(t,!0);return aM(e,o=>o.name.text,r,i)},new cAe)}}),Q_={};ne(Q_,{coalesceExports:()=>oJe,coalesceImports:()=>iJe,compareImportOrExportSpecifiers:()=>Gne,compareImportsOrRequireStatements:()=>jne,compareModuleSpecifiers:()=>sJe,detectImportDeclarationSorting:()=>cJe,detectImportSpecifierSorting:()=>Hne,detectSorting:()=>lJe,getImportDeclarationInsertionIndex:()=>uJe,getImportSpecifierInsertionIndex:()=>dJe,getOrganizeImportsComparer:()=>y2,organizeImports:()=>eJe});var vJe=C({"src/services/_namespaces/ts.OrganizeImports.ts"(){yJe()}});function bJe(e,t){const r=[];return EJe(e,t,r),TJe(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function EJe(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],c=s.length;for(;o<c;){for(;o<c&&!fT(s[o]);)f(s[o]),o++;if(o===c)break;const d=o;for(;o<c&&fT(s[o]);)f(s[o]),o++;const y=o-1;y!==d&&r.push(sP(bs(s[d],100,e).getStart(e),s[y].getEnd(),"imports"))}function f(d){var y;if(i===0)return;t.throwIfCancellationRequested(),(vu(d)||uc(d)||Ep(d)||ug(d)||d.kind===1)&&dAe(d,e,t,r),Ka(d)&&br(d.parent)&&Fr(d.parent.left)&&dAe(d.parent.left,e,t,r),(lo(d)||rm(d))&&Wne(d.statements.end,e,t,r),(di(d)||id(d))&&Wne(d.members.end,e,t,r);const h=SJe(d,e);h&&r.push(h),i--,no(d)?(i++,f(d.expression),i--,d.arguments.forEach(f),(y=d.typeArguments)==null||y.forEach(f)):wT(d)&&d.elseStatement&&wT(d.elseStatement)?(f(d.expression),f(d.thenStatement),i++,f(d.elseStatement),i--):d.forEachChild(f),i++}}function TJe(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),c=e.text.substring(o,s),f=uAe(c);if(!(!f||wy(e,o)))if(f[1]){const d=r.pop();d&&(d.textSpan.length=s-d.textSpan.start,d.hintSpan.length=s-d.textSpan.start,t.push(d))}else{const d=hc(e.text.indexOf("//",o),s);r.push(aS(d,"region",d,!1,f[2]||"#region"))}}}function uAe(e){return e=CI(e),xa(e,"//")?(e=c1(e.slice(2)),fAe.exec(e)):null}function Wne(e,t,r,i){const o=mh(t.text,e);if(!o)return;let s=-1,c=-1,f=0;const d=t.getFullText();for(const{kind:h,pos:E,end:A}of o)switch(r.throwIfCancellationRequested(),h){case 2:const L=d.slice(E,A);if(uAe(L)){y(),f=0;break}f===0&&(s=E),c=A,f++;break;case 3:y(),i.push(sP(E,A,"comment")),f=0;break;default:D.assertNever(h)}y();function y(){f>1&&i.push(sP(s,c,"comment"))}}function dAe(e,t,r,i){Nx(e)||Wne(e.pos,t,r,i)}function sP(e,t,r){return aS(hc(e,t),r)}function SJe(e,t){switch(e.kind){case 238:if(Ka(e.parent))return xJe(e.parent,e,t);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return h(e.parent);case 255:const L=e.parent;if(L.tryBlock===e)return h(e.parent);if(L.finallyBlock===e){const I=bs(L,96,t);if(I)return h(I)}default:return aS(ad(e,t),"code")}case 265:return h(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return h(e);case 186:return h(e,!1,!CC(e.parent),22);case 292:case 293:return E(e.statements);case 207:return y(e);case 206:return y(e,22);case 281:return s(e);case 285:return c(e);case 282:case 283:return f(e.attributes);case 225:case 14:return d(e);case 204:return h(e,!1,!ps(e.parent),22);case 216:return o(e);case 210:return i(e);case 214:return A(e);case 272:case 276:case 296:return r(e)}function r(L){if(!L.elements.length)return;const I=bs(L,18,t),O=bs(L,19,t);if(!(!I||!O||y_(I.pos,O.pos,t)))return sU(I,O,L,t,!1,!1)}function i(L){if(!L.arguments.length)return;const I=bs(L,20,t),O=bs(L,21,t);if(!(!I||!O||y_(I.pos,O.pos,t)))return sU(I,O,L,t,!1,!0)}function o(L){if(lo(L.body)||Ud(L.body)||y_(L.body.getFullStart(),L.body.getEnd(),t))return;const I=hc(L.body.getFullStart(),L.body.getEnd());return aS(I,"code",ad(L))}function s(L){const I=hc(L.openingElement.getStart(t),L.closingElement.getEnd()),O=L.openingElement.tagName.getText(t),k="<"+O+">...</"+O+">";return aS(I,"code",I,!1,k)}function c(L){const I=hc(L.openingFragment.getStart(t),L.closingFragment.getEnd());return aS(I,"code",I,!1,"<>...</>")}function f(L){if(L.properties.length!==0)return sP(L.getStart(t),L.getEnd(),"code")}function d(L){if(!(L.kind===14&&L.text.length===0))return sP(L.getStart(t),L.getEnd(),"code")}function y(L,I=18){return h(L,!1,!Gu(L.parent)&&!no(L.parent),I)}function h(L,I=!1,O=!0,k=18,G=k===18?19:23){const V=bs(e,k,t),H=bs(e,G,t);return V&&H&&sU(V,H,L,t,I,O)}function E(L){return L.length?aS(Jv(L),"code"):void 0}function A(L){if(y_(L.getStart(),L.getEnd(),t))return;const I=hc(L.getStart(),L.getEnd());return aS(I,"code",ad(L))}}function xJe(e,t,r){const i=AJe(e,t,r),o=bs(t,19,r);return i&&o&&sU(i,o,e,r,e.kind!==216)}function sU(e,t,r,i,o=!1,s=!0){const c=hc(s?e.getFullStart():e.getStart(i),t.getEnd());return aS(c,"code",ad(r,i),o)}function aS(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function AJe(e,t,r){if(l_e(e.parameters,r)){const i=bs(e,20,r);if(i)return i}return bs(t,18,r)}var fAe,CJe=C({"src/services/outliningElementsCollector.ts"(){$r(),fAe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),zne={};ne(zne,{collectElements:()=>bJe});var LJe=C({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){CJe()}});function xg(e,t){lU.set(e,t)}function IJe(e){return Ro(d_(lU.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((r=t.kinds)!=null&&r.some(i=>Qv(i,e.kind)))?void 0:t.getAvailableActions(e)}))}function kJe(e,t,r){const i=lU.get(t);return i&&i.getEditsForAction(e,r)}var lU,wJe=C({"src/services/refactorProvider.ts"(){$r(),Nh(),lU=new Map}});function _Ae(e,t=!0){const{file:r,program:i}=e,o=a2(e),s=aa(r,o.start),c=s.parent&&Ov(s.parent)&1&&t?s.parent:A6(s,r,o);if(!c||!qi(c.parent)&&!(rm(c.parent)&&Mu(c.parent.parent)))return{error:No(_.Could_not_find_export_statement)};const f=i.getTypeChecker(),d=MJe(c.parent,f),y=Ov(c)||(Gl(c)&&!c.isExportEquals?1025:0),h=!!(y&1024);if(!(y&1)||!h&&d.exports.has("default"))return{error:No(_.This_file_already_has_a_default_export)};const E=A=>He(A)&&f.getSymbolAtLocation(A)?void 0:{error:No(_.Can_only_convert_named_export)};switch(c.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const A=c;return A.name?E(A.name)||{exportNode:A,exportName:A.name,wasDefault:h,exportingModuleSymbol:d}:void 0}case 240:{const A=c;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;const L=us(A.declarationList.declarations);return L.initializer?(D.assert(!h,"Can't have a default flag here"),E(L.name)||{exportNode:A,exportName:L.name,wasDefault:h,exportingModuleSymbol:d}):void 0}case 274:{const A=c;return A.isExportEquals?void 0:E(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:h,exportingModuleSymbol:d}}default:return}}function DJe(e,t,r,i,o){RJe(e,r,i,t.getTypeChecker()),NJe(t,r,i,o)}function RJe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Gl(r)&&!r.isExportEquals){const c=r.expression,f=pAe(c.text,c.text);o.replaceNode(e,r,N.createExportDeclaration(void 0,!1,N.createNamedExports([f])))}else o.delete(e,D.checkDefined(rL(r,88),"Should find a default keyword in modifier list"));else{const c=D.checkDefined(rL(r,93),"Should find an export keyword in modifier list");switch(r.kind){case 259:case 260:case 261:o.insertNodeAfter(e,c,N.createToken(88));break;case 240:const f=us(r.declarationList.declarations);if(!ul.Core.isSymbolReferencedInFile(i,s,e)&&!f.type){o.replaceNode(e,r,N.createExportDefault(D.checkDefined(f.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:o.deleteModifier(e,c),o.insertNodeAfter(e,r,N.createExportDefault(N.createIdentifier(i.text)));break;default:D.fail(`Unexpected exportNode kind ${r.kind}`)}}}function NJe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const c=e.getTypeChecker(),f=D.checkDefined(c.getSymbolAtLocation(r),"Export name should resolve to a symbol");ul.Core.eachExportReference(e.getSourceFiles(),c,s,f,i,r.text,t,d=>{if(r===d)return;const y=d.getSourceFile();t?OJe(y,d,o,r.text):PJe(y,d,o)})}function OJe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 208:r.replaceNode(e,t,N.createIdentifier(i));break;case 273:case 278:{const c=o;r.replaceNode(e,c,qne(i,c.name.text));break}case 270:{const c=o;D.assert(c.name===t,"Import clause name should match provided ref");const f=qne(i,t.text),{namedBindings:d}=c;if(!d)r.replaceNode(e,t,N.createNamedImports([f]));else if(d.kind===271){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const y=Vo(c.parent.moduleSpecifier)?kQ(c.parent.moduleSpecifier,e):1,h=Ry(void 0,[qne(i,t.text)],c.parent.moduleSpecifier,y);r.insertNodeAfter(e,c.parent,h)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,f);break}case 202:const s=o;r.replaceNode(e,o,N.createImportTypeNode(s.argument,s.assertions,N.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:D.failBadSyntaxKind(o)}}function PJe(e,t,r){const i=t.parent;switch(i.kind){case 208:r.replaceNode(e,t,N.createIdentifier("default"));break;case 273:{const o=N.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 278:{r.replaceNode(e,i,pAe("default",i.name.text));break}default:D.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function qne(e,t){return N.createImportSpecifier(!1,e===t?void 0:N.createIdentifier(e),N.createIdentifier(t))}function pAe(e,t){return N.createExportSpecifier(!1,e===t?void 0:N.createIdentifier(e),N.createIdentifier(t))}function MJe(e,t){if(qi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&b1(r.valueDeclaration)?t.getMergedSymbol(r):r}var cU,lP,cP,FJe=C({"src/services/refactors/convertExport.ts"(){$r(),Nh(),cU="Convert export",lP={name:"Convert default export to named export",description:_.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},cP={name:"Convert named export to default export",description:_.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},xg(cU,{kinds:[lP.kind,cP.kind],getAvailableActions:function(t){const r=_Ae(t,t.triggerReason==="invoked");if(!r)return rt;if(!Rh(r)){const i=r.wasDefault?lP:cP;return[{name:cU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:cU,description:_.Convert_default_export_to_named_export.message,actions:[{...lP,notApplicableReason:r.error},{...cP,notApplicableReason:r.error}]}]:rt},getEditsForAction:function(t,r){D.assert(r===lP.name||r===cP.name,"Unexpected action name");const i=_Ae(t);return D.assert(i&&!Rh(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,s=>DJe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function mAe(e,t=!0){const{file:r}=e,i=a2(e),o=aa(r,i.start),s=t?nr(o,zc):A6(o,r,i);if(!s||!zc(s))return{error:"Selection is not an import declaration."};const c=i.start+i.length,f=XT(s,s.parent,r);if(f&&c>f.getStart())return;const{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===271?{convertTo:0,import:d.namedBindings}:hAe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:No(_.Could_not_find_namespace_import_or_named_imports)}:{error:No(_.Could_not_find_import_clause)}}function hAe(e,t){return AT(e.getCompilerOptions())&&VJe(t.parent.moduleSpecifier,e.getTypeChecker())}function BJe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?GJe(e,o,r,i.import,AT(t.getCompilerOptions())):yAe(e,t,r,i.import,i.convertTo===1)}function GJe(e,t,r,i,o){let s=!1;const c=[],f=new Map;ul.Core.eachSymbolReferenceInFile(i.name,t,e,E=>{if(!mde(E.parent))s=!0;else{const A=gAe(E.parent).text;t.resolveName(A,E,67108863,!0)&&f.set(A,!0),D.assert(UJe(E.parent)===E,"Parent expression should match id"),c.push(E.parent)}});const d=new Map;for(const E of c){const A=gAe(E).text;let L=d.get(A);L===void 0&&d.set(A,L=f.has(A)?QT(A,e):A),r.replaceNode(e,E,N.createIdentifier(L))}const y=[];d.forEach((E,A)=>{y.push(N.createImportSpecifier(!1,E===A?void 0:N.createIdentifier(A),N.createIdentifier(E)))});const h=i.parent.parent;s&&!o?r.insertNodeAfter(e,h,Jne(h,void 0,y)):r.replaceNode(e,h,Jne(h,s?N.createIdentifier(i.name.text):void 0,y))}function gAe(e){return Fr(e)?e.name:e.right}function UJe(e){return Fr(e)?e.expression:e.left}function yAe(e,t,r,i,o=hAe(t,i.parent)){const s=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:f}=c,d=new Set;i.elements.forEach(I=>{const O=s.getSymbolAtLocation(I.name);O&&d.add(O)});const y=f&&Vo(f)?Wu.moduleSpecifierToValidIdentifier(f.text,99):"module";function h(I){return!!ul.Core.eachSymbolReferenceInFile(I.name,s,e,O=>{const k=s.resolveName(y,O,67108863,!0);return k?d.has(k)?dd(O.parent):!0:!1})}const A=i.elements.some(h)?QT(y,e):y,L=new Set;for(const I of i.elements){const O=(I.propertyName||I.name).text;ul.Core.eachSymbolReferenceInFile(I.name,s,e,k=>{const G=N.createPropertyAccessExpression(N.createIdentifier(A),O);t_(k.parent)?r.replaceNode(e,k.parent,N.createPropertyAssignment(k.text,G)):dd(k.parent)?L.add(I):r.replaceNode(e,k,G)})}if(r.replaceNode(e,i,o?N.createIdentifier(A):N.createNamespaceImport(N.createIdentifier(A))),L.size){const I=Ro(L.values(),O=>N.createImportSpecifier(O.isTypeOnly,O.propertyName&&N.createIdentifier(O.propertyName.text),N.createIdentifier(O.name.text)));r.insertNodeAfter(e,i.parent.parent,Jne(c,void 0,I))}}function VJe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Jne(e,t,r){return N.createImportDeclaration(void 0,N.createImportClause(!1,t,r&&r.length?N.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var uU,uP,jJe=C({"src/services/refactors/convertImport.ts"(){$r(),Nh(),uU="Convert import",uP={0:{name:"Convert namespace import to named imports",description:_.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:_.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:_.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},xg(uU,{kinds:YS(uP).map(e=>e.kind),getAvailableActions:function(t){const r=mAe(t,t.triggerReason==="invoked");if(!r)return rt;if(!Rh(r)){const i=uP[r.convertTo];return[{name:uU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?YS(uP).map(i=>({name:uU,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):rt},getEditsForAction:function(t,r){D.assert(kt(YS(uP),s=>s.name===r),"Unexpected action name");const i=mAe(t);return D.assert(i&&!Rh(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,s=>BJe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function vAe(e,t=!0){const{file:r,startPosition:i}=e,o=td(r),s=aa(r,i),c=p9(a2(e)),f=c.pos===c.end&&t,d=nr(s,L=>L.parent&&Gi(L)&&!mb(c,L.parent,r)&&(f||dQ(s,r,c.pos,c.end)));if(!d||!Gi(d))return{error:No(_.Selection_is_not_a_valid_type_node)};const y=e.program.getTypeChecker(),h=JJe(d,o);if(h===void 0)return{error:No(_.No_type_could_be_extracted_from_this_type_node)};const E=HJe(y,d,h,r);if(!E)return{error:No(_.No_type_could_be_extracted_from_this_type_node)};const A=Kne(y,d);return{isJS:o,selection:d,enclosingNode:h,typeParameters:E,typeElements:A}}function Kne(e,t){if(t)if(JO(t)){const r=[],i=new Map;for(const o of t.types){const s=Kne(e,o);if(!s||!s.every(c=>c.name&&bp(i,S6(c.name))))return;Ti(r,s)}return r}else{if(Bx(t))return Kne(e,t.type);if(cf(t))return t.members}}function mb(e,t,r){return m6(e,Jo(r.text,t.pos),t.end)}function HJe(e,t,r,i){const o=[];return s(t)?void 0:o;function s(c){if(J_(c)){if(He(c.typeName)){const f=c.typeName,d=e.resolveName(f.text,f,262144,!0);for(const y of(d==null?void 0:d.declarations)||rt)if(Bl(y)&&y.getSourceFile()===i){if(y.name.escapedText===f.escapedText&&mb(y,t,i))return!0;if(mb(r,y,i)&&!mb(t,y,i)){f_(o,y);break}}}}else if(IC(c)){const f=nr(c,d=>LC(d)&&mb(d.extendsType,c,i));if(!f||!mb(t,f,i))return!0}else if(a5(c)||o5(c)){const f=nr(c.parent,Ka);if(f&&f.type&&mb(f.type,c,i)&&!mb(t,f,i))return!0}else if(qk(c)){if(He(c.exprName)){const f=e.resolveName(c.exprName.text,c.exprName,111551,!1);if(f!=null&&f.valueDeclaration&&mb(r,f.valueDeclaration,i)&&!mb(t,f.valueDeclaration,i))return!0}else if(TT(c.exprName.left)&&!mb(t,c.parent,i))return!0}return i&&CC(c)&&ol(i,c.pos).line===ol(i,c.end).line&&or(c,1),Ma(c,s)}}function WJe(e,t,r,i){const{enclosingNode:o,selection:s,typeParameters:c}=i,f=N.createTypeAliasDeclaration(void 0,r,c.map(d=>N.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),s);e.insertNodeBefore(t,o,WJ(f),!0),e.replaceNode(t,s,N.createTypeReferenceNode(r,c.map(d=>N.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function zJe(e,t,r,i){var o;const{enclosingNode:s,selection:c,typeParameters:f,typeElements:d}=i,y=N.createInterfaceDeclaration(void 0,r,f,void 0,d);ht(y,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,WJ(y),!0),e.replaceNode(t,c,N.createTypeReferenceNode(r,f.map(h=>N.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function qJe(e,t,r,i,o){var s;const{enclosingNode:c,selection:f,typeParameters:d}=o;or(f,7168);const y=N.createJSDocTypedefTag(N.createIdentifier("typedef"),N.createJSDocTypeExpression(f),N.createIdentifier(i)),h=[];Ue(d,A=>{const L=NA(A),I=N.createTypeParameterDeclaration(void 0,A.name),O=N.createJSDocTemplateTag(N.createIdentifier("template"),L&&ao(L,OT),[I]);h.push(O)});const E=N.createJSDocComment(void 0,N.createNodeArray(ba(h,[y])));if(qm(c)){const A=c.getStart(r),L=ub(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,c.getStart(r),E,{suffix:L+L+r.text.slice(BQ(r.text,A-1),A)})}else e.insertNodeBefore(r,c,E,!0);e.replaceNode(r,f,N.createTypeReferenceNode(i,d.map(A=>N.createTypeReferenceNode(A.name,void 0))))}function JJe(e,t){return nr(e,wa)||(t?nr(e,qm):void 0)}var dU,dP,fP,_P,KJe=C({"src/services/refactors/extractType.ts"(){$r(),Nh(),dU="Extract type",dP={name:"Extract to type alias",description:No(_.Extract_to_type_alias),kind:"refactor.extract.type"},fP={name:"Extract to interface",description:No(_.Extract_to_interface),kind:"refactor.extract.interface"},_P={name:"Extract to typedef",description:No(_.Extract_to_typedef),kind:"refactor.extract.typedef"},xg(dU,{kinds:[dP.kind,fP.kind,_P.kind],getAvailableActions:function(t){const r=vAe(t,t.triggerReason==="invoked");return r?Rh(r)?t.preferences.provideRefactorNotApplicableReason?[{name:dU,description:No(_.Extract_type),actions:[{..._P,notApplicableReason:r.error},{...dP,notApplicableReason:r.error},{...fP,notApplicableReason:r.error}]}]:rt:[{name:dU,description:No(_.Extract_type),actions:r.isJS?[_P]:Fn([dP],r.typeElements&&fP)}]:rt},getEditsForAction:function(t,r){const{file:i}=t,o=vAe(t);D.assert(o&&!Rh(o),"Expected to find a range to extract");const s=QT("NewType",i),c=gr.ChangeTracker.with(t,y=>{switch(r){case dP.name:return D.assert(!o.isJS,"Invalid actionName/JS combo"),WJe(y,i,s,o);case _P.name:return D.assert(o.isJS,"Invalid actionName/JS combo"),qJe(y,t,i,s,o);case fP.name:return D.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),zJe(y,i,s,o);default:D.fail("Unexpected action name")}}),f=i.fileName,d=k6(c,f,s,!1);return{edits:c,renameFilename:f,renameLocation:d}}})}});function Rh(e){return e.error!==void 0}function Qv(e,t){return t?e.substr(0,t.length)===t:!0}var XJe=C({"src/services/refactors/helpers.ts"(){}});function YJe(e){const{file:t}=e,r=p9(a2(e)),{statements:i}=t,o=mi(i,f=>f.end>r.pos);if(o===-1)return;const s=i[o];if(gu(s)&&s.name&&uf(s.name,r))return{toMove:[i[o]],afterLast:i[o+1]};if(r.pos>s.getStart(t))return;const c=mi(i,f=>f.end>r.end,o);if(!(c!==-1&&(c===0||i[c].getStart(t)<r.end)))return{toMove:i.slice(o,c===-1?i.length:c),afterLast:c===-1?void 0:i[c]}}function $Je(e,t,r,i,o,s){const c=t.getTypeChecker(),f=pKe(e,r.all,c),d=hi(e.fileName),y=xO(e.fileName),h=Bi(d,fKe(_Ke(f.oldFileImportsFromNewFile,f.movedSymbols),y,d,o))+y;i.createNewFile(e,h,tKe(e,f,i,r,t,o,h,s)),eKe(t,i,e.fileName,h,Z0(o))}function bAe(e){const t=YJe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return rH(o,QJe,(c,f)=>{for(let d=c;d<f;d++)r.push(o[d]);i.push({first:o[c],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function QJe(e){return!ZJe(e)&&!yp(e)}function ZJe(e){switch(e.kind){case 269:return!0;case 268:return!Yr(e,1);case 240:return e.declarationList.declarations.every(t=>!!t.initializer&&xd(t.initializer,!0));default:return!1}}function eKe(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const c=qo(Bi(r,"..",i)),f=XR(s.fileName,c,o),d=s.statements[0]&&ai(s.statements[0].expression,Ls),y=d&&nn(d.properties,h=>qc(h)&&Vo(h.name)&&h.name.text==="files");y&&Gu(y.initializer)&&t.insertNodeInListAfter(s,zo(y.initializer.elements),N.createStringLiteral(f),y.initializer.elements)}function tKe(e,t,r,i,o,s,c,f){const d=o.getTypeChecker(),y=mM(e.statements,yp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByNewFile.size()===0)return EAe(e,i.ranges,r),[...y,...i.all];const h=!!e.externalModuleIndicator,E=Ap(e,f),A=sKe(e,t.oldFileImportsFromNewFile,c,o,s,h,E);A&&x9(r,e,A,!0,f),nKe(e,i.all,r,t.unusedImportsFromOldFile,d),EAe(e,i.ranges,r),rKe(r,o,s,e,t.movedSymbols,c);const L=dKe(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,d,o,s,h,E),I=lKe(e,i.all,t.oldFileImportsFromNewFile,h);return L.length&&I.length?[...y,...L,4,...I]:[...y,...L,...I]}function EAe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function nKe(e,t,r,i,o){for(const s of e.statements)jr(t,s)||Xne(s,c=>AAe(e,c,r,f=>i.has(o.getSymbolAtLocation(f))))}function rKe(e,t,r,i,o,s){const c=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const d of f.statements)Xne(d,y=>{if(c.getSymbolAtLocation(TAe(y))!==i.symbol)return;const h=O=>{const k=ps(O.parent)?S9(c,O.parent):lf(c.getSymbolAtLocation(O),c);return!!k&&o.has(k)};AAe(f,y,e,h);const E=Ev(hi(i.path),s),A=rF(t.getCompilerOptions(),f,f.path,E,i2(t,r)),L=IAe(y,N.createStringLiteral(A),h);L&&e.insertNodeAfter(f,d,L);const I=iKe(y);I&&aKe(e,f,c,o,A,I,y)})}function iKe(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===271?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return ai(e.name,He);default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function aKe(e,t,r,i,o,s,c){const f=Wu.moduleSpecifierToValidIdentifier(o,99);let d=!1;const y=[];if(ul.Core.eachSymbolReferenceInFile(s,r,t,h=>{Fr(h.parent)&&(d=d||!!r.resolveName(f,h,67108863,!0),i.has(r.getSymbolAtLocation(h.parent.name))&&y.push(h))}),y.length){const h=d?QT(f,t):f;for(const E of y)e.replaceNode(t,E,N.createIdentifier(h));e.insertNodeAfter(t,c,oKe(c,f,o))}}function oKe(e,t,r){const i=N.createIdentifier(t),o=N.createStringLiteral(r);switch(e.kind){case 269:return N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamespaceImport(i)),o,void 0);case 268:return N.createImportEqualsDeclaration(void 0,!1,i,N.createExternalModuleReference(o));case 257:return N.createVariableDeclaration(i,void 0,void 0,Yne(o));default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function TAe(e){return e.kind===269?e.moduleSpecifier:e.kind===268?e.moduleReference.expression:e.initializer.arguments[0]}function Xne(e,t){if(zc(e))Vo(e.moduleSpecifier)&&t(e);else if(su(e))zm(e.moduleReference)&&xs(e.moduleReference.expression)&&t(e);else if(uc(e))for(const r of e.declarationList.declarations)r.initializer&&xd(r.initializer,!0)&&t(r)}function sKe(e,t,r,i,o,s,c){let f;const d=[];return t.forEach(y=>{y.escapedName==="default"?f=N.createIdentifier(b9(y)):d.push(y.name)}),SAe(e,f,d,r,i,o,s,c)}function SAe(e,t,r,i,o,s,c,f){const d=Ev(hi(e.path),i),y=rF(o.getCompilerOptions(),e,e.path,d,i2(o,s));if(c){const h=r.map(E=>N.createImportSpecifier(!1,void 0,N.createIdentifier(E)));return z0e(t,h,y,f)}else{D.assert(!t,"No default import should exist");const h=r.map(E=>N.createBindingElement(void 0,void 0,E));return h.length?xAe(N.createObjectBindingPattern(h),void 0,Yne(N.createStringLiteral(y))):void 0}}function xAe(e,t,r,i=2){return N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(e,void 0,t,r)],i))}function Yne(e){return N.createCallExpression(N.createIdentifier("require"),void 0,[e])}function lKe(e,t,r,i){return ma(t,o=>{if(yKe(o)&&!PAe(e,o,i)&&RAe(o,s=>{var c;return r.has(D.checkDefined((c=ai(s,Rm))==null?void 0:c.symbol))})){const s=EKe(o,i);if(s)return s}return o})}function AAe(e,t,r,i){switch(t.kind){case 269:cKe(e,t,r,i);break;case 268:i(t.name)&&r.delete(e,t);break;case 257:uKe(e,t,r,i);break;default:D.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function cKe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,c=!o||i(o),f=!s||(s.kind===271?i(s.name):s.elements.length!==0&&s.elements.every(d=>i(d.name)));if(c&&f)r.delete(e,t);else if(o&&c&&r.delete(e,o),s){if(f)r.replaceNode(e,t.importClause,N.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===272)for(const d of s.elements)i(d.name)&&r.delete(e,d)}}function uKe(e,t,r,i){const{name:o}=t;switch(o.kind){case 79:i(o)&&(t.initializer&&xd(t.initializer,!0)?r.delete(e,Vu(t.parent)&&Ae(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 204:break;case 203:if(o.elements.every(s=>He(s.name)&&i(s.name)))r.delete(e,Vu(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)He(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function dKe(e,t,r,i,o,s,c,f,d){const y=[];for(const L of e.statements)Xne(L,I=>{Fn(y,IAe(I,TAe(I),O=>t.has(o.getSymbolAtLocation(O))))});let h;const E=[],A=nL();return r.forEach(L=>{if(L.declarations)for(const I of L.declarations){if(!wAe(I))continue;const O=vKe(I);if(!O)continue;const k=OAe(I);A(k)&&bKe(e,k,O,i,f),Yr(I,1024)?h=O:E.push(O.text)}}),Fn(y,SAe(e,h,E,mu(e.fileName),s,c,f,d)),y}function fKe(e,t,r,i){let o=e;for(let s=1;;s++){const c=Bi(r,o+t);if(!i.fileExists(c))return o;o=`${e}.${s}`}}function _Ke(e,t){return e.forEachEntry(b9)||t.forEachEntry(b9)||"newFile"}function pKe(e,t,r){const i=new eD,o=new eD,s=new eD,c=nn(t,E=>!!(E.transformFlags&2)),f=h(c);f&&o.add(f);for(const E of t)RAe(E,A=>{i.add(D.checkDefined(ou(A)?r.getSymbolAtLocation(A.expression.left):A.symbol,"Need a symbol here"))});for(const E of t)kAe(E,r,A=>{if(A.declarations)for(const L of A.declarations)CAe(L)?o.add(A):wAe(L)&&gKe(L)===e&&!i.has(A)&&s.add(A)});const d=o.clone(),y=new eD;for(const E of e.statements)jr(t,E)||(f&&E.transformFlags&2&&d.delete(f),kAe(E,r,A=>{i.has(A)&&y.add(A),d.delete(A)}));return{movedSymbols:i,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:y,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:d};function h(E){if(E===void 0)return;const A=r.getJsxNamespace(E),L=r.resolveName(A,E,1920,!0);return L&&kt(L.declarations,CAe)?L:void 0}}function CAe(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return LAe(e);case 205:return Ki(e.parent.parent)&&LAe(e.parent.parent);default:return!1}}function LAe(e){return qi(e.parent.parent.parent)&&!!e.initializer&&xd(e.initializer,!0)}function IAe(e,t,r){switch(e.kind){case 269:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&mKe(i.namedBindings,r);return o||s?N.createImportDeclaration(void 0,N.createImportClause(i.isTypeOnly,o,s),t,void 0):void 0}case 268:return r(e.name)?e:void 0;case 257:{const i=hKe(e.name,r);return i?xAe(i,e.type,Yne(t),e.parent.flags):void 0}default:return D.assertNever(e,`Unexpected import kind ${e.kind}`)}}function mKe(e,t){if(e.kind===271)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?N.createNamedImports(r):void 0}}function hKe(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{const r=e.elements.filter(i=>i.propertyName||!He(i.name)||t(i.name));return r.length?N.createObjectBindingPattern(r):void 0}}}function kAe(e,t,r){e.forEachChild(function i(o){if(He(o)&&!mg(o)){const s=t.getSymbolAtLocation(o);s&&r(s)}else o.forEachChild(i)})}function wAe(e){return DAe(e)&&qi(e.parent)||Ki(e)&&qi(e.parent.parent.parent)}function gKe(e){return Ki(e)?e.parent.parent.parent:e.parent}function yKe(e){return D.assert(qi(e.parent),"Node parent should be a SourceFile"),DAe(e)||uc(e)}function DAe(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function RAe(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return Kt(e.declarationList.declarations,r=>NAe(r.name,t));case 241:{const{expression:r}=e;return br(r)&&Ll(r)===1?t(e):void 0}}}function NAe(e,t){switch(e.kind){case 79:return t(ao(e.parent,r=>Ki(r)||ps(r)));case 204:case 203:return Kt(e.elements,r=>Rc(r)?void 0:NAe(r.name,t));default:return D.assertNever(e,`Unexpected name kind ${e.kind}`)}}function vKe(e){return ou(e)?ai(e.expression.left.name,He):ai(e.name,He)}function OAe(e){switch(e.kind){case 257:return e.parent.parent;case 205:return OAe(ao(e.parent.parent,t=>Ki(t)||ps(t)));default:return e}}function bKe(e,t,r,i,o){if(!PAe(e,t,o,r))if(o)ou(t)||i.insertExportModifier(e,t);else{const s=$ne(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(MAe))}}function PAe(e,t,r,i){var o;return r?!ou(t)&&Yr(t,1)||!!(i&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&$ne(t).some(s=>e.symbol.exports.has(sl(s)))}function EKe(e,t){return t?[TKe(e)]:SKe(e)}function TKe(e){const t=X_(e)?ba([N.createModifier(93)],iT(e)):void 0;switch(e.kind){case 259:return N.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const r=Yx(e)?xv(e):void 0;return N.updateClassDeclaration(e,ba(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return N.updateVariableStatement(e,t,e.declarationList);case 264:return N.updateModuleDeclaration(e,t,e.name,e.body);case 263:return N.updateEnumDeclaration(e,t,e.name,e.members);case 262:return N.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return N.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return N.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return D.fail();default:return D.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function SKe(e){return[e,...$ne(e).map(MAe)]}function $ne(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return ia(e.declarationList.declarations,t=>He(t.name)?t.name.text:void 0);case 264:case 263:case 262:case 261:case 268:return rt;case 241:return D.fail("Can't export an ExpressionStatement");default:return D.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function MAe(e){return N.createExpressionStatement(N.createBinaryExpression(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e)),63,N.createIdentifier(e)))}var Zw,fU,_U,eD,xKe=C({"src/services/refactors/moveToNewFile.ts"(){Dge(),$r(),Nh(),Zw="Move to a new file",fU=No(_.Move_to_a_new_file),_U={name:Zw,description:fU,kind:"refactor.move.newFile"},xg(Zw,{kinds:[_U.kind],getAvailableActions:function(t){const r=bAe(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:Zw,description:fU,actions:[_U]}]:t.preferences.provideRefactorNotApplicableReason?[{name:Zw,description:fU,actions:[{..._U,notApplicableReason:No(_.Selection_is_not_a_valid_statement_or_statements)}]}]:rt},getEditsForAction:function(t,r){D.assert(r===Zw,"Wrong refactor invoked");const i=D.checkDefined(bAe(t));return{edits:gr.ChangeTracker.with(t,s=>$Je(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}}),eD=class{constructor(){this.map=new Map}add(e){this.map.set(String(bo(e)),e)}has(e){return this.map.has(String(bo(e)))}delete(e){this.map.delete(String(bo(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return af(this.map,e)}clone(){const e=new eD;return yN(this.map,e.map),e}size(){return this.map.size}}}});function AKe(e){const{file:t,startPosition:r,program:i}=e;return BAe(t,r,i)?[{name:pU,description:Qne,actions:[Zne]}]:rt}function CKe(e){const{file:t,startPosition:r,program:i}=e,o=BAe(t,r,i);if(!o)return;const s=i.getTypeChecker(),c=o[o.length-1];let f=c;switch(c.kind){case 170:{f=N.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,y(o),c.type);break}case 171:{f=N.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,y(o),c.type,c.body);break}case 176:{f=N.updateCallSignature(c,c.typeParameters,y(o),c.type);break}case 173:{f=N.updateConstructorDeclaration(c,c.modifiers,y(o),c.body);break}case 177:{f=N.updateConstructSignature(c,c.typeParameters,y(o),c.type);break}case 259:{f=N.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,y(o),c.type,c.body);break}default:return D.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(f===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,o[0],o[o.length-1],f)})};function y(A){const L=A[A.length-1];return Qs(L)&&L.body&&(A=A.slice(0,A.length-1)),N.createNodeArray([N.createParameterDeclaration(void 0,N.createToken(25),"args",void 0,N.createUnionTypeNode(Vt(A,h)))])}function h(A){const L=Vt(A.parameters,E);return or(N.createTupleTypeNode(L),kt(L,I=>!!Ae(EC(I)))?0:1)}function E(A){D.assert(He(A.name));const L=ht(N.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||N.createKeywordTypeNode(131)),A),I=A.symbol&&A.symbol.getDocumentationComment(s);if(I){const O=G1e(I);O.length&&O1(L,[{text:`* ${O.split(` `).map(k=>` * ${k}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return L}}function FAe(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function BAe(e,t,r){const i=aa(e,t),o=nr(i,FAe);if(!o||Qs(o)&&o.body&&_6(o.body,t))return;const s=r.getTypeChecker(),c=o.symbol;if(!c)return;const f=c.declarations;if(Ae(f)<=1||!Yn(f,A=>Zn(A)===e)||!FAe(f[0]))return;const d=f[0].kind;if(!Yn(f,A=>A.kind===d))return;const y=f;if(kt(y,A=>!!A.typeParameters||kt(A.parameters,L=>!!L.modifiers||!He(L.name))))return;const h=ia(y,A=>s.getSignatureFromDeclaration(A));if(Ae(h)!==Ae(f))return;const E=s.getReturnTypeOfSignature(h[0]);if(Yn(h,A=>s.getReturnTypeOfSignature(A)===E))return y}var pU,Qne,Zne,LKe=C({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){$r(),Nh(),pU="Convert overload list to single signature",Qne=_.Convert_overload_list_to_single_signature.message,Zne={name:pU,description:Qne,kind:"refactor.rewrite.function.overloadList"},xg(pU,{kinds:[Zne.kind],getEditsForAction:CKe,getAvailableActions:AKe})}});function IKe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=GAe(t,r,i==="invoked");return o?Rh(o)?e.preferences.provideRefactorNotApplicableReason?[{name:mU,description:ere,actions:[{...pP,notApplicableReason:o.error},{...tD,notApplicableReason:o.error}]}]:rt:[{name:mU,description:ere,actions:[o.addBraces?pP:tD]}]:rt}function kKe(e,t){const{file:r,startPosition:i}=e,o=GAe(r,i);D.assert(o&&!Rh(o),"Expected applicable refactor info");const{expression:s,returnStatement:c,func:f}=o;let d;if(t===pP.name){const h=N.createReturnStatement(s);d=N.createBlock([h],!0),oL(s,h,r,3,!0)}else if(t===tD.name&&c){const h=s||N.createVoidZero();d=jQ(h)?N.createParenthesizedExpression(h):h,w6(c,d,r,3,!1),oL(c,d,r,3,!1),Ow(c,d,r,3,!1)}else D.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,h=>{h.replaceNode(r,f.body,d)})}}function GAe(e,t,r=!0,i){const o=aa(e,t),s=Cf(o);if(!s)return{error:No(_.Could_not_find_a_containing_arrow_function)};if(!Js(s))return{error:No(_.Containing_function_is_not_an_arrow_function)};if(!(!uf(s,o)||uf(s.body,o)&&!r)){if(Qv(pP.kind,i)&&vt(s.body))return{func:s,addBraces:!0,expression:s.body};if(Qv(tD.kind,i)&&lo(s.body)&&s.body.statements.length===1){const c=us(s.body.statements);if(Ep(c))return{func:s,addBraces:!1,expression:c.expression,returnStatement:c}}}}var mU,ere,pP,tD,wKe=C({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){$r(),Nh(),mU="Add or remove braces in an arrow function",ere=_.Add_or_remove_braces_in_an_arrow_function.message,pP={name:"Add braces to arrow function",description:_.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},tD={name:"Remove braces from arrow function",description:_.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},xg(mU,{kinds:[tD.kind],getEditsForAction:kKe,getAvailableActions:IKe})}}),DKe={},RKe=C({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){LKe(),wKe()}});function NKe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=VAe(t,r,i);if(!s)return rt;const{selectedVariableDeclaration:c,func:f}=s,d=[],y=[];if(Qv(rD.kind,o)){const h=c||Js(f)&&Ki(f.parent)?void 0:No(_.Could_not_convert_to_named_function);h?y.push({...rD,notApplicableReason:h}):d.push(rD)}if(Qv(nD.kind,o)){const h=!c&&Js(f)?void 0:No(_.Could_not_convert_to_anonymous_function);h?y.push({...nD,notApplicableReason:h}):d.push(nD)}if(Qv(iD.kind,o)){const h=Bs(f)?void 0:No(_.Could_not_convert_to_arrow_function);h?y.push({...iD,notApplicableReason:h}):d.push(iD)}return[{name:tre,description:WAe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?y:d}]}function OKe(e,t){const{file:r,startPosition:i,program:o}=e,s=VAe(r,i,o);if(!s)return;const{func:c}=s,f=[];switch(t){case nD.name:f.push(...BKe(e,c));break;case rD.name:const d=FKe(c);if(!d)return;f.push(...GKe(e,c,d));break;case iD.name:if(!Bs(c))return;f.push(...UKe(e,c));break;default:return D.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:f}}function UAe(e){let t=!1;return e.forEachChild(function r(i){if(tL(i)){t=!0;return}!di(i)&&!yc(i)&&!Bs(i)&&Ma(i,r)}),t}function VAe(e,t,r){const i=aa(e,t),o=r.getTypeChecker(),s=MKe(e,o,i.parent);if(s&&!UAe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const c=Cf(i);if(c&&(Bs(c)||Js(c))&&!uf(c.body,i)&&!UAe(c.body)&&!o.containsArgumentsReference(c))return Bs(c)&&HAe(e,o,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function PKe(e){return Ki(e)||Vu(e)&&e.declarations.length===1}function MKe(e,t,r){if(!PKe(r))return;const o=(Ki(r)?r:us(r.declarations)).initializer;if(o&&(Js(o)||Bs(o)&&!HAe(e,t,o)))return o}function jAe(e){if(vt(e)){const t=N.createReturnStatement(e),r=e.getSourceFile();return ht(t,e),Wd(t),w6(e,t,r,void 0,!0),N.createBlock([t],!0)}else return e}function FKe(e){const t=e.parent;if(!Ki(t)||!x3(t))return;const r=t.parent,i=r.parent;if(!(!Vu(r)||!uc(i)||!He(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function BKe(e,t){const{file:r}=e,i=jAe(t.body),o=N.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return gr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function GKe(e,t,r){const{file:i}=e,o=jAe(t.body),{variableDeclaration:s,variableDeclarationList:c,statement:f,name:d}=r;C9(f);const y=py(s)&1|Fu(t),h=N.createModifiersFromModifierFlags(y),E=N.createFunctionDeclaration(Ae(h)?h:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return c.declarations.length===1?gr.ChangeTracker.with(e,A=>A.replaceNode(i,f,E)):gr.ChangeTracker.with(e,A=>{A.delete(i,s),A.insertNodeAfter(i,f,E)})}function UKe(e,t){const{file:r}=e,o=t.body.statements[0];let s;VKe(t.body,o)?(s=o.expression,Wd(s),$T(o,s)):s=t.body;const c=N.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,N.createToken(38),s);return gr.ChangeTracker.with(e,f=>f.replaceNode(r,t,c))}function VKe(e,t){return e.statements.length===1&&Ep(t)&&!!t.expression}function HAe(e,t,r){return!!r.name&&ul.Core.isSymbolReferencedInFile(r.name,t,e)}var tre,WAe,nD,rD,iD,jKe=C({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){$r(),Nh(),tre="Convert arrow function or function expression",WAe=No(_.Convert_arrow_function_or_function_expression),nD={name:"Convert to anonymous function",description:No(_.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},rD={name:"Convert to named function",description:No(_.Convert_to_named_function),kind:"refactor.rewrite.function.named"},iD={name:"Convert to arrow function",description:No(_.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},xg(tre,{kinds:[nD.kind,rD.kind,iD.kind],getEditsForAction:OKe,getAvailableActions:NKe})}}),HKe={},WKe=C({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){jKe()}});function zKe(e){const{file:t,startPosition:r}=e;return td(t)||!JAe(t,r,e.program.getTypeChecker())?rt:[{name:hP,description:are,actions:[ore]}]}function qKe(e,t){D.assert(t===hP,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:c}=e,f=JAe(r,i,o.getTypeChecker());if(!f||!s)return;const d=KKe(f,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,h=>JKe(r,o,c,h,f,d))}:{edits:[]}}function JKe(e,t,r,i,o,s){const c=s.signature,f=Vt($Ae(o,t,r),h=>Dl(h));if(c){const h=Vt($Ae(c,t,r),E=>Dl(E));y(c,h)}y(o,f);const d=AR(s.functionCalls,(h,E)=>Ws(h.pos,E.pos));for(const h of d)if(h.arguments&&h.arguments.length){const E=Dl(iXe(o,h.arguments),!0);i.replaceNodeRange(Zn(h),us(h.arguments),zo(h.arguments),E,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}function y(h,E){i.replaceNodeRangeWithNodes(e,us(h.parameters),zo(h.parameters),E,{joiner:", ",indentation:0,leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}}function KKe(e,t,r){const i=oXe(e),o=ql(e)?aXe(e):[],s=xA([...i,...o],H0),c=t.getTypeChecker(),f=ma(s,E=>ul.getReferenceEntriesForNode(-1,E,t,t.getSourceFiles(),r)),d=y(f);return Yn(d.declarations,E=>jr(s,E))||(d.valid=!1),d;function y(E){const A={accessExpressions:[],typeUsages:[]},L={functionCalls:[],declarations:[],classReferences:A,valid:!0},I=Vt(i,h),O=Vt(o,h),k=ql(e),G=Vt(i,V=>nre(V,c));for(const V of E){if(V.kind===ul.EntryKind.Span){L.valid=!1;continue}if(jr(G,h(V.node))){if(QKe(V.node.parent)){L.signature=V.node.parent;continue}const te=qAe(V);if(te){L.functionCalls.push(te);continue}}const H=nre(V.node,c);if(H&&jr(G,H)){const te=rre(V);if(te){L.declarations.push(te);continue}}if(jr(I,h(V.node))||Cw(V.node)){if(zAe(V))continue;const X=rre(V);if(X){L.declarations.push(X);continue}const Y=qAe(V);if(Y){L.functionCalls.push(Y);continue}}if(k&&jr(O,h(V.node))){if(zAe(V))continue;const X=rre(V);if(X){L.declarations.push(X);continue}const Y=XKe(V);if(Y){A.accessExpressions.push(Y);continue}if(Nc(e.parent)){const P=YKe(V);if(P){A.typeUsages.push(P);continue}}}L.valid=!1}return L}function h(E){const A=c.getSymbolAtLocation(E);return A&&rbe(A,c)}}function nre(e,t){const r=B6(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(Il(o)&6))return o}}function zAe(e){const t=e.node;if(Ld(t.parent)||Wm(t.parent)||su(t.parent)||Uv(t.parent)||dd(t.parent)||Gl(t.parent))return t}function rre(e){if(vu(e.node.parent))return e.node}function qAe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 210:case 211:const i=ai(r,ug);if(i&&i.expression===t)return i;break;case 208:const o=ai(r,Fr);if(o&&o.parent&&o.name===t){const c=ai(o.parent,ug);if(c&&c.expression===o)return c}break;case 209:const s=ai(r,cl);if(s&&s.parent&&s.argumentExpression===t){const c=ai(s.parent,ug);if(c&&c.expression===s)return c}break}}}function XKe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 208:const i=ai(r,Fr);if(i&&i.expression===t)return i;break;case 209:const o=ai(r,cl);if(o&&o.expression===t)return o;break}}}function YKe(e){const t=e.node;if(JT(t)===2||cO(t.parent))return t}function JAe(e,t,r){const i=kw(e,t),o=sfe(i);if(!$Ke(i)&&o&&ZKe(o,r)&&uf(o,i)&&!(o.body&&uf(o.body,i)))return o}function $Ke(e){const t=nr(e,GA);if(t){const r=nr(t,i=>!GA(i));return!!r&&Qs(r)}return!1}function QKe(e){return Ch(e)&&(id(e.parent)||cf(e.parent))}function ZKe(e,t){var r;if(!eXe(e.parameters,t))return!1;switch(e.kind){case 259:return KAe(e)&&mP(e,t);case 171:if(Ls(e.parent)){const i=nre(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&mP(e,t)}return mP(e,t);case 173:return Nc(e.parent)?KAe(e.parent)&&mP(e,t):XAe(e.parent.parent)&&mP(e,t);case 215:case 216:return XAe(e.parent)}return!1}function mP(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function KAe(e){return e.name?!0:!!rL(e,88)}function eXe(e,t){return nXe(e)>=QAe&&Yn(e,r=>tXe(r,t))}function tXe(e,t){if(yh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&He(e.name)}function XAe(e){return Ki(e)&&fg(e)&&He(e.name)&&!e.type}function ire(e){return e.length>0&&tL(e[0].name)}function nXe(e){return ire(e)?e.length-1:e.length}function YAe(e){return ire(e)&&(e=N.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function rXe(e,t){return He(t)&&V_(t)===e?N.createShorthandPropertyAssignment(e):N.createPropertyAssignment(e,t)}function iXe(e,t){const r=YAe(e.parameters),i=yh(zo(r)),o=i?t.slice(0,r.length-1):t,s=Vt(o,(f,d)=>{const y=hU(r[d]),h=rXe(y,f);return Wd(h.name),qc(h)&&Wd(h.initializer),$T(f,h),h});if(i&&t.length>=r.length){const f=t.slice(r.length-1),d=N.createPropertyAssignment(hU(zo(r)),N.createArrayLiteralExpression(f));s.push(d)}return N.createObjectLiteralExpression(s,!1)}function $Ae(e,t,r){const i=t.getTypeChecker(),o=YAe(e.parameters),s=Vt(o,h),c=N.createObjectBindingPattern(s),f=E(o);let d;Yn(o,I)&&(d=N.createObjectLiteralExpression());const y=N.createParameterDeclaration(void 0,void 0,c,void 0,f,d);if(ire(e.parameters)){const O=e.parameters[0],k=N.createParameterDeclaration(void 0,void 0,O.name,void 0,O.type);return Wd(k.name),$T(O.name,k.name),O.type&&(Wd(k.type),$T(O.type,k.type)),N.createNodeArray([k,y])}return N.createNodeArray([y]);function h(O){const k=N.createBindingElement(void 0,void 0,hU(O),yh(O)&&I(O)?N.createArrayLiteralExpression():O.initializer);return Wd(k),O.initializer&&k.initializer&&$T(O.initializer,k.initializer),k}function E(O){const k=Vt(O,A);return tm(N.createTypeLiteralNode(k),1)}function A(O){let k=O.type;!k&&(O.initializer||yh(O))&&(k=L(O));const G=N.createPropertySignature(void 0,hU(O),I(O)?N.createToken(57):O.questionToken,k);return Wd(G),$T(O.name,G.name),O.type&&G.type&&$T(O.type,G.type),G}function L(O){const k=i.getTypeAtLocation(O);return Mw(k,O,t,r)}function I(O){if(yh(O)){const k=i.getTypeAtLocation(O);return!i.isTupleType(k)}return i.isOptionalParameter(O)}}function hU(e){return V_(e.name)}function aXe(e){switch(e.parent.kind){case 260:const t=e.parent;return t.name?[t.name]:[D.checkDefined(rL(t,88),"Nameless class declaration should be a default export")];case 228:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function oXe(e){switch(e.kind){case 259:return e.name?[e.name]:[D.checkDefined(rL(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const r=D.checkDefined(bs(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===228?[e.parent.parent.name,r]:[r];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return D.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var hP,QAe,are,ore,sXe=C({"src/services/refactors/convertParamsToDestructuredObject.ts"(){$r(),Nh(),hP="Convert parameters to destructured object",QAe=1,are=No(_.Convert_parameters_to_destructured_object),ore={name:hP,description:are,kind:"refactor.rewrite.parameters.toDestructured"},xg(hP,{kinds:[ore.kind],getEditsForAction:qKe,getAvailableActions:zKe})}}),lXe={},cXe=C({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){sXe()}});function uXe(e){const{file:t,startPosition:r}=e,i=ZAe(t,r),o=sre(i),s={name:gU,description:yU,actions:[]};return br(o)&&lre(o).isValidConcatenation?(s.actions.push(vU),[s]):e.preferences.provideRefactorNotApplicableReason?(s.actions.push({...vU,notApplicableReason:No(_.Can_only_convert_string_concatenation)}),[s]):rt}function ZAe(e,t){const r=aa(e,t),i=sre(r);return!lre(i).isValidConcatenation&&Ud(i.parent)&&br(i.parent.parent)?i.parent.parent:r}function dXe(e,t){const{file:r,startPosition:i}=e,o=ZAe(r,i);switch(t){case yU:return{edits:fXe(e,o)};default:return D.fail("invalid action")}}function fXe(e,t){const r=sre(t),i=e.file,o=mXe(lre(r),i),s=W0(i.text,r.end);if(s){const c=s[s.length-1],f={pos:s[0].pos,end:c.end};return gr.ChangeTracker.with(e,d=>{d.deleteRange(i,f),d.replaceNode(i,r,o)})}else return gr.ChangeTracker.with(e,c=>c.replaceNode(i,r,o))}function _Xe(e){return e.operatorToken.kind!==63}function sre(e){return nr(e.parent,r=>{switch(r.kind){case 208:case 209:return!1;case 225:case 223:return!(br(r.parent)&&_Xe(r.parent));default:return"quit"}})||e}function lre(e){const t=c=>{if(!br(c))return{nodes:[c],operators:[],validOperators:!0,hasString:Vo(c)||Ox(c)};const{nodes:f,operators:d,hasString:y,validOperators:h}=t(c.left);if(!(y||Vo(c.right)||s5(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const E=c.operatorToken.kind===39,A=h&&E;return f.push(c.right),d.push(c.operatorToken),{nodes:f,operators:d,hasString:!0,validOperators:A}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function pXe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function eCe(e){const t=xC(e)||Ipe(e)?-2:-1;return xc(e).slice(1,t)}function tCe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(xs(s))i+=s.text,o+=pXe(xc(s).slice(1,-1)),r.push(e),e++;else if(s5(s)){i+=s.head.text,o+=eCe(s.head);break}else break}return[e,i,o,r]}function mXe({nodes:e,operators:t},r){const i=rCe(t,r),o=iCe(e,r,i),[s,c,f,d]=tCe(0,e);if(s===e.length){const E=N.createNoSubstitutionTemplateLiteral(c,f);return o(d,E),E}const y=[],h=N.createTemplateHead(c,f);o(d,h);for(let E=s;E<e.length;E++){const A=hXe(e[E]);i(E,A);const[L,I,O,k]=tCe(E+1,e);E=L-1;const G=E===e.length-1;if(s5(A)){const V=Vt(A.templateSpans,(H,te)=>{nCe(H);const X=te===A.templateSpans.length-1,Y=H.literal.text+(X?I:""),P=eCe(H.literal)+(X?O:"");return N.createTemplateSpan(H.expression,G&&X?N.createTemplateTail(Y,P):N.createTemplateMiddle(Y,P))});y.push(...V)}else{const V=G?N.createTemplateTail(I,O):N.createTemplateMiddle(I,O);o(k,V),y.push(N.createTemplateSpan(A,V))}}return N.createTemplateExpression(h,y)}function nCe(e){const t=e.getSourceFile();Ow(e,e.expression,t,3,!1),w6(e.expression,e.expression,t,3,!1)}function hXe(e){return Ud(e)&&(nCe(e),e=e.expression),e}var gU,yU,vU,rCe,iCe,gXe=C({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){$r(),Nh(),gU="Convert to template string",yU=No(_.Convert_to_template_string),vU={name:gU,description:yU,kind:"refactor.rewrite.string"},xg(gU,{kinds:[vU.kind],getEditsForAction:dXe,getAvailableActions:uXe}),rCe=(e,t)=>(r,i)=>{r<e.length&&Ow(e[r],i,t,3,!1)},iCe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();Ow(e[s],o,t,3,!1),r(s,o)}}}}),yXe={},vXe=C({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){gXe()}});function bXe(e){const t=aCe(e,e.triggerReason==="invoked");return t?Rh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:gP,description:TU,actions:[{...SU,notApplicableReason:t.error}]}]:rt:[{name:gP,description:TU,actions:[SU]}]:rt}function EXe(e,t){const r=aCe(e);return D.assert(r&&!Rh(r),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(e,o=>kXe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function bU(e){return br(e)||RC(e)}function TXe(e){return ou(e)||Ep(e)||uc(e)}function EU(e){return bU(e)||TXe(e)}function aCe(e,t=!0){const{file:r,program:i}=e,o=a2(e),s=o.length===0;if(s&&!t)return;const c=aa(r,o.start),f=u9(r,o.start+o.length),d=hc(c.pos,f&&f.end>=c.pos?f.getEnd():c.getEnd()),y=s?LXe(c):CXe(c,d),h=y&&EU(y)?IXe(y):void 0;if(!h)return{error:No(_.Could_not_find_convertible_access_expression)};const E=i.getTypeChecker();return RC(h)?SXe(h,E):xXe(h)}function SXe(e,t){const r=e.condition,i=ure(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:No(_.Could_not_find_convertible_access_expression)};if((Fr(r)||He(r))&&cre(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(br(r)){const o=oCe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:No(_.Could_not_find_matching_access_expressions)}}}function xXe(e){if(e.operatorToken.kind!==55)return{error:No(_.Can_only_convert_logical_AND_access_chains)};const t=ure(e.right);if(!t)return{error:No(_.Could_not_find_convertible_access_expression)};const r=oCe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:No(_.Could_not_find_matching_access_expressions)}}function oCe(e,t){const r=[];for(;br(t)&&t.operatorToken.kind===55;){const o=cre(js(e),js(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=cre(e,t);return i&&r.push(i),r.length>0?r:void 0}function cre(e,t){if(!(!He(t)&&!Fr(t)&&!cl(t)))return AXe(e,t)?t:void 0}function AXe(e,t){for(;(no(e)||Fr(e)||cl(e))&&aD(e)!==aD(t);)e=e.expression;for(;Fr(e)&&Fr(t)||cl(e)&&cl(t);){if(aD(e)!==aD(t))return!1;e=e.expression,t=t.expression}return He(e)&&He(t)&&e.getText()===t.getText()}function aD(e){if(He(e)||Xf(e))return e.getText();if(Fr(e))return aD(e.name);if(cl(e))return aD(e.argumentExpression)}function CXe(e,t){for(;e.parent;){if(EU(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function LXe(e){for(;e.parent;){if(EU(e)&&!EU(e.parent))return e;e=e.parent}}function IXe(e){if(bU(e))return e;if(uc(e)){const t=tC(e),r=t==null?void 0:t.initializer;return r&&bU(r)?r:void 0}return e.expression&&bU(e.expression)?e.expression:void 0}function ure(e){if(e=js(e),br(e))return ure(e.left);if((Fr(e)||cl(e)||no(e))&&!yu(e))return e}function sCe(e,t,r){if(Fr(t)||cl(t)||no(t)){const i=sCe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),no(t))return s?N.createCallChain(i,N.createToken(28),t.typeArguments,t.arguments):N.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Fr(t))return s?N.createPropertyAccessChain(i,N.createToken(28),t.name):N.createPropertyAccessChain(i,t.questionDotToken,t.name);if(cl(t))return s?N.createElementAccessChain(i,N.createToken(28),t.argumentExpression):N.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function kXe(e,t,r,i,o){const{finalExpression:s,occurrences:c,expression:f}=i,d=c[c.length-1],y=sCe(t,s,c);y&&(Fr(y)||cl(y)||no(y))&&(br(f)?r.replaceNodeRange(e,d,s,y):RC(f)&&r.replaceNode(e,f,N.createBinaryExpression(y,N.createToken(60),f.whenFalse)))}var gP,TU,SU,wXe=C({"src/services/refactors/convertToOptionalChainExpression.ts"(){$r(),Nh(),gP="Convert to optional chain expression",TU=No(_.Convert_to_optional_chain_expression),SU={name:gP,description:TU,kind:"refactor.rewrite.expression.optionalChain"},xg(gP,{kinds:[SU.kind],getEditsForAction:EXe,getAvailableActions:bXe})}}),DXe={},RXe=C({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){wXe()}});function lCe(e){const t=e.kind,r=dre(e.file,a2(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return rt;const I=[];return Qv(E2.kind,t)&&I.push({name:v2,description:E2.description,actions:[{...E2,notApplicableReason:L(r.errors)}]}),Qv(b2.kind,t)&&I.push({name:v2,description:b2.description,actions:[{...b2,notApplicableReason:L(r.errors)}]}),I}const o=BXe(i,e);if(o===void 0)return rt;const s=[],c=new Map;let f;const d=[],y=new Map;let h,E=0;for(const{functionExtraction:I,constantExtraction:O}of o){if(Qv(E2.kind,t)){const k=I.description;I.errors.length===0?c.has(k)||(c.set(k,!0),s.push({description:k,name:`function_scope_${E}`,kind:E2.kind})):f||(f={description:k,name:`function_scope_${E}`,notApplicableReason:L(I.errors),kind:E2.kind})}if(Qv(b2.kind,t)){const k=O.description;O.errors.length===0?y.has(k)||(y.set(k,!0),d.push({description:k,name:`constant_scope_${E}`,kind:b2.kind})):h||(h={description:k,name:`constant_scope_${E}`,notApplicableReason:L(O.errors),kind:b2.kind})}E++}const A=[];return s.length?A.push({name:v2,description:No(_.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&f&&A.push({name:v2,description:No(_.Extract_function),actions:[f]}),d.length?A.push({name:v2,description:No(_.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&h&&A.push({name:v2,description:No(_.Extract_constant),actions:[h]}),A.length?A:rt;function L(I){let O=I[0].messageText;return typeof O!="string"&&(O=O.messageText),O}}function cCe(e,t){const i=dre(e.file,a2(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return D.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),MXe(i,e,c)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return D.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),FXe(i,e,c)}D.fail("Unrecognized action name")}function dre(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Dc(e,t.start,i,Jc.cannotExtractEmpty)]};const o=i===0&&r,s=w0e(e,t.start),c=u9(e,iu(t)),f=s&&c&&r?NXe(s,c,e):t,d=o?iYe(s):A6(s,e,f),y=o?d:A6(c,e,f);let h=0,E;if(!d||!y)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};if(d.flags&8388608)return{errors:[Dc(e,t.start,i,Jc.cannotExtractJSDoc)]};if(d.parent!==y.parent)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};if(d!==y){if(!dCe(d.parent))return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};const V=[];for(const H of d.parent.statements){if(H===d||V.length){const te=G(H);if(te)return{errors:te};V.push(H)}if(H===y)break}return V.length?{targetRange:{range:V,facts:h,thisNode:E}}:{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]}}if(Ep(d)&&!d.expression)return{errors:[Dc(e,t.start,i,Jc.cannotExtractRange)]};const A=I(d),L=O(A)||G(A);if(L)return{errors:L};return{targetRange:{range:OXe(A),facts:h,thisNode:E}};function I(V){if(Ep(V)){if(V.expression)return V.expression}else if(uc(V)||Vu(V)){const H=uc(V)?V.declarationList.declarations:V.declarations;let te=0,X;for(const Y of H)Y.initializer&&(te++,X=Y.initializer);if(te===1)return X}else if(Ki(V)&&V.initializer)return V.initializer;return V}function O(V){if(He(ou(V)?V.expression:V))return[Nr(V,Jc.cannotExtractIdentifier)]}function k(V,H){let te=V;for(;te!==H;){if(te.kind===169){Ja(te)&&(h|=32);break}else if(te.kind===166){Cf(te).kind===173&&(h|=32);break}else te.kind===171&&Ja(te)&&(h|=32);te=te.parent}}function G(V){let H;if((re=>{re[re.None=0]="None",re[re.Break=1]="Break",re[re.Continue=2]="Continue",re[re.Return=4]="Return"})(H||(H={})),D.assert(V.pos<=V.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),D.assert(!em(V.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!wa(V)&&!(_g(V)&&uCe(V))&&!hre(V))return[Nr(V,Jc.statementOrExpressionExpected)];if(V.flags&16777216)return[Nr(V,Jc.cannotExtractAmbientBlock)];const te=Ac(V);te&&k(V,te);let X,Y=4,P;if(de(V),h&8){const re=Sd(V,!1,!1);(re.kind===259||re.kind===171&&re.parent.kind===207||re.kind===215)&&(h|=16)}return X;function de(re){if(X)return!0;if(vu(re)){const ae=re.kind===257?re.parent.parent:re;if(Yr(ae,1))return(X||(X=[])).push(Nr(re,Jc.cannotExtractExportedEntity)),!0}switch(re.kind){case 269:return(X||(X=[])).push(Nr(re,Jc.cannotExtractImport)),!0;case 274:return(X||(X=[])).push(Nr(re,Jc.cannotExtractExportedEntity)),!0;case 106:if(re.parent.kind===210){const ae=Ac(re);if(ae===void 0||ae.pos<t.start||ae.end>=t.start+t.length)return(X||(X=[])).push(Nr(re,Jc.cannotExtractSuper)),!0}else h|=8,E=re;break;case 216:Ma(re,function ae(W){if(tL(W))h|=8,E=re;else{if(di(W)||Ka(W)&&!Js(W))return!1;Ma(W,ae)}});case 260:case 259:qi(re.parent)&&re.parent.externalModuleIndicator===void 0&&(X||(X=[])).push(Nr(re,Jc.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const ye=Y;switch(re.kind){case 242:Y&=-5;break;case 255:Y=0;break;case 238:re.parent&&re.parent.kind===255&&re.parent.finallyBlock===re&&(Y=4);break;case 293:case 292:Y|=1;break;default:Iv(re,!1)&&(Y|=3);break}switch(re.kind){case 194:case 108:h|=8,E=re;break;case 253:{const ae=re.label;(P||(P=[])).push(ae.escapedText),Ma(re,de),P.pop();break}case 249:case 248:{const ae=re.label;ae?jr(P,ae.escapedText)||(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Y&(re.kind===249?1:2)||(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:h|=4;break;case 226:h|=2;break;case 250:Y&4?h|=1:(X||(X=[])).push(Nr(re,Jc.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ma(re,de);break}Y=ye}}}function NXe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function OXe(e){if(wa(e))return[e];if(_g(e))return ou(e.parent)?[e.parent]:e;if(hre(e))return e}function fre(e){return Js(e)?dz(e.body):Qs(e)||qi(e)||rm(e)||di(e)}function PXe(e){let t=Ag(e.range)?us(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Ac(t);if(i){const o=nr(t,Qs);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===166&&(t=nr(t,i=>Qs(i)).parent),fre(t)&&(r.push(t),t.kind===308))return r}function MXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:c,exposedVariableDeclarations:f}}=_re(e,t);return D.assert(!c[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),WXe(o,i[r],s[r],f,e,t)}function FXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:c,exposedVariableDeclarations:f}}=_re(e,t);D.assert(!c[r].length,"The extraction went missing? How?"),D.assert(f.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=vt(o)?o:o.statements[0].expression;return zXe(d,i[r],s[r],e.facts,t)}function BXe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=_re(e,t);return r.map((c,f)=>{const d=GXe(c),y=UXe(c),h=Qs(c)?VXe(c):di(c)?jXe(c):HXe(c);let E,A;return h===1?(E=Sh(No(_.Extract_to_0_in_1_scope),[d,"global"]),A=Sh(No(_.Extract_to_0_in_1_scope),[y,"global"])):h===0?(E=Sh(No(_.Extract_to_0_in_1_scope),[d,"module"]),A=Sh(No(_.Extract_to_0_in_1_scope),[y,"module"])):(E=Sh(No(_.Extract_to_0_in_1),[d,h]),A=Sh(No(_.Extract_to_0_in_1),[y,h])),f===0&&!di(c)&&(A=Sh(No(_.Extract_to_0_in_enclosing_scope),[y])),{functionExtraction:{description:E,errors:i[f]},constantExtraction:{description:A,errors:o[f]}}})}function _re(e,t){const{file:r}=t,i=PXe(e),o=nYe(e,r),s=rYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function GXe(e){return Qs(e)?"inner function":di(e)?"method":"function"}function UXe(e){return di(e)?"readonly field":"constant"}function VXe(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:z9;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw D.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function jXe(e){return e.kind===260?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function HXe(e){return e.kind===265?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function WXe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,c,f){const d=f.program.getTypeChecker(),y=es(f.program.getCompilerOptions()),h=Wu.createImportAdder(f.file,f.program,f.preferences,f.host),E=t.getSourceFile(),A=QT(di(t)?"newMethod":"newFunction",E),L=fr(t),I=N.createIdentifier(A);let O;const k=[],G=[];let V;r.forEach((Oe,Me)=>{let Ye;if(!L){let Fe=d.getTypeOfSymbolAtLocation(Oe.symbol,Oe.node);Fe=d.getBaseTypeOfLiteralType(Fe),Ye=Wu.typeToAutoImportableTypeNode(d,h,Fe,t,y,1)}const ze=N.createParameterDeclaration(void 0,void 0,Me,void 0,Ye);k.push(ze),Oe.usage===2&&(V||(V=[])).push(Oe),G.push(N.createIdentifier(Me))});const te=Ro(i.values(),Oe=>({type:Oe,declaration:JXe(Oe)})).sort(KXe),X=te.length===0?void 0:te.map(Oe=>Oe.declaration),Y=X!==void 0?X.map(Oe=>N.createTypeReferenceNode(Oe.name,void 0)):void 0;if(vt(e)&&!L){const Oe=d.getContextualType(e);O=d.typeToTypeNode(Oe,t,1)}const{body:P,returnValueProperty:de}=YXe(e,s,V,o,!!(c.facts&1));Wd(P);let re;const ye=!!(c.facts&16);if(di(t)){const Oe=L?[]:[N.createModifier(121)];c.facts&32&&Oe.push(N.createModifier(124)),c.facts&4&&Oe.push(N.createModifier(132)),re=N.createMethodDeclaration(Oe.length?Oe:void 0,c.facts&2?N.createToken(41):void 0,I,void 0,X,k,O,P)}else ye&&k.unshift(N.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(c.thisNode),t,1),void 0)),re=N.createFunctionDeclaration(c.facts&4?[N.createToken(132)]:void 0,c.facts&2?N.createToken(41):void 0,I,X,k,O,P);const ae=gr.ChangeTracker.fromContext(f),W=(Ag(c.range)?zo(c.range):c.range).end,ce=ZXe(W,t);ce?ae.insertNodeBefore(f.file,ce,re,!0):ae.insertNodeAtEndOfScope(f.file,t,re),h.writeFixes(ae);const me=[],ve=XXe(t,c,A);ye&&G.unshift(N.createIdentifier("this"));let Se=N.createCallExpression(ye?N.createPropertyAccessExpression(ve,"call"):ve,Y,G);if(c.facts&2&&(Se=N.createYieldExpression(N.createToken(41),Se)),c.facts&4&&(Se=N.createAwaitExpression(Se)),mre(e)&&(Se=N.createJsxExpression(void 0,Se)),s.length&&!V)if(D.assert(!de,"Expected no returnValueProperty"),D.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const Oe=s[0];me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Dl(Oe.name),void 0,Dl(Oe.type),Se)],Oe.parent.flags)))}else{const Oe=[],Me=[];let Ye=s[0].parent.flags,ze=!1;for(const st of s){Oe.push(N.createBindingElement(void 0,void 0,Dl(st.name)));const Ct=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(st)),t,1);Me.push(N.createPropertySignature(void 0,st.symbol.name,void 0,Ct)),ze=ze||st.type!==void 0,Ye=Ye&st.parent.flags}const Fe=ze?N.createTypeLiteralNode(Me):void 0;Fe&&or(Fe,1),me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.createObjectBindingPattern(Oe),void 0,Fe,Se)],Ye)))}else if(s.length||V){if(s.length)for(const Me of s){let Ye=Me.parent.flags;Ye&2&&(Ye=Ye&-3|1),me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Me.symbol.name,void 0,qe(Me.type))],Ye)))}de&&me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(de,void 0,qe(O))],1)));const Oe=pre(s,V);de&&Oe.unshift(N.createShorthandPropertyAssignment(de)),Oe.length===1?(D.assert(!de,"Shouldn't have returnValueProperty here"),me.push(N.createExpressionStatement(N.createAssignment(Oe[0].name,Se))),c.facts&1&&me.push(N.createReturnStatement())):(me.push(N.createExpressionStatement(N.createAssignment(N.createObjectLiteralExpression(Oe),Se))),de&&me.push(N.createReturnStatement(N.createIdentifier(de))))}else c.facts&1?me.push(N.createReturnStatement(Se)):Ag(c.range)?me.push(N.createExpressionStatement(Se)):me.push(Se);Ag(c.range)?ae.replaceNodeRangeWithNodes(f.file,us(c.range),zo(c.range),me):ae.replaceNodeWithNodes(f.file,c.range,me);const ee=ae.getChanges(),je=(Ag(c.range)?us(c.range):c.range).getSourceFile().fileName,Ge=k6(ee,je,A,!1);return{renameFilename:je,renameLocation:Ge,edits:ee};function qe(Oe){if(Oe===void 0)return;const Me=Dl(Oe);let Ye=Me;for(;Bx(Ye);)Ye=Ye.type;return Fx(Ye)&&nn(Ye.types,ze=>ze.kind===155)?Me:N.createUnionTypeNode([Me,N.createKeywordTypeNode(155)])}}function zXe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),c=t.getSourceFile(),f=Fr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ni(e.name)&&!q0(e.name)?e.name.text:QT(di(t)?"newProperty":"newLocal",c),d=fr(t);let y=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),h=$Xe(js(e),r);({variableType:y,initializer:h}=O(y,h)),Wd(h);const E=gr.ChangeTracker.fromContext(o);if(di(t)){D.assert(!d,"Cannot extract to a JS class");const k=[];k.push(N.createModifier(121)),i&32&&k.push(N.createModifier(124)),k.push(N.createModifier(146));const G=N.createPropertyDeclaration(k,f,void 0,y,h);let V=N.createPropertyAccessExpression(i&32?N.createIdentifier(t.name.getText()):N.createThis(),N.createIdentifier(f));mre(e)&&(V=N.createJsxExpression(void 0,V));const H=e.pos,te=eYe(H,t);E.insertNodeBefore(o.file,te,G,!0),E.replaceNode(o.file,e,V)}else{const k=N.createVariableDeclaration(f,void 0,y,h),G=qXe(e,t);if(G){E.insertNodeBefore(o.file,G,k);const V=N.createIdentifier(f);E.replaceNode(o.file,e,V)}else if(e.parent.kind===241&&t===nr(e,fre)){const V=N.createVariableStatement(void 0,N.createVariableDeclarationList([k],2));E.replaceNode(o.file,e.parent,V)}else{const V=N.createVariableStatement(void 0,N.createVariableDeclarationList([k],2)),H=tYe(e,t);if(H.pos===0?E.insertNodeAtTopOfFile(o.file,V,!1):E.insertNodeBefore(o.file,H,V,!1),e.parent.kind===241)E.delete(o.file,e.parent);else{let te=N.createIdentifier(f);mre(e)&&(te=N.createJsxExpression(void 0,te)),E.replaceNode(o.file,e,te)}}}const A=E.getChanges(),L=e.getSourceFile().fileName,I=k6(A,L,f,!0);return{renameFilename:L,renameLocation:I,edits:A};function O(k,G){if(k===void 0)return{variableType:k,initializer:G};if(!Bs(G)&&!Js(G)||G.typeParameters)return{variableType:k,initializer:G};const V=s.getTypeAtLocation(e),H=Am(s.getSignaturesOfType(V,0));if(!H)return{variableType:k,initializer:G};if(H.getTypeParameters())return{variableType:k,initializer:G};const te=[];let X=!1;for(const Y of G.parameters)if(Y.type)te.push(Y);else{const P=s.getTypeAtLocation(Y);P===s.getAnyType()&&(X=!0),te.push(N.updateParameterDeclaration(Y,Y.modifiers,Y.dotDotDotToken,Y.name,Y.questionToken,Y.type||s.typeToTypeNode(P,t,1),Y.initializer))}if(X)return{variableType:k,initializer:G};if(k=void 0,Js(G))G=N.updateArrowFunction(G,X_(e)?iT(e):void 0,G.typeParameters,te,G.type||s.typeToTypeNode(H.getReturnType(),t,1),G.equalsGreaterThanToken,G.body);else{if(H&&H.thisParameter){const Y=Yc(te);if(!Y||He(Y.name)&&Y.name.escapedText!=="this"){const P=s.getTypeOfSymbolAtLocation(H.thisParameter,e);te.splice(0,0,N.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(P,t,1)))}}G=N.updateFunctionExpression(G,X_(e)?iT(e):void 0,G.asteriskToken,G.name,G.typeParameters,te,G.type||s.typeToTypeNode(H.getReturnType(),t,1),G.body)}return{variableType:k,initializer:G}}}function qXe(e,t){let r;for(;e!==void 0&&e!==t;){if(Ki(e)&&e.initializer===r&&Vu(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function JXe(e){let t;const r=e.symbol;if(r&&r.declarations)for(const i of r.declarations)(t===void 0||i.pos<t.pos)&&(t=i);return t}function KXe({type:e,declaration:t},{type:r,declaration:i}){return kce(t,i,"pos",Ws)||Ou(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||Ws(e.id,r.id)}function XXe(e,t,r){const i=N.createIdentifier(r);if(di(e)){const o=t.facts&32?N.createIdentifier(e.name.text):N.createThis();return N.createPropertyAccessExpression(o,i)}else return i}function YXe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(lo(e)&&!s&&i.size===0)return{body:N.createBlock(e.statements,!0),returnValueProperty:void 0};let c,f=!1;const d=N.createNodeArray(lo(e)?e.statements.slice(0):[wa(e)?e:N.createReturnStatement(js(e))]);if(s||i.size){const h=Jn(d,y,wa).slice();if(s&&!o&&wa(e)){const E=pre(t,r);E.length===1?h.push(N.createReturnStatement(E[0].name)):h.push(N.createReturnStatement(N.createObjectLiteralExpression(E)))}return{body:N.createBlock(h,!0),returnValueProperty:c}}else return{body:N.createBlock(d,!0),returnValueProperty:void 0};function y(h){if(!f&&Ep(h)&&s){const E=pre(t,r);return h.expression&&(c||(c="__return"),E.unshift(N.createPropertyAssignment(c,lt(h.expression,y,vt)))),E.length===1?N.createReturnStatement(E[0].name):N.createReturnStatement(N.createObjectLiteralExpression(E))}else{const E=f;f=f||Qs(h)||di(h);const A=i.get(ms(h).toString()),L=A?Dl(A):Bn(h,y,Tg);return f=E,L}}}function $Xe(e,t){return t.size?r(e):e;function r(i){const o=t.get(ms(i).toString());return o?Dl(o):Bn(i,r,Tg)}}function QXe(e){if(Qs(e)){const t=e.body;if(lo(t))return t.statements}else{if(rm(e)||qi(e))return e.statements;if(di(e))return e.members}return rt}function ZXe(e,t){return nn(QXe(t),r=>r.pos>=e&&Qs(r)&&!ql(r))}function eYe(e,t){const r=t.members;D.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!to(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?D.fail():i}function tYe(e,t){D.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)fre(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(dCe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&Zk(i)?(D.assert(YO(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):D.checkDefined(o,"prevStatement failed to get set")}D.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function pre(e,t){const r=Vt(e,o=>N.createShorthandPropertyAssignment(o.symbol.name)),i=Vt(t,o=>N.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Ag(e){return Va(e)}function nYe(e,t){return Ag(e.range)?{pos:us(e.range).getStart(t),end:zo(e.range).getEnd()}:e.range}function rYe(e,t,r,i,o,s){const c=new Map,f=[],d=[],y=[],h=[],E=[],A=new Map,L=[];let I;const O=Ag(e.range)?e.range.length===1&&ou(e.range[0])?e.range[0].expression:void 0:e.range;let k;if(O===void 0){const ce=e.range,me=us(ce).getStart(),ve=zo(ce).end;k=Dc(i,me,ve-me,Jc.expressionExpected)}else o.getTypeAtLocation(O).flags&147456&&(k=Nr(O,Jc.uselessConstantType));for(const ce of t){f.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),y.push([]);const me=[];k&&me.push(k),di(ce)&&fr(ce)&&me.push(Nr(ce,Jc.cannotExtractToJSClass)),Js(ce)&&!lo(ce.body)&&me.push(Nr(ce,Jc.cannotExtractToExpressionArrowFunction)),h.push(me)}const G=new Map,V=Ag(e.range)?N.createBlock(e.range):e.range,H=Ag(e.range)?us(e.range):e.range,te=X(H);if(P(V),te&&!Ag(e.range)&&!im(e.range)){const ce=o.getContextualType(e.range);Y(ce)}if(c.size>0){const ce=new Map;let me=0;for(let ve=H;ve!==void 0&&me<t.length;ve=ve.parent)if(ve===t[me]&&(ce.forEach((Se,ee)=>{f[me].typeParameterUsages.set(ee,Se)}),me++),Fz(ve))for(const Se of Cv(ve)){const ee=o.getTypeAtLocation(Se);c.has(ee.id.toString())&&ce.set(ee.id.toString(),ee)}D.assert(me===t.length,"Should have iterated all scopes")}if(E.length){const ce=Mz(t[0],t[0].parent)?t[0]:Mm(t[0]);Ma(ce,ye)}for(let ce=0;ce<t.length;ce++){const me=f[ce];if(ce>0&&(me.usages.size>0||me.typeParameterUsages.size>0)){const ee=Ag(e.range)?e.range[0]:e.range;h[ce].push(Nr(ee,Jc.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[ce])&&y[ce].push(Nr(e.thisNode,Jc.cannotExtractFunctionsContainingThisToMethod));let ve=!1,Se;if(f[ce].usages.forEach(ee=>{ee.usage===2&&(ve=!0,ee.symbol.flags&106500&&ee.symbol.valueDeclaration&&Bd(ee.symbol.valueDeclaration,64)&&(Se=ee.symbol.valueDeclaration))}),D.assert(Ag(e.range)||L.length===0,"No variable declarations expected if something was extracted"),ve&&!Ag(e.range)){const ee=Nr(e.range,Jc.cannotWriteInExpression);y[ce].push(ee),h[ce].push(ee)}else if(Se&&ce>0){const ee=Nr(Se,Jc.cannotExtractReadonlyPropertyInitializerOutsideConstructor);y[ce].push(ee),h[ce].push(ee)}else if(I){const ee=Nr(I,Jc.cannotExtractExportedEntity);y[ce].push(ee),h[ce].push(ee)}}return{target:V,usagesPerScope:f,functionErrorsPerScope:y,constantErrorsPerScope:h,exposedVariableDeclarations:L};function X(ce){return!!nr(ce,me=>Fz(me)&&Cv(me).length!==0)}function Y(ce){const me=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:ve}=me.walkType(ce);for(const Se of ve)Se.isTypeParameter()&&c.set(Se.id.toString(),Se)}function P(ce,me=1){if(te){const ve=o.getTypeAtLocation(ce);Y(ve)}if(vu(ce)&&ce.symbol&&E.push(ce),nd(ce))P(ce.left,2),P(ce.right);else if(yde(ce))P(ce.operand,2);else if(Fr(ce)||cl(ce))Ma(ce,P);else if(He(ce)){if(!ce.parent||Cd(ce.parent)&&ce!==ce.parent.left||Fr(ce.parent)&&ce!==ce.parent.expression)return;de(ce,me,vh(ce))}else Ma(ce,P)}function de(ce,me,ve){const Se=re(ce,me,ve);if(Se)for(let ee=0;ee<t.length;ee++){const Qe=d[ee].get(Se);Qe&&f[ee].substitutions.set(ms(ce).toString(),Qe)}}function re(ce,me,ve){const Se=ae(ce);if(!Se)return;const ee=bo(Se).toString(),Qe=G.get(ee);if(Qe&&Qe>=me)return ee;if(G.set(ee,me),Qe){for(const qe of f)qe.usages.get(ce.text)&&qe.usages.set(ce.text,{usage:me,symbol:Se,node:ce});return ee}const je=Se.getDeclarations(),Ge=je&&nn(je,qe=>qe.getSourceFile()===i);if(Ge&&!m6(r,Ge.getStart(),Ge.end)){if(e.facts&2&&me===2){const qe=Nr(ce,Jc.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Oe of y)Oe.push(qe);for(const Oe of h)Oe.push(qe)}for(let qe=0;qe<t.length;qe++){const Oe=t[qe];if(o.resolveName(Se.name,Oe,Se.flags,!1)!==Se&&!d[qe].has(ee)){const Ye=W(Se.exportSymbol||Se,Oe,ve);if(Ye)d[qe].set(ee,Ye);else if(ve){if(!(Se.flags&262144)){const ze=Nr(ce,Jc.typeWillNotBeVisibleInTheNewScope);y[qe].push(ze),h[qe].push(ze)}}else f[qe].usages.set(ce.text,{usage:me,symbol:Se,node:ce})}}return ee}}function ye(ce){if(ce===e.range||Ag(e.range)&&e.range.indexOf(ce)>=0)return;const me=He(ce)?ae(ce):o.getSymbolAtLocation(ce);if(me){const ve=nn(E,Se=>Se.symbol===me);if(ve)if(Ki(ve)){const Se=ve.symbol.id.toString();A.has(Se)||(L.push(ve),A.set(Se,!0))}else I=I||ve}Ma(ce,ye)}function ae(ce){return ce.parent&&t_(ce.parent)&&ce.parent.name===ce?o.getShorthandAssignmentValueSymbol(ce.parent):o.getSymbolAtLocation(ce)}function W(ce,me,ve){if(!ce)return;const Se=ce.getDeclarations();if(Se&&Se.some(Qe=>Qe.parent===me))return N.createIdentifier(ce.name);const ee=W(ce.parent,me,ve);if(ee!==void 0)return ve?N.createQualifiedName(ee,N.createIdentifier(ce.name)):N.createPropertyAccessExpression(ee,ce.name)}}function iYe(e){return nr(e,t=>t.parent&&uCe(t)&&!br(t.parent))}function uCe(e){const{parent:t}=e;switch(t.kind){case 302:return!1}switch(e.kind){case 10:return t.kind!==269&&t.kind!==273;case 227:case 203:case 205:return!1;case 79:return t.kind!==205&&t.kind!==273&&t.kind!==278}return!0}function dCe(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function mre(e){return hre(e)||(Cy(e)||Wx(e)||qx(e))&&(Cy(e.parent)||qx(e.parent))}function hre(e){return Vo(e)&&e.parent&&im(e.parent)}var v2,b2,E2,Jc,gre,aYe=C({"src/services/refactors/extractSymbol.ts"(){$r(),Nh(),v2="Extract Symbol",b2={name:"Extract Constant",description:No(_.Extract_constant),kind:"refactor.extract.constant"},E2={name:"Extract Function",description:No(_.Extract_function),kind:"refactor.extract.function"},xg(v2,{kinds:[b2.kind,E2.kind],getEditsForAction:cCe,getAvailableActions:lCe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Jc||(Jc={})),gre=(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))(gre||{})}}),fCe={};ne(fCe,{Messages:()=>Jc,RangeFacts:()=>gre,getRangeToExtract:()=>dre,getRefactorActionsToExtractSymbol:()=>lCe,getRefactorEditsToExtractSymbol:()=>cCe});var oYe=C({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){aYe()}}),yP,xU,AU,sYe=C({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){$r(),Nh(),yP="Generate 'get' and 'set' accessors",xU=_.Generate_get_and_set_accessors.message,AU={name:yP,description:xU,kind:"refactor.rewrite.property.generateAccessors"},xg(yP,{kinds:[AU.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Wu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);D.assert(i&&!Rh(i),"Expected applicable refactor info");const o=Wu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,d=(He(c)?0:-1)+k6(o,s,c.text,Ba(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return rt;const t=Wu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Rh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:yP,description:xU,actions:[{...AU,notApplicableReason:t.error}]}]:rt:[{name:yP,description:xU,actions:[AU]}]:rt}})}}),lYe={},cYe=C({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){sYe()}});function uYe(e){const t=_Ce(e);if(t&&!Rh(t))return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,i=>fYe(e.file,i,t.declaration,t.returnTypeNode))}}function dYe(e){const t=_Ce(e);return t?Rh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:vP,description:CU,actions:[{...bP,notApplicableReason:t.error}]}]:rt:[{name:vP,description:CU,actions:[bP]}]:rt}function fYe(e,t,r,i){const o=bs(r,21,e),s=Js(r)&&o===void 0,c=s?us(r.parameters):o;c&&(s&&(t.insertNodeBefore(e,c,N.createToken(20)),t.insertNodeAfter(e,c,N.createToken(21))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function _Ce(e){if(fr(e.file)||!Qv(bP.kind,e.kind))return;const t=aa(e.file,e.startPosition),r=nr(t,c=>lo(c)||c.parent&&Js(c.parent)&&(c.kind===38||c.parent.body===c)?"quit":_Ye(c));if(!r||!r.body||r.type)return{error:No(_.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=pYe(i,r);if(!o)return{error:No(_.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function _Ye(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function pYe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(ia(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var vP,CU,bP,mYe=C({"src/services/refactors/inferFunctionReturnType.ts"(){$r(),Nh(),vP="Infer function return type",CU=_.Infer_function_return_type.message,bP={name:vP,description:CU,kind:"refactor.rewrite.function.returnType"},xg(vP,{kinds:[bP.kind],getEditsForAction:uYe,getAvailableActions:dYe})}}),hYe={},gYe=C({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){mYe()}}),oD={};ne(oD,{addOrRemoveBracesToArrowFunction:()=>DKe,convertArrowFunctionOrFunctionExpression:()=>HKe,convertParamsToDestructuredObject:()=>lXe,convertStringOrTemplateLiteral:()=>yXe,convertToOptionalChainExpression:()=>DXe,doChangeNamedToNamespaceOrDefault:()=>yAe,extractSymbol:()=>fCe,generateGetAccessorAndSetAccessor:()=>lYe,getApplicableRefactors:()=>IJe,getEditsForRefactor:()=>kJe,inferFunctionReturnType:()=>hYe,isRefactorErrorInfo:()=>Rh,refactorKindBeginsWith:()=>Qv,registerRefactor:()=>xg});var Nh=C({"src/services/_namespaces/ts.refactor.ts"(){wJe(),FJe(),jJe(),KJe(),XJe(),xKe(),RKe(),WKe(),cXe(),vXe(),RXe(),oYe(),cYe(),gYe()}});function yYe(e,t,r,i){const o=c9(Df(t,r));if(mCe(o)){const s=vYe(o,e.getTypeChecker(),t,e,i);if(s)return s}return LU(_.You_cannot_rename_this_element)}function vYe(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(xs(e)){const A=l9(e,t);if(A&&(A.flags&128||A.flags&1048576&&Yn(A.types,L=>!!(L.flags&128))))return yre(e.text,e.text,"string","",e,r)}else if(aQ(e)){const A=xc(e);return yre(A,A,"label","",e,r)}return}const{declarations:c}=s;if(!c||c.length===0)return;if(c.some(A=>bYe(i,A)))return LU(_.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(xs(e)&&jN(e))return o.allowRenameOfImportPath?TYe(e,r,s):void 0;const f=EYe(r,s,t,o);if(f)return LU(f);const d=Oy.getSymbolKind(t,s,e),y=nbe(e)||Xf(e)&&e.parent.kind===164?j_(V_(e)):void 0,h=y||t.symbolToString(s),E=y||t.getFullyQualifiedName(s);return yre(h,E,d,Oy.getSymbolModifiers(t,s),e,r)}function bYe(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&cc(r.fileName,".d.ts")}function EYe(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&nn(t.declarations,f=>Ld(f));c&&!c.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=pCe(e.path);if(s===void 0)return kt(o,c=>pbe(c.getSourceFile().path))?_.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of o){const f=pCe(c.getSourceFile().path);if(f){const d=Math.min(s.length,f.length);for(let y=0;y<=d;y++)if(Ou(s[y],f[y])!==0)return _.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function pCe(e){const t=ld(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function TYe(e,t,r){if(!Uc(e.text))return LU(_.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&nn(r.declarations,qi);if(!i)return;const o=ic(e.text,"/index")||ic(e.text,"/index.js")?void 0:wce(Gd(i.fileName),"/index"),s=o===void 0?i.fileName:o,c=o===void 0?"module":"directory",f=e.text.lastIndexOf("/")+1,d=wc(e.getStart(t)+1+f,e.text.length-f);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:d}}function yre(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:SYe(o,s)}}function LU(e){return{canRename:!1,localizedErrorMessage:No(e)}}function SYe(e,t){let r=e.getStart(t),i=e.getWidth(t);return xs(e)&&(r+=1,i-=2),wc(r,i)}function mCe(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return i9(e);default:return!1}}var xYe=C({"src/services/rename.ts"(){$r()}}),IU={};ne(IU,{getRenameInfo:()=>yYe,nodeIsEligibleForRename:()=>mCe});var AYe=C({"src/services/_namespaces/ts.Rename.ts"(){xYe()}});function CYe(e,t,r,i,o){const s=e.getTypeChecker(),c=u9(t,r);if(!c)return;const f=!!i&&i.kind==="characterTyped";if(f&&(YT(t,r,c)||wy(t,r)))return;const d=!!i&&i.kind==="invoked",y=VYe(c,r,t,s,d);if(!y)return;o.throwIfCancellationRequested();const h=LYe(y,s,t,c,f);return o.throwIfCancellationRequested(),h?s.runWithCancellationToken(o,E=>h.kind===0?TCe(h.candidates,h.resolvedSignature,y,t,E):HYe(h.symbol,y,t,E)):td(t)?kYe(y,e,o):void 0}function LYe({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!IYe(o,e.node,i))return;const c=[],f=r.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:f}}case 1:{const{called:c}=e;if(s&&!hCe(o,i,He(c)?c.parent:c))return;const f=gQ(c,t,r);if(f.length!==0)return{kind:0,candidates:f,resolvedSignature:us(f)};const d=r.getSymbolAtLocation(c);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return D.assertNever(e)}}function IYe(e,t,r){if(!ug(t))return!1;const i=t.getChildren(r);switch(e.kind){case 20:return jr(i,e);case 27:{const o=s9(e);return!!o&&jr(i,o)}case 29:return hCe(e,r,t.expression);default:return!1}}function kYe(e,t,r){if(e.invocation.kind===2)return;const i=bCe(e.invocation),o=Fr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Kt(t.getSourceFiles(),c=>Kt(c.getNamedDeclarations().get(o),f=>{const d=f.symbol&&s.getTypeOfSymbolAtLocation(f.symbol,f),y=d&&d.getCallSignatures();if(y&&y.length)return s.runWithCancellationToken(r,h=>TCe(y,y[0],e,c,h,!0))}))}function hCe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Cc(i,t,o,!0);if(s)return uf(r,s);o=o.parent}return D.fail("Could not find preceding token")}function wYe(e,t,r){const i=yCe(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function gCe(e,t,r){const i=DYe(e,r);if(!i)return;const{list:o,argumentIndex:s}=i,c=FYe(o,YT(r,t,e));s!==0&&D.assertLessThan(s,c);const f=GYe(o,r);return{list:o,argumentIndex:s,argumentCount:c,argumentsSpan:f}}function DYe(e,t){if(e.kind===29||e.kind===20)return{list:jYe(e.parent,e,t),argumentIndex:0};{const r=s9(e);return r&&{list:r,argumentIndex:MYe(r,e)}}}function yCe(e,t,r){const{parent:i}=e;if(ug(i)){const o=i,s=gCe(e,t,r);if(!s)return;const{list:c,argumentIndex:f,argumentCount:d,argumentsSpan:y}=s;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:y,argumentIndex:f,argumentCount:d}}else{if(Ox(e)&&kT(i))return v6(e,t,r)?bre(i,0,r):void 0;if(xC(e)&&i.parent.kind===212){const o=i,s=o.parent;D.assert(o.kind===225);const c=v6(e,t,r)?0:1;return bre(s,c,r)}else if($k(i)&&kT(i.parent.parent)){const o=i,s=i.parent.parent;if(XJ(e)&&!v6(e,t,r))return;const c=o.parent.templateSpans.indexOf(o),f=BYe(c,e,t,r);return bre(s,f,r)}else if(ed(i)){const o=i.attributes.pos,s=Jo(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:wc(o,s-o),argumentIndex:0,argumentCount:1}}else{const o=yQ(e,r);if(o){const{called:s,nTypeArguments:c}=o,f={kind:1,called:s},d=hc(s.getStart(r),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:d,argumentIndex:c,argumentCount:c+1}}return}}}function RYe(e,t,r,i){return NYe(e,t,r,i)||yCe(e,t,r)}function vCe(e){return br(e.parent)?vCe(e.parent):e}function vre(e){return br(e.left)?vre(e.left)+1:2}function NYe(e,t,r,i){const o=OYe(e,r,t,i);if(!o)return;const{contextualType:s,argumentIndex:c,argumentCount:f,argumentsSpan:d}=o,y=s.getNonNullableType(),h=y.symbol;if(h===void 0)return;const E=tl(y.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:PYe(h)},argumentsSpan:d,argumentIndex:c,argumentCount:f}}function OYe(e,t,r,i){if(e.kind!==20&&e.kind!==27)return;const{parent:o}=e;switch(o.kind){case 214:case 171:case 215:case 216:const s=gCe(e,r,t);if(!s)return;const{argumentIndex:c,argumentCount:f,argumentsSpan:d}=s,y=ac(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return y&&{contextualType:y,argumentIndex:c,argumentCount:f,argumentsSpan:d};case 223:{const h=vCe(o),E=i.getContextualType(h),A=e.kind===20?0:vre(o)-1,L=vre(h);return E&&{contextualType:E,argumentIndex:A,argumentCount:L,argumentsSpan:ad(o)}}default:return}}function PYe(e){return e.name==="__type"&&Kt(e.declarations,t=>{var r;return Lh(t)?(r=ai(t.parent,Rm))==null?void 0:r.symbol:void 0})||e}function MYe(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==27&&r++}return r}function FYe(e,t){const r=e.getChildren();let i=Gc(r,o=>o.kind!==27);return!t&&r.length>0&&zo(r).kind===27&&i++,i}function BYe(e,t,r,i){return D.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),ode(t)?v6(t,r,i)?0:e+2:e+1}function bre(e,t,r){const i=Ox(e.template)?1:e.template.templateSpans.length+1;return t!==0&&D.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:UYe(e,r),argumentIndex:t,argumentCount:i}}function GYe(e,t){const r=e.getFullStart(),i=Jo(t.text,e.getEnd(),!1);return wc(r,i-r)}function UYe(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===225&&zo(r.templateSpans).literal.getFullWidth()===0&&(o=Jo(t.text,o,!1)),wc(i,o-i)}function VYe(e,t,r,i,o){for(let s=e;!qi(s)&&(o||!lo(s));s=s.parent){D.assert(uf(s.parent,s),"Not a subspan",()=>`Child: ${D.formatSyntaxKind(s.kind)}, parent: ${D.formatSyntaxKind(s.parent.kind)}`);const c=RYe(s,t,r,i);if(c)return c}}function jYe(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return D.assert(o>=0&&i.length>o+1),i[o+1]}function bCe(e){return e.kind===0?D3(e.node):e.called}function ECe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function TCe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:c},f,d,y){var h;const E=ECe(s),A=s.kind===2?s.symbol:d.getSymbolAtLocation(bCe(s))||y&&((h=t.declaration)==null?void 0:h.symbol),L=A?Nw(d,A,y?f:void 0,void 0):rt,I=Vt(e,H=>zYe(H,L,r,d,E,f));c!==0&&D.assertLessThan(c,i);let O=0,k=0;for(let H=0;H<I.length;H++){const te=I[H];if(e[H]===t&&(O=k,te.length>1)){let X=0;for(const Y of te){if(Y.isVariadic||Y.parameters.length>=i){O=k+X;break}X++}}k+=te.length}D.assert(O!==-1);const G={items:u_(I,ml),applicableSpan:o,selectedItemIndex:O,argumentIndex:c,argumentCount:i},V=G.items[O];if(V.isVariadic){const H=mi(V.parameters,te=>!!te.isRest);-1<H&&H<V.parameters.length-1?G.argumentIndex=V.parameters.length:G.argumentIndex=Math.min(G.argumentIndex,V.parameters.length-1)}return G}function HYe(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,c){const f=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return f?{items:[WYe(e,f,c,ECe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function WYe(e,t,r,i,o){const s=Nw(r,e),c=J1(),f=t.map(E=>SCe(E,r,i,o,c)),d=e.getDocumentationComment(r),y=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Tu(29)],suffixDisplayParts:[Tu(31)],separatorDisplayParts:Ere,parameters:f,documentation:d,tags:y}}function zYe(e,t,r,i,o,s){const c=(r?JYe:KYe)(e,i,o,s);return Vt(c,({isVariadic:f,parameters:d,prefix:y,suffix:h})=>{const E=[...t,...y],A=[...h,...qYe(e,o,i)],L=e.getDocumentationComment(i),I=e.getJsDocTags();return{isVariadic:f,prefixDisplayParts:E,suffixDisplayParts:A,separatorDisplayParts:Ere,parameters:d,documentation:L,tags:I}})}function qYe(e,t,r){return Kv(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function JYe(e,t,r,i){const o=(e.target||e).typeParameters,s=J1(),c=(o||rt).map(d=>SCe(d,t,r,i,s)),f=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,sD)]:[];return t.getExpandedParameters(e).map(d=>{const y=N.createNodeArray([...f,...Vt(d,E=>t.symbolToParameterDeclaration(E,r,sD))]),h=Kv(E=>{s.writeList(2576,y,i,E)});return{isVariadic:!1,parameters:c,prefix:[Tu(29)],suffix:[Tu(31),...h]}})}function KYe(e,t,r,i){const o=J1(),s=Kv(d=>{if(e.typeParameters&&e.typeParameters.length){const y=N.createNodeArray(e.typeParameters.map(h=>t.typeParameterToDeclaration(h,r,sD)));o.writeList(53776,y,i,d)}}),c=t.getExpandedParameters(e),f=t.hasEffectiveRestParameter(e)?c.length===1?d=>!0:d=>{var y;return!!(d.length&&((y=ai(d[d.length-1],Om))==null?void 0:y.links.checkFlags)&32768)}:d=>!1;return c.map(d=>({isVariadic:f(d),parameters:d.map(y=>XYe(y,t,r,i,o)),prefix:[...s,Tu(20)],suffix:[Tu(21)]}))}function XYe(e,t,r,i,o){const s=Kv(d=>{const y=t.symbolToParameterDeclaration(e,r,sD);o.writeNode(4,y,i,d)}),c=t.isOptionalParameter(e.valueDeclaration),f=Om(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:c,isRest:f}}function SCe(e,t,r,i,o){const s=Kv(c=>{const f=t.typeParameterToDeclaration(e,r,sD);o.writeNode(4,f,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var sD,Ere,YYe=C({"src/services/signatureHelp.ts"(){$r(),sD=70246400,Ere=[Tu(27),bl()]}}),EP={};ne(EP,{getArgumentInfoForCompletions:()=>wYe,getSignatureHelpItems:()=>CYe});var $Ye=C({"src/services/_namespaces/ts.SignatureHelp.ts"(){YYe()}});function QYe(e,t){var r,i;let o={textSpan:hc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=e$e(s);if(!d.length)break;for(let y=0;y<d.length;y++){const h=d[y-1],E=d[y],A=d[y+1];if(dT(E,t,!0)>e)break e;const L=Am(W0(t.text,E.end));if(L&&L.kind===2&&f(L.pos,L.end),ZYe(t,e,E)){if(dz(E)&&Qs(s)&&!y_(E.getStart(t),E.getEnd(),t)&&c(E.getStart(t),E.getEnd()),lo(E)||$k(E)||xC(E)||XJ(E)||h&&xC(h)||Vu(E)&&uc(s)||FC(E)&&Vu(s)||Ki(E)&&FC(s)&&d.length===1||OT(E)||G1(E)||tw(E)){s=E;break}if($k(s)&&A&&n3(A)){const G=E.getFullStart()-2,V=A.getStart()+1;c(G,V)}const I=FC(E)&&t$e(h)&&n$e(A)&&!y_(h.getStart(),A.getStart(),t);let O=I?h.getEnd():E.getStart();const k=I?A.getStart():r$e(t,E);if(xf(E)&&((r=E.jsDoc)!=null&&r.length)&&c(us(E.jsDoc).getStart(),k),FC(E)){const G=E.getChildren()[0];G&&xf(G)&&((i=G.jsDoc)!=null&&i.length)&&G.getStart()!==E.pos&&(O=Math.min(O,us(G.jsDoc).getStart()))}c(O,k),(Vo(E)||FA(E))&&c(O+1,k-1),s=E;break}if(y===d.length-1)break e}}return o;function c(d,y){if(d!==y){const h=hc(d,y);(!o||!iL(h,o.textSpan)&&Fue(h,e))&&(o={textSpan:h,...o&&{parent:o}})}}function f(d,y){c(d,y);let h=d;for(;t.text.charCodeAt(h)===47;)h++;c(h,y)}}function ZYe(e,t,r){return D.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Df(e,t).pos<r.end:!1}function e$e(e){var t;if(qi(e))return lD(e.getChildAt(0).getChildren(),xCe);if(Kk(e)){const[r,...i]=e.getChildren(),o=D.checkDefined(i.pop());D.assertEqual(r.kind,18),D.assertEqual(o.kind,19);const s=lD(i,f=>f===e.readonlyToken||f.kind===146||f===e.questionToken||f.kind===57),c=lD(s,({kind:f})=>f===22||f===165||f===23);return[r,cD(kU(c,({kind:f})=>f===58)),o]}if(If(e)){const r=lD(e.getChildren(),c=>c===e.name||jr(e.modifiers,c)),i=((t=r[0])==null?void 0:t.kind)===323?r[0]:void 0,o=i?r.slice(1):r,s=kU(o,({kind:c})=>c===58);return i?[i,cD(s)]:s}if(Ba(e)){const r=lD(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=lD(r,o=>o===r[0]||o===e.questionToken);return kU(i,({kind:o})=>o===63)}return ps(e)?kU(e.getChildren(),({kind:r})=>r===63):e.getChildren()}function lD(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(cD(i)),i=void 0),r.push(o));return i&&r.push(cD(i)),r}function kU(e,t,r=!0){if(e.length<2)return e;const i=mi(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],c=zo(e),f=r&&c.kind===26,d=e.slice(i+1,f?e.length-1:void 0),y=CR([o.length?cD(o):void 0,s,d.length?cD(d):void 0]);return f?y.concat(c):y}function cD(e){return D.assertGreaterThanOrEqual(e.length,1),Vm(Jm.createSyntaxList(e),e[0].pos,zo(e).end)}function t$e(e){const t=e&&e.kind;return t===18||t===22||t===20||t===283}function n$e(e){const t=e&&e.kind;return t===19||t===23||t===21||t===284}function r$e(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var xCe,i$e=C({"src/services/smartSelection.ts"(){$r(),xCe=Im(zc,su)}}),Tre={};ne(Tre,{getSmartSelectionRange:()=>QYe});var a$e=C({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){i$e()}});function ACe(e,t,r){const i=CCe(e,t,r);if(i!=="")return i;const o=Tk(t);return o&32?Al(t,228)?"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 CCe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&us(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===108&&vt(r)||Tx(r))return"parameter";const o=Tk(t);if(o&3)return NQ(t)?"parameter":t.valueDeclaration&&fg(t.valueDeclaration)?"const":Ue(t.declarations,ek)?"let":kCe(t)?"local var":"var";if(o&16)return kCe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){const s=Ue(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function LCe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Ae(r)&&G9(t)&&kt(r,s=>!G9(s))?8192:0,o=ww(t,i);if(o)return o.split(",")}return[]}function o$e(e,t){if(!t)return"";const r=new Set(LCe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Ue(LCe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Ro(r.values()).join(","):""}function ICe(e,t,r,i,o,s=JT(o),c){var f;const d=[];let y=[],h=[];const E=Tk(t);let A=s&1?CCe(e,t,o):"",L=!1;const I=o.kind===108&&N3(o)||Tx(o);let O,k,G,V=!1;if(o.kind===108&&!I)return{displayParts:[Hd(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(A!==""||E&32||E&2097152){if(A==="getter"||A==="setter"){const me=nn(t.declarations,ve=>ve.name===o);if(me)switch(me.kind){case 174:A="getter";break;case 175:A="setter";break;case 169:A="accessor";break;default:D.assertNever(me)}else A="property"}let W;if(O=I?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o),o.parent&&o.parent.kind===208){const me=o.parent.name;(me===o||me&&me.getFullWidth()===0)&&(o=o.parent)}let ce;if(ug(o)?ce=o:(nQ(o)||Cw(o)||o.parent&&(ed(o.parent)||kT(o.parent))&&Ka(t.valueDeclaration))&&(ce=o.parent),ce){W=e.getResolvedSignature(ce);const me=ce.kind===211||no(ce)&&ce.expression.kind===106,ve=me?O.getConstructSignatures():O.getCallSignatures();if(W&&!jr(ve,W.target)&&!jr(ve,W)&&(W=ve.length?ve[0]:void 0),W){switch(me&&E&32?(A="constructor",de(O.symbol,A)):E&2097152?(A="alias",re(A),d.push(bl()),me&&(W.flags&4&&(d.push(Hd(126)),d.push(bl())),d.push(Hd(103)),d.push(bl())),P(t)):de(t,A),A){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(Tu(58)),d.push(bl()),!(ti(O)&16)&&O.symbol&&(Ti(d,Nw(e,O.symbol,i,void 0,5)),d.push(aL())),me&&(W.flags&4&&(d.push(Hd(126)),d.push(bl())),d.push(Hd(103)),d.push(bl())),ye(W,ve,262144);break;default:ye(W,ve)}L=!0,V=ve.length>1}}else if(cQ(o)&&!(E&98304)||o.kind===135&&o.parent.kind===173){const me=o.parent;if(t.declarations&&nn(t.declarations,Se=>Se===(o.kind===135?me.parent:me))){const Se=me.kind===173?O.getNonNullableType().getConstructSignatures():O.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(me)?W=Se[0]:W=e.getSignatureFromDeclaration(me),me.kind===173?(A="constructor",de(O.symbol,A)):de(me.kind===176&&!(O.symbol.flags&2048||O.symbol.flags&4096)?O.symbol:t,A),W&&ye(W,Se),L=!0,V=Se.length>1}}}if(E&32&&!L&&!I&&(X(),Al(t,228)?re("local class"):d.push(Hd(84)),d.push(bl()),P(t),ae(t,r)),E&64&&s&2&&(te(),d.push(Hd(118)),d.push(bl()),P(t),ae(t,r)),E&524288&&s&2&&(te(),d.push(Hd(154)),d.push(bl()),P(t),ae(t,r),d.push(bl()),d.push(Rw(63)),d.push(bl()),Ti(d,L6(e,cg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(te(),kt(t.declarations,W=>ob(W)&&T1(W))&&(d.push(Hd(85)),d.push(bl())),d.push(Hd(92)),d.push(bl()),P(t)),E&1536&&!I){te();const W=Al(t,264),ce=W&&W.name&&W.name.kind===79;d.push(Hd(ce?143:142)),d.push(bl()),P(t)}if(E&262144&&s&2)if(te(),d.push(Tu(20)),d.push(Rf("type parameter")),d.push(Tu(21)),d.push(bl()),P(t),t.parent)Y(),P(t.parent,i),ae(t.parent,i);else{const W=Al(t,165);if(W===void 0)return D.fail();const ce=W.parent;if(ce)if(Ka(ce)){Y();const me=e.getSignatureFromDeclaration(ce);ce.kind===177?(d.push(Hd(103)),d.push(bl())):ce.kind!==176&&ce.name&&P(ce.symbol),Ti(d,MQ(e,me,r,32))}else nm(ce)&&(Y(),d.push(Hd(154)),d.push(bl()),P(ce.symbol),ae(ce.symbol,r))}if(E&8){A="enum member",de(t,"enum member");const W=(f=t.declarations)==null?void 0:f[0];if((W==null?void 0:W.kind)===302){const ce=e.getConstantValue(W);ce!==void 0&&(d.push(bl()),d.push(Rw(63)),d.push(bl()),d.push(Id(Hde(ce),typeof ce=="number"?7:8)))}}if(t.flags&2097152){if(te(),!L){const W=e.getAliasedSymbol(t);if(W!==t&&W.declarations&&W.declarations.length>0){const ce=W.declarations[0],me=ka(ce);if(me){const ve=h3(ce)&&Yr(ce,2),Se=t.name!=="default"&&!ve,ee=ICe(e,W,Zn(ce),ce,me,s,Se?t:W);d.push(...ee.displayParts),d.push(aL()),k=ee.documentation,G=ee.tags}else k=W.getContextualDocumentationComment(ce,e),G=W.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:d.push(Hd(93)),d.push(bl()),d.push(Hd(143));break;case 274:d.push(Hd(93)),d.push(bl()),d.push(Hd(t.declarations[0].isExportEquals?63:88));break;case 278:d.push(Hd(93));break;default:d.push(Hd(100))}d.push(bl()),P(t),Ue(t.declarations,W=>{if(W.kind===268){const ce=W;if(X0(ce))d.push(bl()),d.push(Rw(63)),d.push(bl()),d.push(Hd(147)),d.push(Tu(20)),d.push(Id(xc(ik(ce)),8)),d.push(Tu(21));else{const me=e.getSymbolAtLocation(ce.moduleReference);me&&(d.push(bl()),d.push(Rw(63)),d.push(bl()),P(me,i))}return!0}})}if(!L)if(A!==""){if(O){if(I?(te(),d.push(Hd(108))):de(t,A),A==="property"||A==="accessor"||A==="getter"||A==="setter"||A==="JSX attribute"||E&3||A==="local var"||A==="index"||I){if(d.push(Tu(58)),d.push(bl()),O.symbol&&O.symbol.flags&262144&&A!=="index"){const W=Kv(ce=>{const me=e.typeParameterToDeclaration(O,i,Sre);H().writeNode(4,me,Zn(Ea(i)),ce)});Ti(d,W)}else Ti(d,L6(e,O,i));if(Om(t)&&t.links.target&&Om(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const W=t.links.target.links.tupleLabelDeclaration;D.assertNode(W.name,He),d.push(bl()),d.push(Tu(20)),d.push(Rf(Mr(W.name))),d.push(Tu(21))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||A==="method"){const W=O.getNonNullableType().getCallSignatures();W.length&&(ye(W[0],W),V=W.length>1)}}}else A=ACe(e,t,o);if(y.length===0&&!V&&(y=t.getContextualDocumentationComment(i,e)),y.length===0&&E&4&&t.parent&&t.declarations&&Ue(t.parent.declarations,W=>W.kind===308))for(const W of t.declarations){if(!W.parent||W.parent.kind!==223)continue;const ce=e.getSymbolAtLocation(W.parent.right);if(ce&&(y=ce.getDocumentationComment(e),h=ce.getJsDocTags(e),y.length>0))break}if(y.length===0&&He(o)&&t.valueDeclaration&&ps(t.valueDeclaration)){const W=t.valueDeclaration,ce=W.parent;if(He(W.name)&&Hm(ce)){const me=V_(W.name),ve=e.getTypeAtLocation(ce);y=Kt(ve.isUnion()?ve.types:[ve],Se=>{const ee=Se.getProperty(me);return ee?ee.getDocumentationComment(e):void 0})||rt}}return h.length===0&&!V&&(h=t.getContextualJsDocTags(i,e)),y.length===0&&k&&(y=k),h.length===0&&G&&(h=G),{displayParts:d,documentation:y,symbolKind:A,tags:h.length===0?void 0:h};function H(){return J1()}function te(){d.length&&d.push(aL()),X()}function X(){c&&(re("alias"),d.push(bl()))}function Y(){d.push(bl()),d.push(Hd(101)),d.push(bl())}function P(W,ce){let me;c&&W===t&&(W=c),A==="index"&&(me=e.getIndexInfosOfIndexSymbol(W));let ve=[];W.flags&131072&&me?(W.parent&&(ve=Nw(e,W.parent)),ve.push(Tu(22)),me.forEach((Se,ee)=>{ve.push(...L6(e,Se.keyType)),ee!==me.length-1&&(ve.push(bl()),ve.push(Tu(51)),ve.push(bl()))}),ve.push(Tu(23))):ve=Nw(e,W,ce||r,void 0,7),Ti(d,ve),t.flags&16777216&&d.push(Tu(57))}function de(W,ce){te(),ce&&(re(ce),W&&!kt(W.declarations,me=>Js(me)||(Bs(me)||Uu(me))&&!me.name)&&(d.push(bl()),P(W)))}function re(W){switch(W){case"var":case"function":case"let":case"const":case"constructor":d.push(OQ(W));return;default:d.push(Tu(20)),d.push(OQ(W)),d.push(Tu(21));return}}function ye(W,ce,me=0){Ti(d,MQ(e,W,i,me|32)),ce.length>1&&(d.push(bl()),d.push(Tu(20)),d.push(Rw(39)),d.push(Id((ce.length-1).toString(),7)),d.push(bl()),d.push(Rf(ce.length===2?"overload":"overloads")),d.push(Tu(21))),y=W.getDocumentationComment(e),h=W.getJsDocTags(),ce.length>1&&y.length===0&&h.length===0&&(y=ce[0].getDocumentationComment(e),h=ce[0].getJsDocTags().filter(ve=>ve.name!=="deprecated"))}function ae(W,ce){const me=Kv(ve=>{const Se=e.symbolToTypeParameterDeclarations(W,ce,Sre);H().writeList(53776,Se,Zn(Ea(ce)),ve)});Ti(d,me)}}function kCe(e){return e.parent?!1:Ue(e.declarations,t=>{if(t.kind===215)return!0;if(t.kind!==257&&t.kind!==259)return!1;for(let r=t.parent;!pT(r);r=r.parent)if(r.kind===308||r.kind===265)return!1;return!0})}var Sre,s$e=C({"src/services/symbolDisplay.ts"(){$r(),Sre=70246400}}),Oy={};ne(Oy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>ICe,getSymbolKind:()=>ACe,getSymbolModifiers:()=>o$e});var l$e=C({"src/services/_namespaces/ts.SymbolDisplay.ts"(){s$e()}});function wCe(e){const t=e.__pos;return D.assert(typeof t=="number"),t}function xre(e,t){D.assert(typeof t=="number"),e.__pos=t}function DCe(e){const t=e.__end;return D.assert(typeof t=="number"),t}function Are(e,t){D.assert(typeof t=="number"),e.__end=t}function RCe(e,t){return Jo(e,t,!1,!0)}function c$e(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(Dm(i)){r++;continue}return i===47}return!1}function uD(e,t,r,i){return{pos:oS(e,t,i),end:T2(e,r,i)}}function oS(e,t,r,i=!1){var o,s;const{leadingTriviaOption:c}=r;if(c===0)return t.getStart(e);if(c===3){const L=t.getStart(e),I=S_(L,e);return _6(t,I)?I:L}if(c===2){const L=Hz(t,e.text);if(L!=null&&L.length)return S_(L[0].pos,e)}const f=t.getFullStart(),d=t.getStart(e);if(f===d)return d;const y=S_(f,e);if(S_(d,e)===y)return c===1?f:d;if(i){const L=((o=mh(e.text,f))==null?void 0:o[0])||((s=W0(e.text,f))==null?void 0:s[0]);if(L)return Jo(e.text,L.end,!0,!0)}const E=f>0?1:0;let A=Dv(_k(e,y)+E,e);return A=RCe(e.text,A),Dv(_k(e,A),e)}function Cre(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=W0(e.text,i);if(s){const c=_k(e,t.end);for(const f of s){if(f.kind===2||_k(e,f.pos)>c)break;if(_k(e,f.end)>c)return Jo(e.text,f.end,!0,!0)}}}}function T2(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=ba(W0(e.text,o),mh(e.text,o)),y=(i=d==null?void 0:d[d.length-1])==null?void 0:i.end;return y||o}const c=Cre(e,t,r);if(c)return c;const f=Jo(e.text,o,!0);return f!==o&&(s===2||hu(e.text.charCodeAt(f-1)))?f:o}function wU(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===207)}function u$e(e){return Bs(e)||yc(e)}function d$e(e){if(e.kind!==216)return e;const t=e.parent.kind===169?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function f$e(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{const r=e,i=t;return He(r.name)&&He(i.name)&&r.name.escapedText===i.name.escapedText?N.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 345:return N.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return N.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Lre(e,t){return Jo(e.text,oS(e,t,{leadingTriviaOption:1}),!1,!0)}function _$e(e,t,r,i){const o=Lre(e,i);if(r===void 0||y_(T2(e,t,{}),o,e))return o;const s=Cc(i.getStart(e),e);if(wU(t,s)){const c=Cc(t.getStart(e),e);if(wU(r,c)){const f=Jo(e.text,s.getEnd(),!0,!0);if(y_(c.getStart(e),s.getStart(e),e))return hu(e.text.charCodeAt(f-1))?f-1:f;if(hu(e.text.charCodeAt(f)))return f}}return o}function p$e(e,t){const r=bs(e,18,t),i=bs(e,19,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function DU(e){return Ls(e)?e.properties:e.members}function m$e(e,t,r,i){return TP.newFileChangesWorker(void 0,t,e,r,i)}function Ire(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(iu(i))}`}return e}function h$e(e){return Jo(e,0)===e.length}function RU(e){const t=Bn(e,RU,PCe,g$e,RU),r=Zs(t)?t:Object.create(t);return Vm(r,wCe(e),DCe(e)),r}function g$e(e,t,r,i,o){const s=Jn(e,t,r,i,o);if(!s)return s;D.assert(e);const c=s===e?N.createNodeArray(s.slice(0)):s;return Vm(c,wCe(e),DCe(e)),c}function NCe(e){let t=0;const r=aO(e),i=ee=>{ee&&xre(ee,t)},o=ee=>{ee&&Are(ee,t)},s=ee=>{ee&&xre(ee,t)},c=ee=>{ee&&Are(ee,t)},f=ee=>{ee&&xre(ee,t)},d=ee=>{ee&&Are(ee,t)};function y(ee,Qe){if(Qe||!h$e(ee)){t=r.getTextPos();let je=0;for(;sg(ee.charCodeAt(ee.length-je-1));)je++;t-=je}}function h(ee){r.write(ee),y(ee,!1)}function E(ee){r.writeComment(ee)}function A(ee){r.writeKeyword(ee),y(ee,!1)}function L(ee){r.writeOperator(ee),y(ee,!1)}function I(ee){r.writePunctuation(ee),y(ee,!1)}function O(ee){r.writeTrailingSemicolon(ee),y(ee,!1)}function k(ee){r.writeParameter(ee),y(ee,!1)}function G(ee){r.writeProperty(ee),y(ee,!1)}function V(ee){r.writeSpace(ee),y(ee,!1)}function H(ee){r.writeStringLiteral(ee),y(ee,!1)}function te(ee,Qe){r.writeSymbol(ee,Qe),y(ee,!1)}function X(ee){r.writeLine(ee)}function Y(){r.increaseIndent()}function P(){r.decreaseIndent()}function de(){return r.getText()}function re(ee){r.rawWrite(ee),y(ee,!1)}function ye(ee){r.writeLiteral(ee),y(ee,!0)}function ae(){return r.getTextPos()}function W(){return r.getLine()}function ce(){return r.getColumn()}function me(){return r.getIndent()}function ve(){return r.isAtStartOfLine()}function Se(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:c,onBeforeEmitToken:f,onAfterEmitToken:d,write:h,writeComment:E,writeKeyword:A,writeOperator:L,writePunctuation:I,writeTrailingSemicolon:O,writeParameter:k,writeProperty:G,writeSpace:V,writeStringLiteral:H,writeSymbol:te,writeLine:X,increaseIndent:Y,decreaseIndent:P,getText:de,rawWrite:re,writeLiteral:ye,getTextPos:ae,getLine:W,getColumn:ce,getIndent:me,isAtStartOfLine:ve,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:Se}}function y$e(e){let t;for(const y of e.statements)if(yp(y))t=y;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=HM(i);o!==void 0&&(r=o.length,d());const s=mh(i,r);if(!s)return r;let c,f;for(const y of s){if(y.kind===3){if(p3(i,y.pos)){c={range:y,pinnedOrTripleSlash:!0};continue}}else if(Cz(i,y.pos,y.end)){c={range:y,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const h=e.getLineAndCharacterOfPosition(y.pos).line,E=e.getLineAndCharacterOfPosition(c.range.end).line;if(h>=E+2)break}if(e.statements.length){f===void 0&&(f=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const h=e.getLineAndCharacterOfPosition(y.end).line;if(f<h+2)break}c={range:y,pinnedOrTripleSlash:!1}}return c&&(r=c.range.end,d()),r;function d(){if(r<i.length){const y=i.charCodeAt(r);hu(y)&&(r++,r<i.length&&y===13&&i.charCodeAt(r)===10&&r++)}}}function OCe(e,t){return!wy(e,t)&&!YT(e,t)&&!hQ(e,t)&&!N0e(e,t)}function v$e(e,t){return(If(e)||to(e))&&r3(t)&&t.name.kind===164||hN(e)&&hN(t)}function Oh(e,t,r,i={leadingTriviaOption:1}){const o=oS(t,r,i),s=T2(t,r,i);e.deleteRange(t,{pos:o,end:s})}function dD(e,t,r,i){const o=D.checkDefined(Lc.SmartIndenter.getContainingList(i,r)),s=jA(o,i);if(D.assert(s!==-1),o.length===1){Oh(e,r,i);return}D.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Lre(r,i),end:s===o.length-1?T2(r,i,{}):_$e(r,i,o[s-1],o[s+1])})}var kre,wre,hL,NU,TP,PCe,Dre,b$e=C({"src/services/textChanges.ts"(){$r(),kre=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(kre||{}),wre=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(wre||{}),hL={leadingTriviaOption:0,trailingTriviaOption:0},NU=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new NU(ub(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const r=NU.fromContext(e);return t(r),r.getChanges()}pushRaw(e,t){D.assertEqual(e.fileName,t.fileName);for(const r of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:r.newText,range:p9(r.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,r={leadingTriviaOption:1}){this.deleteRange(e,uD(e,t,t,r))}deleteNodes(e,t,r={leadingTriviaOption:1},i){for(const o of t){const s=oS(e,o,r,i),c=T2(e,o,r);this.deleteRange(e,{pos:s,end:c}),i=!!Cre(e,o,r)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Jo(e.text,t.end,!0)})}deleteNodeRange(e,t,r,i={leadingTriviaOption:1}){const o=oS(e,t,i),s=T2(e,r,i);this.deleteRange(e,{pos:o,end:s})}deleteNodeRangeExcludingEnd(e,t,r,i={leadingTriviaOption:1}){const o=oS(e,t,i),s=r===void 0?e.text.length:oS(e,r,i);this.deleteRange(e,{pos:o,end:s})}replaceRange(e,t,r,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:r})}replaceNode(e,t,r,i=hL){this.replaceRange(e,uD(e,t,t,i),r,i)}replaceNodeRange(e,t,r,i,o=hL){this.replaceRange(e,uD(e,t,r,o),i,o)}replaceRangeWithNodes(e,t,r,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:r})}replaceNodeWithNodes(e,t,r,i=hL){this.replaceRangeWithNodes(e,uD(e,t,t,i),r,i)}replaceNodeWithText(e,t,r){this.replaceRangeWithText(e,uD(e,t,t,hL),r)}replaceNodeRangeWithNodes(e,t,r,i,o=hL){this.replaceRangeWithNodes(e,uD(e,t,r,o),i,o)}nodeHasTrailingComment(e,t,r=hL){return!!Cre(e,t,r)}nextCommaToken(e,t){const r=XT(t,t.parent,e);return r&&r.kind===27?r:void 0}replacePropertyAssignment(e,t,r){const i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:i})}insertNodeAt(e,t,r,i={}){this.replaceRange(e,g_(t),r,i)}insertNodesAt(e,t,r,i={}){this.replaceRangeWithNodes(e,g_(t),r,i)}insertNodeAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertNodesAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertAtTopOfFile(e,t,r){const i=y$e(e),o={prefix:i===0?void 0:this.newLineCharacter,suffix:(hu(e.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};Va(t)?this.insertNodesAt(e,i,t,o):this.insertNodeAt(e,i,t,o)}insertFirstParameter(e,t,r){const i=Yc(t);i?this.insertNodeBefore(e,i,r):this.insertNodeAt(e,t.pos,r)}insertNodeBefore(e,t,r,i=!1,o={}){this.insertNodeAt(e,oS(e,t,o),r,this.getOptionsForInsertNodeBefore(t,r,i))}insertModifierAt(e,t,r,i={}){this.insertNodeAt(e,t,N.createToken(r),i)}insertModifierBefore(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,r,i){const o=Dv(t,e),s=abe(e.text,o),c=OCe(e,s),f=kw(e,c?s:r),d=e.text.slice(o,s),y=`${c?"":this.newLineCharacter}//${i}${this.newLineCharacter}${d}`;this.insertText(e,f.getStart(e),y)}insertJsdocCommentBefore(e,t,r){const i=t.getStart(e);if(t.jsDoc)for(const c of t.jsDoc)this.deleteRange(e,{pos:S_(c.getStart(e),e),end:T2(e,c,{})});const o=BQ(e.text,i-1),s=e.text.slice(o,i);this.insertNodeAt(e,i,r,{suffix:this.newLineCharacter+s})}createJSDocText(e,t){const r=ma(t.jsDoc,o=>Ha(o.comment)?N.createJSDocText(o.comment):o.comment),i=Am(t.jsDoc);return i&&y_(i.pos,i.end,e)&&Ae(r)===0?void 0:N.createNodeArray(la(r,N.createJSDocText(` `)))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,d$e(t),N.createJSDocComment(this.createJSDocText(e,t),N.createNodeArray(r)))}addJSDocTags(e,t,r){const i=u_(t.jsDoc,s=>s.tags),o=r.filter(s=>!i.some((c,f)=>{const d=f$e(c,s);return d&&(i[f]=d),!!d}));this.replaceJSDocComment(e,t,[...i,...o])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,lr(u_(t.jsDoc,i=>i.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,g_(t),r)}tryInsertTypeAnnotation(e,t,r){var i;let o;if(Ka(t)){if(o=bs(t,21,e),!o){if(!Js(t))return!1;o=us(t.parameters)}}else o=(i=t.kind===257?t.exclamationToken:t.questionToken)!=null?i:t.name;return this.insertNodeAt(e,o.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){const i=bs(t,20,e).getStart(e)+1,o=t.parameters.length?", ":"";this.insertNodeAt(e,i,r,{prefix:"this: ",suffix:o})}insertTypeParameters(e,t,r){const i=(bs(t,20,e)||us(t.parameters)).getStart(e);this.insertNodesAt(e,i,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return wa(e)||Vc(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ki(e)?{suffix:", "}:Ba(e)?Ba(t)?{suffix:", "}:{}:Vo(e)&&zc(e.parent)||Ay(e)?{suffix:", "}:Ld(e)?{suffix:","+(r?this.newLineCharacter:" ")}:D.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){const i=Yc(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[r,...t.body.statements]):this.insertNodeBefore(e,i,r)}insertNodeAtConstructorStartAfterSuperCall(e,t,r){const i=nn(t.body.statements,o=>ou(o)&&zA(o.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}insertNodeAtConstructorEnd(e,t,r){const i=tl(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,N.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){const i=oS(e,t.getLastToken(),{});this.insertNodeAt(e,i,r,{prefix:hu(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var i;const o=(i=this.guessIndentationFromExistingMembers(e,t))!=null?i:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,DU(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,o))}guessIndentationFromExistingMembers(e,t){let r,i=t;for(const o of DU(t)){if(t7(i,o,e))return;const s=o.getStart(e),c=Lc.SmartIndenter.findFirstNonWhitespaceColumn(S_(s,e),s,e,this.formatContext.options);if(r===void 0)r=c;else if(c!==r)return;i=o}return r}computeIndentationForNewMember(e,t){var r;const i=t.getStart(e);return Lc.SmartIndenter.findFirstNonWhitespaceColumn(S_(i,e),i,e,this.formatContext.options)+((r=this.formatContext.options.indentSize)!=null?r:4)}getInsertNodeAtStartInsertOptions(e,t,r){const o=DU(t).length===0,s=bp(this.classesWithNodesInsertedAtStart,ms(t),{node:t,sourceFile:e}),c=Ls(t)&&(!m_(e)||!o),f=Ls(t)&&m_(e)&&o&&!s;return{indentation:r,prefix:(f?",":"")+this.newLineCharacter,suffix:c?",":id(t)&&o?";":""}}insertNodeAfterComma(e,t,r){const i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,us(r));this.insertNodesAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){return v$e(t,r)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,g_(t.end),N.createToken(26)),T2(e,t,{})}getInsertNodeAfterOptions(e,t){const r=this.getInsertNodeAfterOptionsWorker(t);return{...r,prefix:t.end===e.end&&wa(t)?r.prefix?` ${r.prefix}`:` `:r.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return D.assert(wa(e)||r3(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){if(D.assert(!t.name),t.kind===216){const i=bs(t,38,e),o=bs(t,20,e);o?(this.insertNodesAt(e,o.getStart(e),[N.createToken(98),N.createIdentifier(r)],{joiner:" "}),Oh(this,e,i)):(this.insertText(e,us(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,i,N.createToken(21))),t.body.kind!==238&&(this.insertNodesAt(e,t.body.getStart(e),[N.createToken(18),N.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[N.createToken(26),N.createToken(19)],{joiner:" "}))}else{const i=bs(t,t.kind===215?98:84,e).end;this.insertNodeAt(e,i,N.createIdentifier(r),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,i){const o=r.elements[i-1];o?this.insertNodeInListAfter(e,o,t):this.insertNodeBefore(e,r.elements[0],t,!y_(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,r,i=Lc.SmartIndenter.getContainingList(t,e)){if(!i){D.fail("node is not a list element");return}const o=jA(i,t);if(o<0)return;const s=t.getEnd();if(o!==i.length-1){const c=aa(e,t.end);if(c&&wU(t,c)){const f=i[o+1],d=RCe(e.text,f.getFullStart()),y=`${yo(c.kind)}${e.text.substring(c.end,d)}`;this.insertNodesAt(e,d,[r],{suffix:y})}}else{const c=t.getStart(e),f=S_(c,e);let d,y=!1;if(i.length===1)d=27;else{const h=Cc(t.pos,e);d=wU(t,h)?h.kind:27,y=S_(i[o-1].getStart(e),e)!==f}if(c$e(e.text,t.end)&&(y=!0),y){this.replaceRange(e,g_(s),N.createToken(d));const h=Lc.SmartIndenter.findFirstNonWhitespaceColumn(f,c,e,this.formatContext.options);let E=Jo(e.text,s,!0,!1);for(;E!==s&&hu(e.text.charCodeAt(E-1));)E--;this.replaceRange(e,g_(E),r,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(e,g_(s),r,{prefix:`${yo(d)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,iJ(t),N.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{const[r,i]=p$e(e,t);if(r!==void 0&&i!==void 0){const o=DU(e).length===0,s=y_(r,i,t);o&&s&&r!==i-1&&this.deleteRange(t,g_(r,i-1)),s&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&S0e(i.node,r))||(Va(r)?this.deleteRange(t,aJ(t,r)):Dre.deleteDeclaration(this,e,t,r));e.forEach(t=>{const r=t.getSourceFile(),i=Lc.SmartIndenter.getContainingList(t,r);if(t!==zo(i))return;const o=va(i,s=>!e.has(s),i.length-2);o!==-1&&this.deleteRange(r,{pos:i[o].end,end:Lre(r,i[o+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=TP.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:r,fileName:i,statements:o}of this.newFiles)t.push(TP.newFileChanges(r,i,o,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})}},(e=>{function t(f,d,y,h){return ia(SI(f,E=>E.sourceFile.path),E=>{const A=E[0].sourceFile,L=ly(E,(O,k)=>O.range.pos-k.range.pos||O.range.end-k.range.end);for(let O=0;O<L.length-1;O++)D.assert(L[O].range.end<=L[O+1].range.pos,"Changes overlap",()=>`${JSON.stringify(L[O].range)} and ${JSON.stringify(L[O+1].range)}`);const I=ia(L,O=>{const k=Jv(O.range),G=o(O,A,d,y,h);if(!(k.length===G.length&&Ebe(A.text,G,k.start)))return b6(k,G)});return I.length>0?{fileName:A.fileName,textChanges:I}:void 0})}e.getTextChangesFromChanges=t;function r(f,d,y,h,E){const A=i(f,eJ(d),y,h,E);return{fileName:d,textChanges:[b6(wc(0,0),A)],isNewFile:!0}}e.newFileChanges=r;function i(f,d,y,h,E){const A=y.map(O=>O===4?"":c(O,f,h).text).join(h),L=f8("any file name",A,99,!0,d),I=Lc.formatDocument(L,E);return Ire(A,I)+h}e.newFileChangesWorker=i;function o(f,d,y,h,E){var A;if(f.kind===0)return"";if(f.kind===3)return f.text;const{options:L={},range:{pos:I}}=f,O=V=>s(V,d,I,L,y,h,E),k=f.kind===2?f.nodes.map(V=>CA(O(V),y)).join(((A=f.options)==null?void 0:A.joiner)||y):O(f.node),G=L.indentation!==void 0||S_(I,d)===I?k:k.replace(/^\s+/,"");return(L.prefix||"")+G+(!L.suffix||ic(G,L.suffix)?"":L.suffix)}function s(f,d,y,{indentation:h,prefix:E,delta:A},L,I,O){const{node:k,text:G}=c(f,d,L);O&&O(k,G);const V=V9(I,d),H=h!==void 0?h:Lc.SmartIndenter.getIndentation(y,d,V,E===L||S_(y,d)===y);A===void 0&&(A=Lc.SmartIndenter.shouldIndentChildNode(V,f)&&V.indentSize||0);const te={text:G,getLineAndCharacterOfPosition(Y){return ol(this,Y)}},X=Lc.formatNodeGivenIndentation(k,te,d.languageVariant,H,A,{...I,options:V});return Ire(G,X)}function c(f,d,y){const h=NCe(y),E=D6(y);return q1({newLine:E,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},h).writeNode(4,f,d,h),{text:h.getText(),node:RU(f)}}e.getNonformattedText=c})(TP||(TP={})),PCe={...Tg,factory:RO(Tg.factory.flags|1,Tg.factory.baseFactory)},(e=>{function t(s,c,f,d){switch(d.kind){case 166:{const L=d.parent;Js(L)&&L.parameters.length===1&&!bs(L,20,f)?s.replaceNodeWithText(f,d,"()"):dD(s,c,f,d);break}case 269:case 268:const y=f.imports.length&&d===us(f.imports).parent||d===nn(f.statements,fT);Oh(s,f,d,{leadingTriviaOption:y?0:xf(d)?2:3});break;case 205:const h=d.parent;h.kind===204&&d!==zo(h.elements)?Oh(s,f,d):dD(s,c,f,d);break;case 257:o(s,c,f,d);break;case 165:dD(s,c,f,d);break;case 273:const A=d.parent;A.elements.length===1?i(s,f,A):dD(s,c,f,d);break;case 271:i(s,f,d);break;case 26:Oh(s,f,d,{trailingTriviaOption:0});break;case 98:Oh(s,f,d,{leadingTriviaOption:0});break;case 260:case 259:Oh(s,f,d,{leadingTriviaOption:xf(d)?2:3});break;default:d.parent?Wm(d.parent)&&d.parent.name===d?r(s,f,d.parent):no(d.parent)&&jr(d.parent.arguments,d)?dD(s,c,f,d):Oh(s,f,d):Oh(s,f,d)}}e.deleteDeclaration=t;function r(s,c,f){if(!f.namedBindings)Oh(s,c,f.parent);else{const d=f.name.getStart(c),y=aa(c,f.name.end);if(y&&y.kind===27){const h=Jo(c.text,y.end,!1,!0);s.deleteRange(c,{pos:d,end:h})}else Oh(s,c,f.name)}}function i(s,c,f){if(f.parent.name){const d=D.checkDefined(aa(c,f.pos-1));s.deleteRange(c,{pos:d.getStart(c),end:f.end})}else{const d=Q0(f,269);Oh(s,c,d)}}function o(s,c,f,d){const{parent:y}=d;if(y.kind===295){s.deleteNodeRange(f,bs(y,20,f),bs(y,21,f));return}if(y.declarations.length!==1){dD(s,c,f,d);return}const h=y.parent;switch(h.kind){case 247:case 246:s.replaceNode(f,d,N.createObjectLiteralExpression());break;case 245:Oh(s,f,y);break;case 240:Oh(s,f,h,{leadingTriviaOption:xf(h)?2:3});break;default:D.assertNever(h)}}})(Dre||(Dre={}))}}),gr={};ne(gr,{ChangeTracker:()=>NU,LeadingTriviaOption:()=>kre,TrailingTriviaOption:()=>wre,applyChanges:()=>Ire,assignPositionsToNode:()=>RU,createWriter:()=>NCe,deleteNode:()=>Oh,getNewFileText:()=>m$e,isThisTypeAnnotatable:()=>u$e,isValidLocationToAddComment:()=>OCe});var E$e=C({"src/services/_namespaces/ts.textChanges.ts"(){b$e()}}),Rre,Nre,T$e=C({"src/services/formatting/formattingContext.ts"(){$r(),Rre=(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))(Rre||{}),Nre=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=D.checkDefined(e),this.currentTokenParent=D.checkDefined(t),this.nextTokenSpan=D.checkDefined(r),this.nextTokenParent=D.checkDefined(i),this.contextNode=D.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=bs(e,18,this.sourceFile),r=bs(e,19,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function Ore(e,t,r,i,o){const s=t===1?FCe:MCe;s.setText(e),s.setTextPos(r);let c=!0,f,d,y,h,E;const A=o({advance:L,readTokenInfo:X,readEOFTokenRange:P,isOnToken:de,isOnEOF:re,getCurrentLeadingTrivia:()=>f,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:ae,skipToStartOf:W,getStartPos:()=>{var ce;return(ce=E==null?void 0:E.token.pos)!=null?ce:s.getTokenPos()}});return E=void 0,s.setText(void 0),A;function L(){E=void 0,s.getStartPos()!==r?c=!!d&&zo(d).kind===4:s.scan(),f=void 0,d=void 0;let me=s.getStartPos();for(;me<i;){const ve=s.getToken();if(!aC(ve))break;s.scan();const Se={pos:me,end:s.getStartPos(),kind:ve};me=s.getStartPos(),f=Fn(f,Se)}y=s.getStartPos()}function I(ce){switch(ce.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function O(ce){if(ce.parent)switch(ce.parent.kind){case 288:case 283:case 284:case 282:return Ad(ce.kind)||ce.kind===79}return!1}function k(ce){return Nx(ce)||Cy(ce)&&(E==null?void 0:E.token.kind)===11}function G(ce){return ce.kind===13}function V(ce){return ce.kind===16||ce.kind===17}function H(ce){return ce.parent&&im(ce.parent)&&ce.parent.initializer===ce}function te(ce){return ce===43||ce===68}function X(ce){D.assert(de());const me=I(ce)?1:G(ce)?2:V(ce)?3:O(ce)?4:k(ce)?5:H(ce)?6:0;if(E&&me===h)return ye(E,ce);s.getStartPos()!==y&&(D.assert(E!==void 0),s.setTextPos(y),s.scan());let ve=Y(ce,me);const Se=FU(s.getStartPos(),s.getTextPos(),ve);for(d&&(d=void 0);s.getStartPos()<i&&(ve=s.scan(),!!aC(ve));){const ee=FU(s.getStartPos(),s.getTextPos(),ve);if(d||(d=[]),d.push(ee),ve===4){s.scan();break}}return E={leadingTrivia:f,trailingTrivia:d,token:Se},ye(E,ce)}function Y(ce,me){const ve=s.getToken();switch(h=0,me){case 1:if(ve===31){h=1;const Se=s.reScanGreaterToken();return D.assert(ce.kind===Se),Se}break;case 2:if(te(ve)){h=2;const Se=s.reScanSlashToken();return D.assert(ce.kind===Se),Se}break;case 3:if(ve===19)return h=3,s.reScanTemplateToken(!1);break;case 4:return h=4,s.scanJsxIdentifier();case 5:return h=5,s.reScanJsxToken(!1);case 6:return h=6,s.reScanJsxAttributeValue();case 0:break;default:D.assertNever(me)}return ve}function P(){return D.assert(re()),FU(s.getStartPos(),s.getTextPos(),1)}function de(){const ce=E?E.token.kind:s.getToken();return ce!==1&&!aC(ce)}function re(){return(E?E.token.kind:s.getToken())===1}function ye(ce,me){return ox(me)&&ce.token.kind!==me.kind&&(ce.token.kind=me.kind),ce}function ae(ce){s.setTextPos(ce.end),y=s.getStartPos(),h=void 0,E=void 0,c=!1,f=void 0,d=void 0}function W(ce){s.setTextPos(ce.pos),y=s.getStartPos(),h=void 0,E=void 0,c=!1,f=void 0,d=void 0}}var MCe,FCe,S$e=C({"src/services/formatting/formattingScanner.ts"(){$r(),pD(),MCe=fy(99,!1,0),FCe=fy(99,!1,1)}}),SP,Pre,Mre,x$e=C({"src/services/formatting/rule.ts"(){$r(),SP=rt,Pre=(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))(Pre||{}),Mre=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Mre||{})}});function BCe(){const e=[];for(let Y=0;Y<=162;Y++)Y!==1&&e.push(Y);function t(...Y){return{tokens:e.filter(P=>!Y.some(de=>de===P)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=gL([...e,3]),o=gL([...e,1]),s=UCe(81,162),c=UCe(29,78),f=[101,102,162,128,140,150],d=[45,46,54,53],y=[8,9,79,20,22,18,108,103],h=[79,20,108,103],E=[79,21,23,103],A=[79,20,108,103],L=[79,21,23,103],I=[2,3],O=[79,...H9],k=i,G=gL([79,3,84,93,100]),V=gL([21,3,90,111,96,91]),H=[zr("IgnoreBeforeComment",r,I,SP,1),zr("IgnoreAfterLineComment",2,r,SP,1),zr("NotSpaceBeforeColon",r,58,[Oi,xP,HCe],16),zr("SpaceAfterColon",58,r,[Oi,xP],4),zr("NoSpaceBeforeQuestionMark",r,57,[Oi,xP,HCe],16),zr("SpaceAfterQuestionMarkInConditionalOperator",57,r,[Oi,C$e],4),zr("NoSpaceAfterQuestionMark",57,r,[Oi],16),zr("NoSpaceBeforeDot",r,[24,28],[Oi,$$e],16),zr("NoSpaceAfterDot",[24,28],r,[Oi],16),zr("NoSpaceBetweenImportParenInImportType",100,20,[Oi,F$e],16),zr("NoSpaceAfterUnaryPrefixOperator",d,y,[Oi,xP],16),zr("NoSpaceAfterUnaryPreincrementOperator",45,h,[Oi],16),zr("NoSpaceAfterUnaryPredecrementOperator",46,A,[Oi],16),zr("NoSpaceBeforeUnaryPostincrementOperator",E,45,[Oi,iLe],16),zr("NoSpaceBeforeUnaryPostdecrementOperator",L,46,[Oi,iLe],16),zr("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Oi,Py],4),zr("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Oi,Py],4),zr("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Oi,Py],4),zr("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Oi,Py],4),zr("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Oi,Py],4),zr("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Oi,Py],4),zr("NoSpaceAfterCloseBrace",19,[27,26],[Oi],16),zr("NewLineBeforeCloseBraceInBlockContext",i,19,[zCe],8),zr("SpaceAfterCloseBrace",19,t(21),[Oi,k$e],4),zr("SpaceBetweenCloseBraceAndElse",19,91,[Oi],4),zr("SpaceBetweenCloseBraceAndWhile",19,115,[Oi],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Oi,$Ce],16),zr("SpaceAfterConditionalClosingParen",21,22,[AP],4),zr("NoSpaceBetweenFunctionKeywordAndStar",98,41,[KCe],16),zr("SpaceAfterStarInGeneratorDeclaration",41,79,[KCe],4),zr("SpaceAfterFunctionInFuncDecl",98,r,[Q1],4),zr("NewLineAfterOpenBraceInBlockContext",18,r,[zCe],8),zr("SpaceAfterGetSetInMember",[137,151],79,[Q1],4),zr("NoSpaceBetweenYieldKeywordAndStar",125,41,[Oi,rLe],16),zr("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],r,[Oi,rLe],4),zr("NoSpaceBetweenReturnAndSemicolon",105,26,[Oi],16),zr("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],r,[Oi],4),zr("SpaceAfterLetConstInVariableDeclaration",[119,85],r,[Oi,V$e],4),zr("NoSpaceBeforeOpenParenInFuncCall",r,20,[Oi,R$e,N$e],16),zr("SpaceBeforeBinaryKeywordOperator",r,f,[Oi,Py],4),zr("SpaceAfterBinaryKeywordOperator",f,r,[Oi,Py],4),zr("SpaceAfterVoidOperator",114,r,[Oi,q$e],4),zr("SpaceBetweenAsyncAndOpenParen",132,20,[M$e,Oi],4),zr("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[Oi],4),zr("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Oi],16),zr("SpaceBeforeJsxAttribute",r,79,[B$e,Oi],4),zr("SpaceBeforeSlashInJsxOpeningElement",r,43,[eLe,Oi],4),zr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[eLe,Oi],16),zr("NoSpaceBeforeEqualInJsxAttribute",r,63,[ZCe,Oi],16),zr("NoSpaceAfterEqualInJsxAttribute",63,r,[ZCe,Oi],16),zr("NoSpaceAfterModuleImport",[142,147],20,[Oi],16),zr("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],r,[Oi],4),zr("SpaceBeforeCertainTypeScriptKeywords",r,[94,117,158],[Oi],4),zr("SpaceAfterModuleName",10,18,[j$e],4),zr("SpaceBeforeArrow",r,38,[Oi],4),zr("SpaceAfterArrow",38,r,[Oi],4),zr("NoSpaceAfterEllipsis",25,79,[Oi],16),zr("NoSpaceAfterOptionalParameters",57,[21,27],[Oi,xP],16),zr("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Oi,H$e],16),zr("NoSpaceBeforeOpenAngularBracket",O,29,[Oi,CP],16),zr("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Oi,CP],16),zr("NoSpaceAfterOpenAngularBracket",29,r,[Oi,CP],16),zr("NoSpaceBeforeCloseAngularBracket",r,31,[Oi,CP],16),zr("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Oi,CP,I$e,z$e],16),zr("SpaceBeforeAt",[21,79],59,[Oi],4),zr("NoSpaceAfterAt",59,r,[Oi],16),zr("SpaceAfterDecorator",r,[126,79,93,88,84,124,123,121,122,137,151,22,41],[U$e],4),zr("NoSpaceBeforeNonNullAssertionOperator",r,53,[Oi,J$e],16),zr("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Oi,W$e],16),zr("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Oi],4)],te=[zr("SpaceAfterConstructor",135,20,[df("insertSpaceAfterConstructor"),Oi],4),zr("NoSpaceAfterConstructor",135,20,[Lp("insertSpaceAfterConstructor"),Oi],16),zr("SpaceAfterComma",27,r,[df("insertSpaceAfterCommaDelimiter"),Oi,Hre,O$e,P$e],4),zr("NoSpaceAfterComma",27,r,[Lp("insertSpaceAfterCommaDelimiter"),Oi,Hre],16),zr("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[df("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Q1],4),zr("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Lp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Q1],16),zr("SpaceAfterKeywordInControl",s,20,[df("insertSpaceAfterKeywordsInControlFlowStatements"),AP],4),zr("NoSpaceAfterKeywordInControl",s,20,[Lp("insertSpaceAfterKeywordsInControlFlowStatements"),AP],16),zr("SpaceAfterOpenParen",20,r,[df("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),zr("SpaceBeforeCloseParen",r,21,[df("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),zr("SpaceBetweenOpenParens",20,20,[df("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],4),zr("NoSpaceBetweenParens",20,21,[Oi],16),zr("NoSpaceAfterOpenParen",20,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],16),zr("NoSpaceBeforeCloseParen",r,21,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oi],16),zr("SpaceAfterOpenBracket",22,r,[df("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],4),zr("SpaceBeforeCloseBracket",r,23,[df("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],4),zr("NoSpaceBetweenBrackets",22,23,[Oi],16),zr("NoSpaceAfterOpenBracket",22,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],16),zr("NoSpaceBeforeCloseBracket",r,23,[Lp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oi],16),zr("SpaceAfterOpenBrace",18,r,[jCe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),WCe],4),zr("SpaceBeforeCloseBrace",r,19,[jCe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),WCe],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Oi,$Ce],16),zr("NoSpaceAfterOpenBrace",18,r,[Fre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oi],16),zr("NoSpaceBeforeCloseBrace",r,19,[Fre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oi],16),zr("SpaceBetweenEmptyBraceBrackets",18,19,[df("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Fre("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Oi],16),zr("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[df("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),QCe],4,1),zr("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[df("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oi],4),zr("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[Lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),QCe],16,1),zr("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[Lp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oi],16),zr("SpaceAfterOpenBraceInJsxExpression",18,r,[df("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,PU],4),zr("SpaceBeforeCloseBraceInJsxExpression",r,19,[df("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,PU],4),zr("NoSpaceAfterOpenBraceInJsxExpression",18,r,[Lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,PU],16),zr("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[Lp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oi,PU],16),zr("SpaceAfterSemicolonInFor",26,r,[df("insertSpaceAfterSemicolonInForStatements"),Oi,Gre],4),zr("NoSpaceAfterSemicolonInFor",26,r,[Lp("insertSpaceAfterSemicolonInForStatements"),Oi,Gre],16),zr("SpaceBeforeBinaryOperator",r,c,[df("insertSpaceBeforeAndAfterBinaryOperators"),Oi,Py],4),zr("SpaceAfterBinaryOperator",c,r,[df("insertSpaceBeforeAndAfterBinaryOperators"),Oi,Py],4),zr("NoSpaceBeforeBinaryOperator",r,c,[Lp("insertSpaceBeforeAndAfterBinaryOperators"),Oi,Py],16),zr("NoSpaceAfterBinaryOperator",c,r,[Lp("insertSpaceBeforeAndAfterBinaryOperators"),Oi,Py],16),zr("SpaceBeforeOpenParenInFuncDecl",r,20,[df("insertSpaceBeforeFunctionParenthesis"),Oi,Q1],4),zr("NoSpaceBeforeOpenParenInFuncDecl",r,20,[Lp("insertSpaceBeforeFunctionParenthesis"),Oi,Q1],16),zr("NewLineBeforeOpenBraceInControl",V,18,[df("placeOpenBraceOnNewLineForControlBlocks"),AP,jre],8,1),zr("NewLineBeforeOpenBraceInFunction",k,18,[df("placeOpenBraceOnNewLineForFunctions"),Q1,jre],8,1),zr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",G,18,[df("placeOpenBraceOnNewLineForFunctions"),XCe,jre],8,1),zr("SpaceAfterTypeAssertion",31,r,[df("insertSpaceAfterTypeAssertion"),Oi,zre],4),zr("NoSpaceAfterTypeAssertion",31,r,[Lp("insertSpaceAfterTypeAssertion"),Oi,zre],16),zr("SpaceBeforeTypeAnnotation",r,[57,58],[df("insertSpaceBeforeTypeAnnotation"),Oi,Ure],4),zr("NoSpaceBeforeTypeAnnotation",r,[57,58],[Lp("insertSpaceBeforeTypeAnnotation"),Oi,Ure],16),zr("NoOptionalSemicolon",26,o,[VCe("semicolons","remove"),X$e],32),zr("OptionalSemicolon",r,o,[VCe("semicolons","insert"),Y$e],64)],X=[zr("NoSpaceBeforeSemicolon",r,26,[Oi],16),zr("SpaceBeforeOpenBraceInControl",V,18,[Bre("placeOpenBraceOnNewLineForControlBlocks"),AP,Wre,Vre],4,1),zr("SpaceBeforeOpenBraceInFunction",k,18,[Bre("placeOpenBraceOnNewLineForFunctions"),Q1,OU,Wre,Vre],4,1),zr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",G,18,[Bre("placeOpenBraceOnNewLineForFunctions"),XCe,Wre,Vre],4,1),zr("NoSpaceBeforeComma",r,27,[Oi],16),zr("NoSpaceBeforeOpenBracket",t(132,82),22,[Oi],16),zr("NoSpaceAfterCloseBracket",23,r,[Oi,G$e],16),zr("SpaceAfterSemicolon",26,r,[Oi],4),zr("SpaceBetweenForAndAwaitKeyword",97,133,[Oi],4),zr("SpaceBetweenStatements",[21,90,91,82],r,[Oi,Hre,A$e],4),zr("SpaceAfterTryCatchFinally",[111,83,96],18,[Oi],4)];return[...H,...te,...X]}function zr(e,t,r,i,o,s=0){return{leftTokenRange:GCe(t),rightTokenRange:GCe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function gL(e){return{tokens:e,isSpecific:!0}}function GCe(e){return typeof e=="number"?gL([e]):Va(e)?gL(e):e}function UCe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)jr(r,o)||i.push(o);return gL(i)}function VCe(e,t){return r=>r.options&&r.options[e]===t}function df(e){return t=>t.options&&Ps(t.options,e)&&!!t.options[e]}function Fre(e){return t=>t.options&&Ps(t.options,e)&&!t.options[e]}function Lp(e){return t=>!t.options||!Ps(t.options,e)||!t.options[e]}function Bre(e){return t=>!t.options||!Ps(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function jCe(e){return t=>!t.options||!Ps(t.options,e)||!!t.options[e]}function Gre(e){return e.contextNode.kind===245}function A$e(e){return!Gre(e)}function Py(e){switch(e.contextNode.kind){case 223:return e.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 246:case 165:return e.currentTokenSpan.kind===101||e.nextTokenSpan.kind===101||e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 247:return e.currentTokenSpan.kind===162||e.nextTokenSpan.kind===162}return!1}function xP(e){return!Py(e)}function HCe(e){return!Ure(e)}function Ure(e){const t=e.contextNode.kind;return t===169||t===168||t===166||t===257||cx(t)}function C$e(e){return e.contextNode.kind===224||e.contextNode.kind===191}function Vre(e){return e.TokensAreOnSameLine()||OU(e)}function WCe(e){return e.contextNode.kind===203||e.contextNode.kind===197||L$e(e)}function jre(e){return OU(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function zCe(e){return qCe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function L$e(e){return qCe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function qCe(e){return JCe(e.contextNode)}function OU(e){return JCe(e.nextTokenParent)}function JCe(e){if(YCe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function Q1(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function I$e(e){return!Q1(e)}function KCe(e){return e.contextNode.kind===259||e.contextNode.kind===215}function XCe(e){return YCe(e.contextNode)}function YCe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function k$e(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const t=e.currentTokenParent.parent;if(!t||t.kind!==216&&t.kind!==215)return!0}}return!1}function AP(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function $Ce(e){return e.contextNode.kind===207}function w$e(e){return e.contextNode.kind===210}function D$e(e){return e.contextNode.kind===211}function R$e(e){return w$e(e)||D$e(e)}function N$e(e){return e.currentTokenSpan.kind!==27}function O$e(e){return e.nextTokenSpan.kind!==23}function P$e(e){return e.nextTokenSpan.kind!==21}function M$e(e){return e.contextNode.kind===216}function F$e(e){return e.contextNode.kind===202}function Oi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function QCe(e){return e.contextNode.kind!==11}function Hre(e){return e.contextNode.kind!==281&&e.contextNode.kind!==285}function PU(e){return e.contextNode.kind===291||e.contextNode.kind===290}function B$e(e){return e.nextTokenParent.kind===288}function ZCe(e){return e.contextNode.kind===288}function eLe(e){return e.contextNode.kind===282}function G$e(e){return!Q1(e)&&!OU(e)}function U$e(e){return e.TokensAreOnSameLine()&&$f(e.contextNode)&&tLe(e.currentTokenParent)&&!tLe(e.nextTokenParent)}function tLe(e){for(;e&&vt(e);)e=e.parent;return e&&e.kind===167}function V$e(e){return e.currentTokenParent.kind===258&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Wre(e){return e.formattingRequestKind!==2}function j$e(e){return e.contextNode.kind===264}function H$e(e){return e.contextNode.kind===184}function W$e(e){return e.contextNode.kind===177}function nLe(e,t){if(e.kind!==29&&e.kind!==31)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function CP(e){return nLe(e.currentTokenSpan,e.currentTokenParent)||nLe(e.nextTokenSpan,e.nextTokenParent)}function zre(e){return e.contextNode.kind===213}function z$e(e){return!zre(e)}function q$e(e){return e.currentTokenSpan.kind===114&&e.currentTokenParent.kind===219}function rLe(e){return e.contextNode.kind===226&&e.contextNode.expression!==void 0}function J$e(e){return e.contextNode.kind===232}function iLe(e){return!K$e(e)}function K$e(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function X$e(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(aC(t)){const s=e.nextTokenParent===e.currentTokenParent?XT(e.currentTokenParent,nr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===19||t===1:t===237||t===26?!1:e.contextNode.kind===261||e.contextNode.kind===262?!If(e.currentTokenParent)||!!e.currentTokenParent.type||t!==20:to(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==245&&e.currentTokenParent.kind!==239&&e.currentTokenParent.kind!==237&&t!==22&&t!==20&&t!==39&&t!==40&&t!==43&&t!==13&&t!==27&&t!==225&&t!==15&&t!==14&&t!==24}function Y$e(e){return w9(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function $$e(e){return!Fr(e.contextNode)||!b_(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var Q$e=C({"src/services/formatting/rules.ts"(){$r(),pD()}});function Z$e(e,t){return{options:e,getRules:eQe(),host:t}}function eQe(){return qre===void 0&&(qre=nQe(BCe())),qre}function tQe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function nQe(e){const t=rQe(e);return r=>{const i=t[aLe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const c of i){const f=~tQe(s);c.action&f&&Yn(c.context,d=>d(r))&&(o.push(c),s|=c.action)}if(o.length)return o}}}function rQe(e){const t=new Array(MU*MU),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const f=aLe(s,c);let d=t[f];d===void 0&&(d=t[f]=[]),iQe(d,i.rule,o,r,f)}}return t}function aLe(e,t){return D.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*MU+t}function iQe(e,t,r,i,o){const s=t.action&3?r?0:yL.StopRulesAny:t.context!==SP?r?yL.ContextRulesSpecific:yL.ContextRulesAny:r?yL.NoContextRulesSpecific:yL.NoContextRulesAny,c=i[o]||0;e.splice(aQe(c,s),0,t),i[o]=oQe(c,s)}function aQe(e,t){let r=0;for(let i=0;i<=t;i+=S2)r+=e&LP,e>>=S2;return r}function oQe(e,t){const r=(e>>t&LP)+1;return D.assert((r&LP)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(LP<<t)|r<<t}var qre,S2,LP,MU,yL,sQe=C({"src/services/formatting/rulesMap.ts"(){$r(),pD(),S2=5,LP=31,MU=162+1,yL=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=S2*1]="StopRulesAny",e[e.ContextRulesSpecific=S2*2]="ContextRulesSpecific",e[e.ContextRulesAny=S2*3]="ContextRulesAny",e[e.NoContextRulesSpecific=S2*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=S2*5]="NoContextRulesAny",e))(yL||{})}});function FU(e,t,r){const i={pos:e,end:t,kind:r};return D.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>D.formatSyntaxKind(r)}),i}function lQe(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=EN(i,t);for(;Dm(t.text.charCodeAt(o));)o--;hu(t.text.charCodeAt(o))&&o--;const s={pos:Dv(i-1,t),end:o+1};return IP(s,t,r,2)}function cQe(e,t,r){const i=Jre(e,26,t);return oLe(Kre(i),t,r,3)}function uQe(e,t,r){const i=Jre(e,18,t);if(!i)return[];const o=i.parent,s=Kre(o),c={pos:S_(s.getStart(t),t),end:e};return IP(c,t,r,4)}function dQe(e,t,r){const i=Jre(e,19,t);return oLe(Kre(i),t,r,5)}function fQe(e,t){const r={pos:0,end:e.text.length};return IP(r,e,t,0)}function _Qe(e,t,r,i){const o={pos:S_(e,r),end:t};return IP(o,r,i,1)}function Jre(e,t,r){const i=Cc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Kre(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!pQe(t.parent,t);)t=t.parent;return t}function pQe(e,t){switch(e.kind){case 260:case 261:return uf(e.members,t);case 264:const r=e.body;return!!r&&r.kind===265&&uf(r.statements,t);case 308:case 238:case 265:return uf(e.statements,t);case 295:return uf(e.block.statements,t)}return!1}function mQe(e,t){return r(t);function r(i){const o=Ma(i,s=>uQ(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function hQe(e,t){if(!e.length)return o;const r=e.filter(s=>Iw(t,s.start,s.start+s.length)).sort((s,c)=>s.start-c.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const c=r[i];if(s.end<=c.start)return!1;if(a9(s.pos,s.end,c.start,c.start+c.length))return!0;i++}};function o(){return!1}}function gQe(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Cc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function yQe(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(Ip.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function vQe(e,t,r,i,o,s){const c={pos:e.pos,end:e.end};return Ore(t.text,r,c.pos,c.end,f=>sLe(c,e,i,o,f,s,1,d=>!1,t))}function oLe(e,t,r,i){if(!e)return[];const o={pos:S_(e.getStart(t),t),end:e.end};return IP(o,t,r,i)}function IP(e,t,r,i){const o=mQe(e,t);return Ore(t.text,t.languageVariant,gQe(o,e,t),e.end,s=>sLe(e,o,Ip.getIndentationForNode(o,e,t,r.options),yQe(o,r.options,t),s,r,i,hQe(t.parseDiagnostics,e),t))}function sLe(e,t,r,i,o,{options:s,getRules:c,host:f},d,y,h){var E;const A=new Nre(h,d,s);let L,I,O,k,G,V=-1;const H=[];if(o.advance(),o.isOnToken()){const ze=h.getLineAndCharacterOfPosition(t.getStart(h)).line;let Fe=ze;$f(t)&&(Fe=h.getLineAndCharacterOfPosition(Lz(t,h)).line),de(t,t,ze,Fe,r,i)}if(!o.isOnToken()){const ze=Ip.nodeWillIndentChild(s,t,void 0,h,!1)?r+s.indentSize:r,Fe=o.getCurrentLeadingTrivia();Fe&&(re(Fe,ze,!1,st=>ae(st,h.getLineAndCharacterOfPosition(st.pos),t,t,void 0)),s.trimTrailingWhitespace!==!1&&je(Fe))}if(I&&o.getStartPos()>=e.end){const ze=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(ze&&ze.pos===L){const Fe=((E=Cc(ze.end,h,t))==null?void 0:E.parent)||O;W(ze,h.getLineAndCharacterOfPosition(ze.pos).line,Fe,I,k,O,Fe,void 0)}}return H;function te(ze,Fe,st,Ct,Et){if(Iw(Ct,ze,Fe)||m6(Ct,ze,Fe)){if(Et!==-1)return Et}else{const jt=h.getLineAndCharacterOfPosition(ze).line,tt=S_(ze,h),at=Ip.findFirstNonWhitespaceColumn(tt,ze,h,s);if(jt!==st||ze===at){const sn=Ip.getBaseIndentation(s);return sn>at?sn:at}}return-1}function X(ze,Fe,st,Ct,Et,jt){const tt=Ip.shouldIndentChildNode(s,ze)?s.indentSize:0;return jt===Fe?{indentation:Fe===G?V:Et.getIndentation(),delta:Math.min(s.indentSize,Et.getDelta(ze)+tt)}:st===-1?ze.kind===20&&Fe===G?{indentation:V,delta:Et.getDelta(ze)}:Ip.childStartsOnTheSameLineWithElseInIfStatement(Ct,ze,Fe,h)||Ip.childIsUnindentedBranchOfConditionalExpression(Ct,ze,Fe,h)||Ip.argumentStartsOnSameLineAsPreviousArgument(Ct,ze,Fe,h)?{indentation:Et.getIndentation(),delta:tt}:{indentation:Et.getIndentation()+Et.getDelta(ze),delta:tt}:{indentation:st,delta:tt}}function Y(ze){if(X_(ze)){const Fe=nn(ze.modifiers,uo,mi(ze.modifiers,Bu));if(Fe)return Fe.kind}switch(ze.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(ze.asteriskToken)return 41;case 169:case 166:const Fe=ka(ze);if(Fe)return Fe.kind}}function P(ze,Fe,st,Ct){return{getIndentationForComment:(tt,at,sn)=>{switch(tt){case 19:case 23:case 21:return st+jt(sn)}return at!==-1?at:st},getIndentationForToken:(tt,at,sn,Qt)=>!Qt&&Et(tt,at,sn)?st+jt(sn):st,getIndentation:()=>st,getDelta:jt,recomputeIndentation:(tt,at)=>{Ip.shouldIndentChildNode(s,at,ze,h)&&(st+=tt?s.indentSize:-s.indentSize,Ct=Ip.shouldIndentChildNode(s,ze)?s.indentSize:0)}};function Et(tt,at,sn){switch(at){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(sn.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(sn.kind!==197)return!1;break}return Fe!==tt&&!($f(ze)&&at===Y(ze))}function jt(tt){return Ip.nodeWillIndentChild(s,ze,tt,h,!0)?Ct:0}}function de(ze,Fe,st,Ct,Et,jt){if(!Iw(e,ze.getStart(h),ze.getEnd()))return;const tt=P(ze,st,Et,jt);let at=Fe;for(Ma(ze,jn=>{sn(jn,-1,ze,tt,st,Ct,!1)},jn=>{Qt(jn,ze,st,tt)});o.isOnToken()&&o.getStartPos()<e.end;){const jn=o.readTokenInfo(ze);if(jn.token.end>Math.min(ze.end,e.end))break;On(jn,ze,tt,ze)}function sn(jn,In,Zt,_r,Ii,$i,Qi,Or){if(D.assert(!Zs(jn)),Cl(jn)||Fde(Zt,jn))return In;const At=jn.getStart(h),vn=h.getLineAndCharacterOfPosition(At).line;let Wt=vn;$f(jn)&&(Wt=h.getLineAndCharacterOfPosition(Lz(jn,h)).line);let dn=-1;if(Qi&&uf(e,Zt)&&(dn=te(At,jn.end,Ii,e,In),dn!==-1&&(In=dn)),!Iw(e,jn.pos,jn.end))return jn.end<e.pos&&o.skipToEndOf(jn),In;if(jn.getFullWidth()===0)return In;for(;o.isOnToken()&&o.getStartPos()<e.end;){const Pi=o.readTokenInfo(ze);if(Pi.token.end>e.end)return In;if(Pi.token.end>At){Pi.token.pos>At&&o.skipToStartOf(jn);break}On(Pi,ze,_r,ze)}if(!o.isOnToken()||o.getStartPos()>=e.end)return In;if(ox(jn)){const Pi=o.readTokenInfo(jn);if(jn.kind!==11)return D.assert(Pi.token.end===jn.end,"Token end is child end"),On(Pi,ze,_r,jn),In}const rr=jn.kind===167?vn:$i,cr=X(jn,vn,dn,ze,_r,rr);return de(jn,at,vn,Wt,cr.indentation,cr.delta),at=ze,Or&&Zt.kind===206&&In===-1&&(In=cr.indentation),In}function Qt(jn,In,Zt,_r){D.assert(h1(jn)),D.assert(!Zs(jn));const Ii=bQe(In,jn);let $i=_r,Qi=Zt;if(!Iw(e,jn.pos,jn.end)){jn.end<e.pos&&o.skipToEndOf(jn);return}if(Ii!==0)for(;o.isOnToken()&&o.getStartPos()<e.end;){const vn=o.readTokenInfo(In);if(vn.token.end>jn.pos)break;if(vn.token.kind===Ii){Qi=h.getLineAndCharacterOfPosition(vn.token.pos).line,On(vn,In,_r,In);let Wt;if(V!==-1)Wt=V;else{const dn=S_(vn.token.pos,h);Wt=Ip.findFirstNonWhitespaceColumn(dn,vn.token.pos,h,s)}$i=P(In,Zt,Wt,s.indentSize)}else On(vn,In,_r,In)}let Or=-1;for(let vn=0;vn<jn.length;vn++){const Wt=jn[vn];Or=sn(Wt,Or,ze,$i,Qi,Qi,!0,vn===0)}const At=EQe(Ii);if(At!==0&&o.isOnToken()&&o.getStartPos()<e.end){let vn=o.readTokenInfo(In);vn.token.kind===27&&(On(vn,In,$i,In),vn=o.isOnToken()?o.readTokenInfo(In):void 0),vn&&vn.token.kind===At&&uf(In,vn.token)&&On(vn,In,$i,In,!0)}}function On(jn,In,Zt,_r,Ii){D.assert(uf(In,jn.token));const $i=o.lastTrailingTriviaWasNewLine();let Qi=!1;jn.leadingTrivia&&ye(jn.leadingTrivia,In,at,Zt);let Or=0;const At=uf(e,jn.token),vn=h.getLineAndCharacterOfPosition(jn.token.pos);if(At){const Wt=y(jn.token),dn=I;if(Or=ae(jn.token,vn,In,at,Zt),!Wt)if(Or===0){const rr=dn&&h.getLineAndCharacterOfPosition(dn.end).line;Qi=$i&&vn.line!==rr}else Qi=Or===1}if(jn.trailingTrivia&&(L=zo(jn.trailingTrivia).end,ye(jn.trailingTrivia,In,at,Zt)),Qi){const Wt=At&&!y(jn.token)?Zt.getIndentationForToken(vn.line,jn.token.kind,_r,!!Ii):-1;let dn=!0;if(jn.leadingTrivia){const rr=Zt.getIndentationForComment(jn.token.kind,Wt,_r);dn=re(jn.leadingTrivia,rr,dn,cr=>ce(cr.pos,rr,!1))}Wt!==-1&&dn&&(ce(jn.token.pos,Wt,Or===1),G=vn.line,V=Wt)}o.advance(),at=In}}function re(ze,Fe,st,Ct){for(const Et of ze){const jt=uf(e,Et);switch(Et.kind){case 3:jt&&Se(Et,Fe,!st),st=!1;break;case 2:st&&jt&&Ct(Et),st=!1;break;case 4:st=!0;break}}return st}function ye(ze,Fe,st,Ct){for(const Et of ze)if(_9(Et.kind)&&uf(e,Et)){const jt=h.getLineAndCharacterOfPosition(Et.pos);ae(Et,jt,Fe,st,Ct)}}function ae(ze,Fe,st,Ct,Et){const jt=y(ze);let tt=0;if(!jt)if(I)tt=W(ze,Fe.line,st,I,k,O,Ct,Et);else{const at=h.getLineAndCharacterOfPosition(e.pos);ee(at.line,Fe.line)}return I=ze,L=ze.end,O=st,k=Fe.line,tt}function W(ze,Fe,st,Ct,Et,jt,tt,at){A.updateContext(Ct,jt,ze,st,tt);const sn=c(A);let Qt=A.options.trimTrailingWhitespace!==!1,On=0;return sn?Jt(sn,jn=>{if(On=Ye(jn,Ct,Et,ze,Fe),at)switch(On){case 2:st.getStart(h)===ze.pos&&at.recomputeIndentation(!1,tt);break;case 1:st.getStart(h)===ze.pos&&at.recomputeIndentation(!0,tt);break;default:D.assert(On===0)}Qt=Qt&&!(jn.action&16)&&jn.flags!==1}):Qt=Qt&&ze.kind!==1,Fe!==Et&&Qt&&ee(Et,Fe,Ct),On}function ce(ze,Fe,st){const Ct=Xre(Fe,s);if(st)Oe(ze,0,Ct);else{const Et=h.getLineAndCharacterOfPosition(ze),jt=Dv(Et.line,h);(Fe!==me(jt,Et.character)||ve(Ct,jt))&&Oe(jt,Et.character,Ct)}}function me(ze,Fe){let st=0;for(let Ct=0;Ct<Fe;Ct++)h.text.charCodeAt(ze+Ct)===9?st+=s.tabSize-st%s.tabSize:st++;return st}function ve(ze,Fe){return ze!==h.text.substr(Fe,ze.length)}function Se(ze,Fe,st,Ct=!0){let Et=h.getLineAndCharacterOfPosition(ze.pos).line;const jt=h.getLineAndCharacterOfPosition(ze.end).line;if(Et===jt){st||ce(ze.pos,Fe,!1);return}const tt=[];let at=ze.pos;for(let In=Et;In<jt;In++){const Zt=EN(In,h);tt.push({pos:at,end:Zt}),at=Dv(In+1,h)}if(Ct&&tt.push({pos:at,end:ze.end}),tt.length===0)return;const sn=Dv(Et,h),Qt=Ip.findFirstNonWhitespaceCharacterAndColumn(sn,tt[0].pos,h,s);let On=0;st&&(On=1,Et++);const jn=Fe-Qt.column;for(let In=On;In<tt.length;In++,Et++){const Zt=Dv(Et,h),_r=In===0?Qt:Ip.findFirstNonWhitespaceCharacterAndColumn(tt[In].pos,tt[In].end,h,s),Ii=_r.column+jn;if(Ii>0){const $i=Xre(Ii,s);Oe(Zt,_r.character,$i)}else qe(Zt,_r.character)}}function ee(ze,Fe,st){for(let Ct=ze;Ct<Fe;Ct++){const Et=Dv(Ct,h),jt=EN(Ct,h);if(st&&(_9(st.kind)||bQ(st.kind))&&st.pos<=jt&&st.end>jt)continue;const tt=Qe(Et,jt);tt!==-1&&(D.assert(tt===Et||!Dm(h.text.charCodeAt(tt-1))),qe(tt,jt+1-tt))}}function Qe(ze,Fe){let st=Fe;for(;st>=ze&&Dm(h.text.charCodeAt(st));)st--;return st!==Fe?st+1:-1}function je(ze){let Fe=I?I.end:e.pos;for(const st of ze)_9(st.kind)&&(Fe<st.pos&&Ge(Fe,st.pos-1,I),Fe=st.end+1);Fe<e.end&&Ge(Fe,e.end,I)}function Ge(ze,Fe,st){const Ct=h.getLineAndCharacterOfPosition(ze).line,Et=h.getLineAndCharacterOfPosition(Fe).line;ee(Ct,Et+1,st)}function qe(ze,Fe){Fe&&H.push(m9(ze,Fe,""))}function Oe(ze,Fe,st){(Fe||st)&&H.push(m9(ze,Fe,st))}function Me(ze,Fe){Fe&&H.push(m9(ze,0,Fe))}function Ye(ze,Fe,st,Ct,Et){const jt=Et!==st;switch(ze.action){case 1:return 0;case 16:if(Fe.end!==Ct.pos)return qe(Fe.end,Ct.pos-Fe.end),jt?2:0;break;case 32:qe(Fe.pos,Fe.end-Fe.pos);break;case 8:if(ze.flags!==1&&st!==Et)return 0;if(Et-st!==1)return Oe(Fe.end,Ct.pos-Fe.end,ub(f,s)),jt?0:1;break;case 4:if(ze.flags!==1&&st!==Et)return 0;if(Ct.pos-Fe.end!==1||h.text.charCodeAt(Fe.end)!==32)return Oe(Fe.end,Ct.pos-Fe.end," "),jt?2:0;break;case 64:Me(Fe.end,";")}return 0}}function lLe(e,t,r,i=aa(e,t)){const o=nr(i,qm);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Cc(t,e):r;const c=r&&W0(e.text,r.end),f=jz(i,e),d=ba(c,f);return d&&nn(d,y=>p6(y,t)||t===y.end&&(y.kind===2||t===e.getFullWidth()))}function bQe(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function EQe(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function Xre(e,t){if((!BU||BU.tabSize!==t.tabSize||BU.indentSize!==t.indentSize)&&(BU={tabSize:t.tabSize,indentSize:t.indentSize},fD=_D=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return _D||(_D=[]),_D[o]===void 0?(i=T6(" ",t.indentSize*o),_D[o]=i):i=_D[o],s?i+T6(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return fD||(fD=[]),fD[i]===void 0?fD[i]=s=T6(" ",i):s=fD[i],o?s+T6(" ",o):s}}var BU,fD,_D,TQe=C({"src/services/formatting/formatting.ts"(){$r(),pD()}}),Ip,SQe=C({"src/services/formatting/smartIndenter.ts"(){$r(),pD(),(e=>{let t;(ee=>{ee[ee.Unknown=-1]="Unknown"})(t||(t={}));function r(ee,Qe,je,Ge=!1){if(ee>Qe.text.length)return f(je);if(je.indentStyle===0)return 0;const qe=Cc(ee,Qe,void 0,!0),Oe=lLe(Qe,ee,qe||null);if(Oe&&Oe.kind===3)return i(Qe,ee,je,Oe);if(!qe)return f(je);if(bQ(qe.kind)&&qe.getStart(Qe)<=ee&&ee<qe.end)return 0;const Ye=Qe.getLineAndCharacterOfPosition(ee).line,ze=aa(Qe,ee),Fe=ze.kind===18&&ze.parent.kind===207;if(je.indentStyle===1||Fe)return o(Qe,ee,je);if(qe.kind===27&&qe.parent.kind!==223){const Ct=h(qe,Qe,je);if(Ct!==-1)return Ct}const st=te(ee,qe.parent,Qe);if(st&&!uf(st,qe)){const Et=[215,216].indexOf(ze.parent.kind)!==-1?0:je.indentSize;return P(st,Qe,je)+Et}return s(Qe,ee,qe,Ye,Ge,je)}e.getIndentation=r;function i(ee,Qe,je,Ge){const qe=ol(ee,Qe).line-1,Oe=ol(ee,Ge.pos).line;if(D.assert(Oe>=0),qe<=Oe)return W(Dv(Oe,ee),Qe,ee,je);const Me=Dv(qe,ee),{column:Ye,character:ze}=ae(Me,Qe,ee,je);return Ye===0?Ye:ee.text.charCodeAt(Me+ze)===42?Ye-1:Ye}function o(ee,Qe,je){let Ge=Qe;for(;Ge>0;){const Oe=ee.text.charCodeAt(Ge);if(!sg(Oe))break;Ge--}const qe=S_(Ge,ee);return W(qe,Ge,ee,je)}function s(ee,Qe,je,Ge,qe,Oe){let Me,Ye=je;for(;Ye;){if(fQ(Ye,Qe,ee)&&ve(Oe,Ye,Me,ee,!0)){const Fe=I(Ye,ee),st=L(je,Ye,Ge,ee),Ct=st!==0?qe&&st===2?Oe.indentSize:0:Ge!==Fe.line?Oe.indentSize:0;return d(Ye,Fe,void 0,Ct,ee,!0,Oe)}const ze=de(Ye,ee,Oe,!0);if(ze!==-1)return ze;Me=Ye,Ye=Ye.parent}return f(Oe)}function c(ee,Qe,je,Ge){const qe=je.getLineAndCharacterOfPosition(ee.getStart(je));return d(ee,qe,Qe,0,je,!1,Ge)}e.getIndentationForNode=c;function f(ee){return ee.baseIndentSize||0}e.getBaseIndentation=f;function d(ee,Qe,je,Ge,qe,Oe,Me){var Ye;let ze=ee.parent;for(;ze;){let Fe=!0;if(je){const jt=ee.getStart(qe);Fe=jt<je.pos||jt>je.end}const st=y(ze,ee,qe),Ct=st.line===Qe.line||k(ze,ee,Qe.line,qe);if(Fe){const jt=(Ye=H(ee,qe))==null?void 0:Ye[0],tt=!!jt&&I(jt,qe).line>st.line;let at=de(ee,qe,Me,tt);if(at!==-1||(at=E(ee,ze,Qe,Ct,qe,Me),at!==-1))return at+Ge}ve(Me,ze,ee,qe,Oe)&&!Ct&&(Ge+=Me.indentSize);const Et=O(ze,ee,Qe.line,qe);ee=ze,ze=ee.parent,Qe=Et?qe.getLineAndCharacterOfPosition(ee.getStart(qe)):st}return Ge+f(Me)}function y(ee,Qe,je){const Ge=H(Qe,je),qe=Ge?Ge.pos:ee.getStart(je);return je.getLineAndCharacterOfPosition(qe)}function h(ee,Qe,je){const Ge=x0e(ee);return Ge&&Ge.listItemIndex>0?re(Ge.list.getChildren(),Ge.listItemIndex-1,Qe,je):-1}function E(ee,Qe,je,Ge,qe,Oe){return(vu(ee)||hN(ee))&&(Qe.kind===308||!Ge)?ye(je,qe,Oe):-1}let A;(ee=>{ee[ee.Unknown=0]="Unknown",ee[ee.OpenBrace=1]="OpenBrace",ee[ee.CloseBrace=2]="CloseBrace"})(A||(A={}));function L(ee,Qe,je,Ge){const qe=XT(ee,Qe,Ge);if(!qe)return 0;if(qe.kind===18)return 1;if(qe.kind===19){const Oe=I(qe,Ge).line;return je===Oe?2:0}return 0}function I(ee,Qe){return Qe.getLineAndCharacterOfPosition(ee.getStart(Qe))}function O(ee,Qe,je,Ge){if(!(no(ee)&&jr(ee.arguments,Qe)))return!1;const qe=ee.expression.getEnd();return ol(Ge,qe).line===je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=O;function k(ee,Qe,je,Ge){if(ee.kind===242&&ee.elseStatement===Qe){const qe=bs(ee,91,Ge);return D.assert(qe!==void 0),I(qe,Ge).line===je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=k;function G(ee,Qe,je,Ge){if(RC(ee)&&(Qe===ee.whenTrue||Qe===ee.whenFalse)){const qe=ol(Ge,ee.condition.end).line;if(Qe===ee.whenTrue)return je===qe;{const Oe=I(ee.whenTrue,Ge).line,Me=ol(Ge,ee.whenTrue.end).line;return qe===Oe&&Me===je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=G;function V(ee,Qe,je,Ge){if(ug(ee)){if(!ee.arguments)return!1;const qe=nn(ee.arguments,ze=>ze.pos===Qe.pos);if(!qe)return!1;const Oe=ee.arguments.indexOf(qe);if(Oe===0)return!1;const Me=ee.arguments[Oe-1],Ye=ol(Ge,Me.getEnd()).line;if(je===Ye)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=V;function H(ee,Qe){return ee.parent&&X(ee.getStart(Qe),ee.getEnd(),ee.parent,Qe)}e.getContainingList=H;function te(ee,Qe,je){return Qe&&X(ee,ee,Qe,je)}function X(ee,Qe,je,Ge){switch(je.kind){case 180:return qe(je.typeArguments);case 207:return qe(je.properties);case 206:return qe(je.elements);case 184:return qe(je.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return qe(je.typeParameters)||qe(je.parameters);case 174:return qe(je.parameters);case 260:case 228:case 261:case 262:case 348:return qe(je.typeParameters);case 211:case 210:return qe(je.typeArguments)||qe(je.arguments);case 258:return qe(je.declarations);case 272:case 276:return qe(je.elements);case 203:case 204:return qe(je.elements)}function qe(Oe){return Oe&&m6(Y(je,Oe,Ge),ee,Qe)?Oe:void 0}}function Y(ee,Qe,je){const Ge=ee.getChildren(je);for(let qe=1;qe<Ge.length-1;qe++)if(Ge[qe].pos===Qe.pos&&Ge[qe].end===Qe.end)return{pos:Ge[qe-1].end,end:Ge[qe+1].getStart(je)};return Qe}function P(ee,Qe,je){return ee?ye(Qe.getLineAndCharacterOfPosition(ee.pos),Qe,je):-1}function de(ee,Qe,je,Ge){if(ee.parent&&ee.parent.kind===258)return-1;const qe=H(ee,Qe);if(qe){const Oe=qe.indexOf(ee);if(Oe!==-1){const Me=re(qe,Oe,Qe,je);if(Me!==-1)return Me}return P(qe,Qe,je)+(Ge?je.indentSize:0)}return-1}function re(ee,Qe,je,Ge){D.assert(Qe>=0&&Qe<ee.length);const qe=ee[Qe];let Oe=I(qe,je);for(let Me=Qe-1;Me>=0;Me--){if(ee[Me].kind===27)continue;if(je.getLineAndCharacterOfPosition(ee[Me].end).line!==Oe.line)return ye(Oe,je,Ge);Oe=I(ee[Me],je)}return-1}function ye(ee,Qe,je){const Ge=Qe.getPositionOfLineAndCharacter(ee.line,0);return W(Ge,Ge+ee.character,Qe,je)}function ae(ee,Qe,je,Ge){let qe=0,Oe=0;for(let Me=ee;Me<Qe;Me++){const Ye=je.text.charCodeAt(Me);if(!Dm(Ye))break;Ye===9?Oe+=Ge.tabSize+Oe%Ge.tabSize:Oe++,qe++}return{column:Oe,character:qe}}e.findFirstNonWhitespaceCharacterAndColumn=ae;function W(ee,Qe,je,Ge){return ae(ee,Qe,je,Ge).column}e.findFirstNonWhitespaceColumn=W;function ce(ee,Qe,je,Ge,qe){const Oe=je?je.kind:0;switch(Qe.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!ee.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ge&&Oe===207)return Se(Ge,je);if(Qe.kind===223&&Ge&&je&&Oe===281){const Me=Ge.getLineAndCharacterOfPosition(Jo(Ge.text,Qe.pos)).line,Ye=Ge.getLineAndCharacterOfPosition(Jo(Ge.text,je.pos)).line;return Me!==Ye}if(Qe.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return Oe!==238;case 216:return Ge&&Oe===214?Se(Ge,je):Oe!==238;case 275:return Oe!==276;case 269:return Oe!==270||!!je.namedBindings&&je.namedBindings.kind!==272;case 281:return Oe!==284;case 285:return Oe!==287;case 190:case 189:if(Oe===184||Oe===186)return!1;break}return qe}e.nodeWillIndentChild=ce;function me(ee,Qe){switch(ee){case 250:case 254:case 248:case 249:return Qe.kind!==238;default:return!1}}function ve(ee,Qe,je,Ge,qe=!1){return ce(ee,Qe,je,Ge,!1)&&!(qe&&je&&me(je.kind,Qe))}e.shouldIndentChildNode=ve;function Se(ee,Qe){const je=Jo(ee.text,Qe.pos),Ge=ee.getLineAndCharacterOfPosition(je).line,qe=ee.getLineAndCharacterOfPosition(Qe.end).line;return Ge===qe}})(Ip||(Ip={}))}}),Lc={};ne(Lc,{FormattingContext:()=>Nre,FormattingRequestKind:()=>Rre,RuleAction:()=>Pre,RuleFlags:()=>Mre,SmartIndenter:()=>Ip,anyContext:()=>SP,createTextRangeWithKind:()=>FU,formatDocument:()=>fQe,formatNodeGivenIndentation:()=>vQe,formatOnClosingCurly:()=>dQe,formatOnEnter:()=>lQe,formatOnOpeningCurly:()=>uQe,formatOnSemicolon:()=>cQe,formatSelection:()=>_Qe,getAllRules:()=>BCe,getFormatContext:()=>Z$e,getFormattingScanner:()=>Ore,getIndentationString:()=>Xre,getRangeOfEnclosingComment:()=>lLe});var pD=C({"src/services/_namespaces/ts.formatting.ts"(){T$e(),S$e(),x$e(),Q$e(),sQe(),TQe(),SQe()}}),$r=C({"src/services/_namespaces/ts.ts"(){Oa(),ZF(),V9e(),mBe(),vBe(),DBe(),RBe(),NBe(),UBe(),YBe(),$Be(),ZBe(),sGe(),cGe(),PGe(),FGe(),UGe(),HGe(),cUe(),bUe(),Eo(),bne(),Y2e(),wqe(),Pqe(),Zqe(),f1e(),O1e(),vJe(),LJe(),Nh(),AYe(),$Ye(),a$e(),l$e(),E$e(),pD()}});function xQe(){return $re??($re=new P_(be))}function cLe(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?` ${Sh(o,[e],0)}`:"",s}function AQe(e,t,r,i){const o=cLe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function CQe(e,t,r,i){let o=!1;return()=>{uLe&&!o&&(D.log.warn(cLe(e,!1,t,r,i)),o=!0)}}function LQe(e,t={}){var r,i;const o=typeof t.typeScriptVersion=="string"?new P_(t.typeScriptVersion):(r=t.typeScriptVersion)!=null?r:xQe(),s=typeof t.errorAfter=="string"?new P_(t.errorAfter):t.errorAfter,c=typeof t.warnAfter=="string"?new P_(t.warnAfter):t.warnAfter,f=typeof t.since=="string"?new P_(t.since):(i=t.since)!=null?i:c,d=t.error||s&&o.compareTo(s)>=0,y=!c||o.compareTo(c)>=0;return d?AQe(e,s,f,t.message):y?CQe(e,s,f,t.message):oo}function IQe(e,t){return function(){return e(),t.apply(this,arguments)}}function Yre(e,t){var r;const i=LQe((r=t==null?void 0:t.name)!=null?r:D.getFunctionName(e),t);return IQe(i,e)}var uLe,$re,dLe=C({"src/deprecatedCompat/deprecate.ts"(){GU(),uLe=!0}});function Qre(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const c of Object.keys(i)){const f=+c;!isNaN(f)&&Ps(t,`${f}`)&&(t[f]=Yre(t[f],{...i[f],name:e}))}const o=kQe(t,r);return s;function s(...c){const f=o(c),d=f!==void 0?t[f]:void 0;if(typeof d=="function")return d(...c);throw new TypeError("Invalid arguments")}}function kQe(e,t){return r=>{for(let i=0;Ps(e,`${i}`)&&Ps(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function wQe(e){return{overload:t=>({bind:r=>({finish:()=>Qre(e,t,r),deprecate:i=>({finish:()=>Qre(e,t,r,i)})})})}}var DQe=C({"src/deprecatedCompat/deprecations.ts"(){GU(),dLe()}}),RQe=C({"src/deprecatedCompat/5.0/identifierProperties.ts"(){GU(),dLe(),m_e(e=>{const t=e.getIdentifierConstructor();Ps(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Yre(function(){return q0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ps(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Yre(function(){return this.flags&2048?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),GU=C({"src/deprecatedCompat/_namespaces/ts.ts"(){Oa(),DQe(),RQe()}}),fLe={};ne(fLe,{ANONYMOUS:()=>z9,AccessFlags:()=>XH,AssertionLevel:()=>vH,AssignmentDeclarationKind:()=>rW,AssignmentKind:()=>yJ,Associativity:()=>bJ,BreakpointResolver:()=>qZ,BuilderFileEmit:()=>XY,BuilderProgramKind:()=>YY,BuilderState:()=>Xm,BundleFileSectionKind:()=>TW,CallHierarchy:()=>u2,CharacterCodes:()=>mW,CheckFlags:()=>WH,CheckMode:()=>cF,ClassificationType:()=>tQ,ClassificationTypeNames:()=>eQ,CommentDirectiveType:()=>IH,Comparison:()=>Be,CompletionInfoFlags:()=>J$,CompletionTriggerKind:()=>j$,Completions:()=>h2,ConfigFileProgramReloadLevel:()=>bY,ContextFlags:()=>PH,CoreServicesShimHostAdapter:()=>zZ,Debug:()=>D,DiagnosticCategory:()=>BR,Diagnostics:()=>_,DocumentHighlights:()=>K9,ElementFlags:()=>KH,EmitFlags:()=>MM,EmitHint:()=>vW,EmitOnly:()=>wH,EndOfLineState:()=>Y$,EnumKind:()=>HH,ExitStatus:()=>RH,ExportKind:()=>oZ,Extension:()=>hW,ExternalEmitHelpers:()=>yW,FileIncludeKind:()=>IM,FilePreprocessingDiagnosticsKind:()=>kH,FileSystemEntryKind:()=>IW,FileWatcherEventKind:()=>CW,FindAllReferences:()=>ul,FlattenLevel:()=>eY,FlowFlags:()=>FR,ForegroundColorEscapeSequences:()=>MY,FunctionFlags:()=>vJ,GeneratedIdentifierFlags:()=>LM,GetLiteralTextFlags:()=>mJ,GoToDefinition:()=>$w,HighlightSpanKind:()=>W$,ImportKind:()=>aZ,ImportsNotUsedAsValues:()=>cW,IndentStyle:()=>z$,IndexKind:()=>QH,InferenceFlags:()=>tW,InferencePriority:()=>eW,InlayHintKind:()=>H$,InlayHints:()=>One,InternalEmitFlags:()=>gW,InternalSymbolName:()=>zH,InvalidatedProjectKind:()=>L$,JsDoc:()=>pb,JsTyping:()=>qT,JsxEmit:()=>lW,JsxFlags:()=>CH,JsxReferenceKind:()=>YH,LanguageServiceMode:()=>G$,LanguageServiceShimHostAdapter:()=>WZ,LanguageVariant:()=>_W,LexicalEnvironmentFlags:()=>EW,ListFormat:()=>SW,LogLevel:()=>EH,MemberOverrideStatus:()=>NH,ModifierFlags:()=>AM,ModuleDetectionKind:()=>iW,ModuleInstanceState:()=>kX,ModuleKind:()=>NM,ModuleResolutionKind:()=>GR,ModuleSpecifierEnding:()=>DJ,NavigateTo:()=>d1e,NavigationBar:()=>N1e,NewLineKind:()=>uW,NodeBuilderFlags:()=>MH,NodeCheckFlags:()=>qH,NodeFactoryFlags:()=>FJ,NodeFlags:()=>xM,NodeResolutionFeatures:()=>LX,ObjectFlags:()=>DM,OperationCanceledException:()=>II,OperatorPrecedence:()=>EJ,OrganizeImports:()=>Q_,OrganizeImportsMode:()=>V$,OuterExpressionKinds:()=>bW,OutliningElementsCollector:()=>zne,OutliningSpanKind:()=>K$,OutputFileType:()=>X$,PackageJsonAutoImportPreference:()=>B$,PackageJsonDependencyGroup:()=>F$,PatternMatchKind:()=>Q9,PollingInterval:()=>FM,PollingWatchKind:()=>sW,PragmaKindFlags:()=>xW,PrivateIdentifierKind:()=>JJ,ProcessLevel:()=>iY,QuotePreference:()=>tZ,RelationComparisonResult:()=>CM,Rename:()=>IU,ScriptElementKind:()=>Q$,ScriptElementKindModifier:()=>Z$,ScriptKind:()=>dW,ScriptSnapshot:()=>M$,ScriptTarget:()=>fW,SemanticClassificationFormat:()=>U$,SemanticMeaning:()=>eZ,SemicolonPreference:()=>q$,SignatureCheckMode:()=>uF,SignatureFlags:()=>RM,SignatureHelp:()=>EP,SignatureKind:()=>$H,SmartSelectionRange:()=>Tre,SnippetKind:()=>PM,SortKind:()=>gH,StructureIsReused:()=>DH,SymbolAccessibility:()=>GH,SymbolDisplay:()=>Oy,SymbolDisplayPartKind:()=>c6,SymbolFlags:()=>kM,SymbolFormatFlags:()=>BH,SyntaxKind:()=>SM,SyntheticSymbolKind:()=>UH,Ternary:()=>nW,ThrottledCancellationToken:()=>GZ,TokenClass:()=>$$,TokenFlags:()=>LH,TransformFlags:()=>OM,TypeFacts:()=>sF,TypeFlags:()=>wM,TypeFormatFlags:()=>FH,TypeMapKind:()=>ZH,TypePredicateKind:()=>VH,TypeReferenceSerializationKind:()=>jH,TypeScriptServicesFactory:()=>rEe,UnionReduction:()=>OH,UpToDateStatusType:()=>f$,VarianceFlags:()=>JH,Version:()=>P_,VersionRange:()=>LA,WatchDirectoryFlags:()=>pW,WatchDirectoryKind:()=>oW,WatchFileKind:()=>aW,WatchLogLevel:()=>EY,WatchType:()=>T_,accessPrivateIdentifier:()=>eye,addEmitFlags:()=>tm,addEmitHelper:()=>Dx,addEmitHelpers:()=>Ty,addInternalEmitFlags:()=>wx,addNodeFactoryPatcher:()=>J4e,addObjectAllocatorPatcher:()=>m_e,addRange:()=>Ti,addRelatedInfo:()=>Ko,addSyntheticLeadingComment:()=>BO,addSyntheticTrailingComment:()=>I7,addToSeen:()=>bp,advancedAsyncSuperHelper:()=>HO,affectsDeclarationPathOptionDeclarations:()=>aX,affectsEmitOptionDeclarations:()=>iX,allKeysStartWithDot:()=>Q5,altDirectorySeparator:()=>YR,and:()=>_M,append:()=>Fn,appendIfUnique:()=>sy,arrayFrom:()=>Ro,arrayIsEqualTo:()=>zp,arrayIsHomogeneous:()=>U_e,arrayIsSorted:()=>pce,arrayOf:()=>yce,arrayReverseIterator:()=>K8e,arrayToMap:()=>i1,arrayToMultiMap:()=>kR,arrayToNumericMap:()=>bce,arraysEqual:()=>Zo,assertType:()=>r6e,assign:()=>IR,assignHelper:()=>P7,asyncDelegator:()=>F7,asyncGeneratorHelper:()=>M7,asyncSuperHelper:()=>jO,asyncValues:()=>B7,attachFileToDiagnostics:()=>Cx,awaitHelper:()=>Rx,awaiterHelper:()=>U7,base64decode:()=>a_e,base64encode:()=>i_e,binarySearch:()=>vv,binarySearchKey:()=>XS,bindSourceFile:()=>dge,breakIntoCharacterSpans:()=>qbe,breakIntoWordSpans:()=>Jbe,buildLinkParts:()=>tbe,buildOpts:()=>B5,buildOverload:()=>wQe,bundlerModuleNameResolver:()=>Jhe,canBeConvertedToAsync:()=>TZ,canHaveDecorators:()=>Yx,canHaveExportModifier:()=>CO,canHaveFlowNode:()=>WN,canHaveIllegalDecorators:()=>LK,canHaveIllegalModifiers:()=>dme,canHaveIllegalType:()=>FMe,canHaveIllegalTypeParameters:()=>ume,canHaveJSDoc:()=>zN,canHaveLocals:()=>Nm,canHaveModifiers:()=>X_,canHaveSymbol:()=>Rm,canJsonReportNoInputFiles:()=>v8,canProduceDiagnostics:()=>bF,canUsePropertyAccess:()=>dJ,canWatchDirectoryOrFile:()=>t6,cartesianProduct:()=>Pce,cast:()=>ao,chainBundle:()=>Y_,chainDiagnosticMessages:()=>Na,changeAnyExtension:()=>RW,changeCompilerHostLikeToUseCache:()=>Y8,changeExtension:()=>D1,changesAffectModuleResolution:()=>Tz,changesAffectingProgramStructure:()=>wde,childIsDecorated:()=>nk,classElementOrClassElementParameterIsDecorated:()=>Jz,classOrConstructorParameterIsDecorated:()=>S1,classPrivateFieldGetHelper:()=>Q7,classPrivateFieldInHelper:()=>e5,classPrivateFieldSetHelper:()=>Z7,classicNameResolver:()=>cge,classifier:()=>yB,cleanExtendedConfigCache:()=>vY,clear:()=>Fi,clearMap:()=>Zf,clearSharedExtendedConfigFileWatcher:()=>Uye,climbPastPropertyAccess:()=>n9,climbPastPropertyOrElementAccess:()=>b0e,clone:()=>cH,cloneCompilerOptions:()=>G0e,closeFileWatcher:()=>Um,closeFileWatcherOf:()=>Km,codefix:()=>Wu,collapseTextChangeRangesAcrossMultipleVersions:()=>oPe,collectExternalModuleInfo:()=>qX,combine:()=>AA,combinePaths:()=>Bi,commentPragmas:()=>UR,commonOptionsWithBuild:()=>C8,commonPackageFolders:()=>xJ,compact:()=>CR,compareBooleans:()=>s1,compareDataObjects:()=>Gq,compareDiagnostics:()=>Ck,compareDiagnosticsSkipRelatedInformation:()=>i7,compareEmitHelpers:()=>Cpe,compareNumberOfDirectorySeparators:()=>EO,comparePaths:()=>nT,comparePathsCaseInsensitive:()=>Y6e,comparePathsCaseSensitive:()=>X6e,comparePatternKeys:()=>SX,compareProperties:()=>kce,compareStringsCaseInsensitive:()=>cM,compareStringsCaseInsensitiveEslintCompatible:()=>Cce,compareStringsCaseSensitive:()=>Ou,compareStringsCaseSensitiveUI:()=>DR,compareTextSpans:()=>lM,compareValues:()=>Ws,compileOnSaveCommandLineOption:()=>T8,compilerOptionsAffectDeclarationPath:()=>k_e,compilerOptionsAffectEmit:()=>I_e,compilerOptionsAffectSemanticDiagnostics:()=>L_e,compilerOptionsDidYouMeanDiagnostics:()=>I8,compilerOptionsIndicateEsModules:()=>LQ,compose:()=>e6e,computeCommonSourceDirectoryOfFilenames:()=>zye,computeLineAndCharacterOfPosition:()=>eN,computeLineOfPosition:()=>RI,computeLineStarts:()=>QR,computePositionOfLineAndCharacter:()=>FW,computeSignature:()=>WT,computeSignatureWithDiagnostics:()=>WY,computeSuggestionDiagnostics:()=>vZ,concatenate:()=>ba,concatenateDiagnosticMessageChains:()=>b_e,consumesNodeCoreModules:()=>F9,contains:()=>jr,containsIgnoredPath:()=>Ok,containsObjectRestOrSpread:()=>c8,containsParseError:()=>bN,containsPath:()=>Tv,convertCompilerOptionsForTelemetry:()=>W3e,convertCompilerOptionsFromJson:()=>F3e,convertJsonOption:()=>b8,convertToBase64:()=>r_e,convertToObject:()=>ohe,convertToObjectWorker:()=>g8,convertToOptionsWithAbsolutePaths:()=>zK,convertToRelativePath:()=>wI,convertToTSConfig:()=>S3e,convertTypeAcquisitionFromJson:()=>B3e,copyComments:()=>$T,copyEntries:()=>yN,copyLeadingComments:()=>oL,copyProperties:()=>uH,copyTrailingAsLeadingComments:()=>w6,copyTrailingComments:()=>Ow,couldStartTrivia:()=>vue,countWhere:()=>Gc,createAbstractBuilder:()=>zFe,createAccessorPropertyBackingField:()=>kK,createAccessorPropertyGetRedirector:()=>bme,createAccessorPropertySetRedirector:()=>Eme,createBaseNodeFactory:()=>cpe,createBinaryExpressionTrampoline:()=>T5,createBindingHelper:()=>SC,createBuildInfo:()=>J8,createBuilderProgram:()=>zY,createBuilderProgramUsingProgramBuildInfo:()=>pve,createBuilderStatusReporter:()=>Ive,createCacheWithRedirects:()=>mX,createCacheableExportInfoMap:()=>Abe,createCachedDirectoryStructureHost:()=>Gye,createClassifier:()=>Ibe,createCommentDirectivesMap:()=>Vde,createCompilerDiagnostic:()=>Fs,createCompilerDiagnosticForInvalidCustomType:()=>MK,createCompilerDiagnosticFromMessageChain:()=>r7,createCompilerHost:()=>qye,createCompilerHostFromProgramHost:()=>s$,createCompilerHostWorker:()=>xY,createDetachedDiagnostic:()=>_C,createDiagnosticCollection:()=>sC,createDiagnosticForFileFromMessageChain:()=>Uz,createDiagnosticForNode:()=>Nr,createDiagnosticForNodeArray:()=>WA,createDiagnosticForNodeArrayFromMessageChain:()=>xN,createDiagnosticForNodeFromMessageChain:()=>dg,createDiagnosticForNodeInSourceFile:()=>cd,createDiagnosticForRange:()=>Vz,createDiagnosticMessageChainFromDiagnostic:()=>$de,createDiagnosticReporter:()=>n6,createDocumentPositionMapper:()=>qge,createDocumentRegistry:()=>cZ,createDocumentRegistryInternal:()=>Pbe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>$Y,createEmitHelperFactory:()=>Ape,createEmptyExports:()=>n8,createExpressionForJsxElement:()=>tme,createExpressionForJsxFragment:()=>nme,createExpressionForObjectLiteralElementLike:()=>rme,createExpressionForPropertyName:()=>EK,createExpressionFromEntityName:()=>r8,createExternalHelpersImportDeclarationIfNeeded:()=>xK,createFileDiagnostic:()=>Dc,createFileDiagnosticFromMessageChain:()=>v3,createForOfBindingStatement:()=>bK,createGetCanonicalFileName:()=>ru,createGetSourceFile:()=>TY,createGetSymbolAccessibilityDiagnosticForNode:()=>Iy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>xye,createGetSymbolWalker:()=>mge,createIncrementalCompilerHost:()=>u$,createIncrementalProgram:()=>Lve,createInputFiles:()=>eMe,createInputFilesWithFilePaths:()=>PJ,createInputFilesWithFileTexts:()=>MJ,createJsxFactoryExpression:()=>vK,createLanguageService:()=>j1e,createLanguageServiceSourceFile:()=>lB,createMemberAccessForPropertyName:()=>PT,createModeAwareCache:()=>BT,createModeAwareCacheKey:()=>cw,createModuleResolutionCache:()=>q5,createModuleResolutionLoader:()=>wY,createModuleSpecifierResolutionHost:()=>i2,createMultiMap:()=>__,createNodeConverters:()=>dpe,createNodeFactory:()=>RO,createOptionNameMap:()=>I5,createOverload:()=>Qre,createPackageJsonImportFilter:()=>Fw,createPackageJsonInfo:()=>_be,createParenthesizerRules:()=>upe,createPatternMatcher:()=>Ube,createPrependNodes:()=>OY,createPrinter:()=>q1,createPrinterWithDefaults:()=>hY,createPrinterWithRemoveComments:()=>J1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>gY,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>K8,createProgram:()=>DF,createProgramHost:()=>l$,createPropertyNameNodeForIdentifierOrLiteral:()=>g7,createQueue:()=>dH,createRange:()=>g_,createRedirectedBuilderProgram:()=>KY,createResolutionCache:()=>mve,createRuntimeTypeSerializer:()=>aye,createScanner:()=>fy,createSemanticDiagnosticsBuilderProgram:()=>WFe,createSet:()=>Q8e,createSolutionBuilder:()=>l9e,createSolutionBuilderHost:()=>a9e,createSolutionBuilderWithWatch:()=>c9e,createSolutionBuilderWithWatchHost:()=>o9e,createSortedArray:()=>iH,createSourceFile:()=>f8,createSourceMapGenerator:()=>Gge,createSourceMapSource:()=>tMe,createSuperAccessVariableStatement:()=>vF,createSymbolTable:()=>so,createSymlinkCache:()=>w_e,createSystemWatchFunctions:()=>fue,createTextChange:()=>b6,createTextChangeFromStartLength:()=>m9,createTextChangeRange:()=>aN,createTextRangeFromNode:()=>xQ,createTextRangeFromSpan:()=>p9,createTextSpan:()=>wc,createTextSpanFromBounds:()=>hc,createTextSpanFromNode:()=>ad,createTextSpanFromRange:()=>Jv,createTextSpanFromStringLiteralLikeContent:()=>SQ,createTextWriter:()=>aO,createTokenRange:()=>Pq,createTypeChecker:()=>Rge,createTypeReferenceDirectiveResolutionCache:()=>J5,createTypeReferenceResolutionLoader:()=>kF,createUnderscoreEscapedMultiMap:()=>Tce,createUnparsedSourceFile:()=>OJ,createWatchCompilerHost:()=>e9e,createWatchCompilerHostOfConfigFile:()=>Ave,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Cve,createWatchFactory:()=>o$,createWatchHost:()=>a$,createWatchProgram:()=>t9e,createWatchStatusReporter:()=>gve,createWriteFileMeasuringIO:()=>SY,declarationNameToString:()=>ws,decodeMappings:()=>HX,decodedTextSpanIntersectsWith:()=>KM,decorateHelper:()=>w7,deduplicate:()=>xA,defaultIncludeSpec:()=>V5,defaultInitCompilerOptions:()=>U5,defaultMaximumTruncationLength:()=>kO,detectSortCaseSensitivity:()=>aM,diagnosticCategoryName:()=>TM,diagnosticToString:()=>o2,directoryProbablyExists:()=>Qp,directorySeparator:()=>Ms,displayPart:()=>Id,displayPartsToString:()=>G1e,disposeEmitNodes:()=>UJ,documentSpansEqual:()=>rBe,dumpTracingLegend:()=>iue,elementAt:()=>uy,elideNodes:()=>vme,emitComments:()=>Wfe,emitDetachedComments:()=>zfe,emitFiles:()=>TF,emitFilesAndReportErrors:()=>WF,emitFilesAndReportErrorsAndGetExitStatus:()=>Tve,emitModuleKindIsNonNodeESM:()=>zq,emitNewLineBeforeLeadingCommentOfPosition:()=>Hfe,emitNewLineBeforeLeadingComments:()=>Vfe,emitNewLineBeforeLeadingCommentsOfPosition:()=>jfe,emitSkippedWithNoDiagnostics:()=>GF,emitUsingBuildInfo:()=>Bye,emptyArray:()=>rt,emptyFileSystemEntries:()=>C7,emptyMap:()=>hM,emptyOptions:()=>sm,emptySet:()=>Bce,endsWith:()=>ic,ensurePathIsNonModuleName:()=>_1,ensureScriptKind:()=>f7,ensureTrailingDirectorySeparator:()=>Pu,entityNameToString:()=>Af,enumerateInsertsAndDeletes:()=>Oce,equalOwnProperties:()=>vce,equateStringsCaseInsensitive:()=>$S,equateStringsCaseSensitive:()=>QS,equateValues:()=>H0,esDecorateHelper:()=>N7,escapeJsxAttributeString:()=>hq,escapeLeadingUnderscores:()=>sl,escapeNonAsciiString:()=>rO,escapeSnippetText:()=>LT,escapeString:()=>bx,every:()=>Yn,expandPreOrPostfixIncrementOrDecrementExpression:()=>h5,explainFiles:()=>Eve,explainIfFileIsRedirectAndImpliedFormat:()=>t$,exportAssignmentIsAlias:()=>rC,exportStarHelper:()=>$7,expressionResultIsUnused:()=>j_e,extend:()=>sM,extendsHelper:()=>V7,extensionFromPath:()=>xO,extensionIsTS:()=>p7,externalHelpersModuleNameText:()=>rb,factory:()=>N,fileExtensionIs:()=>cc,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>i$,filter:()=>lr,filterMutate:()=>Ri,filterSemanticDiagnostics:()=>RF,find:()=>nn,findAncestor:()=>nr,findBestPatternMatch:()=>pH,findChildOfKind:()=>bs,findComputedPropertyNameCacheAssignment:()=>x5,findConfigFile:()=>Wye,findContainingList:()=>s9,findDiagnosticForNode:()=>mbe,findFirstNonJsxWhitespaceToken:()=>w0e,findIndex:()=>mi,findLast:()=>Li,findLastIndex:()=>va,findListItemInfo:()=>x0e,findMap:()=>Bo,findModifier:()=>rL,findNextToken:()=>XT,findPackageJson:()=>dbe,findPackageJsons:()=>JQ,findPrecedingMatchingToken:()=>f9,findPrecedingToken:()=>Cc,findSuperStatementIndex:()=>hF,findTokenOnLeftOfPosition:()=>u9,findUseStrictPrologue:()=>SK,first:()=>us,firstDefined:()=>Kt,firstDefinedIterator:()=>fn,firstIterator:()=>gce,firstOrOnly:()=>YQ,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>oM,fixupCompilerOptions:()=>SZ,flatMap:()=>ma,flatMapIterator:()=>d_,flatMapToMutable:()=>u_,flatten:()=>is,flattenCommaList:()=>Tme,flattenDestructuringAssignment:()=>VT,flattenDestructuringBinding:()=>W1,flattenDiagnosticMessageText:()=>zv,forEach:()=>Ue,forEachAncestor:()=>Dde,forEachAncestorDirectory:()=>ag,forEachChild:()=>Ma,forEachChildRecursively:()=>d8,forEachEmittedFile:()=>fY,forEachEnclosingBlockScopeContainer:()=>Xde,forEachEntry:()=>af,forEachExternalModuleToImportFrom:()=>iZ,forEachImportClauseDeclaration:()=>V3,forEachKey:()=>XI,forEachLeadingCommentRange:()=>tN,forEachNameInAccessChainWalkingLeft:()=>g4e,forEachResolvedProjectReference:()=>Yye,forEachReturnStatement:()=>_T,forEachRight:()=>Jt,forEachTrailingCommentRange:()=>nN,forEachUnique:()=>DQ,forEachYieldExpression:()=>Zde,forSomeAncestorDirectory:()=>h4e,formatColorAndReset:()=>K1,formatDiagnostic:()=>AY,formatDiagnostics:()=>TFe,formatDiagnosticsWithColorAndContext:()=>Xye,formatGeneratedName:()=>MT,formatGeneratedNamePart:()=>UC,formatLocation:()=>CY,formatMessage:()=>Wq,formatStringFromArgs:()=>Sh,formatting:()=>Lc,fullTripleSlashAMDReferencePathRegEx:()=>gJ,fullTripleSlashReferencePathRegEx:()=>hJ,generateDjb2Hash:()=>VR,generateTSConfig:()=>I3e,generatorHelper:()=>K7,getAdjustedReferenceLocation:()=>_Q,getAdjustedRenameLocation:()=>c9,getAliasDeclarationFromName:()=>sq,getAllAccessorDeclarations:()=>ST,getAllDecoratorsOfClass:()=>YX,getAllDecoratorsOfClassElement:()=>yF,getAllJSDocTags:()=>$W,getAllJSDocTagsOfKind:()=>mPe,getAllKeys:()=>X8e,getAllProjectOutputs:()=>EF,getAllSuperTypeNodes:()=>sk,getAllUnscopedEmitHelpers:()=>qJ,getAllowJSCompilerOption:()=>gO,getAllowSyntheticDefaultImports:()=>AT,getAncestor:()=>Q0,getAnyExtensionFromPath:()=>BM,getAreDeclarationMapsEnabled:()=>s7,getAssignedExpandoInitializer:()=>_x,getAssignedName:()=>qW,getAssignmentDeclarationKind:()=>Ll,getAssignmentDeclarationPropertyAccessKind:()=>FN,getAssignmentTargetKind:()=>yT,getAutomaticTypeDirectiveNames:()=>z5,getBaseFileName:()=>mu,getBinaryOperatorPrecedence:()=>tO,getBuildInfo:()=>SF,getBuildInfoFileVersionMap:()=>JY,getBuildInfoText:()=>Fye,getBuildOrderFromAnyBuildOrder:()=>XF,getBuilderCreationParameters:()=>VF,getBuilderFileEmit:()=>qv,getCheckFlags:()=>Il,getClassExtendsHeritageElement:()=>A1,getClassLikeDeclarationOfSymbol:()=>gg,getCombinedLocalAndExportSymbolFlags:()=>Tk,getCombinedModifierFlags:()=>py,getCombinedNodeFlags:()=>gp,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>WW,getCommentRange:()=>jm,getCommonSourceDirectory:()=>q8,getCommonSourceDirectoryOfConfig:()=>Tw,getCompilerOptionValue:()=>l7,getCompilerOptionsDiffValue:()=>L3e,getConditions:()=>JC,getConfigFileParsingDiagnostics:()=>HT,getConstantValue:()=>ype,getContainerNode:()=>KT,getContainingClass:()=>Ac,getContainingClassStaticBlock:()=>GPe,getContainingFunction:()=>Cf,getContainingFunctionDeclaration:()=>sfe,getContainingFunctionOrClassStaticBlock:()=>I3,getContainingNodeArray:()=>H_e,getContainingObjectLiteralElement:()=>B6,getContextualTypeFromParent:()=>L9,getContextualTypeFromParentOrAncestorTypeNode:()=>l9,getCurrentTime:()=>a6,getDeclarationDiagnostics:()=>Aye,getDeclarationEmitExtensionForPath:()=>bq,getDeclarationEmitOutputFilePath:()=>Pfe,getDeclarationEmitOutputFilePathWorker:()=>vq,getDeclarationFromName:()=>KN,getDeclarationModifierFlagsFromSymbol:()=>Qf,getDeclarationOfKind:()=>Al,getDeclarationsOfKind:()=>Ide,getDeclaredExpandoInitializer:()=>NN,getDecorators:()=>xv,getDefaultCompilerOptions:()=>sB,getDefaultExportInfoWorker:()=>J9,getDefaultFormatCodeSettings:()=>m0e,getDefaultLibFileName:()=>zM,getDefaultLibFilePath:()=>OGe,getDefaultLikeExportInfo:()=>q9,getDiagnosticText:()=>E3e,getDiagnosticsWithinSpan:()=>hbe,getDirectoryPath:()=>hi,getDocumentPositionMapper:()=>Zbe,getESModuleInterop:()=>W_,getEditsForFileRename:()=>Fbe,getEffectiveBaseTypeNode:()=>$p,getEffectiveConstraintOfTypeParameter:()=>NA,getEffectiveContainerForJSDocTemplateTag:()=>j3,getEffectiveImplementsTypeNodes:()=>iC,getEffectiveInitializer:()=>RN,getEffectiveJSDocHost:()=>nC,getEffectiveModifierFlags:()=>Fu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Xfe,getEffectiveModifierFlagsNoCache:()=>$fe,getEffectiveReturnTypeNode:()=>vp,getEffectiveSetAccessorTypeAnnotationNode:()=>Ufe,getEffectiveTypeAnnotationNode:()=>Zc,getEffectiveTypeParameterDeclarations:()=>Cv,getEffectiveTypeRoots:()=>D8,getElementOrPropertyAccessArgumentExpressionOrName:()=>U3,getElementOrPropertyAccessName:()=>pg,getElementsOfBindingOrAssignmentPattern:()=>GC,getEmitDeclarations:()=>z_,getEmitFlags:()=>vo,getEmitHelpers:()=>k7,getEmitModuleDetectionKind:()=>x_e,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>vl,getEmitScriptTarget:()=>es,getEnclosingBlockScopeContainer:()=>Mm,getEncodedSemanticClassifications:()=>sZ,getEncodedSyntacticClassifications:()=>lZ,getEndLinePosition:()=>EN,getEntityNameFromTypeNode:()=>IN,getEntrypointsFromPackageJsonInfo:()=>_7e,getErrorCountForSummary:()=>jF,getErrorSpanForNode:()=>E1,getErrorSummaryText:()=>vve,getEscapedTextOfIdentifierOrLiteral:()=>ck,getExpandoInitializer:()=>Y0,getExportAssignmentExpression:()=>lq,getExportInfoMap:()=>R6,getExportNeedsImportStarHelper:()=>Kge,getExpressionAssociativity:()=>fq,getExpressionPrecedence:()=>J3,getExternalHelpersModuleName:()=>a8,getExternalModuleImportEqualsDeclarationExpression:()=>ik,getExternalModuleName:()=>QA,getExternalModuleNameFromDeclaration:()=>Nfe,getExternalModuleNameFromPath:()=>yq,getExternalModuleNameLiteral:()=>Xx,getExternalModuleRequireArgument:()=>Xz,getFallbackOptions:()=>X8,getFileEmitOutput:()=>Zye,getFileMatcherPatterns:()=>Ik,getFileNamesFromConfigSpecs:()=>E8,getFileWatcherEventKind:()=>lue,getFilesInErrorForSummary:()=>HF,getFirstConstructorWithBody:()=>Th,getFirstIdentifier:()=>Lf,getFirstNonSpaceCharacterPosition:()=>abe,getFirstProjectOutput:()=>pY,getFixableErrorSpanExpression:()=>XQ,getFormatCodeSettingsForWriting:()=>V9,getFullWidth:()=>vN,getFunctionFlags:()=>jc,getHeritageClause:()=>$N,getHostSignatureFromJSDoc:()=>$0,getIdentifierAutoGenerate:()=>sMe,getIdentifierGeneratedImportReference:()=>xpe,getIdentifierTypeArguments:()=>IT,getImmediatelyInvokedFunctionExpression:()=>mT,getImpliedNodeFormatForFile:()=>wF,getImpliedNodeFormatForFileWorker:()=>RY,getImportNeedsImportDefaultHelper:()=>zX,getImportNeedsImportStarHelper:()=>mF,getIndentSize:()=>lC,getIndentString:()=>K3,getInitializedVariables:()=>Ek,getInitializerOfBinaryExpression:()=>tq,getInitializerOfBindingOrAssignmentElement:()=>s8,getInterfaceBaseTypeNodes:()=>lk,getInternalEmitFlags:()=>B_,getInvokedExpression:()=>D3,getIsolatedModules:()=>H_,getJSDocAugmentsTag:()=>Yue,getJSDocClassTag:()=>JW,getJSDocCommentRanges:()=>Hz,getJSDocCommentsAndTags:()=>rq,getJSDocDeprecatedTag:()=>KW,getJSDocDeprecatedTagNoCache:()=>rde,getJSDocEnumTag:()=>XW,getJSDocHost:()=>yx,getJSDocImplementsTags:()=>$ue,getJSDocOverrideTagNoCache:()=>nde,getJSDocParameterTags:()=>GI,getJSDocParameterTagsNoCache:()=>zue,getJSDocPrivateTag:()=>uPe,getJSDocPrivateTagNoCache:()=>Zue,getJSDocProtectedTag:()=>dPe,getJSDocProtectedTagNoCache:()=>ede,getJSDocPublicTag:()=>cPe,getJSDocPublicTagNoCache:()=>Que,getJSDocReadonlyTag:()=>fPe,getJSDocReadonlyTagNoCache:()=>tde,getJSDocReturnTag:()=>ide,getJSDocReturnType:()=>sN,getJSDocRoot:()=>ok,getJSDocSatisfiesExpressionType:()=>pJ,getJSDocSatisfiesTag:()=>YW,getJSDocTags:()=>m1,getJSDocTagsNoCache:()=>pPe,getJSDocTemplateTag:()=>_Pe,getJSDocThisTag:()=>YM,getJSDocType:()=>Av,getJSDocTypeAliasName:()=>CK,getJSDocTypeAssertionType:()=>y5,getJSDocTypeParameterDeclarations:()=>$3,getJSDocTypeParameterTags:()=>Jue,getJSDocTypeParameterTagsNoCache:()=>Kue,getJSDocTypeTag:()=>p1,getJSXImplicitImportBase:()=>c7,getJSXRuntimeImport:()=>u7,getJSXTransformEnabled:()=>Jq,getKeyForCompilerOptions:()=>pX,getLanguageVariant:()=>pO,getLastChild:()=>Uq,getLeadingCommentRanges:()=>mh,getLeadingCommentRangesOfNode:()=>jz,getLeftmostAccessExpression:()=>xk,getLeftmostExpression:()=>Ak,getLineAndCharacterOfPosition:()=>ol,getLineInfo:()=>Uge,getLineOfLocalPosition:()=>_k,getLineOfLocalPositionFromLineMap:()=>ET,getLineStartPositionForPosition:()=>S_,getLineStarts:()=>og,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>u_e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>c_e,getLinesBetweenPositions:()=>NI,getLinesBetweenRangeEndAndRangeStart:()=>Mq,getLinesBetweenRangeEndPositions:()=>f4e,getLiteralText:()=>jde,getLocalNameForExternalImport:()=>BC,getLocalSymbolForExportDefault:()=>uC,getLocaleSpecificMessage:()=>No,getLocaleTimeString:()=>r6,getMappedContextSpan:()=>K0e,getMappedDocumentSpan:()=>RQ,getMappedLocation:()=>C6,getMatchedFileSpec:()=>n$,getMatchedIncludeSpec:()=>r$,getMeaningFromDeclaration:()=>u6,getMeaningFromLocation:()=>JT,getMembersOfDeclaration:()=>efe,getModeForFileReference:()=>$8,getModeForResolutionAtIndex:()=>LY,getModeForUsageLocation:()=>Sp,getModifiedTime:()=>ix,getModifiers:()=>iT,getModuleInstanceState:()=>Eg,getModuleNameStringLiteralAt:()=>OF,getModuleSpecifierEndingPreference:()=>tJ,getModuleSpecifierResolverHost:()=>IQ,getNameForExportedSymbol:()=>B9,getNameFromIndexInfo:()=>Yde,getNameFromPropertyName:()=>S6,getNameOfAccessExpression:()=>__e,getNameOfCompilerOptionValue:()=>HK,getNameOfDeclaration:()=>ka,getNameOfExpando:()=>Zz,getNameOfJSDocTypedef:()=>Hue,getNameOrArgument:()=>MN,getNameTable:()=>MZ,getNamesForExportedSymbol:()=>ybe,getNamespaceDeclarationNode:()=>ZA,getNewLineCharacter:()=>tb,getNewLineKind:()=>D6,getNewLineOrDefaultFromHost:()=>ub,getNewTargetContainer:()=>cfe,getNextJSDocCommentLocation:()=>iq,getNodeForGeneratedName:()=>S5,getNodeId:()=>ms,getNodeKind:()=>X1,getNodeModifiers:()=>ww,getNodeModulePathParts:()=>uJ,getNonAssignedNameOfDeclaration:()=>zW,getNonAssignmentOperatorForCompoundAssignment:()=>gw,getNonAugmentationDeclaration:()=>Nz,getNonDecoratorTokenPosOfNode:()=>Lz,getNormalizedAbsolutePath:()=>Pa,getNormalizedAbsolutePathWithoutRoot:()=>DW,getNormalizedPathComponents:()=>KR,getObjectFlags:()=>ti,getOperator:()=>pq,getOperatorAssociativity:()=>_q,getOperatorPrecedence:()=>eO,getOptionFromName:()=>GK,getOptionsNameMap:()=>HC,getOrCreateEmitNode:()=>rd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>lme,getOrUpdate:()=>SA,getOriginalNode:()=>Sl,getOriginalNodeId:()=>wl,getOriginalSourceFile:()=>ZPe,getOutputDeclarationFileName:()=>Ew,getOutputExtension:()=>_Y,getOutputFileNames:()=>sFe,getOutputPathsFor:()=>bw,getOutputPathsForBundle:()=>vw,getOwnEmitOutputFilePath:()=>Ofe,getOwnKeys:()=>rg,getOwnValues:()=>YS,getPackageJsonInfo:()=>e2,getPackageJsonTypesVersionsPaths:()=>W5,getPackageJsonsVisibleToFile:()=>fbe,getPackageNameFromTypesPackageName:()=>P8,getPackageScopeForPath:()=>Y5,getParameterSymbolFromJSDoc:()=>qN,getParameterTypeNode:()=>j4e,getParentNodeInSpan:()=>A6,getParseTreeNode:()=>Ea,getParsedCommandLineOfConfigFile:()=>p8,getPathComponents:()=>ld,getPathComponentsRelativeTo:()=>PW,getPathFromPathComponents:()=>f1,getPathUpdater:()=>uZ,getPathsBasePath:()=>Eq,getPatternFromSpec:()=>$q,getPendingEmitKind:()=>YC,getPositionOfLineAndCharacter:()=>ZR,getPossibleGenericSignatures:()=>gQ,getPossibleOriginalInputExtensionForExtension:()=>Mfe,getPossibleTypeArgumentsInfo:()=>yQ,getPreEmitDiagnostics:()=>EFe,getPrecedingNonSpaceCharacterPosition:()=>BQ,getPrivateIdentifier:()=>$X,getProperties:()=>KX,getProperty:()=>LR,getPropertyArrayElementValue:()=>ofe,getPropertyAssignment:()=>KA,getPropertyAssignmentAliasLikeExpression:()=>Lfe,getPropertyNameForPropertyNameNode:()=>C1,getPropertyNameForUniqueESSymbol:()=>$Pe,getPropertyNameOfBindingOrAssignmentElement:()=>AK,getPropertySymbolFromBindingElement:()=>S9,getPropertySymbolsFromContextualType:()=>cB,getQuoteFromPreference:()=>q0e,getQuotePreference:()=>Ap,getRangesWhere:()=>rH,getRefactorContextSpan:()=>a2,getReferencedFileLocation:()=>Sw,getRegexFromPattern:()=>Mv,getRegularExpressionForWildcard:()=>Lk,getRegularExpressionsForWildcards:()=>d7,getRelativePathFromDirectory:()=>wm,getRelativePathFromFile:()=>XR,getRelativePathToDirectoryOrUrl:()=>ax,getRenameLocation:()=>k6,getReplacementSpanForContextToken:()=>TQ,getResolutionDiagnostic:()=>PY,getResolutionModeOverrideForClause:()=>t2,getResolveJsonModule:()=>CT,getResolvePackageJsonExports:()=>qq,getResolvePackageJsonImports:()=>I4e,getResolvedExternalModuleName:()=>X3,getResolvedModule:()=>VA,getResolvedTypeReferenceDirective:()=>CPe,getRestIndicatorOfBindingOrAssignmentElement:()=>b5,getRestParameterElementType:()=>zz,getRightMostAssignedExpression:()=>ON,getRootDeclaration:()=>Fm,getRootLength:()=>Kp,getScriptKind:()=>FQ,getScriptKindFromFileName:()=>eJ,getScriptTargetFeatures:()=>Iz,getSelectedEffectiveModifierFlags:()=>Sx,getSelectedSyntacticModifierFlags:()=>Kfe,getSemanticClassifications:()=>kbe,getSemanticJsxChildren:()=>nO,getSetAccessorTypeAnnotationNode:()=>Bfe,getSetAccessorValueParameter:()=>pk,getSetExternalModuleIndicator:()=>mO,getShebang:()=>HM,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>nq,getSingleVariableOfVariableStatement:()=>tC,getSnapshotText:()=>g9,getSnippetElement:()=>jJ,getSourceFileOfModule:()=>d3,getSourceFileOfNode:()=>Zn,getSourceFilePathInNewDir:()=>Y3,getSourceFilePathInNewDirWorker:()=>Sq,getSourceFileVersionAsHashFromText:()=>zF,getSourceFilesToEmit:()=>Tq,getSourceMapRange:()=>ib,getSourceMapper:()=>Qbe,getSourceTextOfNodeFromSourceFile:()=>v1,getSpanOfTokenAtPosition:()=>yy,getSpellingSuggestion:()=>xI,getStartPositionOfLine:()=>Dv,getStartPositionOfRange:()=>bk,getStartsOnNewLine:()=>FO,getStaticPropertiesAndClassStaticBlock:()=>gF,getStrictOptionValue:()=>v_,getStringComparer:()=>uM,getSuperCallFromStatement:()=>JX,getSuperContainer:()=>CN,getSupportedCodeFixes:()=>U1e,getSupportedExtensions:()=>kk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>vO,getSwitchedType:()=>WQ,getSymbolId:()=>bo,getSymbolNameForPrivateIdentifier:()=>QN,getSymbolTarget:()=>rbe,getSyntacticClassifications:()=>Nbe,getSyntacticModifierFlags:()=>Ov,getSyntacticModifierFlagsNoCache:()=>kq,getSynthesizedDeepClone:()=>Dl,getSynthesizedDeepCloneWithReplacements:()=>I6,getSynthesizedDeepClones:()=>Y1,getSynthesizedDeepClonesWithReplacements:()=>GQ,getSyntheticLeadingComments:()=>EC,getSyntheticTrailingComments:()=>GO,getTargetLabel:()=>r9,getTargetOfBindingOrAssignmentElement:()=>jv,getTemporaryModuleResolutionState:()=>X5,getTextOfConstantValue:()=>Hde,getTextOfIdentifierOrLiteral:()=>V_,getTextOfJSDocComment:()=>lN,getTextOfNode:()=>xc,getTextOfNodeFromSourceText:()=>QI,getTextOfPropertyName:()=>HA,getThisContainer:()=>Sd,getThisParameter:()=>L1,getTokenAtPosition:()=>aa,getTokenPosOfNode:()=>dT,getTokenSourceMapRange:()=>aMe,getTouchingPropertyName:()=>Df,getTouchingToken:()=>kw,getTrailingCommentRanges:()=>W0,getTrailingSemicolonDeferringWriter:()=>gq,getTransformFlagsSubtreeExclusions:()=>_pe,getTransformers:()=>uY,getTsBuildInfoEmitOutputFilePath:()=>ky,getTsConfigObjectLiteralExpression:()=>tk,getTsConfigPropArray:()=>AN,getTsConfigPropArrayElementValue:()=>L3,getTypeAnnotationNode:()=>Gfe,getTypeArgumentOrTypeParameterList:()=>M0e,getTypeKeywordOfTypeOnlyImport:()=>wQ,getTypeNode:()=>Tpe,getTypeNodeIfAccessible:()=>Mw,getTypeParameterFromJsDoc:()=>Efe,getTypeParameterOwner:()=>sPe,getTypesPackageName:()=>Z5,getUILocale:()=>Lce,getUniqueName:()=>QT,getUniqueSymbolId:()=>ibe,getUseDefineForClassFields:()=>yO,getWatchErrorSummaryDiagnosticMessage:()=>ZY,getWatchFactory:()=>Hye,group:()=>SI,groupBy:()=>Ece,guessIndentation:()=>Lde,handleNoEmitOptions:()=>NY,hasAbstractModifier:()=>k1,hasAccessorModifier:()=>Bm,hasAmbientModifier:()=>Lq,hasChangesInResolutions:()=>xz,hasChildOfKind:()=>h6,hasContextSensitiveParameters:()=>h7,hasDecorators:()=>$f,hasDocComment:()=>P0e,hasDynamicName:()=>Nv,hasEffectiveModifier:()=>Bd,hasEffectiveModifiers:()=>Q3,hasEffectiveReadonlyModifier:()=>mk,hasExtension:()=>kA,hasIndexSignature:()=>HQ,hasInitializer:()=>wv,hasInvalidEscape:()=>mq,hasJSDocNodes:()=>xf,hasJSDocParameterTags:()=>Xue,hasJSFileExtension:()=>Ix,hasJsonModuleEmitEnabled:()=>a7,hasOnlyExpressionInitializer:()=>cT,hasOverrideModifier:()=>Cq,hasPossibleExternalModuleReference:()=>Kde,hasProperty:()=>Ps,hasPropertyAccessExpressionWithName:()=>d6,hasQuestionToken:()=>gx,hasRecordedExternalHelpers:()=>sme,hasRestParameter:()=>yz,hasScopeMarker:()=>Ede,hasStaticModifier:()=>gc,hasSyntacticModifier:()=>Yr,hasSyntacticModifiers:()=>Jfe,hasTSFileExtension:()=>bO,hasTabstop:()=>z_e,hasTrailingDirectorySeparator:()=>bv,hasType:()=>l3,hasTypeArguments:()=>JPe,hasZeroOrOneAsteriskCharacter:()=>Kq,helperString:()=>zJ,hostGetCanonicalFileName:()=>Z0,hostUsesCaseSensitiveFileNames:()=>oO,idText:()=>Mr,identifierIsThisKeyword:()=>Aq,identifierToKeywordKind:()=>q0,identity:()=>ml,identitySourceMapConsumer:()=>pF,ignoreSourceNewlines:()=>WJ,ignoredPaths:()=>qR,importDefaultHelper:()=>Y7,importFromModuleSpecifier:()=>VN,importNameElisionDisabled:()=>o7,importStarHelper:()=>VO,indexOfAnyCharCode:()=>Tc,indexOfNode:()=>jA,indicesOf:()=>xR,inferredTypesContainingFile:()=>FF,insertImports:()=>x9,insertLeadingStatement:()=>kMe,insertSorted:()=>yv,insertStatementAfterCustomPrologue:()=>y1,insertStatementAfterStandardPrologue:()=>wPe,insertStatementsAfterCustomPrologue:()=>Az,insertStatementsAfterStandardPrologue:()=>Pm,intersperse:()=>la,introducesArgumentsExoticObject:()=>ife,inverseJsxOptionMap:()=>sw,isAbstractConstructorSymbol:()=>d_e,isAbstractModifier:()=>Ppe,isAccessExpression:()=>ll,isAccessibilityModifier:()=>EQ,isAccessor:()=>J0,isAccessorModifier:()=>Fpe,isAliasSymbolDeclaration:()=>KPe,isAliasableExpression:()=>YN,isAmbientModule:()=>Mu,isAmbientPropertyDeclaration:()=>Pz,isAnonymousFunctionDefinition:()=>uk,isAnyDirectorySeparator:()=>kW,isAnyImportOrBareOrAccessedRequire:()=>Jde,isAnyImportOrReExport:()=>TN,isAnyImportSyntax:()=>fT,isAnySupportedFileExtension:()=>F4e,isApplicableVersionedTypesKey:()=>O8,isArgumentExpressionOfElementAccess:()=>sQ,isArray:()=>Va,isArrayBindingElement:()=>i3,isArrayBindingOrAssignmentElement:()=>_N,isArrayBindingOrAssignmentPattern:()=>cz,isArrayBindingPattern:()=>kC,isArrayLiteralExpression:()=>Gu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Dy,isArrayTypeNode:()=>ZJ,isArrowFunction:()=>Js,isAsExpression:()=>KO,isAssertClause:()=>u5,isAssertEntry:()=>zpe,isAssertionExpression:()=>lT,isAssertionKey:()=>lde,isAssertsKeyword:()=>Npe,isAssignmentDeclaration:()=>ak,isAssignmentExpression:()=>nd,isAssignmentOperator:()=>vy,isAssignmentPattern:()=>qI,isAssignmentTarget:()=>Eh,isAsteriskToken:()=>WO,isAsyncFunction:()=>oC,isAsyncModifier:()=>jk,isAutoAccessorPropertyDeclaration:()=>rf,isAwaitExpression:()=>DC,isAwaitKeyword:()=>QJ,isBigIntLiteral:()=>t5,isBinaryExpression:()=>br,isBinaryOperatorToken:()=>gme,isBindableObjectDefinePropertyCall:()=>px,isBindableStaticAccessExpression:()=>gT,isBindableStaticElementAccessExpression:()=>G3,isBindableStaticNameExpression:()=>mx,isBindingElement:()=>ps,isBindingElementOfBareOrAccessedRequire:()=>ffe,isBindingName:()=>gh,isBindingOrAssignmentElement:()=>_de,isBindingOrAssignmentPattern:()=>dN,isBindingPattern:()=>Xa,isBlock:()=>lo,isBlockOrCatchScoped:()=>kz,isBlockScope:()=>Mz,isBlockScopedContainerTopLevel:()=>qde,isBooleanLiteral:()=>cde,isBreakOrContinueStatement:()=>HI,isBreakStatement:()=>hMe,isBuildInfoFile:()=>wye,isBuilderProgram:()=>bve,isBundle:()=>sK,isBundleFileTextLike:()=>p_e,isCallChain:()=>aT,isCallExpression:()=>no,isCallExpressionTarget:()=>nQ,isCallLikeExpression:()=>ux,isCallOrNewExpression:()=>ug,isCallOrNewExpressionTarget:()=>rQ,isCallSignatureDeclaration:()=>AC,isCallToHelper:()=>Vk,isCaseBlock:()=>QO,isCaseClause:()=>Zk,isCaseKeyword:()=>Bpe,isCaseOrDefaultClause:()=>mz,isCatchClause:()=>NC,isCatchClauseVariableDeclaration:()=>W_e,isCatchClauseVariableDeclarationOrBindingElement:()=>wz,isCheckJsEnabledForFile:()=>AO,isChildOfNodeWithKind:()=>Wz,isCircularBuildOrder:()=>r2,isClassDeclaration:()=>Nc,isClassElement:()=>Vc,isClassExpression:()=>Uu,isClassLike:()=>di,isClassMemberModifier:()=>oz,isClassOrTypeElement:()=>r3,isClassStaticBlockDeclaration:()=>kl,isCollapsedRange:()=>d4e,isColonToken:()=>wpe,isCommaExpression:()=>i8,isCommaListExpression:()=>Yk,isCommaSequence:()=>iw,isCommaToken:()=>kpe,isComment:()=>_9,isCommonJsExportPropertyAssignment:()=>A3,isCommonJsExportedExpression:()=>nfe,isCompoundAssignment:()=>j8,isComputedNonLiteralName:()=>SN,isComputedPropertyName:()=>As,isConciseBody:()=>o3,isConditionalExpression:()=>RC,isConditionalTypeNode:()=>LC,isConstTypeReference:()=>cg,isConstructSignatureDeclaration:()=>qO,isConstructorDeclaration:()=>ql,isConstructorTypeNode:()=>zk,isContextualKeyword:()=>H3,isContinueStatement:()=>mMe,isCustomPrologue:()=>E3,isDebuggerStatement:()=>gMe,isDeclaration:()=>vu,isDeclarationBindingElement:()=>uN,isDeclarationFileName:()=>fd,isDeclarationName:()=>mg,isDeclarationNameOfEnumOrNamespace:()=>_O,isDeclarationReadonly:()=>b3,isDeclarationStatement:()=>Sde,isDeclarationWithTypeParameterChildren:()=>Bz,isDeclarationWithTypeParameters:()=>Fz,isDecorator:()=>Bu,isDecoratorTarget:()=>y0e,isDefaultClause:()=>e8,isDefaultImport:()=>hx,isDefaultModifier:()=>Rpe,isDefaultedExpandoInitializer:()=>pfe,isDeleteExpression:()=>Vpe,isDeleteTarget:()=>oq,isDeprecatedDeclaration:()=>G9,isDestructuringAssignment:()=>by,isDiagnosticWithLocation:()=>KQ,isDiskPathRoot:()=>W6e,isDoStatement:()=>_Me,isDotDotDotToken:()=>n5,isDottedName:()=>gk,isDynamicName:()=>q3,isESSymbolIdentifier:()=>QPe,isEffectiveExternalModule:()=>fx,isEffectiveModuleDeclaration:()=>zde,isEffectiveStrictModeSourceFile:()=>Oz,isElementAccessChain:()=>QW,isElementAccessExpression:()=>cl,isEmittedFileOfProgram:()=>jye,isEmptyArrayLiteral:()=>n_e,isEmptyBindingElement:()=>Vue,isEmptyBindingPattern:()=>Uue,isEmptyObjectLiteral:()=>Nq,isEmptyStatement:()=>rK,isEmptyStringLiteral:()=>Kz,isEndOfDeclarationMarker:()=>bMe,isEntityName:()=>nf,isEntityNameExpression:()=>zl,isEnumConst:()=>T1,isEnumDeclaration:()=>ob,isEnumMember:()=>B1,isEqualityOperatorKind:()=>I9,isEqualsGreaterThanToken:()=>Dpe,isExclamationToken:()=>zO,isExcludedFile:()=>bhe,isExclusivelyTypeOnlyImportOrExport:()=>IY,isExportAssignment:()=>Gl,isExportDeclaration:()=>eu,isExportModifier:()=>i5,isExportName:()=>g5,isExportNamespaceAsDefaultDeclaration:()=>m3,isExportOrDefaultModifier:()=>IK,isExportSpecifier:()=>dd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>V1,isExpression:()=>vt,isExpressionNode:()=>_g,isExpressionOfExternalModuleImportEqualsDeclaration:()=>T0e,isExpressionOfOptionalChainRoot:()=>ZM,isExpressionStatement:()=>ou,isExpressionWithTypeArguments:()=>xy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>cO,isExternalModule:()=>Zl,isExternalModuleAugmentation:()=>b1,isExternalModuleImportEqualsDeclaration:()=>X0,isExternalModuleIndicator:()=>pN,isExternalModuleNameRelative:()=>Uc,isExternalModuleReference:()=>zm,isExternalModuleSymbol:()=>E6,isExternalOrCommonJsModule:()=>of,isFileLevelUniqueName:()=>_3,isFileProbablyExternalModule:()=>u8,isFirstDeclarationOfSymbolParameter:()=>NQ,isFixablePromiseHandler:()=>EZ,isForInOrOfStatement:()=>BA,isForInStatement:()=>iK,isForInitializer:()=>Xp,isForOfStatement:()=>XO,isForStatement:()=>DT,isFunctionBlock:()=>pT,isFunctionBody:()=>dz,isFunctionDeclaration:()=>yc,isFunctionExpression:()=>Bs,isFunctionExpressionOrArrowFunction:()=>gC,isFunctionLike:()=>Ka,isFunctionLikeDeclaration:()=>Qs,isFunctionLikeKind:()=>cx,isFunctionLikeOrClassStaticBlockDeclaration:()=>PA,isFunctionOrConstructorTypeNode:()=>fde,isFunctionOrModuleBlock:()=>sz,isFunctionSymbol:()=>hfe,isFunctionTypeNode:()=>Lh,isFutureReservedKeyword:()=>XPe,isGeneratedIdentifier:()=>xl,isGeneratedPrivateIdentifier:()=>lx,isGetAccessor:()=>kv,isGetAccessorDeclaration:()=>q_,isGetOrSetAccessorDeclaration:()=>$M,isGlobalDeclaration:()=>pBe,isGlobalScopeAugmentation:()=>Yp,isGrammarError:()=>Fde,isHeritageClause:()=>Vd,isHoistedFunction:()=>T3,isHoistedVariableStatement:()=>S3,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>W3,isIdentifierName:()=>Cfe,isIdentifierOrThisTypeNode:()=>_me,isIdentifierPart:()=>z0,isIdentifierStart:()=>hh,isIdentifierText:()=>M_,isIdentifierTypePredicate:()=>afe,isIdentifierTypeReference:()=>G_e,isIfStatement:()=>wT,isIgnoredFileFromWildCardWatching:()=>CF,isImplicitGlob:()=>Yq,isImportCall:()=>sf,isImportClause:()=>Wm,isImportDeclaration:()=>zc,isImportEqualsDeclaration:()=>su,isImportKeyword:()=>Wk,isImportMeta:()=>qA,isImportOrExportSpecifier:()=>sx,isImportOrExportSpecifierName:()=>nbe,isImportSpecifier:()=>Ld,isImportTypeAssertionContainer:()=>Wpe,isImportTypeNode:()=>vg,isImportableFile:()=>rZ,isInComment:()=>wy,isInExpressionContext:()=>N3,isInJSDoc:()=>wN,isInJSFile:()=>fr,isInJSXText:()=>N0e,isInJsonFile:()=>P3,isInNonReferenceComment:()=>V0e,isInReferenceComment:()=>U0e,isInRightSideOfInternalImportEqualsDeclaration:()=>e9,isInString:()=>YT,isInTemplateString:()=>hQ,isInTopLevelContext:()=>k3,isIncrementalCompilation:()=>hO,isIndexSignatureDeclaration:()=>Mx,isIndexedAccessTypeNode:()=>Ux,isInferTypeNode:()=>IC,isInfinityOrNaNString:()=>Pk,isInitializedProperty:()=>H8,isInitializedVariable:()=>Fq,isInsideJsxElement:()=>d9,isInsideJsxElementOrAttribute:()=>R0e,isInsideNodeModules:()=>pbe,isInsideTemplateLiteral:()=>v6,isInstantiatedModule:()=>OX,isInterfaceDeclaration:()=>id,isInternalDeclaration:()=>sY,isInternalModuleImportEqualsDeclaration:()=>YA,isInternalName:()=>TK,isIntersectionTypeNode:()=>JO,isIntrinsicJsxName:()=>dk,isIterationStatement:()=>Iv,isJSDoc:()=>qm,isJSDocAllType:()=>Ype,isJSDocAugmentsTag:()=>MC,isJSDocAuthorTag:()=>SMe,isJSDocCallbackTag:()=>cK,isJSDocClassTag:()=>Qpe,isJSDocCommentContainingNode:()=>hz,isJSDocConstructSignature:()=>eC,isJSDocDeprecatedTag:()=>pK,isJSDocEnumTag:()=>t8,isJSDocFunctionType:()=>PC,isJSDocImplementsTag:()=>hK,isJSDocIndexSignature:()=>M3,isJSDocLikeText:()=>wK,isJSDocLink:()=>Kpe,isJSDocLinkCode:()=>Xpe,isJSDocLinkLike:()=>dx,isJSDocLinkPlain:()=>EMe,isJSDocMemberName:()=>sb,isJSDocNameReference:()=>ew,isJSDocNamepathType:()=>TMe,isJSDocNamespaceBody:()=>EPe,isJSDocNode:()=>GA,isJSDocNonNullableType:()=>d5,isJSDocNullableType:()=>OC,isJSDocOptionalParameter:()=>IO,isJSDocOptionalType:()=>lK,isJSDocOverloadTag:()=>nw,isJSDocOverrideTag:()=>_5,isJSDocParameterTag:()=>am,isJSDocPrivateTag:()=>dK,isJSDocPropertyLikeTag:()=>t3,isJSDocPropertyTag:()=>eme,isJSDocProtectedTag:()=>fK,isJSDocPublicTag:()=>uK,isJSDocReadonlyTag:()=>_K,isJSDocReturnTag:()=>p5,isJSDocSatisfiesExpression:()=>_J,isJSDocSatisfiesTag:()=>m5,isJSDocSeeTag:()=>xMe,isJSDocSignature:()=>G1,isJSDocTag:()=>KI,isJSDocTemplateTag:()=>Tp,isJSDocThisTag:()=>Zpe,isJSDocThrowsTag:()=>CMe,isJSDocTypeAlias:()=>h_,isJSDocTypeAssertion:()=>aw,isJSDocTypeExpression:()=>OT,isJSDocTypeLiteral:()=>tw,isJSDocTypeTag:()=>rw,isJSDocTypedefTag:()=>mK,isJSDocUnknownTag:()=>AMe,isJSDocUnknownType:()=>$pe,isJSDocVariadicType:()=>f5,isJSXTagName:()=>rk,isJsonEqual:()=>oJ,isJsonSourceFile:()=>m_,isJsxAttribute:()=>im,isJsxAttributeLike:()=>s3,isJsxAttributes:()=>F1,isJsxChild:()=>gN,isJsxClosingElement:()=>zx,isJsxClosingFragment:()=>qpe,isJsxElement:()=>Cy,isJsxExpression:()=>Qk,isJsxFragment:()=>qx,isJsxOpeningElement:()=>wh,isJsxOpeningFragment:()=>Jx,isJsxOpeningLikeElement:()=>ed,isJsxOpeningLikeElementTagName:()=>v0e,isJsxSelfClosingElement:()=>Wx,isJsxSpreadAttribute:()=>RT,isJsxTagNameExpression:()=>JI,isJsxText:()=>Nx,isJumpStatementTarget:()=>f6,isKeyword:()=>Ad,isKnownSymbol:()=>ZN,isLabelName:()=>aQ,isLabelOfLabeledStatement:()=>iQ,isLabeledStatement:()=>M1,isLateVisibilityPaintedStatement:()=>g3,isLeftHandSideExpression:()=>Td,isLeftHandSideOfAssignment:()=>s4e,isLet:()=>ek,isLineBreak:()=>hu,isLiteralComputedPropertyDeclarationName:()=>XN,isLiteralExpression:()=>oT,isLiteralExpressionOfObject:()=>rz,isLiteralImportTypeNode:()=>K0,isLiteralKind:()=>WI,isLiteralLikeAccess:()=>B3,isLiteralLikeElementAccess:()=>PN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>i9,isLiteralTypeLikeExpression:()=>BMe,isLiteralTypeLiteral:()=>vde,isLiteralTypeNode:()=>ab,isLocalName:()=>Vv,isLogicalOperator:()=>Zfe,isLogicalOrCoalescingAssignmentExpression:()=>wq,isLogicalOrCoalescingAssignmentOperator:()=>hk,isLogicalOrCoalescingBinaryExpression:()=>lO,isLogicalOrCoalescingBinaryOperator:()=>sO,isMappedTypeNode:()=>Kk,isMemberName:()=>lg,isMergeDeclarationMarker:()=>vMe,isMetaProperty:()=>Xk,isMethodDeclaration:()=>ac,isMethodOrAccessor:()=>MA,isMethodSignature:()=>Ch,isMinusToken:()=>$J,isMissingDeclaration:()=>yMe,isModifier:()=>uo,isModifierKind:()=>my,isModifierLike:()=>nl,isModuleAugmentationExternal:()=>Rz,isModuleBlock:()=>rm,isModuleBody:()=>Tde,isModuleDeclaration:()=>Jl,isModuleExportsAccessExpression:()=>bh,isModuleIdentifier:()=>eq,isModuleName:()=>hme,isModuleOrEnumDeclaration:()=>mN,isModuleReference:()=>Ade,isModuleSpecifierLike:()=>T9,isModuleWithStringLiteralName:()=>h3,isNameOfFunctionDeclaration:()=>cQ,isNameOfModuleDeclaration:()=>lQ,isNamedClassElement:()=>dde,isNamedDeclaration:()=>gu,isNamedEvaluation:()=>Yf,isNamedEvaluationSource:()=>cq,isNamedExportBindings:()=>ez,isNamedExports:()=>K_,isNamedImportBindings:()=>fz,isNamedImports:()=>Ay,isNamedImportsOrExports:()=>jq,isNamedTupleMember:()=>Jk,isNamespaceBody:()=>bPe,isNamespaceExport:()=>kh,isNamespaceExportDeclaration:()=>ZO,isNamespaceImport:()=>Uv,isNamespaceReexportDeclaration:()=>dfe,isNewExpression:()=>P1,isNewExpressionTarget:()=>Cw,isNightly:()=>iO,isNoSubstitutionTemplateLiteral:()=>Ox,isNode:()=>gPe,isNodeArray:()=>h1,isNodeArrayMultiLine:()=>l_e,isNodeDescendantOf:()=>vT,isNodeKind:()=>cN,isNodeLikeSystem:()=>hH,isNodeModulesDirectory:()=>GM,isNodeWithPossibleHoistedDeclaration:()=>Tfe,isNonContextualKeyword:()=>Ife,isNonExportDefaultModifier:()=>n3e,isNonGlobalAmbientModule:()=>Dz,isNonGlobalDeclaration:()=>Tbe,isNonNullAccess:()=>q_e,isNonNullChain:()=>e3,isNonNullExpression:()=>jx,isNonStaticMethodOrAccessorWithPrivateName:()=>Yge,isNotEmittedOrPartiallyEmittedNode:()=>vPe,isNotEmittedStatement:()=>oK,isNullishCoalesce:()=>ZW,isNumber:()=>cy,isNumericLiteral:()=>b_,isNumericLiteralName:()=>Ah,isObjectBindingElementWithoutPropertyName:()=>x6,isObjectBindingOrAssignmentElement:()=>fN,isObjectBindingOrAssignmentPattern:()=>lz,isObjectBindingPattern:()=>Hm,isObjectLiteralElement:()=>gz,isObjectLiteralElementLike:()=>hy,isObjectLiteralExpression:()=>Ls,isObjectLiteralMethod:()=>G_,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>C3,isObjectTypeDeclaration:()=>Ax,isOctalDigit:()=>BW,isOmittedExpression:()=>Rc,isOptionalChain:()=>yu,isOptionalChainRoot:()=>VI,isOptionalDeclaration:()=>fJ,isOptionalJSDocPropertyLikeTag:()=>LO,isOptionalTypeNode:()=>eK,isOuterExpression:()=>v5,isOutermostOptionalChain:()=>jI,isOverrideModifier:()=>Mpe,isPackedArrayLiteral:()=>lJ,isParameter:()=>Ba,isParameterDeclaration:()=>bT,isParameterOrCatchClauseVariable:()=>cJ,isParameterPropertyDeclaration:()=>tf,isParameterPropertyModifier:()=>zI,isParenthesizedExpression:()=>Ud,isParenthesizedTypeNode:()=>Bx,isParseTreeNode:()=>BI,isPartOfTypeNode:()=>vh,isPartOfTypeQuery:()=>O3,isPartiallyEmittedExpression:()=>c5,isPatternMatch:()=>fM,isPinnedComment:()=>p3,isPlainJsFile:()=>f3,isPlusToken:()=>YJ,isPossiblyTypeArgumentPosition:()=>y6,isPostfixUnaryExpression:()=>nK,isPrefixUnaryExpression:()=>Gv,isPrivateIdentifier:()=>Ni,isPrivateIdentifierClassElementDeclaration:()=>Zu,isPrivateIdentifierPropertyAccessExpression:()=>OA,isPrivateIdentifierSymbol:()=>kfe,isProgramBundleEmitBuildInfo:()=>lve,isProgramUptoDate:()=>DY,isPrologueDirective:()=>yp,isPropertyAccessChain:()=>QM,isPropertyAccessEntityNameExpression:()=>uO,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>mde,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>pde,isPropertyAssignment:()=>qc,isPropertyDeclaration:()=>to,isPropertyName:()=>yl,isPropertyNameLiteral:()=>U_,isPropertySignature:()=>If,isProtoSetter:()=>wfe,isPrototypeAccess:()=>eb,isPrototypePropertyAssignment:()=>BN,isPunctuation:()=>B0e,isPushOrUnshiftIdentifier:()=>uq,isQualifiedName:()=>Cd,isQuestionDotToken:()=>r5,isQuestionOrExclamationToken:()=>fme,isQuestionOrPlusOrMinusToken:()=>mme,isQuestionToken:()=>Bv,isRawSourceMap:()=>jge,isReadonlyKeyword:()=>Ope,isReadonlyKeywordOrPlusOrMinusToken:()=>pme,isRecognizedTripleSlashComment:()=>Cz,isReferenceFileLocation:()=>XC,isReferencedFile:()=>cb,isRegularExpressionLiteral:()=>KJ,isRequireCall:()=>xd,isRequireVariableStatement:()=>Qz,isRestParameter:()=>yh,isRestTypeNode:()=>tK,isReturnStatement:()=>Ep,isReturnStatementWithFixablePromiseHandler:()=>Z9,isRightSideOfAccessExpression:()=>e_e,isRightSideOfPropertyAccess:()=>eL,isRightSideOfQualifiedName:()=>E0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>yk,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>t_e,isRootedDiskPath:()=>km,isSameEntityName:()=>$A,isSatisfiesExpression:()=>dMe,isScopeMarker:()=>bde,isSemicolonClassElement:()=>jpe,isSetAccessor:()=>gy,isSetAccessorDeclaration:()=>e_,isShebangTrivia:()=>GW,isShorthandAmbientModuleSymbol:()=>ZI,isShorthandPropertyAssignment:()=>t_,isSignedNumericLiteral:()=>z3,isSimpleCopiableExpression:()=>H1,isSimpleInlineableExpression:()=>om,isSingleOrDoubleQuote:()=>DN,isSourceFile:()=>qi,isSourceFileFromLibrary:()=>Bw,isSourceFileJS:()=>td,isSourceFileNotJS:()=>VPe,isSourceFileNotJson:()=>Yz,isSourceMapping:()=>Hge,isSpecialPropertyDeclaration:()=>mfe,isSpreadAssignment:()=>Kx,isSpreadElement:()=>Ih,isStatement:()=>wa,isStatementButNotDeclaration:()=>hN,isStatementOrBlock:()=>xde,isStatementWithLocals:()=>Mde,isStatic:()=>Ja,isStaticModifier:()=>Px,isString:()=>Ha,isStringAKeyword:()=>YPe,isStringANonContextualKeyword:()=>vx,isStringAndEmptyAnonymousObjectIntersection:()=>F0e,isStringDoubleQuoted:()=>F3,isStringLiteral:()=>Vo,isStringLiteralLike:()=>xs,isStringLiteralOrJsxExpression:()=>Cde,isStringLiteralOrTemplate:()=>lbe,isStringOrNumericLiteralLike:()=>Xf,isStringOrRegularExpressionOrTemplateLiteral:()=>bQ,isStringTextContainingNode:()=>az,isSuperCall:()=>zA,isSuperKeyword:()=>Hk,isSuperOrSuperProperty:()=>UPe,isSuperProperty:()=>ud,isSupportedSourceFileName:()=>O_e,isSwitchStatement:()=>YO,isSyntaxList:()=>FC,isSyntheticExpression:()=>fMe,isSyntheticReference:()=>Hx,isTagName:()=>oQ,isTaggedTemplateExpression:()=>kT,isTaggedTemplateTag:()=>g0e,isTemplateExpression:()=>s5,isTemplateHead:()=>xC,isTemplateLiteral:()=>FA,isTemplateLiteralKind:()=>Lv,isTemplateLiteralToken:()=>ode,isTemplateLiteralTypeNode:()=>uMe,isTemplateLiteralTypeSpan:()=>Gpe,isTemplateMiddle:()=>Ipe,isTemplateMiddleOrTemplateTail:()=>n3,isTemplateSpan:()=>$k,isTemplateTail:()=>XJ,isTextWhiteSpaceLike:()=>J0e,isThis:()=>tL,isThisContainerOrFunctionBlock:()=>lfe,isThisIdentifier:()=>TT,isThisInTypeQuery:()=>Tx,isThisInitializedDeclaration:()=>w3,isThisInitializedObjectBindingExpression:()=>ufe,isThisProperty:()=>LN,isThisTypeNode:()=>o5,isThisTypeParameter:()=>Mk,isThisTypePredicate:()=>BPe,isThrowStatement:()=>aK,isToken:()=>ox,isTokenKind:()=>nz,isTraceEnabled:()=>Wv,isTransientSymbol:()=>Om,isTrivia:()=>aC,isTryStatement:()=>$O,isTupleTypeNode:()=>CC,isTypeAlias:()=>HN,isTypeAliasDeclaration:()=>nm,isTypeAssertionExpression:()=>Upe,isTypeDeclaration:()=>yC,isTypeElement:()=>sT,isTypeKeyword:()=>Dw,isTypeKeywordToken:()=>AQ,isTypeKeywordTokenOrIdentifier:()=>h9,isTypeLiteralNode:()=>cf,isTypeNode:()=>Gi,isTypeNodeKind:()=>Vq,isTypeOfExpression:()=>wC,isTypeOnlyExportDeclaration:()=>sde,isTypeOnlyImportDeclaration:()=>iz,isTypeOnlyImportOrExportDeclaration:()=>g1,isTypeOperatorNode:()=>Gx,isTypeParameterDeclaration:()=>Bl,isTypePredicateNode:()=>a5,isTypeQueryNode:()=>qk,isTypeReferenceNode:()=>J_,isTypeReferenceType:()=>c3,isUMDExportSymbol:()=>n7,isUnaryExpression:()=>uz,isUnaryExpressionWithWrite:()=>yde,isUnicodeIdentifierStart:()=>UM,isUnionTypeNode:()=>Fx,isUnparsedNode:()=>tz,isUnparsedPrepend:()=>Jpe,isUnparsedSource:()=>NT,isUnparsedTextLike:()=>ade,isUrl:()=>pue,isValidBigIntString:()=>m7,isValidESSymbolDeclaration:()=>rfe,isValidTypeOnlyAliasUseSite:()=>kx,isValueSignatureDeclaration:()=>Sfe,isVarConst:()=>fg,isVariableDeclaration:()=>Ki,isVariableDeclarationInVariableStatement:()=>x3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>x1,isVariableDeclarationInitializedToRequire:()=>$z,isVariableDeclarationList:()=>Vu,isVariableLike:()=>JA,isVariableLikeOrAccessor:()=>tfe,isVariableStatement:()=>uc,isVoidExpression:()=>Vx,isWatchSet:()=>p4e,isWhileStatement:()=>pMe,isWhiteSpaceLike:()=>sg,isWhiteSpaceSingleLine:()=>Dm,isWithStatement:()=>Hpe,isWriteAccess:()=>Sk,isWriteOnlyAccess:()=>Bq,isYieldExpression:()=>l5,jsxModeNeedsExplicitImport:()=>ZQ,keywordPart:()=>Hd,last:()=>zo,lastOrUndefined:()=>tl,length:()=>Ae,libMap:()=>x8,libs:()=>S8,lineBreakPart:()=>aL,linkNamePart:()=>ebe,linkPart:()=>PQ,linkTextPart:()=>A9,listFiles:()=>e$,loadModuleFromGlobalCache:()=>uge,loadWithModeAwareCache:()=>Q8,makeIdentifierFromModuleName:()=>Wde,makeImport:()=>Ry,makeImportIfNecessary:()=>z0e,makeStringLiteral:()=>v9,mangleScopedPackageName:()=>_w,map:()=>Vt,mapAllOrFail:()=>KS,mapDefined:()=>ia,mapDefinedEntries:()=>EI,mapDefinedIterator:()=>TA,mapEntries:()=>_ce,mapIterator:()=>_o,mapOneOrMany:()=>gbe,mapToDisplayParts:()=>Kv,matchFiles:()=>Zq,matchPatternOrExact:()=>nJ,matchedText:()=>Nce,matchesExclude:()=>O5,maybeBind:()=>Go,maybeSetLocalizedDiagnosticMessages:()=>y_e,memoize:()=>Ed,memoizeCached:()=>xce,memoizeOne:()=>Lm,memoizeWeak:()=>Z8e,metadataHelper:()=>D7,min:()=>fH,minAndMax:()=>F_e,missingFileModifiedTime:()=>ig,modifierToFlag:()=>xx,modifiersToFlags:()=>Gm,moduleOptionDeclaration:()=>nX,moduleResolutionIsEqualTo:()=>Ode,moduleResolutionNameAndModeGetter:()=>Aw,moduleResolutionOptionDeclarations:()=>M5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Lx,moduleResolutionUsesNodeModules:()=>y9,moduleSpecifiers:()=>j1,moveEmitHelpers:()=>bpe,moveRangeEnd:()=>e7,moveRangePastDecorators:()=>Pv,moveRangePastModifiers:()=>Zp,moveRangePos:()=>nb,moveSyntheticComments:()=>gpe,mutateMap:()=>fC,mutateMapSkippingNewValues:()=>hg,needsParentheses:()=>jQ,needsScopeMarker:()=>a3,newCaseClauseTracker:()=>j9,newPrivateEnvironment:()=>Zge,noEmitNotification:()=>W8,noEmitSubstitution:()=>yw,noTransformers:()=>dY,noTruncationMaximumTruncationLength:()=>b7,nodeCanBeDecorated:()=>R3,nodeHasName:()=>oN,nodeIsDecorated:()=>XA,nodeIsMissing:()=>Cl,nodeIsPresent:()=>p_,nodeIsSynthesized:()=>Zs,nodeModuleNameResolver:()=>Khe,nodeModulesPathPart:()=>Ly,nodeNextJsonConfigResolver:()=>Xhe,nodeOrChildIsDecorated:()=>kN,nodeOverlapsWithStartEnd:()=>dQ,nodePosToString:()=>kPe,nodeSeenTracker:()=>nL,nodeStartsNewLexicalEnvironment:()=>dq,nodeToDisplayParts:()=>sBe,noop:()=>oo,noopFileWatcher:()=>$C,noopPush:()=>gM,normalizePath:()=>qo,normalizeSlashes:()=>Qc,not:()=>pM,notImplemented:()=>Wa,notImplementedResolver:()=>xF,nullNodeConverters:()=>NJ,nullParenthesizerRules:()=>RJ,nullTransformationContext:()=>Tg,objectAllocator:()=>Hc,operatorPart:()=>Rw,optionDeclarations:()=>bg,optionMapToObject:()=>jK,optionsAffectingProgramStructure:()=>oX,optionsForBuild:()=>lX,optionsForWatch:()=>A8,optionsHaveChanges:()=>UA,optionsHaveModuleResolutionChanges:()=>kde,or:()=>Im,orderedRemoveItem:()=>dM,orderedRemoveItemAt:()=>l1,outFile:()=>qs,packageIdToPackageName:()=>u3,packageIdToString:()=>uT,padLeft:()=>ZS,padRight:()=>i6e,paramHelper:()=>R7,parameterIsThisKeyword:()=>I1,parameterNamePart:()=>Y0e,parseBaseNodeFactory:()=>PK,parseBigInt:()=>B_e,parseBuildCommand:()=>b3e,parseCommandLine:()=>v3e,parseCommandLineWorker:()=>BK,parseConfigFileTextToJson:()=>VK,parseConfigFileWithSystem:()=>YFe,parseConfigHostFromCompilerHostLike:()=>NF,parseCustomTypeOption:()=>k5,parseIsolatedEntityName:()=>Qx,parseIsolatedJSDocComment:()=>Gme,parseJSDocTypeExpressionForTests:()=>_3e,parseJsonConfigFileContent:()=>w3e,parseJsonSourceFileConfigFileContent:()=>y8,parseJsonText:()=>_8,parseListTypeOption:()=>Yme,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>gX,parsePackageName:()=>EX,parsePseudoBigInt:()=>Dk,parseValidBigInt:()=>sJ,patchWriteFileEnsuringDirectory:()=>_ue,pathContainsNodeModules:()=>Zx,pathIsAbsolute:()=>kI,pathIsBareSpecifier:()=>wW,pathIsRelative:()=>Sf,patternText:()=>Rce,perfLogger:()=>Jp,performIncrementalCompilation:()=>QFe,performance:()=>PR,plainJSErrors:()=>BF,positionBelongsToNode:()=>fQ,positionIsASICandidate:()=>w9,positionIsSynthesized:()=>em,positionsAreOnSameLine:()=>y_,preProcessFile:()=>$be,probablyUsesSemicolons:()=>D9,processCommentPragmas:()=>NK,processPragmasIntoFields:()=>OK,processTaggedTemplateExpression:()=>tY,programContainsEsModules:()=>W0e,programContainsModules:()=>H0e,projectReferenceIsEqualTo:()=>Sz,propKeyHelper:()=>z7,propertyNamePart:()=>$0e,pseudoBigIntToString:()=>R1,punctuationPart:()=>Tu,pushIfUnique:()=>f_,quote:()=>Pw,quotePreferenceFromString:()=>kQ,rangeContainsPosition:()=>_6,rangeContainsPositionExclusive:()=>p6,rangeContainsRange:()=>uf,rangeContainsRangeExclusive:()=>S0e,rangeContainsStartEnd:()=>m6,rangeEndIsOnSameLineAsRangeStart:()=>fO,rangeEndPositionsAreOnSameLine:()=>o_e,rangeEquals:()=>oH,rangeIsOnSingleLine:()=>xT,rangeOfNode:()=>iJ,rangeOfTypeParameters:()=>aJ,rangeOverlapsWithStartEnd:()=>Iw,rangeStartIsOnSameLineAsRangeEnd:()=>s_e,rangeStartPositionsAreOnSameLine:()=>t7,readBuilderProgram:()=>KF,readConfigFile:()=>m8,readHelper:()=>H7,readJson:()=>vk,readJsonConfigFile:()=>ehe,readJsonOrUndefined:()=>Oq,realizeDiagnostics:()=>jZ,reduceEachLeadingCommentRange:()=>bue,reduceEachTrailingCommentRange:()=>Eue,reduceLeft:()=>Nu,reduceLeftIterator:()=>kr,reducePathComponents:()=>eT,refactor:()=>oD,regExpEscape:()=>D4e,relativeComplement:()=>mce,removeAllComments:()=>PO,removeEmitHelper:()=>oMe,removeExtension:()=>TO,removeFileExtension:()=>Gd,removeIgnoredPath:()=>QY,removeMinAndVersionNumbers:()=>Dce,removeOptionality:()=>O0e,removePrefix:()=>AI,removeSuffix:()=>CA,removeTrailingDirectorySeparator:()=>tT,repeatString:()=>T6,replaceElement:()=>lH,resolutionExtensionIsTSOrJson:()=>SO,resolveConfigFileProjectName:()=>d$,resolveJSModule:()=>zhe,resolveModuleName:()=>uw,resolveModuleNameFromCache:()=>a7e,resolvePackageNameToPackageJson:()=>Z3e,resolvePath:()=>Ev,resolveProjectReferencePath:()=>xw,resolveTripleslashReference:()=>LF,resolveTypeReferenceDirective:()=>dX,resolvingEmptyArray:()=>v7,restHelper:()=>G7,returnFalse:()=>a1,returnNoopFileWatcher:()=>i6,returnTrue:()=>o1,returnUndefined:()=>j0,returnsPromise:()=>bZ,runInitializersHelper:()=>O7,sameFlatMap:()=>QE,sameMap:()=>pa,sameMapping:()=>J7e,scanShebangTrivia:()=>UW,scanTokenAtPosition:()=>Qde,scanner:()=>Su,screenStartingMessageCodes:()=>JF,semanticDiagnosticsOptionDeclarations:()=>rX,serializeCompilerOptions:()=>WK,server:()=>p0e,servicesVersion:()=>FZ,setCommentRange:()=>Wc,setConfigFileInOptions:()=>qK,setConstantValue:()=>vpe,setEachParent:()=>hC,setEmitFlags:()=>or,setFunctionNameHelper:()=>q7,setGetSourceFileAsHashVersioned:()=>qF,setIdentifierAutoGenerate:()=>UO,setIdentifierGeneratedImportReference:()=>Spe,setIdentifierTypeArguments:()=>Sy,setInternalEmitFlags:()=>MO,setLocalizedDiagnosticMessages:()=>g_e,setModuleDefaultHelper:()=>X7,setNodeFlags:()=>V_e,setObjectAllocator:()=>h_e,setOriginalNode:()=>Wr,setParent:()=>Uo,setParentRecursive:()=>Fv,setPrivateIdentifier:()=>UT,setResolvedModule:()=>Rde,setResolvedTypeReferenceDirective:()=>Nde,setSnippetElement:()=>HJ,setSourceMapRange:()=>_s,setStackTraceLimit:()=>N6e,setStartsOnNewLine:()=>VJ,setSyntheticLeadingComments:()=>O1,setSyntheticTrailingComments:()=>TC,setSys:()=>j6e,setSysLog:()=>cue,setTextRange:()=>ht,setTextRangeEnd:()=>mC,setTextRangePos:()=>Rk,setTextRangePosEnd:()=>Vm,setTextRangePosWidth:()=>Nk,setTokenSourceMapRange:()=>hpe,setTypeNode:()=>Epe,setUILocale:()=>Ice,setValueDeclaration:()=>GN,shouldAllowImportingTsExtension:()=>pw,shouldPreserveConstEnums:()=>w1,shouldUseUriStyleNodeCoreModules:()=>U9,showModuleSpecifier:()=>f_e,signatureHasLiteralTypes:()=>PX,signatureHasRestParameter:()=>Eu,signatureToDisplayParts:()=>MQ,single:()=>sH,singleElementArray:()=>ZE,singleIterator:()=>H8e,singleOrMany:()=>Cm,singleOrUndefined:()=>Am,skipAlias:()=>lf,skipAssertions:()=>OMe,skipConstraint:()=>CQ,skipOuterExpressions:()=>bu,skipParentheses:()=>js,skipPartiallyEmittedExpressions:()=>F_,skipTrivia:()=>Jo,skipTypeChecking:()=>wk,skipTypeParentheses:()=>aq,skipWhile:()=>Fce,sliceAfter:()=>rJ,some:()=>kt,sort:()=>TI,sortAndDeduplicate:()=>AR,sortAndDeduplicateDiagnostics:()=>DA,sourceFileAffectingCompilerOptions:()=>F5,sourceFileMayBeEmitted:()=>Ex,sourceMapCommentRegExp:()=>fF,sourceMapCommentRegExpDontCareLineStart:()=>WX,spacePart:()=>bl,spanMap:()=>iM,spreadArrayHelper:()=>W7,stableSort:()=>ly,startEndContainsRange:()=>uQ,startEndOverlapsWithStartEnd:()=>a9,startOnNewLine:()=>ju,startTracing:()=>rue,startsWith:()=>xa,startsWithDirectory:()=>OW,startsWithUnderscore:()=>QQ,startsWithUseStrict:()=>ame,stringContains:()=>pu,stringContainsAt:()=>Ebe,stringToToken:()=>rT,stripQuotes:()=>j_,supportedDeclarationExtensions:()=>S7,supportedJSExtensions:()=>wJ,supportedJSExtensionsFlat:()=>Bk,supportedLocaleDirectories:()=>bz,supportedTSExtensions:()=>bC,supportedTSExtensionsFlat:()=>kJ,supportedTSImplementationExtensions:()=>x7,suppressLeadingAndTrailingTrivia:()=>Wd,suppressLeadingTrivia:()=>C9,suppressTrailingTrivia:()=>sbe,symbolEscapedNameNoDefault:()=>E9,symbolName:()=>Fl,symbolNameNoDefault:()=>b9,symbolPart:()=>X0e,symbolToDisplayParts:()=>Nw,syntaxMayBeASICandidate:()=>nZ,syntaxRequiresTrailingSemicolonOrASI:()=>k9,sys:()=>$c,sysLog:()=>jR,tagNamesAreEquivalent:()=>lb,takeWhile:()=>mM,targetOptionDeclaration:()=>L8,templateObjectHelper:()=>j7,testFormatSettings:()=>h0e,textChangeRangeIsUnchanged:()=>Gue,textChangeRangeNewSpan:()=>FI,textChanges:()=>gr,textOrKeywordPart:()=>OQ,textPart:()=>Rf,textRangeContainsPositionInclusive:()=>qM,textSpanContainsPosition:()=>jW,textSpanContainsTextSpan:()=>Pue,textSpanEnd:()=>iu,textSpanIntersection:()=>Bue,textSpanIntersectsWith:()=>JM,textSpanIntersectsWithPosition:()=>Fue,textSpanIntersectsWithTextSpan:()=>aPe,textSpanIsEmpty:()=>Oue,textSpanOverlap:()=>Mue,textSpanOverlapsWith:()=>iPe,textSpansEqual:()=>iL,textToKeywordObj:()=>rN,timestamp:()=>il,toArray:()=>wR,toBuilderFileEmit:()=>fve,toBuilderStateFileInfoForMultiEmit:()=>dve,toEditorSettings:()=>F6,toFileNameLowerCase:()=>O_,toLowerCase:()=>Sce,toPath:()=>zs,toProgramEmitPending:()=>_ve,tokenIsIdentifierOrKeyword:()=>Qu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>yue,tokenToString:()=>yo,trace:()=>ha,tracing:()=>bi,tracingEnabled:()=>MR,transform:()=>MGe,transformClassFields:()=>iye,transformDeclarations:()=>lY,transformECMAScriptModule:()=>oY,transformES2015:()=>yye,transformES2016:()=>hye,transformES2017:()=>lye,transformES2018:()=>cye,transformES2019:()=>uye,transformES2020:()=>dye,transformES2021:()=>fye,transformES5:()=>vye,transformESDecorators:()=>sye,transformESNext:()=>_ye,transformGenerators:()=>bye,transformJsx:()=>pye,transformLegacyDecorators:()=>oye,transformModule:()=>aY,transformNodeModule:()=>Sye,transformNodes:()=>z8,transformSystemModule:()=>Tye,transformTypeScript:()=>nye,transpile:()=>lGe,transpileModule:()=>s1e,transpileOptionValueCompilerOptions:()=>sX,trimString:()=>c1,trimStringEnd:()=>NR,trimStringStart:()=>CI,tryAddToSet:()=>gv,tryAndIgnoreErrors:()=>P9,tryCast:()=>ai,tryDirectoryExists:()=>O9,tryExtractTSExtension:()=>Z3,tryFileExists:()=>N9,tryGetClassExtendingExpressionWithTypeArguments:()=>Dq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Rq,tryGetDirectories:()=>R9,tryGetExtensionFromPath:()=>xh,tryGetImportFromModuleSpecifier:()=>jN,tryGetJSDocSatisfiesTypeNode:()=>y7,tryGetModuleNameFromFile:()=>o8,tryGetModuleSpecifierFromDeclaration:()=>UN,tryGetNativePerformanceHooks:()=>Zce,tryGetPropertyAccessOrIdentifierToString:()=>dO,tryGetPropertyNameOfBindingOrAssignmentElement:()=>E5,tryGetSourceMappingURL:()=>Vge,tryGetTextOfPropertyName:()=>y3,tryIOAndConsumeErrors:()=>M9,tryParsePattern:()=>pC,tryParsePatterns:()=>_7,tryParseRawSourceMap:()=>jX,tryReadDirectory:()=>qQ,tryReadFile:()=>h8,tryRemoveDirectoryPrefix:()=>Xq,tryRemoveExtension:()=>M_e,tryRemovePrefix:()=>mH,tryRemoveSuffix:()=>wce,typeAcquisitionDeclarations:()=>G5,typeAliasNamePart:()=>Q0e,typeDirectiveIsEqualTo:()=>Pde,typeKeywords:()=>H9,typeParameterNamePart:()=>Z0e,typeReferenceResolutionNameAndModeGetter:()=>e6,typeToDisplayParts:()=>L6,unchangedPollThresholds:()=>zR,unchangedTextChangeRange:()=>vz,unescapeLeadingUnderscores:()=>ta,unmangleScopedPackageName:()=>eF,unorderedRemoveItem:()=>RR,unorderedRemoveItemAt:()=>_H,unreachableCodeIsError:()=>A_e,unusedLabelIsError:()=>C_e,unwrapInnermostStatementOfLabel:()=>qz,updateErrorForNoInputFiles:()=>KK,updateLanguageServiceSourceFile:()=>PZ,updateMissingFilePathsWatch:()=>Vye,updatePackageJsonWatch:()=>yFe,updateResolutionField:()=>qC,updateSharedExtendedConfigFileWatcher:()=>yY,updateSourceFile:()=>RK,updateWatchingWildcardDirectories:()=>AF,usesExtensionsOnImports:()=>N_e,usingSingleLineStringWriter:()=>YI,utf16EncodeAsString:()=>MI,validateLocaleAndSetLanguage:()=>lPe,valuesHelper:()=>J7,version:()=>be,versionMajorMinor:()=>_e,visitArray:()=>VX,visitCommaListElements:()=>V8,visitEachChild:()=>Bn,visitFunctionBody:()=>wf,visitIterationBody:()=>E_,visitLexicalEnvironment:()=>dF,visitNode:()=>lt,visitNodes:()=>Jn,visitParameterList:()=>Kl,walkUpBindingElementsAndPatterns:()=>RA,walkUpLexicalEnvironments:()=>Qge,walkUpOuterExpressions:()=>ome,walkUpParenthesizedExpressions:()=>Rv,walkUpParenthesizedTypes:()=>JN,walkUpParenthesizedTypesAndGetParentAndChild:()=>Afe,whitespaceOrMapCommentRegExp:()=>_F,writeCommentRange:()=>cC,writeFile:()=>fk,writeFileEnsuringDirectories:()=>xq,zipToModeAwareCache:()=>hX,zipWith:()=>ui});var _Le=C({"src/typescript/_namespaces/ts.ts"(){Oa(),ZF(),$r(),GU()}}),NQe=B({"src/typescript/typescript.ts"(e,t){_Le(),_Le(),typeof console<"u"&&(D.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=fLe}});return NQe()})();typeof rM<"u"&&rM.exports&&(rM.exports=V0);var P8e=V0.createClassifier,dce=V0.createLanguageService,M8e=V0.displayPartsToString,F8e=V0.EndOfLineState,B8e=V0.flattenDiagnosticMessageText,G8e=V0.IndentStyle,EA=V0.ScriptKind,U8e=V0.ScriptTarget,V8e=V0.TokenClass,fce=V0,ya={};ya["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" /> `,ya["lib.decorators.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /** * The decorator context types provided to class element decorators. */ type ClassMemberDecoratorContext = | ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassFieldDecoratorContext | ClassAccessorDecoratorContext ; /** * The decorator context types provided to any decorator. */ type DecoratorContext = | ClassDecoratorContext | ClassMemberDecoratorContext ; /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. */ interface ClassDecoratorContext< Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, > { /** The kind of element that was decorated. */ readonly kind: "class"; /** The name of the decorated class. */ readonly name: string | undefined; /** * Adds a callback to be invoked after the class definition has been finalized. * * @example * \`\`\`ts * function customElement(name: string): ClassDecoratorFunction { * return (target, context) => { * context.addInitializer(function () { * customElements.define(name, this); * }); * } * } * * @customElement("my-element") * class MyElement {} * \`\`\` */ addInitializer(initializer: (this: Class) => void): void; } /** * Context provided to a class method decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class method. */ interface ClassMethodDecoratorContext< This = unknown, Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, > { /** The kind of class element that was decorated. */ readonly kind: "method"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the current value of the method from the provided object. * * @example * let fn = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). * * @example * \`\`\`ts * const bound: ClassMethodDecoratorFunction = (value, context) { * if (context.private) throw new TypeError("Not supported on private methods."); * context.addInitializer(function () { * this[context.name] = this[context.name].bind(this); * }); * } * * class C { * message = "Hello"; * * @bound * m() { * console.log(this.message); * } * } * \`\`\` */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class getter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The property type of the decorated class getter. */ interface ClassGetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "getter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class setter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class setter. */ interface ClassSetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "setter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Context provided to a class \`accessor\` field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of decorated class field. */ interface ClassAccessorDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "accessor"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } /** * Describes the target provided to class \`accessor\` field decorators. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorTarget<This, Value> { /** * Invokes the getter that was defined prior to decorator application. * * @example * let value = target.get.call(instance); */ get(this: This): Value; /** * Invokes the setter that was defined prior to decorator application. * * @example * target.set.call(instance, value); */ set(this: This, value: Value): void; } /** * Describes the allowed return value from a class \`accessor\` field decorator. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorResult<This, Value> { /** * An optional replacement getter function. If not provided, the existing getter function is used instead. */ get?(this: This): Value; /** * An optional replacement setter function. If not provided, the existing setter function is used instead. */ set?(this: This, value: Value): void; /** * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. * @param value The incoming initializer value. * @returns The replacement initializer value. */ init?(this: This, value: Value): Value; } /** * Context provided to a class field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class field. */ interface ClassFieldDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "field"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the value of the field on the provided object. */ get(object: This): Value; /** * Sets the value of the field on the provided object. */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; } `,ya["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; `,ya["lib.dom.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; minDecibels?: number; smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { animationName?: string; elapsedTime?: number; pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { currentTime?: CSSNumberish | null; timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { flatten?: boolean; } interface AudioBufferOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface AudioBufferSourceOptions { buffer?: AudioBuffer | null; detune?: number; loop?: boolean; loopEnd?: number; loopStart?: number; playbackRate?: number; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record<string, number>; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSStyleSheetInit { baseURL?: string; disabled?: boolean; media?: MediaList | string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; colorSpace?: PredefinedColorSpace; desynchronized?: boolean; willReadFrequently?: boolean; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface ClipboardEventInit extends EventInit { clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: CSSNumberish; currentIteration?: number | null; endTime?: CSSNumberish; localTime?: CSSNumberish | null; progress?: number | null; startTime?: CSSNumberish; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { offset?: number; } interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; } interface ConstrainDOMStringParameters { exact?: string | string[]; ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { exact?: number; ideal?: number; } interface ConstrainULongRange extends ULongRange { exact?: number; ideal?: number; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CredentialCreationOptions { publicKey?: PublicKeyCredentialCreationOptions; signal?: AbortSignal; } interface CredentialPropertiesOutput { rk?: boolean; } interface CredentialRequestOptions { mediation?: CredentialMediationRequirement; publicKey?: PublicKeyCredentialRequestOptions; signal?: AbortSignal; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit<T = any> extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { originTime?: DOMHighResTimeStamp; } interface DoubleRange { max?: number; min?: number; } interface DragEventInit extends MouseEventInit { dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { attack?: number; knee?: number; ratio?: number; release?: number; threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface EffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { is?: string; } interface ElementDefinitionOptions { extends?: string; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventModifierInit extends UIEventInit { altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; modifierAltGraph?: boolean; modifierCapsLock?: boolean; modifierFn?: boolean; modifierFnLock?: boolean; modifierHyper?: boolean; modifierNumLock?: boolean; modifierScrollLock?: boolean; modifierSuper?: boolean; modifierSymbol?: boolean; modifierSymbolLock?: boolean; shiftKey?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemFlags { create?: boolean; exclusive?: boolean; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusOptions { preventScroll?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; variant?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { formData: FormData; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { feedback: number[]; feedforward: number[]; } interface IdleRequestOptions { timeout?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: DOMHighResTimeStamp; } interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface KeyboardEventInit extends EventModifierInit { /** @deprecated */ charCode?: number; code?: string; isComposing?: boolean; key?: string; /** @deprecated */ keyCode?: number; location?: number; repeat?: boolean; } interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; } interface KeyframeEffectOptions extends EffectTiming { composite?: CompositeOperation; iterationComposite?: IterationCompositeOperation; pseudoElement?: string | null; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { data?: Uint8Array; } interface MIDIOptions { software?: boolean; sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: string; } interface MediaImage { sizes?: string; src: string; type?: string; } interface MediaKeyMessageEventInit extends EventInit { message: ArrayBuffer; messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { audioCapabilities?: MediaKeySystemMediaCapability[]; distinctiveIdentifier?: MediaKeysRequirement; initDataTypes?: string[]; label?: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { contentType?: string; encryptionScheme?: string | null; robustness?: string; } interface MediaMetadataInit { album?: string; artist?: string; artwork?: MediaImage[]; title?: string; } interface MediaPositionState { duration?: number; playbackRate?: number; position?: number; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaRecorderOptions { audioBitsPerSecond?: number; bitsPerSecond?: number; mimeType?: string; videoBitsPerSecond?: number; } interface MediaSessionActionDetails { action: MediaSessionAction; fastSeek?: boolean; seekOffset?: number; seekTime?: number; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; preferCurrentTab?: boolean; video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; noiseSuppression?: boolean[]; sampleRate?: ULongRange; sampleSize?: ULongRange; width?: ULongRange; } interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; echoCancellation?: ConstrainBoolean; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; height?: ConstrainULong; noiseSuppression?: ConstrainBoolean; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; noiseSuppression?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit<T = any> extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationAction { action: string; icon?: string; title: string; } interface NotificationOptions { actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; image?: string; lang?: string; renotify?: boolean; requireInteraction?: boolean; silent?: boolean; tag?: string; timestamp?: EpochTimeStamp; vibrate?: VibratePattern; } interface OfflineAudioCompletionEventInit extends EventInit { renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface OptionalEffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { coneInnerAngle?: number; coneOuterAngle?: number; coneOuterGain?: number; distanceModel?: DistanceModelType; maxDistance?: number; orientationX?: number; orientationY?: number; orientationZ?: number; panningModel?: PanningModelType; positionX?: number; positionY?: number; positionZ?: number; refDistance?: number; rolloffFactor?: number; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { paymentMethodErrors?: any; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentValidationErrors { error?: string; paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PeriodicWaveConstraints { disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { imag?: number[] | Float32Array; real?: number[] | Float32Array; } interface PermissionDescriptor { name: PermissionName; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; pressure?: number; tangentialPressure?: number; tiltX?: number; tiltY?: number; twist?: number; width?: number; } interface PopStateEventInit extends EventInit { state?: any; } interface PositionOptions { enableHighAccuracy?: boolean; maximumAge?: number; timeout?: number; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise<any>; reason?: any; } interface PropertyIndexedKeyframes { composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; easing?: string | string[]; offset?: number | (number | null)[]; [property: string]: string | string[] | number | null | (number | null)[] | undefined; } interface PublicKeyCredentialCreationOptions { attestation?: AttestationConveyancePreference; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: BufferSource; excludeCredentials?: PublicKeyCredentialDescriptor[]; extensions?: AuthenticationExtensionsClientInputs; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialEntity { name: string; } interface PublicKeyCredentialParameters { alg: COSEAlgorithmIdentifier; type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: BufferSource; extensions?: AuthenticationExtensionsClientInputs; rpId?: string; timeout?: number; userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record<string, string>; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy<T = any> { highWaterMark?: number; size?: QueuingStrategySize<T>; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; width?: number; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; httpRequestStatusCode?: number; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesReceived?: number; bytesSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; state: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; transportId: string; } interface RTCIceServer { credential?: string; urls: string | string[]; username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { audioLevel?: number; bytesReceived?: number; concealedSamples?: number; concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; fecPacketsDiscarded?: number; fecPacketsReceived?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; kind: string; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; nackCount?: number; packetsDiscarded?: number; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; silentConcealedSamples?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalInterFrameDelay?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; errorText?: string; port?: number | null; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodecCapability { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecParameters { channels?: number; clockRate: number; mimeType: string; payloadType: number; sdpFmtpLine?: string; } interface RTCRtpCodingParameters { rid?: string; } interface RTCRtpContributingSource { audioLevel?: number; rtpTimestamp: number; source: number; timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; maxFramerate?: number; networkPriority?: RTCPriorityType; priority?: RTCPriorityType; scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { uri?: string; } interface RTCRtpHeaderExtensionParameters { encrypted?: boolean; id: number; uri: string; } interface RTCRtpParameters { codecs: RTCRtpCodecParameters[]; headerExtensions: RTCRtpHeaderExtensionParameters[]; rtcp: RTCRtcpParameters; } interface RTCRtpReceiveParameters extends RTCRtpParameters { } interface RTCRtpSendParameters extends RTCRtpParameters { degradationPreference?: RTCDegradationPreference; encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpStreamStats extends RTCStats { codecId?: string; kind: string; ssrc: number; transportId?: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { bytesSent?: number; packetsSent?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState: RTCDtlsTransportState; localCertificateId?: string; remoteCertificateId?: string; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult<T> { done: true; value?: T; } interface ReadableStreamReadValueResult<T> { done: false; value: T; } interface ReadableWritablePair<R = any, W = any> { readable: ReadableStream<R>; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream<W>; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResizeObserverOptions { box?: ResizeObserverBoxOptions; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SVGBoundingBoxOptions { clipped?: boolean; fill?: boolean; markers?: boolean; stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; slotAssignment?: SlotAssignmentMode; } interface ShareData { files?: File[]; text?: string; title?: string; url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { charIndex?: number; charLength?: number; elapsedTime?: number; name?: string; utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { pan?: number; } interface StorageEstimate { quota?: number; usage?: number; } interface StorageEventInit extends EventInit { key?: string | null; newValue?: string | null; oldValue?: string | null; storageArea?: Storage | null; url?: string; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read?: number; written?: number; } interface TouchEventInit extends EventModifierInit { changedTouches?: Touch[]; targetTouches?: Touch[]; touches?: Touch[]; } interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } interface TrackEventInit extends EventInit { track?: TextTrack | null; } interface Transformer<I = any, O = any> { flush?: TransformerFlushCallback<O>; readableType?: undefined; start?: TransformerStartCallback<O>; transform?: TransformerTransformCallback<I, O>; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; /** @deprecated */ which?: number; } interface ULongRange { max?: number; min?: number; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource<R = any> { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>; start?: (controller: ReadableStreamDefaultController<R>) => any; type?: undefined; } interface UnderlyingSink<W = any> { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback<W>; } interface UnderlyingSource<R = any> { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback<R>; start?: UnderlyingSourceStartCallback<R>; type?: ReadableStreamType; } interface ValidityStateFlags { badInput?: boolean; customError?: boolean; patternMismatch?: boolean; rangeOverflow?: boolean; rangeUnderflow?: boolean; stepMismatch?: boolean; tooLong?: boolean; tooShort?: boolean; typeMismatch?: boolean; valueMissing?: boolean; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; deltaY?: number; deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; declare var NodeFilter: { readonly FILTER_ACCEPT: 1; readonly FILTER_REJECT: 2; readonly FILTER_SKIP: 3; readonly SHOW_ALL: 0xFFFFFFFF; readonly SHOW_ELEMENT: 0x1; readonly SHOW_ATTRIBUTE: 0x2; readonly SHOW_TEXT: 0x4; readonly SHOW_CDATA_SECTION: 0x8; readonly SHOW_ENTITY_REFERENCE: 0x10; readonly SHOW_ENTITY: 0x20; readonly SHOW_PROCESSING_INSTRUCTION: 0x40; readonly SHOW_COMMENT: 0x80; readonly SHOW_DOCUMENT: 0x100; readonly SHOW_DOCUMENT_TYPE: 0x200; readonly SHOW_DOCUMENT_FRAGMENT: 0x400; readonly SHOW_NOTATION: 0x800; }; type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */ interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { ariaAtomic: string | null; ariaAutoComplete: string | null; ariaBusy: string | null; ariaChecked: string | null; ariaColCount: string | null; ariaColIndex: string | null; ariaColSpan: string | null; ariaCurrent: string | null; ariaDisabled: string | null; ariaExpanded: string | null; ariaHasPopup: string | null; ariaHidden: string | null; ariaInvalid: string | null; ariaKeyShortcuts: string | null; ariaLabel: string | null; ariaLevel: string | null; ariaLive: string | null; ariaModal: string | null; ariaMultiLine: string | null; ariaMultiSelectable: string | null; ariaOrientation: string | null; ariaPlaceholder: string | null; ariaPosInSet: string | null; ariaPressed: string | null; ariaReadOnly: string | null; ariaRequired: string | null; ariaRoleDescription: string | null; ariaRowCount: string | null; ariaRowIndex: string | null; ariaRowSpan: string | null; ariaSelected: string | null; ariaSetSize: string | null; ariaSort: string | null; ariaValueMax: string | null; ariaValueMin: string | null; ariaValueNow: string | null; ariaValueText: string | null; role: string | null; } /** A controller object that allows you to abort one or more DOM requests as and when desired. */ interface AbortController { /** Returns the AbortSignal object associated with this object. */ readonly signal: AbortSignal; /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ interface AbortSignal extends EventTarget { /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */ readonly aborted: boolean; onabort: ((this: AbortSignal, ev: Event) => any) | null; readonly reason: any; throwIfAborted(): void; addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }; interface AbstractRange { /** Returns true if range is collapsed, and false otherwise. */ readonly collapsed: boolean; /** Returns range's end node. */ readonly endContainer: Node; /** Returns range's end offset. */ readonly endOffset: number; /** Returns range's start node. */ readonly startContainer: Node; /** Returns range's start offset. */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */ interface AnalyserNode extends AudioNode { fftSize: number; readonly frequencyBinCount: number; maxDecibels: number; minDecibels: number; smoothingTimeConstant: number; getByteFrequencyData(array: Uint8Array): void; getByteTimeDomainData(array: Uint8Array): void; getFloatFrequencyData(array: Float32Array): void; getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": Event; } interface Animation extends EventTarget { currentTime: CSSNumberish | null; effect: AnimationEffect | null; readonly finished: Promise<Animation>; id: string; oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; onremove: ((this: Animation, ev: Event) => any) | null; readonly pending: boolean; readonly playState: AnimationPlayState; playbackRate: number; readonly ready: Promise<Animation>; readonly replaceState: AnimationReplaceState; startTime: CSSNumberish | null; timeline: AnimationTimeline | null; cancel(): void; commitStyles(): void; finish(): void; pause(): void; persist(): void; play(): void; reverse(): void; updatePlaybackRate(playbackRate: number): void; addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; interface AnimationEffect { getComputedTiming(): ComputedEffectTiming; getTiming(): EffectTiming; updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** Events providing information related to animations. */ interface AnimationEvent extends Event { readonly animationName: string; readonly elapsedTime: number; readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { cancelAnimationFrame(handle: number): void; requestAnimationFrame(callback: FrameRequestCallback): number; } interface AnimationPlaybackEvent extends Event { readonly currentTime: CSSNumberish | null; readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; interface AnimationTimeline { readonly currentTime: number | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */ interface Attr extends Node { readonly localName: string; readonly name: string; readonly namespaceURI: string | null; readonly ownerDocument: Document; readonly ownerElement: Element | null; readonly prefix: string | null; /** @deprecated */ readonly specified: boolean; value: string; } declare var Attr: { prototype: Attr; new(): Attr; }; /** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */ interface AudioBuffer { readonly duration: number; readonly length: number; readonly numberOfChannels: number; readonly sampleRate: number; copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { buffer: AudioBuffer | null; readonly detune: AudioParam; loop: boolean; loopEnd: number; loopStart: number; readonly playbackRate: AudioParam; start(when?: number, offset?: number, duration?: number): void; addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */ interface AudioContext extends BaseAudioContext { readonly baseLatency: number; readonly outputLatency: number; close(): Promise<void>; createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; createMediaStreamDestination(): MediaStreamAudioDestinationNode; createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; getOutputTimestamp(): AudioTimestamp; resume(): Promise<void>; suspend(): Promise<void>; addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */ interface AudioDestinationNode extends AudioNode { readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; /** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */ interface AudioListener { readonly forwardX: AudioParam; readonly forwardY: AudioParam; readonly forwardZ: AudioParam; readonly positionX: AudioParam; readonly positionY: AudioParam; readonly positionZ: AudioParam; readonly upX: AudioParam; readonly upY: AudioParam; readonly upZ: AudioParam; /** @deprecated */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** @deprecated */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** A generic interface for representing an audio processing module. Examples include: */ interface AudioNode extends EventTarget { channelCount: number; channelCountMode: ChannelCountMode; channelInterpretation: ChannelInterpretation; readonly context: BaseAudioContext; readonly numberOfInputs: number; readonly numberOfOutputs: number; connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; disconnect(): void; disconnect(output: number): void; disconnect(destinationNode: AudioNode): void; disconnect(destinationNode: AudioNode, output: number): void; disconnect(destinationNode: AudioNode, output: number, input: number): void; disconnect(destinationParam: AudioParam): void; disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; }; /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */ interface AudioParam { automationRate: AutomationRate; readonly defaultValue: number; readonly maxValue: number; readonly minValue: number; value: number; cancelAndHoldAtTime(cancelTime: number): AudioParam; cancelScheduledValues(cancelTime: number): AudioParam; exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; linearRampToValueAtTime(value: number, endTime: number): AudioParam; setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; setValueAtTime(value: number, startTime: number): AudioParam; setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. */ interface AudioProcessingEvent extends Event { /** @deprecated */ readonly inputBuffer: AudioBuffer; /** @deprecated */ readonly outputBuffer: AudioBuffer; /** @deprecated */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } interface AudioScheduledSourceNode extends AudioNode { onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; start(when?: number): void; stop(when?: number): void; addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; /** Available only in secure contexts. */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } /** Available only in secure contexts. */ interface AudioWorkletNode extends AudioNode { onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; readonly parameters: AudioParamMap; readonly port: MessagePort; addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; /** Available only in secure contexts. */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { readonly authenticatorData: ArrayBuffer; readonly signature: ArrayBuffer; readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** Available only in secure contexts. */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { readonly attestationObject: ArrayBuffer; getAuthenticatorData(): ArrayBuffer; getPublicKey(): ArrayBuffer | null; getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** Available only in secure contexts. */ interface AuthenticatorResponse { readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; interface BarProp { readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } interface BaseAudioContext extends EventTarget { /** Available only in secure contexts. */ readonly audioWorklet: AudioWorklet; readonly currentTime: number; readonly destination: AudioDestinationNode; readonly listener: AudioListener; onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; readonly sampleRate: number; readonly state: AudioContextState; createAnalyser(): AnalyserNode; createBiquadFilter(): BiquadFilterNode; createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; createBufferSource(): AudioBufferSourceNode; createChannelMerger(numberOfInputs?: number): ChannelMergerNode; createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; createConstantSource(): ConstantSourceNode; createConvolver(): ConvolverNode; createDelay(maxDelayTime?: number): DelayNode; createDynamicsCompressor(): DynamicsCompressorNode; createGain(): GainNode; createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; createOscillator(): OscillatorNode; createPanner(): PannerNode; createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** @deprecated */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; createStereoPanner(): StereoPannerNode; createWaveShaper(): WaveShaperNode; decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>; addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */ interface BeforeUnloadEvent extends Event { returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */ interface BiquadFilterNode extends AudioNode { readonly Q: AudioParam; readonly detune: AudioParam; readonly frequency: AudioParam; readonly gain: AudioParam; type: BiquadFilterType; getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */ interface Blob { readonly size: number; readonly type: string; arrayBuffer(): Promise<ArrayBuffer>; slice(start?: number, end?: number, contentType?: string): Blob; stream(): ReadableStream<Uint8Array>; text(): Promise<string>; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; interface BlobEvent extends Event { readonly data: Blob; readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { readonly body: ReadableStream<Uint8Array> | null; readonly bodyUsed: boolean; arrayBuffer(): Promise<ArrayBuffer>; blob(): Promise<Blob>; formData(): Promise<FormData>; json(): Promise<any>; text(): Promise<string>; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } interface BroadcastChannel extends EventTarget { /** Returns the channel name (as passed to the constructor). */ readonly name: string; onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** Closes the BroadcastChannel object, opening it up to garbage collection. */ close(): void; /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */ postMessage(message: any): void; addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> { readonly highWaterMark: number; readonly size: QueuingStrategySize<ArrayBufferView>; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; interface CSSAnimation extends Animation { readonly animationName: string; addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSAnimation: { prototype: CSSAnimation; new(): CSSAnimation; }; /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */ interface CSSConditionRule extends CSSGroupingRule { readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; interface CSSContainerRule extends CSSConditionRule { } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; interface CSSCounterStyleRule extends CSSRule { additiveSymbols: string; fallback: string; name: string; negative: string; pad: string; prefix: string; range: string; speakAs: string; suffix: string; symbols: string; system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; interface CSSFontFaceRule extends CSSRule { readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; interface CSSFontFeatureValuesRule extends CSSRule { fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; interface CSSFontPaletteValuesRule extends CSSRule { readonly basePalette: string; readonly fontFamily: string; readonly name: string; readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** Any CSS at-rule that contains other rules nested within it. */ interface CSSGroupingRule extends CSSRule { readonly cssRules: CSSRuleList; deleteRule(index: number): void; insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; interface CSSImportRule extends CSSRule { readonly href: string; readonly layerName: string | null; readonly media: MediaList; readonly styleSheet: CSSStyleSheet; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */ interface CSSKeyframeRule extends CSSRule { keyText: string; readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */ interface CSSKeyframesRule extends CSSRule { readonly cssRules: CSSRuleList; name: string; appendRule(rule: string): void; deleteRule(select: string): void; findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; interface CSSLayerBlockRule extends CSSGroupingRule { readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; interface CSSLayerStatementRule extends CSSRule { readonly nameList: ReadonlyArray<string>; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */ interface CSSMediaRule extends CSSConditionRule { readonly media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */ interface CSSNamespaceRule extends CSSRule { readonly namespaceURI: string; readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */ interface CSSPageRule extends CSSGroupingRule { selectorText: string; readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */ interface CSSRule { cssText: string; readonly parentRule: CSSRule | null; readonly parentStyleSheet: CSSStyleSheet | null; /** @deprecated */ readonly type: number; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; }; /** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */ interface CSSRuleList { readonly length: number; item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */ interface CSSStyleDeclaration { accentColor: string; alignContent: string; alignItems: string; alignSelf: string; alignmentBaseline: string; all: string; animation: string; animationDelay: string; animationDirection: string; animationDuration: string; animationFillMode: string; animationIterationCount: string; animationName: string; animationPlayState: string; animationTimingFunction: string; appearance: string; aspectRatio: string; backdropFilter: string; backfaceVisibility: string; background: string; backgroundAttachment: string; backgroundBlendMode: string; backgroundClip: string; backgroundColor: string; backgroundImage: string; backgroundOrigin: string; backgroundPosition: string; backgroundPositionX: string; backgroundPositionY: string; backgroundRepeat: string; backgroundSize: string; baselineShift: string; blockSize: string; border: string; borderBlock: string; borderBlockColor: string; borderBlockEnd: string; borderBlockEndColor: string; borderBlockEndStyle: string; borderBlockEndWidth: string; borderBlockStart: string; borderBlockStartColor: string; borderBlockStartStyle: string; borderBlockStartWidth: string; borderBlockStyle: string; borderBlockWidth: string; borderBottom: string; borderBottomColor: string; borderBottomLeftRadius: string; borderBottomRightRadius: string; borderBottomStyle: string; borderBottomWidth: string; borderCollapse: string; borderColor: string; borderEndEndRadius: string; borderEndStartRadius: string; borderImage: string; borderImageOutset: string; borderImageRepeat: string; borderImageSlice: string; borderImageSource: string; borderImageWidth: string; borderInline: string; borderInlineColor: string; borderInlineEnd: string; borderInlineEndColor: string; borderInlineEndStyle: string; borderInlineEndWidth: string; borderInlineStart: string; borderInlineStartColor: string; borderInlineStartStyle: string; borderInlineStartWidth: string; borderInlineStyle: string; borderInlineWidth: string; borderLeft: string; borderLeftColor: string; borderLeftStyle: string; borderLeftWidth: string; borderRadius: string; borderRight: string; borderRightColor: string; borderRightStyle: string; borderRightWidth: string; borderSpacing: string; borderStartEndRadius: string; borderStartStartRadius: string; borderStyle: string; borderTop: string; borderTopColor: string; borderTopLeftRadius: string; borderTopRightRadius: string; borderTopStyle: string; borderTopWidth: string; borderWidth: string; bottom: string; boxShadow: string; boxSizing: string; breakAfter: string; breakBefore: string; breakInside: string; captionSide: string; caretColor: string; clear: string; /** @deprecated */ clip: string; clipPath: string; clipRule: string; color: string; colorInterpolation: string; colorInterpolationFilters: string; colorScheme: string; columnCount: string; columnFill: string; columnGap: string; columnRule: string; columnRuleColor: string; columnRuleStyle: string; columnRuleWidth: string; columnSpan: string; columnWidth: string; columns: string; contain: string; containIntrinsicBlockSize: string; containIntrinsicHeight: string; containIntrinsicInlineSize: string; containIntrinsicSize: string; containIntrinsicWidth: string; container: string; containerName: string; containerType: string; content: string; contentVisibility: string; counterIncrement: string; counterReset: string; counterSet: string; cssFloat: string; cssText: string; cursor: string; direction: string; display: string; dominantBaseline: string; emptyCells: string; fill: string; fillOpacity: string; fillRule: string; filter: string; flex: string; flexBasis: string; flexDirection: string; flexFlow: string; flexGrow: string; flexShrink: string; flexWrap: string; float: string; floodColor: string; floodOpacity: string; font: string; fontFamily: string; fontFeatureSettings: string; fontKerning: string; fontOpticalSizing: string; fontPalette: string; fontSize: string; fontSizeAdjust: string; fontStretch: string; fontStyle: string; fontSynthesis: string; fontVariant: string; fontVariantAlternates: string; fontVariantCaps: string; fontVariantEastAsian: string; fontVariantLigatures: string; fontVariantNumeric: string; fontVariantPosition: string; fontVariationSettings: string; fontWeight: string; gap: string; grid: string; gridArea: string; gridAutoColumns: string; gridAutoFlow: string; gridAutoRows: string; gridColumn: string; gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; gridRow: string; gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; gridRowStart: string; gridTemplate: string; gridTemplateAreas: string; gridTemplateColumns: string; gridTemplateRows: string; height: string; hyphenateCharacter: string; hyphens: string; /** @deprecated */ imageOrientation: string; imageRendering: string; inlineSize: string; inset: string; insetBlock: string; insetBlockEnd: string; insetBlockStart: string; insetInline: string; insetInlineEnd: string; insetInlineStart: string; isolation: string; justifyContent: string; justifyItems: string; justifySelf: string; left: string; readonly length: number; letterSpacing: string; lightingColor: string; lineBreak: string; lineHeight: string; listStyle: string; listStyleImage: string; listStylePosition: string; listStyleType: string; margin: string; marginBlock: string; marginBlockEnd: string; marginBlockStart: string; marginBottom: string; marginInline: string; marginInlineEnd: string; marginInlineStart: string; marginLeft: string; marginRight: string; marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; mask: string; maskClip: string; maskComposite: string; maskImage: string; maskMode: string; maskOrigin: string; maskPosition: string; maskRepeat: string; maskSize: string; maskType: string; mathStyle: string; maxBlockSize: string; maxHeight: string; maxInlineSize: string; maxWidth: string; minBlockSize: string; minHeight: string; minInlineSize: string; minWidth: string; mixBlendMode: string; objectFit: string; objectPosition: string; offset: string; offsetDistance: string; offsetPath: string; offsetRotate: string; opacity: string; order: string; orphans: string; outline: string; outlineColor: string; outlineOffset: string; outlineStyle: string; outlineWidth: string; overflow: string; overflowAnchor: string; overflowClipMargin: string; overflowWrap: string; overflowX: string; overflowY: string; overscrollBehavior: string; overscrollBehaviorBlock: string; overscrollBehaviorInline: string; overscrollBehaviorX: string; overscrollBehaviorY: string; padding: string; paddingBlock: string; paddingBlockEnd: string; paddingBlockStart: string; paddingBottom: string; paddingInline: string; paddingInlineEnd: string; paddingInlineStart: string; paddingLeft: string; paddingRight: string; paddingTop: string; pageBreakAfter: string; pageBreakBefore: string; pageBreakInside: string; paintOrder: string; readonly parentRule: CSSRule | null; perspective: string; perspectiveOrigin: string; placeContent: string; placeItems: string; placeSelf: string; pointerEvents: string; position: string; printColorAdjust: string; quotes: string; resize: string; right: string; rotate: string; rowGap: string; rubyPosition: string; scale: string; scrollBehavior: string; scrollMargin: string; scrollMarginBlock: string; scrollMarginBlockEnd: string; scrollMarginBlockStart: string; scrollMarginBottom: string; scrollMarginInline: string; scrollMarginInlineEnd: string; scrollMarginInlineStart: string; scrollMarginLeft: string; scrollMarginRight: string; scrollMarginTop: string; scrollPadding: string; scrollPaddingBlock: string; scrollPaddingBlockEnd: string; scrollPaddingBlockStart: string; scrollPaddingBottom: string; scrollPaddingInline: string; scrollPaddingInlineEnd: string; scrollPaddingInlineStart: string; scrollPaddingLeft: string; scrollPaddingRight: string; scrollPaddingTop: string; scrollSnapAlign: string; scrollSnapStop: string; scrollSnapType: string; scrollbarGutter: string; shapeImageThreshold: string; shapeMargin: string; shapeOutside: string; shapeRendering: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; tabSize: string; tableLayout: string; textAlign: string; textAlignLast: string; textAnchor: string; textCombineUpright: string; textDecoration: string; textDecorationColor: string; textDecorationLine: string; textDecorationSkipInk: string; textDecorationStyle: string; textDecorationThickness: string; textEmphasis: string; textEmphasisColor: string; textEmphasisPosition: string; textEmphasisStyle: string; textIndent: string; textOrientation: string; textOverflow: string; textRendering: string; textShadow: string; textTransform: string; textUnderlineOffset: string; textUnderlinePosition: string; top: string; touchAction: string; transform: string; transformBox: string; transformOrigin: string; transformStyle: string; transition: string; transitionDelay: string; transitionDuration: string; transitionProperty: string; transitionTimingFunction: string; translate: string; unicodeBidi: string; userSelect: string; verticalAlign: string; visibility: string; /** @deprecated This is a legacy alias of \`alignContent\`. */ webkitAlignContent: string; /** @deprecated This is a legacy alias of \`alignItems\`. */ webkitAlignItems: string; /** @deprecated This is a legacy alias of \`alignSelf\`. */ webkitAlignSelf: string; /** @deprecated This is a legacy alias of \`animation\`. */ webkitAnimation: string; /** @deprecated This is a legacy alias of \`animationDelay\`. */ webkitAnimationDelay: string; /** @deprecated This is a legacy alias of \`animationDirection\`. */ webkitAnimationDirection: string; /** @deprecated This is a legacy alias of \`animationDuration\`. */ webkitAnimationDuration: string; /** @deprecated This is a legacy alias of \`animationFillMode\`. */ webkitAnimationFillMode: string; /** @deprecated This is a legacy alias of \`animationIterationCount\`. */ webkitAnimationIterationCount: string; /** @deprecated This is a legacy alias of \`animationName\`. */ webkitAnimationName: string; /** @deprecated This is a legacy alias of \`animationPlayState\`. */ webkitAnimationPlayState: string; /** @deprecated This is a legacy alias of \`animationTimingFunction\`. */ webkitAnimationTimingFunction: string; /** @deprecated This is a legacy alias of \`appearance\`. */ webkitAppearance: string; /** @deprecated This is a legacy alias of \`backfaceVisibility\`. */ webkitBackfaceVisibility: string; /** @deprecated This is a legacy alias of \`backgroundClip\`. */ webkitBackgroundClip: string; /** @deprecated This is a legacy alias of \`backgroundOrigin\`. */ webkitBackgroundOrigin: string; /** @deprecated This is a legacy alias of \`backgroundSize\`. */ webkitBackgroundSize: string; /** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */ webkitBorderBottomLeftRadius: string; /** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */ webkitBorderBottomRightRadius: string; /** @deprecated This is a legacy alias of \`borderRadius\`. */ webkitBorderRadius: string; /** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */ webkitBorderTopLeftRadius: string; /** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */ webkitBorderTopRightRadius: string; /** @deprecated This is a legacy alias of \`boxAlign\`. */ webkitBoxAlign: string; /** @deprecated This is a legacy alias of \`boxFlex\`. */ webkitBoxFlex: string; /** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */ webkitBoxOrdinalGroup: string; /** @deprecated This is a legacy alias of \`boxOrient\`. */ webkitBoxOrient: string; /** @deprecated This is a legacy alias of \`boxPack\`. */ webkitBoxPack: string; /** @deprecated This is a legacy alias of \`boxShadow\`. */ webkitBoxShadow: string; /** @deprecated This is a legacy alias of \`boxSizing\`. */ webkitBoxSizing: string; /** @deprecated This is a legacy alias of \`filter\`. */ webkitFilter: string; /** @deprecated This is a legacy alias of \`flex\`. */ webkitFlex: string; /** @deprecated This is a legacy alias of \`flexBasis\`. */ webkitFlexBasis: string; /** @deprecated This is a legacy alias of \`flexDirection\`. */ webkitFlexDirection: string; /** @deprecated This is a legacy alias of \`flexFlow\`. */ webkitFlexFlow: string; /** @deprecated This is a legacy alias of \`flexGrow\`. */ webkitFlexGrow: string; /** @deprecated This is a legacy alias of \`flexShrink\`. */ webkitFlexShrink: string; /** @deprecated This is a legacy alias of \`flexWrap\`. */ webkitFlexWrap: string; /** @deprecated This is a legacy alias of \`justifyContent\`. */ webkitJustifyContent: string; webkitLineClamp: string; /** @deprecated This is a legacy alias of \`mask\`. */ webkitMask: string; /** @deprecated This is a legacy alias of \`maskBorder\`. */ webkitMaskBoxImage: string; /** @deprecated This is a legacy alias of \`maskBorderOutset\`. */ webkitMaskBoxImageOutset: string; /** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */ webkitMaskBoxImageRepeat: string; /** @deprecated This is a legacy alias of \`maskBorderSlice\`. */ webkitMaskBoxImageSlice: string; /** @deprecated This is a legacy alias of \`maskBorderSource\`. */ webkitMaskBoxImageSource: string; /** @deprecated This is a legacy alias of \`maskBorderWidth\`. */ webkitMaskBoxImageWidth: string; /** @deprecated This is a legacy alias of \`maskClip\`. */ webkitMaskClip: string; webkitMaskComposite: string; /** @deprecated This is a legacy alias of \`maskImage\`. */ webkitMaskImage: string; /** @deprecated This is a legacy alias of \`maskOrigin\`. */ webkitMaskOrigin: string; /** @deprecated This is a legacy alias of \`maskPosition\`. */ webkitMaskPosition: string; /** @deprecated This is a legacy alias of \`maskRepeat\`. */ webkitMaskRepeat: string; /** @deprecated This is a legacy alias of \`maskSize\`. */ webkitMaskSize: string; /** @deprecated This is a legacy alias of \`order\`. */ webkitOrder: string; /** @deprecated This is a legacy alias of \`perspective\`. */ webkitPerspective: string; /** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */ webkitPerspectiveOrigin: string; webkitTextFillColor: string; /** @deprecated This is a legacy alias of \`textSizeAdjust\`. */ webkitTextSizeAdjust: string; webkitTextStroke: string; webkitTextStrokeColor: string; webkitTextStrokeWidth: string; /** @deprecated This is a legacy alias of \`transform\`. */ webkitTransform: string; /** @deprecated This is a legacy alias of \`transformOrigin\`. */ webkitTransformOrigin: string; /** @deprecated This is a legacy alias of \`transformStyle\`. */ webkitTransformStyle: string; /** @deprecated This is a legacy alias of \`transition\`. */ webkitTransition: string; /** @deprecated This is a legacy alias of \`transitionDelay\`. */ webkitTransitionDelay: string; /** @deprecated This is a legacy alias of \`transitionDuration\`. */ webkitTransitionDuration: string; /** @deprecated This is a legacy alias of \`transitionProperty\`. */ webkitTransitionProperty: string; /** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */ webkitTransitionTimingFunction: string; /** @deprecated This is a legacy alias of \`userSelect\`. */ webkitUserSelect: string; whiteSpace: string; widows: string; width: string; willChange: string; wordBreak: string; wordSpacing: string; /** @deprecated */ wordWrap: string; writingMode: string; zIndex: string; getPropertyPriority(property: string): string; getPropertyValue(property: string): string; item(index: number): string; removeProperty(property: string): string; setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */ interface CSSStyleRule extends CSSRule { selectorText: string; readonly style: CSSStyleDeclaration; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */ interface CSSStyleSheet extends StyleSheet { readonly cssRules: CSSRuleList; readonly ownerRule: CSSRule | null; /** @deprecated */ readonly rules: CSSRuleList; /** @deprecated */ addRule(selector?: string, style?: string, index?: number): number; deleteRule(index: number): void; insertRule(rule: string, index?: number): number; /** @deprecated */ removeRule(index?: number): void; replace(text: string): Promise<CSSStyleSheet>; replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; interface CSSTransition extends Animation { readonly transitionProperty: string; addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSTransition: { prototype: CSSTransition; new(): CSSTransition; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. */ interface Cache { add(request: RequestInfo | URL): Promise<void>; addAll(requests: RequestInfo[]): Promise<void>; delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>; keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>; matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; put(request: RequestInfo | URL, response: Response): Promise<void>; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. */ interface CacheStorage { delete(cacheName: string): Promise<boolean>; has(cacheName: string): Promise<boolean>; keys(): Promise<string[]>; match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>; open(cacheName: string): Promise<Cache>; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { readonly canvas: HTMLCanvasElement; requestFrame(): void; addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CanvasCaptureMediaStreamTrack: { prototype: CanvasCaptureMediaStreamTrack; new(): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { globalAlpha: number; globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { beginPath(): void; clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { fillStyle: string | CanvasGradient | CanvasPattern; strokeStyle: string | CanvasGradient | CanvasPattern; createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { filter: string; } /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { imageSmoothingEnabled: boolean; imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; closePath(): void; ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; lineTo(x: number, y: number): void; moveTo(x: number, y: number): void; quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { lineCap: CanvasLineCap; lineDashOffset: number; lineJoin: CanvasLineJoin; lineWidth: number; miterLimit: number; getLineDash(): number[]; setLineDash(segments: number[]): void; } /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */ interface CanvasPattern { /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { clearRect(x: number, y: number, w: number, h: number): void; fillRect(x: number, y: number, w: number, h: number): void; strokeRect(x: number, y: number, w: number, h: number): void; } /** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { readonly canvas: HTMLCanvasElement; getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasShadowStyles { shadowBlur: number; shadowColor: string; shadowOffsetX: number; shadowOffsetY: number; } interface CanvasState { restore(): void; save(): void; } interface CanvasText { fillText(text: string, x: number, y: number, maxWidth?: number): void; measureText(text: string): TextMetrics; strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { direction: CanvasDirection; font: string; fontKerning: CanvasFontKerning; textAlign: CanvasTextAlign; textBaseline: CanvasTextBaseline; } interface CanvasTransform { getTransform(): DOMMatrix; resetTransform(): void; rotate(angle: number): void; scale(x: number, y: number): void; setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; transform(a: number, b: number, c: number, d: number, e: number, f: number): void; translate(x: number, y: number): void; } interface CanvasUserInterface { drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */ interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; }; /** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */ interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; }; /** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { data: string; readonly length: number; readonly ownerDocument: Document; appendData(data: string): void; deleteData(offset: number, count: number): void; insertData(offset: number, data: string): void; replaceData(offset: number, count: number, data: string): void; substringData(offset: number, count: number): string; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; }; interface ChildNode extends Node { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ after(...nodes: (Node | string)[]): void; /** * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ before(...nodes: (Node | string)[]): void; /** Removes node. */ remove(): void; /** * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** Available only in secure contexts. */ interface Clipboard extends EventTarget { read(): Promise<ClipboardItems>; readText(): Promise<string>; write(data: ClipboardItems): Promise<void>; writeText(data: string): Promise<void>; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */ interface ClipboardEvent extends Event { readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** Available only in secure contexts. */ interface ClipboardItem { readonly presentationStyle: PresentationStyle; readonly types: ReadonlyArray<string>; getType(type: string): Promise<Blob>; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem; }; /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */ interface CloseEvent extends Event { /** Returns the WebSocket connection close code provided by the server. */ readonly code: number; /** Returns the WebSocket connection close reason provided by the server. */ readonly reason: string; /** Returns true if the connection closed cleanly; false otherwise. */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */ interface Comment extends CharacterData { } declare var Comment: { prototype: Comment; new(data?: string): Comment; }; /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */ interface CompositionEvent extends UIEvent { readonly data: string; /** @deprecated */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; interface ConstantSourceNode extends AudioScheduledSourceNode { readonly offset: AudioParam; addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */ interface ConvolverNode extends AudioNode { buffer: AudioBuffer | null; normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface CountQueuingStrategy extends QueuingStrategy { readonly highWaterMark: number; readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** Available only in secure contexts. */ interface Credential { readonly id: string; readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** Available only in secure contexts. */ interface CredentialsContainer { create(options?: CredentialCreationOptions): Promise<Credential | null>; get(options?: CredentialRequestOptions): Promise<Credential | null>; preventSilentAccess(): Promise<void>; store(credential: Credential): Promise<Credential>; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */ interface Crypto { /** Available only in secure contexts. */ readonly subtle: SubtleCrypto; getRandomValues<T extends ArrayBufferView | null>(array: T): T; /** Available only in secure contexts. */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. */ interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; readonly type: KeyType; readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; interface CustomElementRegistry { define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; get(name: string): CustomElementConstructor | undefined; upgrade(root: Node): void; whenDefined(name: string): Promise<CustomElementConstructor>; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; interface CustomEvent<T = any> extends Event { /** Returns any custom data event was created with. Typically used for synthetic events. */ readonly detail: T; /** @deprecated */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; }; /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */ interface DOMException extends Error { /** @deprecated */ readonly code: number; readonly message: string; readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; /** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */ interface DOMImplementation { createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; createHTMLDocument(title?: string): Document; /** @deprecated */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; setMatrixValue(transformList: string): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; declare var SVGMatrix: typeof DOMMatrix; type WebKitCSSMatrix = DOMMatrix; declare var WebKitCSSMatrix: typeof DOMMatrix; interface DOMMatrixReadOnly { readonly a: number; readonly b: number; readonly c: number; readonly d: number; readonly e: number; readonly f: number; readonly is2D: boolean; readonly isIdentity: boolean; readonly m11: number; readonly m12: number; readonly m13: number; readonly m14: number; readonly m21: number; readonly m22: number; readonly m23: number; readonly m24: number; readonly m31: number; readonly m32: number; readonly m33: number; readonly m34: number; readonly m41: number; readonly m42: number; readonly m43: number; readonly m44: number; flipX(): DOMMatrix; flipY(): DOMMatrix; inverse(): DOMMatrix; multiply(other?: DOMMatrixInit): DOMMatrix; rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVector(x?: number, y?: number): DOMMatrix; scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; skewX(sx?: number): DOMMatrix; skewY(sy?: number): DOMMatrix; toFloat32Array(): Float32Array; toFloat64Array(): Float64Array; toJSON(): any; transformPoint(point?: DOMPointInit): DOMPoint; translate(tx?: number, ty?: number, tz?: number): DOMMatrix; toString(): string; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; toString(): string; }; /** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */ interface DOMParser { /** * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). * * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. * * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. * * Values other than the above for type will cause a TypeError exception to be thrown. */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; interface DOMPoint extends DOMPointReadOnly { w: number; x: number; y: number; z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; interface DOMPointReadOnly { readonly w: number; readonly x: number; readonly y: number; readonly z: number; matrixTransform(matrix?: DOMMatrixInit): DOMPoint; toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; interface DOMQuad { readonly p1: DOMPoint; readonly p2: DOMPoint; readonly p3: DOMPoint; readonly p4: DOMPoint; getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { readonly length: number; item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; interface DOMRectReadOnly { readonly bottom: number; readonly height: number; readonly left: number; readonly right: number; readonly top: number; readonly width: number; readonly x: number; readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** A type returned by some APIs which contains a list of DOMString (strings). */ interface DOMStringList { /** Returns the number of strings in strings. */ readonly length: number; /** Returns true if strings contains string, and false otherwise. */ contains(string: string): boolean; /** Returns the string with index index from strings. */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */ interface DOMTokenList { /** Returns the number of tokens. */ readonly length: number; /** * Returns the associated set as string. * * Can be set, to change the associated attribute. */ value: string; toString(): string; /** * Adds all arguments passed, except those already present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ add(...tokens: string[]): void; /** Returns true if token is present, and false otherwise. */ contains(token: string): boolean; /** Returns the token with index index. */ item(index: number): string | null; /** * Removes arguments passed, if they are present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ remove(...tokens: string[]): void; /** * Replaces token with newToken. * * Returns true if token was replaced with newToken, and false otherwise. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. */ replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * * Throws a TypeError if the associated attribute has no supported tokens defined. */ supports(token: string): boolean; /** * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). * * Returns true if token is now present, and false otherwise. * * Throws a "SyntaxError" DOMException if token is empty. * * Throws an "InvalidCharacterError" DOMException if token contains any spaces. */ toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; }; /** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */ interface DataTransfer { /** * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. * * Can be set, to change the selected operation. * * The possible values are "none", "copy", "link", and "move". */ dropEffect: "none" | "copy" | "link" | "move"; /** * Returns the kinds of operations that are to be allowed. * * Can be set (during the dragstart event), to change the allowed operations. * * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** Returns a FileList of the files being dragged, if any. */ readonly files: FileList; /** Returns a DataTransferItemList object, with the drag data. */ readonly items: DataTransferItemList; /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */ readonly types: ReadonlyArray<string>; /** Removes the data of the specified formats. Removes all data if the argument is omitted. */ clearData(format?: string): void; /** Returns the specified data. If there is no such data, returns the empty string. */ getData(format: string): string; /** Adds the specified data. */ setData(format: string, data: string): void; /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */ interface DataTransferItem { /** Returns the drag data item kind, one of: "string", "file". */ readonly kind: string; /** Returns the drag data item type string. */ readonly type: string; /** Returns a File object, if the drag data item kind is File. */ getAsFile(): File | null; /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */ getAsString(callback: FunctionStringCallback | null): void; webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */ interface DataTransferItemList { /** Returns the number of items in the drag data store. */ readonly length: number; /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** Removes all the entries in the drag data store. */ clear(): void; /** Removes the indexth entry in the drag data store. */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */ interface DelayNode extends AudioNode { readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. */ interface DeviceMotionEvent extends Event { readonly acceleration: DeviceMotionEventAcceleration | null; readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; readonly interval: number; readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** Available only in secure contexts. */ interface DeviceMotionEventAcceleration { readonly x: number | null; readonly y: number | null; readonly z: number | null; } /** Available only in secure contexts. */ interface DeviceMotionEventRotationRate { readonly alpha: number | null; readonly beta: number | null; readonly gamma: number | null; } /** * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. */ interface DeviceOrientationEvent extends Event { readonly absolute: boolean; readonly alpha: number | null; readonly beta: number | null; readonly gamma: number | null; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { "DOMContentLoaded": Event; "fullscreenchange": Event; "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; "readystatechange": Event; "visibilitychange": Event; } /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** Sets or gets the URL for the current document. */ readonly URL: string; /** * Sets or gets the color of all active links in the document. * @deprecated */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. * @deprecated */ readonly all: HTMLAllCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. * @deprecated */ readonly anchors: HTMLCollectionOf<HTMLAnchorElement>; /** * Retrieves a collection of all applet objects in the document. * @deprecated */ readonly applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. * @deprecated */ bgColor: string; /** Specifies the beginning and end of the document body. */ body: HTMLElement; /** Returns document's encoding. */ readonly characterSet: string; /** * Gets or sets the character set used to encode the object. * @deprecated This is a legacy alias of \`characterSet\`. */ readonly charset: string; /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */ readonly compatMode: string; /** Returns document's content type. */ readonly contentType: string; /** * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. * * Can be set, to add a new cookie to the element's set of HTTP cookies. * * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. */ cookie: string; /** * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. * * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. */ readonly currentScript: HTMLOrSVGScriptElement | null; /** Returns the Window object of the active document. */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** Sets or gets a value that indicates whether the document can be edited. */ designMode: string; /** Sets or retrieves a value that indicates the reading order of the object. */ dir: string; /** Gets an object representing the document type declaration associated with the current document. */ readonly doctype: DocumentType | null; /** Gets a reference to the root node of the document. */ readonly documentElement: HTMLElement; /** Returns document's URL. */ readonly documentURI: string; /** * Sets or gets the security domain of the document. * @deprecated */ domain: string; /** Retrieves a collection of all embed objects in the document. */ readonly embeds: HTMLCollectionOf<HTMLEmbedElement>; /** * Sets or gets the foreground (text) color of the document. * @deprecated */ fgColor: string; /** Retrieves a collection, in source order, of all form objects in the document. */ readonly forms: HTMLCollectionOf<HTMLFormElement>; /** @deprecated */ readonly fullscreen: boolean; /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */ readonly fullscreenEnabled: boolean; /** Returns the head element. */ readonly head: HTMLHeadElement; readonly hidden: boolean; /** Retrieves a collection, in source order, of img objects in the document. */ readonly images: HTMLCollectionOf<HTMLImageElement>; /** Gets the implementation object of the current document. */ readonly implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. * @deprecated This is a legacy alias of \`characterSet\`. */ readonly inputEncoding: string; /** Gets the date that the page was last modified, if the page supplies one. */ readonly lastModified: string; /** * Sets or gets the color of the document links. * @deprecated */ linkColor: string; /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */ readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>; /** Contains information about the current URL. */ get location(): Location; set location(href: string | Location); onfullscreenchange: ((this: Document, ev: Event) => any) | null; onfullscreenerror: ((this: Document, ev: Event) => any) | null; onpointerlockchange: ((this: Document, ev: Event) => any) | null; onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** * Fires when the state of the object has changed. * @param ev The event */ onreadystatechange: ((this: Document, ev: Event) => any) | null; onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; readonly pictureInPictureEnabled: boolean; /** Return an HTMLCollection of the embed elements in the Document. */ readonly plugins: HTMLCollectionOf<HTMLEmbedElement>; /** Retrieves a value that indicates the current state of the object. */ readonly readyState: DocumentReadyState; /** Gets the URL of the location that referred the user to the current page. */ readonly referrer: string; /** @deprecated */ readonly rootElement: SVGSVGElement | null; /** Retrieves a collection of all script objects in the document. */ readonly scripts: HTMLCollectionOf<HTMLScriptElement>; readonly scrollingElement: Element | null; readonly timeline: DocumentTimeline; /** Contains the title of the document. */ title: string; readonly visibilityState: DocumentVisibilityState; /** * Sets or gets the color of the links that the user has visited. * @deprecated */ vlinkColor: string; /** * Moves node from another document and returns it. * * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. */ adoptNode<T extends Node>(node: T): T; /** @deprecated */ captureEvents(): void; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** @deprecated */ clear(): void; /** Closes an output stream and forces the sent data to display. */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. */ createAttribute(localName: string): Attr; createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** Returns a CDATASection node whose data is data. */ createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. */ createComment(data: string): Comment; /** Creates a new document. */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. */ createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; createEvent(eventInterface: "MutationEvent"): MutationEvent; createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; createEvent(eventInterface: "PointerEvent"): PointerEvent; createEvent(eventInterface: "PopStateEvent"): PopStateEvent; createEvent(eventInterface: "ProgressEvent"): ProgressEvent; createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. */ createTextNode(data: string): Text; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. * @deprecated */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */ exitFullscreen(): Promise<void>; exitPictureInPicture(): Promise<void>; exitPointerLock(): void; /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. */ getElementById(elementId: string): HTMLElement | null; /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. */ getElementsByName(elementName: string): NodeListOf<HTMLElement>; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. */ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>; /** @deprecated */ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>; getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */ getSelection(): Selection | null; /** Gets a value indicating whether the object currently has focus. */ hasFocus(): boolean; hasStorageAccess(): Promise<boolean>; /** * Returns a copy of node. If deep is true, the copy also includes the node's descendants. * * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. */ importNode<T extends Node>(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. * @deprecated */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. * @deprecated */ queryCommandSupported(commandId: string): boolean; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated */ queryCommandValue(commandId: string): string; /** @deprecated */ releaseEvents(): void; requestStorageAccess(): Promise<void>; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. */ write(...text: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. */ writeln(...text: string[]): void; addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; /** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; }; interface DocumentOrShadowRoot { /** * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. * * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. * * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. */ readonly activeElement: Element | null; adoptedStyleSheets: CSSStyleSheet[]; /** Returns document's fullscreen element. */ readonly fullscreenElement: Element | null; readonly pictureInPictureElement: Element | null; readonly pointerLockElement: Element | null; /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */ readonly styleSheets: StyleSheetList; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; getAnimations(): Animation[]; } interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** A Node containing a doctype. */ interface DocumentType extends Node, ChildNode { readonly name: string; readonly ownerDocument: Document; readonly publicId: string; readonly systemId: string; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */ interface DragEvent extends MouseEvent { /** Returns the DataTransfer object for the event. */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** Inherits properties from its parent, AudioNode. */ interface DynamicsCompressorNode extends AudioNode { readonly attack: AudioParam; readonly knee: AudioParam; readonly ratio: AudioParam; readonly reduction: number; readonly release: AudioParam; readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } interface EXT_color_buffer_float { } interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } interface EXT_float_blend { } /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */ interface EXT_frag_depth { } interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } interface EXT_shader_texture_lod { } interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; } /** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { readonly attributes: NamedNodeMap; /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */ readonly classList: DOMTokenList; /** Returns the value of element's class content attribute. Can be set to change it. */ className: string; readonly clientHeight: number; readonly clientLeft: number; readonly clientTop: number; readonly clientWidth: number; /** Returns the value of element's id content attribute. Can be set to change it. */ id: string; /** Returns the local name. */ readonly localName: string; /** Returns the namespace. */ readonly namespaceURI: string | null; onfullscreenchange: ((this: Element, ev: Event) => any) | null; onfullscreenerror: ((this: Element, ev: Event) => any) | null; outerHTML: string; readonly ownerDocument: Document; readonly part: DOMTokenList; /** Returns the namespace prefix. */ readonly prefix: string | null; readonly scrollHeight: number; scrollLeft: number; scrollTop: number; readonly scrollWidth: number; /** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */ readonly shadowRoot: ShadowRoot | null; /** Returns the value of element's slot content attribute. Can be set to change it. */ slot: string; /** Returns the HTML-uppercased qualified name. */ readonly tagName: string; /** Creates a shadow root for element and returns it. */ attachShadow(init: ShadowRootInit): ShadowRoot; checkVisibility(options?: CheckVisibilityOptions): boolean; /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null; closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null; closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null; closest<E extends Element = Element>(selectors: string): E | null; /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */ getAttribute(qualifiedName: string): string | null; /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */ getAttributeNS(namespace: string | null, localName: string): string | null; /** Returns the qualified names of all element's attributes. Can contain duplicates. */ getAttributeNames(): string[]; getAttributeNode(qualifiedName: string): Attr | null; getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; getBoundingClientRect(): DOMRect; getClientRects(): DOMRectList; /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>; getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>; getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>; /** @deprecated */ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>; getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>; /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */ hasAttribute(qualifiedName: string): boolean; /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** Returns true if element has attributes, and false otherwise. */ hasAttributes(): boolean; hasPointerCapture(pointerId: number): boolean; insertAdjacentElement(where: InsertPosition, element: Element): Element | null; insertAdjacentHTML(position: InsertPosition, text: string): void; insertAdjacentText(where: InsertPosition, data: string): void; /** Returns true if matching selectors against element's root yields element, and false otherwise. */ matches(selectors: string): boolean; releasePointerCapture(pointerId: number): void; /** Removes element's first attribute whose qualified name is qualifiedName. */ removeAttribute(qualifiedName: string): void; /** Removes element's attribute whose namespace is namespace and local name is localName. */ removeAttributeNS(namespace: string | null, localName: string): void; removeAttributeNode(attr: Attr): Attr; /** * Displays element fullscreen and resolves promise when done. * * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. */ requestFullscreen(options?: FullscreenOptions): Promise<void>; requestPointerLock(): void; scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */ setAttribute(qualifiedName: string, value: string): void; /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; setAttributeNode(attr: Attr): Attr | null; setAttributeNodeNS(attr: Attr): Attr | null; setPointerCapture(pointerId: number): void; /** * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. * * Returns true if qualifiedName is now present, and false otherwise. */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** @deprecated This is a legacy alias of \`matches\`. */ webkitMatchesSelector(selectors: string): boolean; addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly style: CSSStyleDeclaration; } interface ElementContentEditable { contentEditable: string; enterKeyHint: string; inputMode: string; readonly isContentEditable: boolean; } interface ElementInternals extends ARIAMixin { /** Returns the form owner of internals's target element. */ readonly form: HTMLFormElement | null; /** Returns a NodeList of all the label elements that internals's target element is associated with. */ readonly labels: NodeList; /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */ readonly shadowRoot: ShadowRoot | null; /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */ readonly validationMessage: string; /** Returns the ValidityState object for internals's target element. */ readonly validity: ValidityState; /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */ readonly willValidate: boolean; /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */ checkValidity(): boolean; /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */ reportValidity(): boolean; /** * Sets both the state and submission value of internals's target element to value. * * If value is null, the element won't participate in form submission. */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** Events providing information related to errors in scripts or in files. */ interface ErrorEvent extends Event { readonly colno: number; readonly error: any; readonly filename: string; readonly lineno: number; readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** An event which takes place in the DOM. */ interface Event { /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */ readonly bubbles: boolean; /** @deprecated */ cancelBubble: boolean; /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */ readonly cancelable: boolean; /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */ readonly composed: boolean; /** Returns the object whose event listener's callback is currently being invoked. */ readonly currentTarget: EventTarget | null; /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */ readonly defaultPrevented: boolean; /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */ readonly eventPhase: number; /** Returns true if event was dispatched by the user agent, and false otherwise. */ readonly isTrusted: boolean; /** @deprecated */ returnValue: boolean; /** @deprecated */ readonly srcElement: EventTarget | null; /** Returns the object to which event is dispatched (its target). */ readonly target: EventTarget | null; /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */ readonly timeStamp: DOMHighResTimeStamp; /** Returns the type of event, e.g. "click", "hashchange", or "submit". */ readonly type: string; /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */ composedPath(): EventTarget[]; /** @deprecated */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */ preventDefault(): void; /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */ stopImmediatePropagation(): void; /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; interface EventCounts { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } declare var EventCounts: { prototype: EventCounts; new(): EventCounts; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } interface EventSource extends EventTarget { onerror: ((this: EventSource, ev: Event) => any) | null; onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; onopen: ((this: EventSource, ev: Event) => any) | null; /** Returns the state of this EventSource object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL providing the event stream. */ readonly url: string; /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */ readonly withCredentials: boolean; /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ dispatchEvent(event: Event): boolean; /** Removes the event listener in target's event listener list with the same type, callback, and options. */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** @deprecated */ interface External { /** @deprecated */ AddSearchProvider(): void; /** @deprecated */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** Provides information about files and allows JavaScript in a web page to access their content. */ interface File extends Blob { readonly lastModified: number; readonly name: string; readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */ interface FileList { readonly length: number; item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent<FileReader>; "error": ProgressEvent<FileReader>; "load": ProgressEvent<FileReader>; "loadend": ProgressEvent<FileReader>; "loadstart": ProgressEvent<FileReader>; "progress": ProgressEvent<FileReader>; } /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */ interface FileReader extends EventTarget { readonly error: DOMException | null; onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; readonly result: string | ArrayBuffer | null; abort(): void; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; interface FileSystem { readonly name: string; readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; interface FileSystemDirectoryEntry extends FileSystemEntry { createReader(): FileSystemDirectoryReader; getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** Available only in secure contexts. */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>; getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>; removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>; resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; interface FileSystemDirectoryReader { readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; interface FileSystemEntry { readonly filesystem: FileSystem; readonly fullPath: string; readonly isDirectory: boolean; readonly isFile: boolean; readonly name: string; getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; interface FileSystemFileEntry extends FileSystemEntry { file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** Available only in secure contexts. */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; getFile(): Promise<File>; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** Available only in secure contexts. */ interface FileSystemHandle { readonly kind: FileSystemHandleKind; readonly name: string; isSameEntry(other: FileSystemHandle): Promise<boolean>; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** Focus-related events like focus, blur, focusin, or focusout. */ interface FocusEvent extends UIEvent { readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; interface FontFace { ascentOverride: string; descentOverride: string; display: FontDisplay; family: string; featureSettings: string; lineGapOverride: string; readonly loaded: Promise<FontFace>; readonly status: FontFaceLoadStatus; stretch: string; style: string; unicodeRange: string; variant: string; weight: string; load(): Promise<FontFace>; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } interface FontFaceSet extends EventTarget { onloading: ((this: FontFaceSet, ev: Event) => any) | null; onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; readonly ready: Promise<FontFaceSet>; readonly status: FontFaceSetLoadStatus; check(font: string, text?: string): boolean; load(font: string, text?: string): Promise<FontFace[]>; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; interface FontFaceSetLoadEvent extends Event { readonly fontfaces: ReadonlyArray<FontFace>; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { readonly fonts: FontFaceSet; } /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */ interface FormData { append(name: string, value: string | Blob, fileName?: string): void; delete(name: string): void; get(name: string): FormDataEntryValue | null; getAll(name: string): FormDataEntryValue[]; has(name: string): boolean; set(name: string, value: string | Blob, fileName?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement): FormData; }; interface FormDataEvent extends Event { /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */ interface GainNode extends AudioNode { readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * Available only in secure contexts. */ interface Gamepad { readonly axes: ReadonlyArray<number>; readonly buttons: ReadonlyArray<GamepadButton>; readonly connected: boolean; readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>; readonly id: string; readonly index: number; readonly mapping: GamepadMappingType; readonly timestamp: DOMHighResTimeStamp; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * Available only in secure contexts. */ interface GamepadButton { readonly pressed: boolean; readonly touched: boolean; readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. * Available only in secure contexts. */ interface GamepadEvent extends Event { readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */ interface GamepadHapticActuator { readonly type: GamepadHapticActuatorType; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { readonly readable: ReadableStream; readonly writable: WritableStream; } /** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */ interface Geolocation { clearWatch(watchId: number): void; getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** Available only in secure contexts. */ interface GeolocationCoordinates { readonly accuracy: number; readonly altitude: number | null; readonly altitudeAccuracy: number | null; readonly heading: number | null; readonly latitude: number; readonly longitude: number; readonly speed: number | null; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** Available only in secure contexts. */ interface GeolocationPosition { readonly coords: GeolocationCoordinates; readonly timestamp: EpochTimeStamp; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; interface GeolocationPositionError { readonly code: number; readonly message: string; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; } declare var GeolocationPositionError: { prototype: GeolocationPositionError; new(): GeolocationPositionError; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { "abort": UIEvent; "animationcancel": AnimationEvent; "animationend": AnimationEvent; "animationiteration": AnimationEvent; "animationstart": AnimationEvent; "auxclick": MouseEvent; "beforeinput": InputEvent; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": MouseEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextmenu": MouseEvent; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; "dblclick": MouseEvent; "drag": DragEvent; "dragend": DragEvent; "dragenter": DragEvent; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "formdata": FormDataEvent; "gotpointercapture": PointerEvent; "input": Event; "invalid": Event; "keydown": KeyboardEvent; "keypress": KeyboardEvent; "keyup": KeyboardEvent; "load": Event; "loadeddata": Event; "loadedmetadata": Event; "loadstart": Event; "lostpointercapture": PointerEvent; "mousedown": MouseEvent; "mouseenter": MouseEvent; "mouseleave": MouseEvent; "mousemove": MouseEvent; "mouseout": MouseEvent; "mouseover": MouseEvent; "mouseup": MouseEvent; "paste": ClipboardEvent; "pause": Event; "play": Event; "playing": Event; "pointercancel": PointerEvent; "pointerdown": PointerEvent; "pointerenter": PointerEvent; "pointerleave": PointerEvent; "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": Event; "touchcancel": TouchEvent; "touchend": TouchEvent; "touchmove": TouchEvent; "touchstart": TouchEvent; "transitioncancel": TransitionEvent; "transitionend": TransitionEvent; "transitionrun": TransitionEvent; "transitionstart": TransitionEvent; "volumechange": Event; "waiting": Event; "webkitanimationend": Event; "webkitanimationiteration": Event; "webkitanimationstart": Event; "webkittransitionend": Event; "wheel": WheelEvent; } interface GlobalEventHandlers { /** * Fires when the user aborts the download. * @param ev The event. */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. */ onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationend\`. */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationiteration\`. */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationstart\`. */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`ontransitionend\`. */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface HTMLAllCollection { /** Returns the number of elements in the collection. */ readonly length: number; /** Returns the item with index index from the collection (determined by tree order). */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. * * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated */ coords: string; download: string; /** Sets or retrieves the language code of the object. */ hreflang: string; /** * Sets or retrieves the shape of the object. * @deprecated */ name: string; ping: string; referrerPolicy: string; /** Sets or retrieves the relationship between the object and the destination of the link. */ rel: string; readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated */ shape: string; /** Sets or retrieves the window or frame at which to target content. */ target: string; /** Retrieves or sets the text of the object as a string. */ text: string; type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** Sets or retrieves a text alternative to the graphic. */ alt: string; /** Sets or retrieves the coordinates of the object. */ coords: string; download: string; /** * Sets or gets whether clicks in this region cause action. * @deprecated */ noHref: boolean; ping: string; referrerPolicy: string; rel: string; readonly relList: DOMTokenList; /** Sets or retrieves the shape of the object. */ shape: string; /** Sets or retrieves the window or frame at which to target content. */ target: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */ interface HTMLAudioElement extends HTMLMediaElement { addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; }; /** A HTML line break element (<br>). It inherits from HTMLElement. */ interface HTMLBRElement extends HTMLElement { /** * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. * @deprecated */ clear: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; }; /** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */ interface HTMLBaseElement extends HTMLElement { /** Gets or sets the baseline URL on which relative links are based. */ href: string; /** Sets or retrieves the window or frame at which to target content. */ target: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { } /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ aLink: string; /** @deprecated */ background: string; /** @deprecated */ bgColor: string; /** @deprecated */ link: string; /** @deprecated */ text: string; /** @deprecated */ vLink: string; addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; }; /** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */ interface HTMLButtonElement extends HTMLElement { disabled: boolean; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */ formAction: string; /** Used to override the encoding (formEnctype attribute) specified on the form element. */ formEnctype: string; /** Overrides the submit method attribute previously specified on a form element. */ formMethod: string; /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ formNoValidate: boolean; /** Overrides the target attribute on a form element. */ formTarget: string; readonly labels: NodeListOf<HTMLLabelElement>; /** Sets or retrieves the name of the object. */ name: string; /** Gets the classification and default behavior of the button. */ type: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** Sets or retrieves the default or selected value of the control. */ value: string; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLButtonElement: { prototype: HTMLButtonElement; new(): HTMLButtonElement; }; /** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */ interface HTMLCanvasElement extends HTMLElement { /** Gets or sets the height of a canvas element on a document. */ height: number; /** Gets or sets the width of a canvas element on a document. */ width: number; captureStream(frameRequestRate?: number): MediaStream; /** * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); */ getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null; getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null; getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null; getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null; getContext(contextId: string, options?: any): RenderingContext | null; toBlob(callback: BlobCallback, type?: string, quality?: any): void; /** * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. */ toDataURL(type?: string, quality?: any): string; transferControlToOffscreen(): OffscreenCanvas; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLCanvasElement: { prototype: HTMLCanvasElement; new(): HTMLCanvasElement; }; /** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */ interface HTMLCollectionBase { /** Sets or retrieves the number of objects in a collection. */ readonly length: number; /** Retrieves an object from various collections. */ item(index: number): Element | null; [index: number]: Element; } interface HTMLCollection extends HTMLCollectionBase { /** Retrieves a select object or an object from an options collection. */ namedItem(name: string): Element | null; } declare var HTMLCollection: { prototype: HTMLCollection; new(): HTMLCollection; }; interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase { item(index: number): T | null; namedItem(name: string): T | null; [index: number]: T; } /** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */ interface HTMLDListElement extends HTMLElement { /** @deprecated */ compact: boolean; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDListElement: { prototype: HTMLDListElement; new(): HTMLDListElement; }; /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */ interface HTMLDataElement extends HTMLElement { value: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDataElement: { prototype: HTMLDataElement; new(): HTMLDataElement; }; /** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */ interface HTMLDataListElement extends HTMLElement { /** Returns an HTMLCollection of the option elements of the datalist element. */ readonly options: HTMLCollectionOf<HTMLOptionElement>; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDataListElement: { prototype: HTMLDataListElement; new(): HTMLDataListElement; }; interface HTMLDetailsElement extends HTMLElement { open: boolean; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDetailsElement: { prototype: HTMLDetailsElement; new(): HTMLDetailsElement; }; interface HTMLDialogElement extends HTMLElement { open: boolean; returnValue: string; /** * Closes the dialog element. * * The argument, if provided, provides a return value. */ close(returnValue?: string): void; /** Displays the dialog element. */ show(): void; showModal(): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDialogElement: { prototype: HTMLDialogElement; new(): HTMLDialogElement; }; /** @deprecated */ interface HTMLDirectoryElement extends HTMLElement { /** @deprecated */ compact: boolean; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLDirectoryElement: { prototype: HTMLDirectoryElement; new(): HTMLDirectoryElement; }; /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */ interface HTMLDivElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLDivElement: { prototype: HTMLDivElement; new(): HTMLDivElement; }; /** @deprecated use Document */ interface HTMLDocument extends Document { addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLDocument: { prototype: HTMLDocument; new(): HTMLDocument; }; interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { } /** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement { accessKey: string; readonly accessKeyLabel: string; autocapitalize: string; dir: string; draggable: boolean; hidden: boolean; inert: boolean; innerText: string; lang: string; readonly offsetHeight: number; readonly offsetLeft: number; readonly offsetParent: Element | null; readonly offsetTop: number; readonly offsetWidth: number; outerText: string; spellcheck: boolean; title: string; translate: boolean; attachInternals(): ElementInternals; click(): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLElement: { prototype: HTMLElement; new(): HTMLElement; }; /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */ interface HTMLEmbedElement extends HTMLElement { /** @deprecated */ align: string; /** Sets or retrieves the height of the object. */ height: string; /** * Sets or retrieves the name of the object. * @deprecated */ name: string; /** Sets or retrieves a URL to be loaded by the object. */ src: string; type: string; /** Sets or retrieves the width of the object. */ width: string; getSVGDocument(): Document | null; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLEmbedElement: { prototype: HTMLEmbedElement; new(): HTMLEmbedElement; }; /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */ interface HTMLFieldSetElement extends HTMLElement { disabled: boolean; /** Returns an HTMLCollection of the form controls in the element. */ readonly elements: HTMLCollection; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; name: string; /** Returns the string "fieldset". */ readonly type: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLFieldSetElement: { prototype: HTMLFieldSetElement; new(): HTMLFieldSetElement; }; /** * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. * @deprecated */ interface HTMLFontElement extends HTMLElement { /** @deprecated */ color: string; /** * Sets or retrieves the current typeface family. * @deprecated */ face: string; /** @deprecated */ size: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLFontElement: { prototype: HTMLFontElement; new(): HTMLFontElement; }; /** A collection of HTML form control elements. */ interface HTMLFormControlsCollection extends HTMLCollectionBase { /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned. */ namedItem(name: string): RadioNodeList | Element | null; } declare var HTMLFormControlsCollection: { prototype: HTMLFormControlsCollection; new(): HTMLFormControlsCollection; }; /** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */ interface HTMLFormElement extends HTMLElement { /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */ acceptCharset: string; /** Sets or retrieves the URL to which the form content is sent for processing. */ action: string; /** Specifies whether autocomplete is applied to an editable text field. */ autocomplete: string; /** Retrieves a collection, in source order, of all controls in a given form. */ readonly elements: HTMLFormControlsCollection; /** Sets or retrieves the MIME encoding for the form. */ encoding: string; /** Sets or retrieves the encoding type for the form. */ enctype: string; /** Sets or retrieves the number of objects in a collection. */ readonly length: number; /** Sets or retrieves how to send the form data to the server. */ method: string; /** Sets or retrieves the name of the object. */ name: string; /** Designates a form that is not validated when submitted. */ noValidate: boolean; rel: string; readonly relList: DOMTokenList; /** Sets or retrieves the window or frame at which to target content. */ target: string; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; reportValidity(): boolean; requestSubmit(submitter?: HTMLElement | null): void; /** Fires when the user resets a form. */ reset(): void; /** Fires when a FORM is about to be submitted. */ submit(): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: Element; [name: string]: any; } declare var HTMLFormElement: { prototype: HTMLFormElement; new(): HTMLFormElement; }; /** @deprecated */ interface HTMLFrameElement extends HTMLElement { /** * Retrieves the document object of the page or frame. * @deprecated */ readonly contentDocument: Document | null; /** * Retrieves the object of the specified. * @deprecated */ readonly contentWindow: WindowProxy | null; /** * Sets or retrieves whether to display a border for the frame. * @deprecated */ frameBorder: string; /** * Sets or retrieves a URI to a long description of the object. * @deprecated */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. * @deprecated */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. * @deprecated */ marginWidth: string; /** * Sets or retrieves the frame name. * @deprecated */ name: string; /** * Sets or retrieves whether the user can resize the frame. * @deprecated */ noResize: boolean; /** * Sets or retrieves whether the frame can be scrolled. * @deprecated */ scrolling: string; /** * Sets or retrieves a URL to be loaded by the object. * @deprecated */ src: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLFrameElement: { prototype: HTMLFrameElement; new(): HTMLFrameElement; }; interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { } /** * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. * @deprecated */ interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers { /** * Sets or retrieves the frame widths of the object. * @deprecated */ cols: string; /** * Sets or retrieves the frame heights of the object. * @deprecated */ rows: string; addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLFrameSetElement: { prototype: HTMLFrameSetElement; new(): HTMLFrameSetElement; }; /** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */ interface HTMLHRElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; /** @deprecated */ color: string; /** * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. * @deprecated */ noShade: boolean; /** @deprecated */ size: string; /** * Sets or retrieves the width of the object. * @deprecated */ width: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLHRElement: { prototype: HTMLHRElement; new(): HTMLHRElement; }; /** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */ interface HTMLHeadElement extends HTMLElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLHeadElement: { prototype: HTMLHeadElement; new(): HTMLHeadElement; }; /** The different heading elements. It inherits methods and properties from the HTMLElement interface. */ interface HTMLHeadingElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. * @deprecated */ align: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLHeadingElement: { prototype: HTMLHeadingElement; new(): HTMLHeadingElement; }; /** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */ interface HTMLHtmlElement extends HTMLElement { /** * Sets or retrieves the DTD version that governs the current document. * @deprecated */ version: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLHtmlElement: { prototype: HTMLHtmlElement; new(): HTMLHtmlElement; }; interface HTMLHyperlinkElementUtils { /** * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty). * * Can be set, to change the URL's fragment (ignores leading "#"). */ hash: string; /** * Returns the hyperlink's URL's host and port (if different from the default port for the scheme). * * Can be set, to change the URL's host and port. */ host: string; /** * Returns the hyperlink's URL's host. * * Can be set, to change the URL's host. */ hostname: string; /** * Returns the hyperlink's URL. * * Can be set, to change the URL. */ href: string; toString(): string; /** Returns the hyperlink's URL's origin. */ readonly origin: string; /** * Returns the hyperlink's URL's password. * * Can be set, to change the URL's password. */ password: string; /** * Returns the hyperlink's URL's path. * * Can be set, to change the URL's path. */ pathname: string; /** * Returns the hyperlink's URL's port. * * Can be set, to change the URL's port. */ port: string; /** * Returns the hyperlink's URL's scheme. * * Can be set, to change the URL's scheme. */ protocol: string; /** * Returns the hyperlink's URL's query (includes leading "?" if non-empty). * * Can be set, to change the URL's query (ignores leading "?"). */ search: string; /** * Returns the hyperlink's URL's username. * * Can be set, to change the URL's username. */ username: string; } /** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */ interface HTMLIFrameElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; allow: string; allowFullscreen: boolean; /** Retrieves the document object of the page or frame. */ readonly contentDocument: Document | null; /** Retrieves the object of the specified. */ readonly contentWindow: WindowProxy | null; /** * Sets or retrieves whether to display a border for the frame. * @deprecated */ frameBorder: string; /** Sets or retrieves the height of the object. */ height: string; /** * Sets or retrieves a URI to a long description of the object. * @deprecated */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. * @deprecated */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. * @deprecated */ marginWidth: string; /** Sets or retrieves the frame name. */ name: string; referrerPolicy: ReferrerPolicy; readonly sandbox: DOMTokenList; /** * Sets or retrieves whether the frame can be scrolled. * @deprecated */ scrolling: string; /** Sets or retrieves a URL to be loaded by the object. */ src: string; /** Sets or retrives the content of the page that is to contain. */ srcdoc: string; /** Sets or retrieves the width of the object. */ width: string; getSVGDocument(): Document | null; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLIFrameElement: { prototype: HTMLIFrameElement; new(): HTMLIFrameElement; }; /** Provides special properties and methods for manipulating <img> elements. */ interface HTMLImageElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; /** Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Specifies the properties of a border drawn around an object. * @deprecated */ border: string; /** Retrieves whether the object is fully loaded. */ readonly complete: boolean; crossOrigin: string | null; readonly currentSrc: string; decoding: "async" | "sync" | "auto"; /** Sets or retrieves the height of the object. */ height: number; /** * Sets or retrieves the width of the border to draw around the object. * @deprecated */ hspace: number; /** Sets or retrieves whether the image is a server-side image map. */ isMap: boolean; /** Sets or retrieves the policy for loading image elements that are outside the viewport. */ loading: "eager" | "lazy"; /** * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. * @deprecated */ longDesc: string; /** @deprecated */ lowsrc: string; /** * Sets or retrieves the name of the object. * @deprecated */ name: string; /** The original height of the image resource before sizing. */ readonly naturalHeight: number; /** The original width of the image resource before sizing. */ readonly naturalWidth: number; referrerPolicy: string; sizes: string; /** The address or URL of the a media resource that is to be considered. */ src: string; srcset: string; /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; /** * Sets or retrieves the vertical margin for the object. * @deprecated */ vspace: number; /** Sets or retrieves the width of the object. */ width: number; readonly x: number; readonly y: number; decode(): Promise<void>; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLImageElement: { prototype: HTMLImageElement; new(): HTMLImageElement; }; /** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */ interface HTMLInputElement extends HTMLElement { /** Sets or retrieves a comma-separated list of content types. */ accept: string; /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; /** Sets or retrieves a text alternative to the graphic. */ alt: string; /** Specifies whether autocomplete is applied to an editable text field. */ autocomplete: string; capture: string; /** Sets or retrieves the state of the check box or radio button. */ checked: boolean; /** Sets or retrieves the state of the check box or radio button. */ defaultChecked: boolean; /** Sets or retrieves the initial contents of the object. */ defaultValue: string; dirName: string; disabled: boolean; /** Returns a FileList object on a file type input object. */ files: FileList | null; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */ formAction: string; /** Used to override the encoding (formEnctype attribute) specified on the form element. */ formEnctype: string; /** Overrides the submit method attribute previously specified on a form element. */ formMethod: string; /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ formNoValidate: boolean; /** Overrides the target attribute on a form element. */ formTarget: string; /** Sets or retrieves the height of the object. */ height: number; /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */ indeterminate: boolean; readonly labels: NodeListOf<HTMLLabelElement> | null; /** Specifies the ID of a pre-defined datalist of options for an input element. */ readonly list: HTMLDataListElement | null; /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */ max: string; /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ maxLength: number; /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */ min: string; minLength: number; /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */ multiple: boolean; /** Sets or retrieves the name of the object. */ name: string; /** Gets or sets a string containing a regular expression that the user's input must match. */ pattern: string; /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ placeholder: string; readOnly: boolean; /** When present, marks an element that can't be submitted without a value. */ required: boolean; selectionDirection: "forward" | "backward" | "none" | null; /** Gets or sets the end position or offset of a text selection. */ selectionEnd: number | null; /** Gets or sets the starting position or offset of a text selection. */ selectionStart: number | null; size: number; /** The address or URL of the a media resource that is to be considered. */ src: string; /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */ step: string; /** Returns the content type of the object. */ type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. * @deprecated */ useMap: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** Returns the value of the data at the cursor's current position. */ value: string; /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */ valueAsDate: Date | null; /** Returns the input field value as a number. */ valueAsNumber: number; readonly webkitEntries: ReadonlyArray<FileSystemEntry>; webkitdirectory: boolean; /** Sets or retrieves the width of the object. */ width: number; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; reportValidity(): boolean; /** Makes the selection equal to the current object. */ select(): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** * Sets the start and end positions of a selection in a text field. * @param start The offset into the text field for the start of the selection. * @param end The offset into the text field for the end of the selection. * @param direction The direction in which the selection is performed. */ setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; showPicker(): void; /** * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. * @param n Value to decrement the value by. */ stepDown(n?: number): void; /** * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. * @param n Value to increment the value by. */ stepUp(n?: number): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLInputElement: { prototype: HTMLInputElement; new(): HTMLInputElement; }; /** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */ interface HTMLLIElement extends HTMLElement { /** @deprecated */ type: string; /** Sets or retrieves the value of a list item. */ value: number; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLLIElement: { prototype: HTMLLIElement; new(): HTMLLIElement; }; /** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */ interface HTMLLabelElement extends HTMLElement { /** Returns the form control that is associated with this element. */ readonly control: HTMLElement | null; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** Sets or retrieves the object to which the given label object is assigned. */ htmlFor: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLLabelElement: { prototype: HTMLLabelElement; new(): HTMLLabelElement; }; /** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */ interface HTMLLegendElement extends HTMLElement { /** @deprecated */ align: string; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLLegendElement: { prototype: HTMLLegendElement; new(): HTMLLegendElement; }; /** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */ interface HTMLLinkElement extends HTMLElement, LinkStyle { as: string; /** * Sets or retrieves the character set used to encode the object. * @deprecated */ charset: string; crossOrigin: string | null; disabled: boolean; /** Sets or retrieves a destination URL or an anchor point. */ href: string; /** Sets or retrieves the language code of the object. */ hreflang: string; imageSizes: string; imageSrcset: string; integrity: string; /** Sets or retrieves the media type. */ media: string; referrerPolicy: string; /** Sets or retrieves the relationship between the object and the destination of the link. */ rel: string; readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated */ rev: string; readonly sizes: DOMTokenList; /** * Sets or retrieves the window or frame at which to target content. * @deprecated */ target: string; /** Sets or retrieves the MIME type of the object. */ type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLLinkElement: { prototype: HTMLLinkElement; new(): HTMLLinkElement; }; /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */ interface HTMLMapElement extends HTMLElement { /** Retrieves a collection of the area objects defined for the given map object. */ readonly areas: HTMLCollection; /** Sets or retrieves the name of the object. */ name: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLMapElement: { prototype: HTMLMapElement; new(): HTMLMapElement; }; /** * Provides methods to manipulate <marquee> elements. * @deprecated */ interface HTMLMarqueeElement extends HTMLElement { /** @deprecated */ behavior: string; /** @deprecated */ bgColor: string; /** @deprecated */ direction: string; /** @deprecated */ height: string; /** @deprecated */ hspace: number; /** @deprecated */ loop: number; /** @deprecated */ scrollAmount: number; /** @deprecated */ scrollDelay: number; /** @deprecated */ trueSpeed: boolean; /** @deprecated */ vspace: number; /** @deprecated */ width: string; /** @deprecated */ start(): void; /** @deprecated */ stop(): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLMarqueeElement: { prototype: HTMLMarqueeElement; new(): HTMLMarqueeElement; }; interface HTMLMediaElementEventMap extends HTMLElementEventMap { "encrypted": MediaEncryptedEvent; "waitingforkey": Event; } /** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */ interface HTMLMediaElement extends HTMLElement { /** Gets or sets a value that indicates whether to start playing the media automatically. */ autoplay: boolean; /** Gets a collection of buffered time ranges. */ readonly buffered: TimeRanges; /** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */ controls: boolean; crossOrigin: string | null; /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */ readonly currentSrc: string; /** Gets or sets the current playback position, in seconds. */ currentTime: number; defaultMuted: boolean; /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */ defaultPlaybackRate: number; disableRemotePlayback: boolean; /** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */ readonly duration: number; /** Gets information about whether the playback has ended or not. */ readonly ended: boolean; /** Returns an object representing the current error state of the audio or video element. */ readonly error: MediaError | null; /** Gets or sets a flag to specify whether playback should restart after it completes. */ loop: boolean; /** Available only in secure contexts. */ readonly mediaKeys: MediaKeys | null; /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */ muted: boolean; /** Gets the current network activity for the element. */ readonly networkState: number; onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null; onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null; /** Gets a flag that specifies whether playback is paused. */ readonly paused: boolean; /** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */ playbackRate: number; /** Gets TimeRanges for the current media resource that has been played. */ readonly played: TimeRanges; /** Gets or sets a value indicating what data should be preloaded, if any. */ preload: "none" | "metadata" | "auto" | ""; preservesPitch: boolean; readonly readyState: number; readonly remote: RemotePlayback; /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */ readonly seekable: TimeRanges; /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */ readonly seeking: boolean; /** The address or URL of the a media resource that is to be considered. */ src: string; srcObject: MediaProvider | null; readonly textTracks: TextTrackList; /** Gets or sets the volume level for audio portions of the media element. */ volume: number; addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack; /** Returns a string that specifies whether the client can play a given media resource type. */ canPlayType(type: string): CanPlayTypeResult; fastSeek(time: number): void; /** Resets the audio or video object and loads a new media resource. */ load(): void; /** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */ pause(): void; /** Loads and starts playback of a media resource. */ play(): Promise<void>; /** Available only in secure contexts. */ setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>; readonly NETWORK_EMPTY: 0; readonly NETWORK_IDLE: 1; readonly NETWORK_LOADING: 2; readonly NETWORK_NO_SOURCE: 3; readonly HAVE_NOTHING: 0; readonly HAVE_METADATA: 1; readonly HAVE_CURRENT_DATA: 2; readonly HAVE_FUTURE_DATA: 3; readonly HAVE_ENOUGH_DATA: 4; addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLMediaElement: { prototype: HTMLMediaElement; new(): HTMLMediaElement; readonly NETWORK_EMPTY: 0; readonly NETWORK_IDLE: 1; readonly NETWORK_LOADING: 2; readonly NETWORK_NO_SOURCE: 3; readonly HAVE_NOTHING: 0; readonly HAVE_METADATA: 1; readonly HAVE_CURRENT_DATA: 2; readonly HAVE_FUTURE_DATA: 3; readonly HAVE_ENOUGH_DATA: 4; }; interface HTMLMenuElement extends HTMLElement { /** @deprecated */ compact: boolean; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLMenuElement: { prototype: HTMLMenuElement; new(): HTMLMenuElement; }; /** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */ interface HTMLMetaElement extends HTMLElement { /** Gets or sets meta-information to associate with httpEquiv or name. */ content: string; /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */ httpEquiv: string; media: string; /** Sets or retrieves the value specified in the content attribute of the meta object. */ name: string; /** * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. * @deprecated */ scheme: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLMetaElement: { prototype: HTMLMetaElement; new(): HTMLMetaElement; }; /** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */ interface HTMLMeterElement extends HTMLElement { high: number; readonly labels: NodeListOf<HTMLLabelElement>; low: number; max: number; min: number; optimum: number; value: number; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLMeterElement: { prototype: HTMLMeterElement; new(): HTMLMeterElement; }; /** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */ interface HTMLModElement extends HTMLElement { /** Sets or retrieves reference information about the object. */ cite: string; /** Sets or retrieves the date and time of a modification to the object. */ dateTime: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLModElement: { prototype: HTMLModElement; new(): HTMLModElement; }; /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */ interface HTMLOListElement extends HTMLElement { /** @deprecated */ compact: boolean; reversed: boolean; /** The starting number. */ start: number; type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLOListElement: { prototype: HTMLOListElement; new(): HTMLOListElement; }; /** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */ interface HTMLObjectElement extends HTMLElement { /** @deprecated */ align: string; /** * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. * @deprecated */ archive: string; /** @deprecated */ border: string; /** * Sets or retrieves the URL of the file containing the compiled Java class. * @deprecated */ code: string; /** * Sets or retrieves the URL of the component. * @deprecated */ codeBase: string; /** * Sets or retrieves the Internet media type for the code associated with the object. * @deprecated */ codeType: string; /** Retrieves the document object of the page or frame. */ readonly contentDocument: Document | null; readonly contentWindow: WindowProxy | null; /** Sets or retrieves the URL that references the data of the object. */ data: string; /** @deprecated */ declare: boolean; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** Sets or retrieves the height of the object. */ height: string; /** @deprecated */ hspace: number; /** Sets or retrieves the name of the object. */ name: string; /** * Sets or retrieves a message to be displayed while an object is loading. * @deprecated */ standby: string; /** Sets or retrieves the MIME type of the object. */ type: string; /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */ useMap: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** @deprecated */ vspace: number; /** Sets or retrieves the width of the object. */ width: string; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; getSVGDocument(): Document | null; reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLObjectElement: { prototype: HTMLObjectElement; new(): HTMLObjectElement; }; /** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */ interface HTMLOptGroupElement extends HTMLElement { disabled: boolean; /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */ label: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLOptGroupElement: { prototype: HTMLOptGroupElement; new(): HTMLOptGroupElement; }; /** <option> elements and inherits all classes and methods of the HTMLElement interface. */ interface HTMLOptionElement extends HTMLElement { /** Sets or retrieves the status of an option. */ defaultSelected: boolean; disabled: boolean; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** Sets or retrieves the ordinal position of an option in a list box. */ readonly index: number; /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */ label: string; /** Sets or retrieves whether the option in the list box is the default item. */ selected: boolean; /** Sets or retrieves the text string specified by the option tag. */ text: string; /** Sets or retrieves the value which is returned to the server when the form control is submitted. */ value: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLOptionElement: { prototype: HTMLOptionElement; new(): HTMLOptionElement; }; /** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */ interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> { /** * Returns the number of elements in the collection. * * When set to a smaller number, truncates the number of option elements in the corresponding container. * * When set to a greater number, adds new blank option elements to that container. */ length: number; /** * Returns the index of the first selected item, if any, or −1 if there is no selected item. * * Can be set, to change the selection. */ selectedIndex: number; /** * Inserts element before the node given by before. * * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element. * * If before is omitted, null, or a number out of range, then element will be added at the end of the list. * * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted. */ add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; /** Removes the item with index index from the collection. */ remove(index: number): void; } declare var HTMLOptionsCollection: { prototype: HTMLOptionsCollection; new(): HTMLOptionsCollection; }; interface HTMLOrSVGElement { autofocus: boolean; readonly dataset: DOMStringMap; nonce?: string; tabIndex: number; blur(): void; focus(options?: FocusOptions): void; } /** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */ interface HTMLOutputElement extends HTMLElement { defaultValue: string; readonly form: HTMLFormElement | null; readonly htmlFor: DOMTokenList; readonly labels: NodeListOf<HTMLLabelElement>; name: string; /** Returns the string "output". */ readonly type: string; readonly validationMessage: string; readonly validity: ValidityState; /** * Returns the element's current value. * * Can be set, to change the value. */ value: string; readonly willValidate: boolean; checkValidity(): boolean; reportValidity(): boolean; setCustomValidity(error: string): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLOutputElement: { prototype: HTMLOutputElement; new(): HTMLOutputElement; }; /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */ interface HTMLParagraphElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLParagraphElement: { prototype: HTMLParagraphElement; new(): HTMLParagraphElement; }; /** * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. * @deprecated */ interface HTMLParamElement extends HTMLElement { /** * Sets or retrieves the name of an input parameter for an element. * @deprecated */ name: string; /** * Sets or retrieves the content type of the resource designated by the value attribute. * @deprecated */ type: string; /** * Sets or retrieves the value of an input parameter for an element. * @deprecated */ value: string; /** * Sets or retrieves the data type of the value attribute. * @deprecated */ valueType: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var HTMLParamElement: { prototype: HTMLParamElement; new(): HTMLParamElement; }; /** A <picture> HTML element. It doesn't implement specific properties or methods. */ interface HTMLPictureElement extends HTMLElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLPictureElement: { prototype: HTMLPictureElement; new(): HTMLPictureElement; }; /** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */ interface HTMLPreElement extends HTMLElement { /** * Sets or gets a value that you can use to implement your own width functionality for the object. * @deprecated */ width: number; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLPreElement: { prototype: HTMLPreElement; new(): HTMLPreElement; }; /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */ interface HTMLProgressElement extends HTMLElement { readonly labels: NodeListOf<HTMLLabelElement>; /** Defines the maximum, or "done" value for a progress element. */ max: number; /** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */ readonly position: number; /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */ value: number; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLProgressElement: { prototype: HTMLProgressElement; new(): HTMLProgressElement; }; /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */ interface HTMLQuoteElement extends HTMLElement { /** Sets or retrieves reference information about the object. */ cite: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLQuoteElement: { prototype: HTMLQuoteElement; new(): HTMLQuoteElement; }; /** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */ interface HTMLScriptElement extends HTMLElement { async: boolean; /** * Sets or retrieves the character set used to encode the object. * @deprecated */ charset: string; crossOrigin: string | null; /** Sets or retrieves the status of the script. */ defer: boolean; /** * Sets or retrieves the event for which the script is written. * @deprecated */ event: string; /** * Sets or retrieves the object that is bound to the event script. * @deprecated */ htmlFor: string; integrity: string; noModule: boolean; referrerPolicy: string; /** Retrieves the URL to an external file that contains the source code or data. */ src: string; /** Retrieves or sets the text of the object as a string. */ text: string; /** Sets or retrieves the MIME type for the associated scripting engine. */ type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLScriptElement: { prototype: HTMLScriptElement; new(): HTMLScriptElement; supports(type: string): boolean; }; /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */ interface HTMLSelectElement extends HTMLElement { autocomplete: string; disabled: boolean; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; readonly labels: NodeListOf<HTMLLabelElement>; /** Sets or retrieves the number of objects in a collection. */ length: number; /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */ multiple: boolean; /** Sets or retrieves the name of the object. */ name: string; /** Returns an HTMLOptionsCollection of the list of options. */ readonly options: HTMLOptionsCollection; /** When present, marks an element that can't be submitted without a value. */ required: boolean; /** Sets or retrieves the index of the selected option in a select object. */ selectedIndex: number; readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>; /** Sets or retrieves the number of rows in the list box. */ size: number; /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */ readonly type: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** Sets or retrieves the value which is returned to the server when the form control is submitted. */ value: string; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** * Adds an element to the areas, controlRange, or options collection. * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. */ add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** * Retrieves a select object or an object from an options collection. * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. */ item(index: number): HTMLOptionElement | null; /** * Retrieves a select object or an object from an options collection. * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. */ namedItem(name: string): HTMLOptionElement | null; /** * Removes an element from the collection. * @param index Number that specifies the zero-based index of the element to remove from the collection. */ remove(): void; remove(index: number): void; reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [name: number]: HTMLOptionElement | HTMLOptGroupElement; } declare var HTMLSelectElement: { prototype: HTMLSelectElement; new(): HTMLSelectElement; }; interface HTMLSlotElement extends HTMLElement { name: string; assign(...nodes: (Element | Text)[]): void; assignedElements(options?: AssignedNodesOptions): Element[]; assignedNodes(options?: AssignedNodesOptions): Node[]; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLSlotElement: { prototype: HTMLSlotElement; new(): HTMLSlotElement; }; /** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */ interface HTMLSourceElement extends HTMLElement { height: number; /** Gets or sets the intended media type of the media source. */ media: string; sizes: string; /** The address or URL of the a media resource that is to be considered. */ src: string; srcset: string; /** Gets or sets the MIME type of a media resource. */ type: string; width: number; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLSourceElement: { prototype: HTMLSourceElement; new(): HTMLSourceElement; }; /** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */ interface HTMLSpanElement extends HTMLElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLSpanElement: { prototype: HTMLSpanElement; new(): HTMLSpanElement; }; /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */ interface HTMLStyleElement extends HTMLElement, LinkStyle { /** Enables or disables the style sheet. */ disabled: boolean; /** Sets or retrieves the media type. */ media: string; /** * Retrieves the CSS language in which the style sheet is written. * @deprecated */ type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLStyleElement: { prototype: HTMLStyleElement; new(): HTMLStyleElement; }; /** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */ interface HTMLTableCaptionElement extends HTMLElement { /** * Sets or retrieves the alignment of the caption or legend. * @deprecated */ align: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableCaptionElement: { prototype: HTMLTableCaptionElement; new(): HTMLTableCaptionElement; }; /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */ interface HTMLTableCellElement extends HTMLElement { /** Sets or retrieves abbreviated text for the object. */ abbr: string; /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; /** * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. * @deprecated */ axis: string; /** @deprecated */ bgColor: string; /** Retrieves the position of the object in the cells collection of a row. */ readonly cellIndex: number; /** @deprecated */ ch: string; /** @deprecated */ chOff: string; /** Sets or retrieves the number columns in the table that the object should span. */ colSpan: number; /** Sets or retrieves a list of header cells that provide information for the object. */ headers: string; /** * Sets or retrieves the height of the object. * @deprecated */ height: string; /** * Sets or retrieves whether the browser automatically performs wordwrap. * @deprecated */ noWrap: boolean; /** Sets or retrieves how many rows in a table the cell should span. */ rowSpan: number; /** Sets or retrieves the group of cells in a table to which the object's information applies. */ scope: string; /** @deprecated */ vAlign: string; /** * Sets or retrieves the width of the object. * @deprecated */ width: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableCellElement: { prototype: HTMLTableCellElement; new(): HTMLTableCellElement; }; /** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */ interface HTMLTableColElement extends HTMLElement { /** * Sets or retrieves the alignment of the object relative to the display or table. * @deprecated */ align: string; /** @deprecated */ ch: string; /** @deprecated */ chOff: string; /** Sets or retrieves the number of columns in the group. */ span: number; /** @deprecated */ vAlign: string; /** * Sets or retrieves the width of the object. * @deprecated */ width: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableColElement: { prototype: HTMLTableColElement; new(): HTMLTableColElement; }; /** @deprecated prefer HTMLTableCellElement */ interface HTMLTableDataCellElement extends HTMLTableCellElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */ interface HTMLTableElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. * @deprecated */ align: string; /** @deprecated */ bgColor: string; /** * Sets or retrieves the width of the border to draw around the object. * @deprecated */ border: string; /** Retrieves the caption object of a table. */ caption: HTMLTableCaptionElement | null; /** * Sets or retrieves the amount of space between the border of the cell and the content of the cell. * @deprecated */ cellPadding: string; /** * Sets or retrieves the amount of space between cells in a table. * @deprecated */ cellSpacing: string; /** * Sets or retrieves the way the border frame around the table is displayed. * @deprecated */ frame: string; /** Sets or retrieves the number of horizontal rows contained in the object. */ readonly rows: HTMLCollectionOf<HTMLTableRowElement>; /** * Sets or retrieves which dividing lines (inner borders) are displayed. * @deprecated */ rules: string; /** * Sets or retrieves a description and/or structure of the object. * @deprecated */ summary: string; /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */ readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>; /** Retrieves the tFoot object of the table. */ tFoot: HTMLTableSectionElement | null; /** Retrieves the tHead object of the table. */ tHead: HTMLTableSectionElement | null; /** * Sets or retrieves the width of the object. * @deprecated */ width: string; /** Creates an empty caption element in the table. */ createCaption(): HTMLTableCaptionElement; /** Creates an empty tBody element in the table. */ createTBody(): HTMLTableSectionElement; /** Creates an empty tFoot element in the table. */ createTFoot(): HTMLTableSectionElement; /** Returns the tHead element object if successful, or null otherwise. */ createTHead(): HTMLTableSectionElement; /** Deletes the caption element and its contents from the table. */ deleteCaption(): void; /** * Removes the specified row (tr) from the element and from the rows collection. * @param index Number that specifies the zero-based position in the rows collection of the row to remove. */ deleteRow(index: number): void; /** Deletes the tFoot element and its contents from the table. */ deleteTFoot(): void; /** Deletes the tHead element and its contents from the table. */ deleteTHead(): void; /** * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ insertRow(index?: number): HTMLTableRowElement; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableElement: { prototype: HTMLTableElement; new(): HTMLTableElement; }; /** @deprecated prefer HTMLTableCellElement */ interface HTMLTableHeaderCellElement extends HTMLTableCellElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */ interface HTMLTableRowElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; /** @deprecated */ bgColor: string; /** Retrieves a collection of all cells in the table row. */ readonly cells: HTMLCollectionOf<HTMLTableCellElement>; /** @deprecated */ ch: string; /** @deprecated */ chOff: string; /** Retrieves the position of the object in the rows collection for the table. */ readonly rowIndex: number; /** Retrieves the position of the object in the collection. */ readonly sectionRowIndex: number; /** @deprecated */ vAlign: string; /** * Removes the specified cell from the table row, as well as from the cells collection. * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. */ deleteCell(index: number): void; /** * Creates a new cell in the table row, and adds the cell to the cells collection. * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. */ insertCell(index?: number): HTMLTableCellElement; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableRowElement: { prototype: HTMLTableRowElement; new(): HTMLTableRowElement; }; /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */ interface HTMLTableSectionElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. * @deprecated */ align: string; /** @deprecated */ ch: string; /** @deprecated */ chOff: string; /** Sets or retrieves the number of horizontal rows contained in the object. */ readonly rows: HTMLCollectionOf<HTMLTableRowElement>; /** @deprecated */ vAlign: string; /** * Removes the specified row (tr) from the element and from the rows collection. * @param index Number that specifies the zero-based position in the rows collection of the row to remove. */ deleteRow(index: number): void; /** * Creates a new row (tr) in the table, and adds the row to the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. */ insertRow(index?: number): HTMLTableRowElement; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTableSectionElement: { prototype: HTMLTableSectionElement; new(): HTMLTableSectionElement; }; /** Enables access to the contents of an HTML <template> element. */ interface HTMLTemplateElement extends HTMLElement { /** Returns the template contents (a DocumentFragment). */ readonly content: DocumentFragment; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTemplateElement: { prototype: HTMLTemplateElement; new(): HTMLTemplateElement; }; /** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */ interface HTMLTextAreaElement extends HTMLElement { autocomplete: string; /** Sets or retrieves the width of the object. */ cols: number; /** Sets or retrieves the initial contents of the object. */ defaultValue: string; dirName: string; disabled: boolean; /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; readonly labels: NodeListOf<HTMLLabelElement>; /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ maxLength: number; minLength: number; /** Sets or retrieves the name of the object. */ name: string; /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ placeholder: string; /** Sets or retrieves the value indicated whether the content of the object is read-only. */ readOnly: boolean; /** When present, marks an element that can't be submitted without a value. */ required: boolean; /** Sets or retrieves the number of horizontal rows contained in the object. */ rows: number; selectionDirection: "forward" | "backward" | "none"; /** Gets or sets the end position or offset of a text selection. */ selectionEnd: number; /** Gets or sets the starting position or offset of a text selection. */ selectionStart: number; readonly textLength: number; /** Retrieves the type of control. */ readonly type: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; /** Retrieves or sets the text in the entry field of the textArea element. */ value: string; /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; /** Sets or retrieves how to handle wordwrapping in the object. */ wrap: string; /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; reportValidity(): boolean; /** Highlights the input area of a form element. */ select(): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. */ setCustomValidity(error: string): void; setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** * Sets the start and end positions of a selection in a text field. * @param start The offset into the text field for the start of the selection. * @param end The offset into the text field for the end of the selection. * @param direction The direction in which the selection is performed. */ setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTextAreaElement: { prototype: HTMLTextAreaElement; new(): HTMLTextAreaElement; }; /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */ interface HTMLTimeElement extends HTMLElement { dateTime: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTimeElement: { prototype: HTMLTimeElement; new(): HTMLTimeElement; }; /** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */ interface HTMLTitleElement extends HTMLElement { /** Retrieves or sets the text of the object as a string. */ text: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTitleElement: { prototype: HTMLTitleElement; new(): HTMLTitleElement; }; /** The HTMLTrackElement */ interface HTMLTrackElement extends HTMLElement { default: boolean; kind: string; label: string; readonly readyState: number; src: string; srclang: string; /** Returns the TextTrack object corresponding to the text track of the track element. */ readonly track: TextTrack; readonly NONE: 0; readonly LOADING: 1; readonly LOADED: 2; readonly ERROR: 3; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLTrackElement: { prototype: HTMLTrackElement; new(): HTMLTrackElement; readonly NONE: 0; readonly LOADING: 1; readonly LOADED: 2; readonly ERROR: 3; }; /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */ interface HTMLUListElement extends HTMLElement { /** @deprecated */ compact: boolean; /** @deprecated */ type: string; addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLUListElement: { prototype: HTMLUListElement; new(): HTMLUListElement; }; /** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */ interface HTMLUnknownElement extends HTMLElement { addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLUnknownElement: { prototype: HTMLUnknownElement; new(): HTMLUnknownElement; }; interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { "enterpictureinpicture": Event; "leavepictureinpicture": Event; } /** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */ interface HTMLVideoElement extends HTMLMediaElement { disablePictureInPicture: boolean; /** Gets or sets the height of the video element. */ height: number; onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */ playsInline: boolean; /** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */ poster: string; /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */ readonly videoHeight: number; /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */ readonly videoWidth: number; /** Gets or sets the width of the video element. */ width: number; cancelVideoFrameCallback(handle: number): void; getVideoPlaybackQuality(): VideoPlaybackQuality; requestPictureInPicture(): Promise<PictureInPictureWindow>; requestVideoFrameCallback(callback: VideoFrameRequestCallback): number; addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLVideoElement: { prototype: HTMLVideoElement; new(): HTMLVideoElement; }; /** Events that fire when the fragment identifier of the URL has changed. */ interface HashChangeEvent extends Event { /** Returns the URL of the session history entry that is now current. */ readonly newURL: string; /** Returns the URL of the session history entry that was previously current. */ readonly oldURL: string; } declare var HashChangeEvent: { prototype: HashChangeEvent; new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; }; /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */ interface Headers { append(name: string, value: string): void; delete(name: string): void; get(name: string): string | null; has(name: string): boolean; set(name: string, value: string): void; forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; } declare var Headers: { prototype: Headers; new(init?: HeadersInit): Headers; }; /** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */ interface History { readonly length: number; scrollRestoration: ScrollRestoration; readonly state: any; back(): void; forward(): void; go(delta?: number): void; pushState(data: any, unused: string, url?: string | URL | null): void; replaceState(data: any, unused: string, url?: string | URL | null): void; } declare var History: { prototype: History; new(): History; }; /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */ interface IDBCursor { /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */ readonly direction: IDBCursorDirection; /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */ readonly key: IDBValidKey; /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */ readonly primaryKey: IDBValidKey; readonly request: IDBRequest; /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */ readonly source: IDBObjectStore | IDBIndex; /** Advances the cursor through the next count records in range. */ advance(count: number): void; /** Advances the cursor to the next record in range. */ continue(key?: IDBValidKey): void; /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */ continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; /** * Delete the record pointed at by the cursor with a new value. * * If successful, request's result will be undefined. */ delete(): IDBRequest<undefined>; /** * Updated the record pointed at by the cursor with a new value. * * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. * * If successful, request's result will be the record's key. */ update(value: any): IDBRequest<IDBValidKey>; } declare var IDBCursor: { prototype: IDBCursor; new(): IDBCursor; }; /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */ interface IDBCursorWithValue extends IDBCursor { /** Returns the cursor's current value. */ readonly value: any; } declare var IDBCursorWithValue: { prototype: IDBCursorWithValue; new(): IDBCursorWithValue; }; interface IDBDatabaseEventMap { "abort": Event; "close": Event; "error": Event; "versionchange": IDBVersionChangeEvent; } /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */ interface IDBDatabase extends EventTarget { /** Returns the name of the database. */ readonly name: string; /** Returns a list of the names of object stores in the database. */ readonly objectStoreNames: DOMStringList; onabort: ((this: IDBDatabase, ev: Event) => any) | null; onclose: ((this: IDBDatabase, ev: Event) => any) | null; onerror: ((this: IDBDatabase, ev: Event) => any) | null; onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; /** Returns the version of the database. */ readonly version: number; /** Closes the connection once all running transactions have finished. */ close(): void; /** * Creates a new object store with the given name and options and returns a new IDBObjectStore. * * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. */ createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore; /** * Deletes the object store with the given name. * * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. */ deleteObjectStore(name: string): void; /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; }; /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */ interface IDBFactory { /** * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. * * Throws a "DataError" DOMException if either input is not a valid key. */ cmp(first: any, second: any): number; databases(): Promise<IDBDatabaseInfo[]>; /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */ deleteDatabase(name: string): IDBOpenDBRequest; /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */ open(name: string, version?: number): IDBOpenDBRequest; } declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; }; /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */ interface IDBIndex { readonly keyPath: string | string[]; readonly multiEntry: boolean; /** Returns the name of the index. */ name: string; /** Returns the IDBObjectStore the index belongs to. */ readonly objectStore: IDBObjectStore; readonly unique: boolean; /** * Retrieves the number of records matching the given key or key range in query. * * If successful, request's result will be the count. */ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; /** * Retrieves the value of the first record matching the given key or key range in query. * * If successful, request's result will be the value, or undefined if there was no matching record. */ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; /** * Retrieves the values of the records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the values. */ getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; /** * Retrieves the keys of records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the keys. */ getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; /** * Retrieves the key of the first record matching the given key or key range in query. * * If successful, request's result will be the key, or undefined if there was no matching record. */ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; /** * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. * * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. */ openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; /** * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. * * If successful, request's result will be an IDBCursor, or null if there were no matching records. */ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; } declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; }; /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */ interface IDBKeyRange { /** Returns lower bound, or undefined if none. */ readonly lower: any; /** Returns true if the lower open flag is set, and false otherwise. */ readonly lowerOpen: boolean; /** Returns upper bound, or undefined if none. */ readonly upper: any; /** Returns true if the upper open flag is set, and false otherwise. */ readonly upperOpen: boolean; /** Returns true if key is included in the range, and false otherwise. */ includes(key: any): boolean; } declare var IDBKeyRange: { prototype: IDBKeyRange; new(): IDBKeyRange; /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */ bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */ lowerBound(lower: any, open?: boolean): IDBKeyRange; /** Returns a new IDBKeyRange spanning only key. */ only(value: any): IDBKeyRange; /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */ upperBound(upper: any, open?: boolean): IDBKeyRange; }; /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */ interface IDBObjectStore { /** Returns true if the store has a key generator, and false otherwise. */ readonly autoIncrement: boolean; /** Returns a list of the names of indexes in the store. */ readonly indexNames: DOMStringList; /** Returns the key path of the store, or null if none. */ readonly keyPath: string | string[]; /** Returns the name of the store. */ name: string; /** Returns the associated transaction. */ readonly transaction: IDBTransaction; /** * Adds or updates a record in store with the given value and key. * * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. * * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. * * If successful, request's result will be the record's key. */ add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; /** * Deletes all records in store. * * If successful, request's result will be undefined. */ clear(): IDBRequest<undefined>; /** * Retrieves the number of records matching the given key or key range in query. * * If successful, request's result will be the count. */ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; /** * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; /** * Deletes records in store with the given key or in the given key range in query. * * If successful, request's result will be undefined. */ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; /** * Deletes the index in store with the given name. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ deleteIndex(name: string): void; /** * Retrieves the value of the first record matching the given key or key range in query. * * If successful, request's result will be the value, or undefined if there was no matching record. */ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; /** * Retrieves the values of the records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the values. */ getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; /** * Retrieves the keys of records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the keys. */ getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; /** * Retrieves the key of the first record matching the given key or key range in query. * * If successful, request's result will be the key, or undefined if there was no matching record. */ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; index(name: string): IDBIndex; /** * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. * * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. */ openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; /** * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. * * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. */ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; /** * Adds or updates a record in store with the given value and key. * * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. * * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. * * If successful, request's result will be the record's key. */ put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; } declare var IDBObjectStore: { prototype: IDBObjectStore; new(): IDBObjectStore; }; interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": IDBVersionChangeEvent; "upgradeneeded": IDBVersionChangeEvent; } /** Also inherits methods from its parents IDBRequest and EventTarget. */ interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBOpenDBRequest: { prototype: IDBOpenDBRequest; new(): IDBOpenDBRequest; }; interface IDBRequestEventMap { "error": Event; "success": Event; } /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */ interface IDBRequest<T = any> extends EventTarget { /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */ readonly error: DOMException | null; onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; /** Returns "pending" until a request is complete, then returns "done". */ readonly readyState: IDBRequestReadyState; /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */ readonly result: T; /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */ readonly source: IDBObjectStore | IDBIndex | IDBCursor; /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */ readonly transaction: IDBTransaction | null; addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBRequest: { prototype: IDBRequest; new(): IDBRequest; }; interface IDBTransactionEventMap { "abort": Event; "complete": Event; "error": Event; } interface IDBTransaction extends EventTarget { /** Returns the transaction's connection. */ readonly db: IDBDatabase; readonly durability: IDBTransactionDurability; /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */ readonly error: DOMException | null; /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */ readonly mode: IDBTransactionMode; /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */ readonly objectStoreNames: DOMStringList; onabort: ((this: IDBTransaction, ev: Event) => any) | null; oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; onerror: ((this: IDBTransaction, ev: Event) => any) | null; /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */ abort(): void; commit(): void; /** Returns an IDBObjectStore in the transaction's scope. */ objectStore(name: string): IDBObjectStore; addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBTransaction: { prototype: IDBTransaction; new(): IDBTransaction; }; /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */ interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; } declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; }; /** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */ interface IIRFilterNode extends AudioNode { getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var IIRFilterNode: { prototype: IIRFilterNode; new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode; }; interface IdleDeadline { readonly didTimeout: boolean; timeRemaining(): DOMHighResTimeStamp; } declare var IdleDeadline: { prototype: IdleDeadline; new(): IdleDeadline; }; interface ImageBitmap { /** Returns the intrinsic height of the image, in CSS pixels. */ readonly height: number; /** Returns the intrinsic width of the image, in CSS pixels. */ readonly width: number; /** Releases imageBitmap's underlying bitmap data. */ close(): void; } declare var ImageBitmap: { prototype: ImageBitmap; new(): ImageBitmap; }; interface ImageBitmapRenderingContext { /** Returns the canvas element that the context is bound to. */ readonly canvas: HTMLCanvasElement | OffscreenCanvas; /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */ transferFromImageBitmap(bitmap: ImageBitmap | null): void; } declare var ImageBitmapRenderingContext: { prototype: ImageBitmapRenderingContext; new(): ImageBitmapRenderingContext; }; /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */ interface ImageData { readonly colorSpace: PredefinedColorSpace; /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */ readonly data: Uint8ClampedArray; /** Returns the actual dimensions of the data in the ImageData object, in pixels. */ readonly height: number; /** Returns the actual dimensions of the data in the ImageData object, in pixels. */ readonly width: number; } declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface InnerHTML { innerHTML: string; } /** Available only in secure contexts. */ interface InputDeviceInfo extends MediaDeviceInfo { } declare var InputDeviceInfo: { prototype: InputDeviceInfo; new(): InputDeviceInfo; }; interface InputEvent extends UIEvent { readonly data: string | null; readonly dataTransfer: DataTransfer | null; readonly inputType: string; readonly isComposing: boolean; getTargetRanges(): StaticRange[]; } declare var InputEvent: { prototype: InputEvent; new(type: string, eventInitDict?: InputEventInit): InputEvent; }; /** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */ interface IntersectionObserver { readonly root: Element | Document | null; readonly rootMargin: string; readonly thresholds: ReadonlyArray<number>; disconnect(): void; observe(target: Element): void; takeRecords(): IntersectionObserverEntry[]; unobserve(target: Element): void; } declare var IntersectionObserver: { prototype: IntersectionObserver; new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver; }; /** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */ interface IntersectionObserverEntry { readonly boundingClientRect: DOMRectReadOnly; readonly intersectionRatio: number; readonly intersectionRect: DOMRectReadOnly; readonly isIntersecting: boolean; readonly rootBounds: DOMRectReadOnly | null; readonly target: Element; readonly time: DOMHighResTimeStamp; } declare var IntersectionObserverEntry: { prototype: IntersectionObserverEntry; new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; }; interface KHR_parallel_shader_compile { readonly COMPLETION_STATUS_KHR: 0x91B1; } /** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */ interface KeyboardEvent extends UIEvent { readonly altKey: boolean; /** @deprecated */ readonly charCode: number; readonly code: string; readonly ctrlKey: boolean; readonly isComposing: boolean; readonly key: string; /** @deprecated */ readonly keyCode: number; readonly location: number; readonly metaKey: boolean; readonly repeat: boolean; readonly shiftKey: boolean; getModifierState(keyArg: string): boolean; /** @deprecated */ initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void; readonly DOM_KEY_LOCATION_STANDARD: 0x00; readonly DOM_KEY_LOCATION_LEFT: 0x01; readonly DOM_KEY_LOCATION_RIGHT: 0x02; readonly DOM_KEY_LOCATION_NUMPAD: 0x03; } declare var KeyboardEvent: { prototype: KeyboardEvent; new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; readonly DOM_KEY_LOCATION_STANDARD: 0x00; readonly DOM_KEY_LOCATION_LEFT: 0x01; readonly DOM_KEY_LOCATION_RIGHT: 0x02; readonly DOM_KEY_LOCATION_NUMPAD: 0x03; }; interface KeyframeEffect extends AnimationEffect { composite: CompositeOperation; iterationComposite: IterationCompositeOperation; pseudoElement: string | null; target: Element | null; getKeyframes(): ComputedKeyframe[]; setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void; } declare var KeyframeEffect: { prototype: KeyframeEffect; new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect; new(source: KeyframeEffect): KeyframeEffect; }; interface LinkStyle { readonly sheet: CSSStyleSheet | null; } /** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */ interface Location { /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */ readonly ancestorOrigins: DOMStringList; /** * Returns the Location object's URL's fragment (includes leading "#" if non-empty). * * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). */ hash: string; /** * Returns the Location object's URL's host and port (if different from the default port for the scheme). * * Can be set, to navigate to the same URL with a changed host and port. */ host: string; /** * Returns the Location object's URL's host. * * Can be set, to navigate to the same URL with a changed host. */ hostname: string; /** * Returns the Location object's URL. * * Can be set, to navigate to the given URL. */ href: string; toString(): string; /** Returns the Location object's URL's origin. */ readonly origin: string; /** * Returns the Location object's URL's path. * * Can be set, to navigate to the same URL with a changed path. */ pathname: string; /** * Returns the Location object's URL's port. * * Can be set, to navigate to the same URL with a changed port. */ port: string; /** * Returns the Location object's URL's scheme. * * Can be set, to navigate to the same URL with a changed scheme. */ protocol: string; /** * Returns the Location object's URL's query (includes leading "?" if non-empty). * * Can be set, to navigate to the same URL with a changed query (ignores leading "?"). */ search: string; /** Navigates to the given URL. */ assign(url: string | URL): void; /** Reloads the current page. */ reload(): void; /** Removes the current page from the session history and navigates to the given URL. */ replace(url: string | URL): void; } declare var Location: { prototype: Location; new(): Location; }; /** Available only in secure contexts. */ interface Lock { readonly mode: LockMode; readonly name: string; } declare var Lock: { prototype: Lock; new(): Lock; }; /** Available only in secure contexts. */ interface LockManager { query(): Promise<LockManagerSnapshot>; request(name: string, callback: LockGrantedCallback): Promise<any>; request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>; } declare var LockManager: { prototype: LockManager; new(): LockManager; }; interface MIDIAccessEventMap { "statechange": Event; } /** Available only in secure contexts. */ interface MIDIAccess extends EventTarget { readonly inputs: MIDIInputMap; onstatechange: ((this: MIDIAccess, ev: Event) => any) | null; readonly outputs: MIDIOutputMap; readonly sysexEnabled: boolean; addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MIDIAccess: { prototype: MIDIAccess; new(): MIDIAccess; }; /** Available only in secure contexts. */ interface MIDIConnectionEvent extends Event { readonly port: MIDIPort; } declare var MIDIConnectionEvent: { prototype: MIDIConnectionEvent; new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent; }; interface MIDIInputEventMap extends MIDIPortEventMap { "midimessage": Event; } /** Available only in secure contexts. */ interface MIDIInput extends MIDIPort { onmidimessage: ((this: MIDIInput, ev: Event) => any) | null; addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MIDIInput: { prototype: MIDIInput; new(): MIDIInput; }; /** Available only in secure contexts. */ interface MIDIInputMap { forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void; } declare var MIDIInputMap: { prototype: MIDIInputMap; new(): MIDIInputMap; }; /** Available only in secure contexts. */ interface MIDIMessageEvent extends Event { readonly data: Uint8Array; } declare var MIDIMessageEvent: { prototype: MIDIMessageEvent; new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent; }; /** Available only in secure contexts. */ interface MIDIOutput extends MIDIPort { send(data: number[], timestamp?: DOMHighResTimeStamp): void; addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MIDIOutput: { prototype: MIDIOutput; new(): MIDIOutput; }; /** Available only in secure contexts. */ interface MIDIOutputMap { forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void; } declare var MIDIOutputMap: { prototype: MIDIOutputMap; new(): MIDIOutputMap; }; interface MIDIPortEventMap { "statechange": Event; } /** Available only in secure contexts. */ interface MIDIPort extends EventTarget { readonly connection: MIDIPortConnectionState; readonly id: string; readonly manufacturer: string | null; readonly name: string | null; onstatechange: ((this: MIDIPort, ev: Event) => any) | null; readonly state: MIDIPortDeviceState; readonly type: MIDIPortType; readonly version: string | null; close(): Promise<MIDIPort>; open(): Promise<MIDIPort>; addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MIDIPort: { prototype: MIDIPort; new(): MIDIPort; }; interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { } interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MathMLElement: { prototype: MathMLElement; new(): MathMLElement; }; interface MediaCapabilities { decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>; encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>; } declare var MediaCapabilities: { prototype: MediaCapabilities; new(): MediaCapabilities; }; /** * The MediaDevicesInfo interface contains information that describes a single media input or output device. * Available only in secure contexts. */ interface MediaDeviceInfo { readonly deviceId: string; readonly groupId: string; readonly kind: MediaDeviceKind; readonly label: string; toJSON(): any; } declare var MediaDeviceInfo: { prototype: MediaDeviceInfo; new(): MediaDeviceInfo; }; interface MediaDevicesEventMap { "devicechange": Event; } /** * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. * Available only in secure contexts. */ interface MediaDevices extends EventTarget { ondevicechange: ((this: MediaDevices, ev: Event) => any) | null; enumerateDevices(): Promise<MediaDeviceInfo[]>; getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>; getSupportedConstraints(): MediaTrackSupportedConstraints; getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>; addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaDevices: { prototype: MediaDevices; new(): MediaDevices; }; /** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */ interface MediaElementAudioSourceNode extends AudioNode { readonly mediaElement: HTMLMediaElement; } declare var MediaElementAudioSourceNode: { prototype: MediaElementAudioSourceNode; new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode; }; interface MediaEncryptedEvent extends Event { readonly initData: ArrayBuffer | null; readonly initDataType: string; } declare var MediaEncryptedEvent: { prototype: MediaEncryptedEvent; new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent; }; /** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */ interface MediaError { readonly code: number; readonly message: string; readonly MEDIA_ERR_ABORTED: 1; readonly MEDIA_ERR_NETWORK: 2; readonly MEDIA_ERR_DECODE: 3; readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; } declare var MediaError: { prototype: MediaError; new(): MediaError; readonly MEDIA_ERR_ABORTED: 1; readonly MEDIA_ERR_NETWORK: 2; readonly MEDIA_ERR_DECODE: 3; readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; }; /** * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session. * Available only in secure contexts. */ interface MediaKeyMessageEvent extends Event { readonly message: ArrayBuffer; readonly messageType: MediaKeyMessageType; } declare var MediaKeyMessageEvent: { prototype: MediaKeyMessageEvent; new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent; }; interface MediaKeySessionEventMap { "keystatuseschange": Event; "message": MediaKeyMessageEvent; } /** * This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). * Available only in secure contexts. */ interface MediaKeySession extends EventTarget { readonly closed: Promise<MediaKeySessionClosedReason>; readonly expiration: number; readonly keyStatuses: MediaKeyStatusMap; onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null; onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null; readonly sessionId: string; close(): Promise<void>; generateRequest(initDataType: string, initData: BufferSource): Promise<void>; load(sessionId: string): Promise<boolean>; remove(): Promise<void>; update(response: BufferSource): Promise<void>; addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaKeySession: { prototype: MediaKeySession; new(): MediaKeySession; }; /** * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs. * Available only in secure contexts. */ interface MediaKeyStatusMap { readonly size: number; get(keyId: BufferSource): MediaKeyStatus | undefined; has(keyId: BufferSource): boolean; forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void; } declare var MediaKeyStatusMap: { prototype: MediaKeyStatusMap; new(): MediaKeyStatusMap; }; /** * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method. * Available only in secure contexts. */ interface MediaKeySystemAccess { readonly keySystem: string; createMediaKeys(): Promise<MediaKeys>; getConfiguration(): MediaKeySystemConfiguration; } declare var MediaKeySystemAccess: { prototype: MediaKeySystemAccess; new(): MediaKeySystemAccess; }; /** * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback. * Available only in secure contexts. */ interface MediaKeys { createSession(sessionType?: MediaKeySessionType): MediaKeySession; setServerCertificate(serverCertificate: BufferSource): Promise<boolean>; } declare var MediaKeys: { prototype: MediaKeys; new(): MediaKeys; }; interface MediaList { readonly length: number; mediaText: string; toString(): string; appendMedium(medium: string): void; deleteMedium(medium: string): void; item(index: number): string | null; [index: number]: string; } declare var MediaList: { prototype: MediaList; new(): MediaList; }; interface MediaMetadata { album: string; artist: string; artwork: ReadonlyArray<MediaImage>; title: string; } declare var MediaMetadata: { prototype: MediaMetadata; new(init?: MediaMetadataInit): MediaMetadata; }; interface MediaQueryListEventMap { "change": MediaQueryListEvent; } /** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */ interface MediaQueryList extends EventTarget { readonly matches: boolean; readonly media: string; onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null; /** @deprecated */ addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; /** @deprecated */ removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaQueryList: { prototype: MediaQueryList; new(): MediaQueryList; }; interface MediaQueryListEvent extends Event { readonly matches: boolean; readonly media: string; } declare var MediaQueryListEvent: { prototype: MediaQueryListEvent; new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent; }; interface MediaRecorderEventMap { "dataavailable": BlobEvent; "error": Event; "pause": Event; "resume": Event; "start": Event; "stop": Event; } interface MediaRecorder extends EventTarget { readonly audioBitsPerSecond: number; readonly mimeType: string; ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null; onerror: ((this: MediaRecorder, ev: Event) => any) | null; onpause: ((this: MediaRecorder, ev: Event) => any) | null; onresume: ((this: MediaRecorder, ev: Event) => any) | null; onstart: ((this: MediaRecorder, ev: Event) => any) | null; onstop: ((this: MediaRecorder, ev: Event) => any) | null; readonly state: RecordingState; readonly stream: MediaStream; readonly videoBitsPerSecond: number; pause(): void; requestData(): void; resume(): void; start(timeslice?: number): void; stop(): void; addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaRecorder: { prototype: MediaRecorder; new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder; isTypeSupported(type: string): boolean; }; interface MediaSession { metadata: MediaMetadata | null; playbackState: MediaSessionPlaybackState; setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void; setPositionState(state?: MediaPositionState): void; } declare var MediaSession: { prototype: MediaSession; new(): MediaSession; }; interface MediaSourceEventMap { "sourceclose": Event; "sourceended": Event; "sourceopen": Event; } /** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */ interface MediaSource extends EventTarget { readonly activeSourceBuffers: SourceBufferList; duration: number; onsourceclose: ((this: MediaSource, ev: Event) => any) | null; onsourceended: ((this: MediaSource, ev: Event) => any) | null; onsourceopen: ((this: MediaSource, ev: Event) => any) | null; readonly readyState: ReadyState; readonly sourceBuffers: SourceBufferList; addSourceBuffer(type: string): SourceBuffer; clearLiveSeekableRange(): void; endOfStream(error?: EndOfStreamError): void; removeSourceBuffer(sourceBuffer: SourceBuffer): void; setLiveSeekableRange(start: number, end: number): void; addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaSource: { prototype: MediaSource; new(): MediaSource; isTypeSupported(type: string): boolean; }; interface MediaStreamEventMap { "addtrack": MediaStreamTrackEvent; "removetrack": MediaStreamTrackEvent; } /** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */ interface MediaStream extends EventTarget { readonly active: boolean; readonly id: string; onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; addTrack(track: MediaStreamTrack): void; clone(): MediaStream; getAudioTracks(): MediaStreamTrack[]; getTrackById(trackId: string): MediaStreamTrack | null; getTracks(): MediaStreamTrack[]; getVideoTracks(): MediaStreamTrack[]; removeTrack(track: MediaStreamTrack): void; addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaStream: { prototype: MediaStream; new(): MediaStream; new(stream: MediaStream): MediaStream; new(tracks: MediaStreamTrack[]): MediaStream; }; interface MediaStreamAudioDestinationNode extends AudioNode { readonly stream: MediaStream; } declare var MediaStreamAudioDestinationNode: { prototype: MediaStreamAudioDestinationNode; new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode; }; /** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */ interface MediaStreamAudioSourceNode extends AudioNode { readonly mediaStream: MediaStream; } declare var MediaStreamAudioSourceNode: { prototype: MediaStreamAudioSourceNode; new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode; }; interface MediaStreamTrackEventMap { "ended": Event; "mute": Event; "unmute": Event; } /** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */ interface MediaStreamTrack extends EventTarget { contentHint: string; enabled: boolean; readonly id: string; readonly kind: string; readonly label: string; readonly muted: boolean; onended: ((this: MediaStreamTrack, ev: Event) => any) | null; onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; readonly readyState: MediaStreamTrackState; applyConstraints(constraints?: MediaTrackConstraints): Promise<void>; clone(): MediaStreamTrack; getCapabilities(): MediaTrackCapabilities; getConstraints(): MediaTrackConstraints; getSettings(): MediaTrackSettings; stop(): void; addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MediaStreamTrack: { prototype: MediaStreamTrack; new(): MediaStreamTrack; }; /** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */ interface MediaStreamTrackEvent extends Event { readonly track: MediaStreamTrack; } declare var MediaStreamTrackEvent: { prototype: MediaStreamTrackEvent; new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent; }; /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */ interface MessageChannel { /** Returns the first MessagePort object. */ readonly port1: MessagePort; /** Returns the second MessagePort object. */ readonly port2: MessagePort; } declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; }; /** A message received by a target object. */ interface MessageEvent<T = any> extends Event { /** Returns the data of the message. */ readonly data: T; /** Returns the last event ID string, for server-sent events. */ readonly lastEventId: string; /** Returns the origin of the message, for server-sent events and cross-document messaging. */ readonly origin: string; /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */ readonly ports: ReadonlyArray<MessagePort>; /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */ readonly source: MessageEventSource | null; /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; } declare var MessageEvent: { prototype: MessageEvent; new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>; }; interface MessagePortEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */ interface MessagePort extends EventTarget { onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; /** Disconnects the port, so that it is no longer active. */ close(): void; /** * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. * * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. */ postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; /** Begins dispatching messages received on the port. */ start(): void; addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MessagePort: { prototype: MessagePort; new(): MessagePort; }; /** * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. * @deprecated */ interface MimeType { /** * Returns the MIME type's description. * @deprecated */ readonly description: string; /** * Returns the Plugin object that implements this MIME type. * @deprecated */ readonly enabledPlugin: Plugin; /** * Returns the MIME type's typical file extensions, in a comma-separated list. * @deprecated */ readonly suffixes: string; /** * Returns the MIME type. * @deprecated */ readonly type: string; } /** @deprecated */ declare var MimeType: { prototype: MimeType; new(): MimeType; }; /** * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. * @deprecated */ interface MimeTypeArray { /** @deprecated */ readonly length: number; /** @deprecated */ item(index: number): MimeType | null; /** @deprecated */ namedItem(name: string): MimeType | null; [index: number]: MimeType; } /** @deprecated */ declare var MimeTypeArray: { prototype: MimeTypeArray; new(): MimeTypeArray; }; /** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */ interface MouseEvent extends UIEvent { readonly altKey: boolean; readonly button: number; readonly buttons: number; readonly clientX: number; readonly clientY: number; readonly ctrlKey: boolean; readonly metaKey: boolean; readonly movementX: number; readonly movementY: number; readonly offsetX: number; readonly offsetY: number; readonly pageX: number; readonly pageY: number; readonly relatedTarget: EventTarget | null; readonly screenX: number; readonly screenY: number; readonly shiftKey: boolean; readonly x: number; readonly y: number; getModifierState(keyArg: string): boolean; /** @deprecated */ initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void; } declare var MouseEvent: { prototype: MouseEvent; new(type: string, eventInitDict?: MouseEventInit): MouseEvent; }; /** * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface. */ interface MutationEvent extends Event { /** @deprecated */ readonly attrChange: number; /** @deprecated */ readonly attrName: string; /** @deprecated */ readonly newValue: string; /** @deprecated */ readonly prevValue: string; /** @deprecated */ readonly relatedNode: Node | null; /** @deprecated */ initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void; readonly MODIFICATION: 1; readonly ADDITION: 2; readonly REMOVAL: 3; } /** @deprecated */ declare var MutationEvent: { prototype: MutationEvent; new(): MutationEvent; readonly MODIFICATION: 1; readonly ADDITION: 2; readonly REMOVAL: 3; }; /** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */ interface MutationObserver { /** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */ disconnect(): void; /** * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). * * The options argument allows for setting mutation observation options via object members. */ observe(target: Node, options?: MutationObserverInit): void; /** Empties the record queue and returns what was in there. */ takeRecords(): MutationRecord[]; } declare var MutationObserver: { prototype: MutationObserver; new(callback: MutationCallback): MutationObserver; }; /** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */ interface MutationRecord { /** Return the nodes added and removed respectively. */ readonly addedNodes: NodeList; /** Returns the local name of the changed attribute, and null otherwise. */ readonly attributeName: string | null; /** Returns the namespace of the changed attribute, and null otherwise. */ readonly attributeNamespace: string | null; /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */ readonly nextSibling: Node | null; /** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */ readonly oldValue: string | null; /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */ readonly previousSibling: Node | null; /** Return the nodes added and removed respectively. */ readonly removedNodes: NodeList; /** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */ readonly target: Node; /** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */ readonly type: MutationRecordType; } declare var MutationRecord: { prototype: MutationRecord; new(): MutationRecord; }; /** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */ interface NamedNodeMap { readonly length: number; getNamedItem(qualifiedName: string): Attr | null; getNamedItemNS(namespace: string | null, localName: string): Attr | null; item(index: number): Attr | null; removeNamedItem(qualifiedName: string): Attr; removeNamedItemNS(namespace: string | null, localName: string): Attr; setNamedItem(attr: Attr): Attr | null; setNamedItemNS(attr: Attr): Attr | null; [index: number]: Attr; } declare var NamedNodeMap: { prototype: NamedNodeMap; new(): NamedNodeMap; }; /** Available only in secure contexts. */ interface NavigationPreloadManager { disable(): Promise<void>; enable(): Promise<void>; getState(): Promise<NavigationPreloadState>; setHeaderValue(value: string): Promise<void>; } declare var NavigationPreloadManager: { prototype: NavigationPreloadManager; new(): NavigationPreloadManager; }; /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage { /** Available only in secure contexts. */ readonly clipboard: Clipboard; /** Available only in secure contexts. */ readonly credentials: CredentialsContainer; readonly doNotTrack: string | null; readonly geolocation: Geolocation; readonly maxTouchPoints: number; readonly mediaCapabilities: MediaCapabilities; /** Available only in secure contexts. */ readonly mediaDevices: MediaDevices; readonly mediaSession: MediaSession; readonly permissions: Permissions; /** Available only in secure contexts. */ readonly serviceWorker: ServiceWorkerContainer; /** Available only in secure contexts. */ canShare(data?: ShareData): boolean; getGamepads(): (Gamepad | null)[]; /** Available only in secure contexts. */ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>; /** Available only in secure contexts. */ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>; sendBeacon(url: string | URL, data?: BodyInit | null): boolean; /** Available only in secure contexts. */ share(data?: ShareData): Promise<void>; vibrate(pattern: VibratePattern): boolean; } declare var Navigator: { prototype: Navigator; new(): Navigator; }; interface NavigatorAutomationInformation { readonly webdriver: boolean; } interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } interface NavigatorContentUtils { /** Available only in secure contexts. */ registerProtocolHandler(scheme: string, url: string | URL): void; } interface NavigatorCookies { readonly cookieEnabled: boolean; } interface NavigatorID { /** @deprecated */ readonly appCodeName: string; /** @deprecated */ readonly appName: string; /** @deprecated */ readonly appVersion: string; /** @deprecated */ readonly platform: string; /** @deprecated */ readonly product: string; /** @deprecated */ readonly productSub: string; readonly userAgent: string; /** @deprecated */ readonly vendor: string; /** @deprecated */ readonly vendorSub: string; } interface NavigatorLanguage { readonly language: string; readonly languages: ReadonlyArray<string>; } /** Available only in secure contexts. */ interface NavigatorLocks { readonly locks: LockManager; } interface NavigatorOnLine { readonly onLine: boolean; } interface NavigatorPlugins { /** @deprecated */ readonly mimeTypes: MimeTypeArray; readonly pdfViewerEnabled: boolean; /** @deprecated */ readonly plugins: PluginArray; /** @deprecated */ javaEnabled(): boolean; } /** Available only in secure contexts. */ interface NavigatorStorage { readonly storage: StorageManager; } /** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */ interface Node extends EventTarget { /** Returns node's node document's document base URL. */ readonly baseURI: string; /** Returns the children. */ readonly childNodes: NodeListOf<ChildNode>; /** Returns the first child. */ readonly firstChild: ChildNode | null; /** Returns true if node is connected and false otherwise. */ readonly isConnected: boolean; /** Returns the last child. */ readonly lastChild: ChildNode | null; /** Returns the next sibling. */ readonly nextSibling: ChildNode | null; /** Returns a string appropriate for the type of node. */ readonly nodeName: string; /** Returns the type of node. */ readonly nodeType: number; nodeValue: string | null; /** Returns the node document. Returns null for documents. */ readonly ownerDocument: Document | null; /** Returns the parent element. */ readonly parentElement: HTMLElement | null; /** Returns the parent. */ readonly parentNode: ParentNode | null; /** Returns the previous sibling. */ readonly previousSibling: ChildNode | null; textContent: string | null; appendChild<T extends Node>(node: T): T; /** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */ cloneNode(deep?: boolean): Node; /** Returns a bitmask indicating the position of other relative to node. */ compareDocumentPosition(other: Node): number; /** Returns true if other is an inclusive descendant of node, and false otherwise. */ contains(other: Node | null): boolean; /** Returns node's root. */ getRootNode(options?: GetRootNodeOptions): Node; /** Returns whether node has children. */ hasChildNodes(): boolean; insertBefore<T extends Node>(node: T, child: Node | null): T; isDefaultNamespace(namespace: string | null): boolean; /** Returns whether node and otherNode have the same properties. */ isEqualNode(otherNode: Node | null): boolean; isSameNode(otherNode: Node | null): boolean; lookupNamespaceURI(prefix: string | null): string | null; lookupPrefix(namespace: string | null): string | null; /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */ normalize(): void; removeChild<T extends Node>(child: T): T; replaceChild<T extends Node>(node: Node, child: T): T; /** node is an element. */ readonly ELEMENT_NODE: 1; readonly ATTRIBUTE_NODE: 2; /** node is a Text node. */ readonly TEXT_NODE: 3; /** node is a CDATASection node. */ readonly CDATA_SECTION_NODE: 4; readonly ENTITY_REFERENCE_NODE: 5; readonly ENTITY_NODE: 6; /** node is a ProcessingInstruction node. */ readonly PROCESSING_INSTRUCTION_NODE: 7; /** node is a Comment node. */ readonly COMMENT_NODE: 8; /** node is a document. */ readonly DOCUMENT_NODE: 9; /** node is a doctype. */ readonly DOCUMENT_TYPE_NODE: 10; /** node is a DocumentFragment node. */ readonly DOCUMENT_FRAGMENT_NODE: 11; readonly NOTATION_NODE: 12; /** Set when node and other are not in the same tree. */ readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; /** Set when other is preceding node. */ readonly DOCUMENT_POSITION_PRECEDING: 0x02; /** Set when other is following node. */ readonly DOCUMENT_POSITION_FOLLOWING: 0x04; /** Set when other is an ancestor of node. */ readonly DOCUMENT_POSITION_CONTAINS: 0x08; /** Set when other is a descendant of node. */ readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; } declare var Node: { prototype: Node; new(): Node; /** node is an element. */ readonly ELEMENT_NODE: 1; readonly ATTRIBUTE_NODE: 2; /** node is a Text node. */ readonly TEXT_NODE: 3; /** node is a CDATASection node. */ readonly CDATA_SECTION_NODE: 4; readonly ENTITY_REFERENCE_NODE: 5; readonly ENTITY_NODE: 6; /** node is a ProcessingInstruction node. */ readonly PROCESSING_INSTRUCTION_NODE: 7; /** node is a Comment node. */ readonly COMMENT_NODE: 8; /** node is a document. */ readonly DOCUMENT_NODE: 9; /** node is a doctype. */ readonly DOCUMENT_TYPE_NODE: 10; /** node is a DocumentFragment node. */ readonly DOCUMENT_FRAGMENT_NODE: 11; readonly NOTATION_NODE: 12; /** Set when node and other are not in the same tree. */ readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; /** Set when other is preceding node. */ readonly DOCUMENT_POSITION_PRECEDING: 0x02; /** Set when other is following node. */ readonly DOCUMENT_POSITION_FOLLOWING: 0x04; /** Set when other is an ancestor of node. */ readonly DOCUMENT_POSITION_CONTAINS: 0x08; /** Set when other is a descendant of node. */ readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; }; /** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */ interface NodeIterator { readonly filter: NodeFilter | null; readonly pointerBeforeReferenceNode: boolean; readonly referenceNode: Node; readonly root: Node; readonly whatToShow: number; /** @deprecated */ detach(): void; nextNode(): Node | null; previousNode(): Node | null; } declare var NodeIterator: { prototype: NodeIterator; new(): NodeIterator; }; /** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */ interface NodeList { /** Returns the number of nodes in the collection. */ readonly length: number; /** Returns the node with index index from the collection. The nodes are sorted in tree order. */ item(index: number): Node | null; /** * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void; [index: number]: Node; } declare var NodeList: { prototype: NodeList; new(): NodeList; }; interface NodeListOf<TNode extends Node> extends NodeList { item(index: number): TNode; /** * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void; [index: number]: TNode; } interface NonDocumentTypeChildNode { /** Returns the first following sibling that is an element, and null otherwise. */ readonly nextElementSibling: Element | null; /** Returns the first preceding sibling that is an element, and null otherwise. */ readonly previousElementSibling: Element | null; } interface NonElementParentNode { /** Returns the first element within node's descendants whose ID is elementId. */ getElementById(elementId: string): Element | null; } interface NotificationEventMap { "click": Event; "close": Event; "error": Event; "show": Event; } /** This Notifications API interface is used to configure and display desktop notifications to the user. */ interface Notification extends EventTarget { readonly body: string; readonly data: any; readonly dir: NotificationDirection; readonly icon: string; readonly lang: string; onclick: ((this: Notification, ev: Event) => any) | null; onclose: ((this: Notification, ev: Event) => any) | null; onerror: ((this: Notification, ev: Event) => any) | null; onshow: ((this: Notification, ev: Event) => any) | null; readonly tag: string; readonly title: string; close(): void; addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Notification: { prototype: Notification; new(title: string, options?: NotificationOptions): Notification; readonly permission: NotificationPermission; requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>; }; interface OES_draw_buffers_indexed { blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void; blendEquationiOES(buf: GLuint, mode: GLenum): void; blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void; disableiOES(target: GLenum, index: GLuint): void; enableiOES(target: GLenum, index: GLuint): void; } /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */ interface OES_element_index_uint { } interface OES_fbo_render_mipmap { } /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */ interface OES_standard_derivatives { readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B; } /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */ interface OES_texture_float { } /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */ interface OES_texture_float_linear { } /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */ interface OES_texture_half_float { readonly HALF_FLOAT_OES: 0x8D61; } /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */ interface OES_texture_half_float_linear { } interface OES_vertex_array_object { bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; createVertexArrayOES(): WebGLVertexArrayObjectOES | null; deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; readonly VERTEX_ARRAY_BINDING_OES: 0x85B5; } interface OVR_multiview2 { framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; readonly MAX_VIEWS_OVR: 0x9631; readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; } /** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */ interface OfflineAudioCompletionEvent extends Event { readonly renderedBuffer: AudioBuffer; } declare var OfflineAudioCompletionEvent: { prototype: OfflineAudioCompletionEvent; new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent; }; interface OfflineAudioContextEventMap extends BaseAudioContextEventMap { "complete": OfflineAudioCompletionEvent; } /** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */ interface OfflineAudioContext extends BaseAudioContext { readonly length: number; oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null; resume(): Promise<void>; startRendering(): Promise<AudioBuffer>; suspend(suspendTime: number): Promise<void>; addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var OfflineAudioContext: { prototype: OfflineAudioContext; new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext; new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; }; interface OffscreenCanvasEventMap { "contextlost": Event; "contextrestored": Event; } interface OffscreenCanvas extends EventTarget { /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. * * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). */ height: number; oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. * * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). */ width: number; /** * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. * * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. */ convertToBlob(options?: ImageEncodeOptions): Promise<Blob>; /** * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. * * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] * * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). */ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null; getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null; getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */ transferToImageBitmap(): ImageBitmap; addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var OffscreenCanvas: { prototype: OffscreenCanvas; new(width: number, height: number): OffscreenCanvas; }; interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { readonly canvas: OffscreenCanvas; commit(): void; } declare var OffscreenCanvasRenderingContext2D: { prototype: OffscreenCanvasRenderingContext2D; new(): OffscreenCanvasRenderingContext2D; }; /** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */ interface OscillatorNode extends AudioScheduledSourceNode { readonly detune: AudioParam; readonly frequency: AudioParam; type: OscillatorType; setPeriodicWave(periodicWave: PeriodicWave): void; addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var OscillatorNode: { prototype: OscillatorNode; new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode; }; interface OverconstrainedError extends Error { readonly constraint: string; } declare var OverconstrainedError: { prototype: OverconstrainedError; new(constraint: string, message?: string): OverconstrainedError; }; /** The PageTransitionEvent is fired when a document is being loaded or unloaded. */ interface PageTransitionEvent extends Event { /** * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true. * * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page. * * Things that can cause the page to be unsalvageable include: * * The user agent decided to not keep the Document alive in a session history entry after unload * Having iframes that are not salvageable * Active WebSocket objects * Aborting a Document */ readonly persisted: boolean; } declare var PageTransitionEvent: { prototype: PageTransitionEvent; new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent; }; /** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */ interface PannerNode extends AudioNode { coneInnerAngle: number; coneOuterAngle: number; coneOuterGain: number; distanceModel: DistanceModelType; maxDistance: number; readonly orientationX: AudioParam; readonly orientationY: AudioParam; readonly orientationZ: AudioParam; panningModel: PanningModelType; readonly positionX: AudioParam; readonly positionY: AudioParam; readonly positionZ: AudioParam; refDistance: number; rolloffFactor: number; /** @deprecated */ setOrientation(x: number, y: number, z: number): void; /** @deprecated */ setPosition(x: number, y: number, z: number): void; } declare var PannerNode: { prototype: PannerNode; new(context: BaseAudioContext, options?: PannerOptions): PannerNode; }; interface ParentNode extends Node { readonly childElementCount: number; /** Returns the child elements. */ readonly children: HTMLCollection; /** Returns the first child that is an element, and null otherwise. */ readonly firstElementChild: Element | null; /** Returns the last child that is an element, and null otherwise. */ readonly lastElementChild: Element | null; /** * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ append(...nodes: (Node | string)[]): void; /** * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ prepend(...nodes: (Node | string)[]): void; /** Returns the first element that is a descendant of node that matches selectors. */ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null; querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null; /** @deprecated */ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null; querySelector<E extends Element = Element>(selectors: string): E | null; /** Returns all element descendants of node that match selectors. */ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>; querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>; querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>; /** @deprecated */ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>; querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>; /** * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. */ replaceChildren(...nodes: (Node | string)[]): void; } /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */ interface Path2D extends CanvasPath { /** Adds to the path the path given by the argument. */ addPath(path: Path2D, transform?: DOMMatrix2DInit): void; } declare var Path2D: { prototype: Path2D; new(path?: Path2D | string): Path2D; }; /** Available only in secure contexts. */ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { readonly methodDetails: any; readonly methodName: string; } declare var PaymentMethodChangeEvent: { prototype: PaymentMethodChangeEvent; new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent; }; interface PaymentRequestEventMap { "paymentmethodchange": Event; } /** * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. * Available only in secure contexts. */ interface PaymentRequest extends EventTarget { readonly id: string; onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null; abort(): Promise<void>; canMakePayment(): Promise<boolean>; show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>; addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var PaymentRequest: { prototype: PaymentRequest; new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest; }; /** * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. * Available only in secure contexts. */ interface PaymentRequestUpdateEvent extends Event { updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void; } declare var PaymentRequestUpdateEvent: { prototype: PaymentRequestUpdateEvent; new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; }; /** * This Payment Request API interface is returned after a user selects a payment method and approves a payment request. * Available only in secure contexts. */ interface PaymentResponse extends EventTarget { readonly details: any; readonly methodName: string; readonly requestId: string; complete(result?: PaymentComplete): Promise<void>; retry(errorFields?: PaymentValidationErrors): Promise<void>; toJSON(): any; } declare var PaymentResponse: { prototype: PaymentResponse; new(): PaymentResponse; }; interface PerformanceEventMap { "resourcetimingbufferfull": Event; } /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */ interface Performance extends EventTarget { readonly eventCounts: EventCounts; /** @deprecated */ readonly navigation: PerformanceNavigation; onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; readonly timeOrigin: DOMHighResTimeStamp; /** @deprecated */ readonly timing: PerformanceTiming; clearMarks(markName?: string): void; clearMeasures(measureName?: string): void; clearResourceTimings(): void; getEntries(): PerformanceEntryList; getEntriesByName(name: string, type?: string): PerformanceEntryList; getEntriesByType(type: string): PerformanceEntryList; mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure; now(): DOMHighResTimeStamp; setResourceTimingBufferSize(maxSize: number): void; toJSON(): any; addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Performance: { prototype: Performance; new(): Performance; }; /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */ interface PerformanceEntry { readonly duration: DOMHighResTimeStamp; readonly entryType: string; readonly name: string; readonly startTime: DOMHighResTimeStamp; toJSON(): any; } declare var PerformanceEntry: { prototype: PerformanceEntry; new(): PerformanceEntry; }; interface PerformanceEventTiming extends PerformanceEntry { readonly cancelable: boolean; readonly processingEnd: DOMHighResTimeStamp; readonly processingStart: DOMHighResTimeStamp; readonly target: Node | null; toJSON(): any; } declare var PerformanceEventTiming: { prototype: PerformanceEventTiming; new(): PerformanceEventTiming; }; /** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */ interface PerformanceMark extends PerformanceEntry { readonly detail: any; } declare var PerformanceMark: { prototype: PerformanceMark; new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; }; /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */ interface PerformanceMeasure extends PerformanceEntry { readonly detail: any; } declare var PerformanceMeasure: { prototype: PerformanceMeasure; new(): PerformanceMeasure; }; /** * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead. */ interface PerformanceNavigation { /** @deprecated */ readonly redirectCount: number; /** @deprecated */ readonly type: number; /** @deprecated */ toJSON(): any; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; readonly TYPE_RESERVED: 255; } /** @deprecated */ declare var PerformanceNavigation: { prototype: PerformanceNavigation; new(): PerformanceNavigation; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; readonly TYPE_RESERVED: 255; }; /** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */ interface PerformanceNavigationTiming extends PerformanceResourceTiming { readonly domComplete: DOMHighResTimeStamp; readonly domContentLoadedEventEnd: DOMHighResTimeStamp; readonly domContentLoadedEventStart: DOMHighResTimeStamp; readonly domInteractive: DOMHighResTimeStamp; readonly loadEventEnd: DOMHighResTimeStamp; readonly loadEventStart: DOMHighResTimeStamp; readonly redirectCount: number; readonly type: NavigationTimingType; readonly unloadEventEnd: DOMHighResTimeStamp; readonly unloadEventStart: DOMHighResTimeStamp; toJSON(): any; } declare var PerformanceNavigationTiming: { prototype: PerformanceNavigationTiming; new(): PerformanceNavigationTiming; }; interface PerformanceObserver { disconnect(): void; observe(options?: PerformanceObserverInit): void; takeRecords(): PerformanceEntryList; } declare var PerformanceObserver: { prototype: PerformanceObserver; new(callback: PerformanceObserverCallback): PerformanceObserver; readonly supportedEntryTypes: ReadonlyArray<string>; }; interface PerformanceObserverEntryList { getEntries(): PerformanceEntryList; getEntriesByName(name: string, type?: string): PerformanceEntryList; getEntriesByType(type: string): PerformanceEntryList; } declare var PerformanceObserverEntryList: { prototype: PerformanceObserverEntryList; new(): PerformanceObserverEntryList; }; interface PerformancePaintTiming extends PerformanceEntry { } declare var PerformancePaintTiming: { prototype: PerformancePaintTiming; new(): PerformancePaintTiming; }; /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */ interface PerformanceResourceTiming extends PerformanceEntry { readonly connectEnd: DOMHighResTimeStamp; readonly connectStart: DOMHighResTimeStamp; readonly decodedBodySize: number; readonly domainLookupEnd: DOMHighResTimeStamp; readonly domainLookupStart: DOMHighResTimeStamp; readonly encodedBodySize: number; readonly fetchStart: DOMHighResTimeStamp; readonly initiatorType: string; readonly nextHopProtocol: string; readonly redirectEnd: DOMHighResTimeStamp; readonly redirectStart: DOMHighResTimeStamp; readonly requestStart: DOMHighResTimeStamp; readonly responseEnd: DOMHighResTimeStamp; readonly responseStart: DOMHighResTimeStamp; readonly secureConnectionStart: DOMHighResTimeStamp; readonly serverTiming: ReadonlyArray<PerformanceServerTiming>; readonly transferSize: number; readonly workerStart: DOMHighResTimeStamp; toJSON(): any; } declare var PerformanceResourceTiming: { prototype: PerformanceResourceTiming; new(): PerformanceResourceTiming; }; interface PerformanceServerTiming { readonly description: string; readonly duration: DOMHighResTimeStamp; readonly name: string; toJSON(): any; } declare var PerformanceServerTiming: { prototype: PerformanceServerTiming; new(): PerformanceServerTiming; }; /** * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead. */ interface PerformanceTiming { /** @deprecated */ readonly connectEnd: number; /** @deprecated */ readonly connectStart: number; /** @deprecated */ readonly domComplete: number; /** @deprecated */ readonly domContentLoadedEventEnd: number; /** @deprecated */ readonly domContentLoadedEventStart: number; /** @deprecated */ readonly domInteractive: number; /** @deprecated */ readonly domLoading: number; /** @deprecated */ readonly domainLookupEnd: number; /** @deprecated */ readonly domainLookupStart: number; /** @deprecated */ readonly fetchStart: number; /** @deprecated */ readonly loadEventEnd: number; /** @deprecated */ readonly loadEventStart: number; /** @deprecated */ readonly navigationStart: number; /** @deprecated */ readonly redirectEnd: number; /** @deprecated */ readonly redirectStart: number; /** @deprecated */ readonly requestStart: number; /** @deprecated */ readonly responseEnd: number; /** @deprecated */ readonly responseStart: number; /** @deprecated */ readonly secureConnectionStart: number; /** @deprecated */ readonly unloadEventEnd: number; /** @deprecated */ readonly unloadEventStart: number; /** @deprecated */ toJSON(): any; } /** @deprecated */ declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; }; /** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */ interface PeriodicWave { } declare var PeriodicWave: { prototype: PeriodicWave; new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave; }; interface PermissionStatusEventMap { "change": Event; } interface PermissionStatus extends EventTarget { readonly name: string; onchange: ((this: PermissionStatus, ev: Event) => any) | null; readonly state: PermissionState; addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var PermissionStatus: { prototype: PermissionStatus; new(): PermissionStatus; }; interface Permissions { query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>; } declare var Permissions: { prototype: Permissions; new(): Permissions; }; interface PictureInPictureEvent extends Event { readonly pictureInPictureWindow: PictureInPictureWindow; } declare var PictureInPictureEvent: { prototype: PictureInPictureEvent; new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent; }; interface PictureInPictureWindowEventMap { "resize": Event; } interface PictureInPictureWindow extends EventTarget { readonly height: number; onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null; readonly width: number; addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var PictureInPictureWindow: { prototype: PictureInPictureWindow; new(): PictureInPictureWindow; }; /** * Provides information about a browser plugin. * @deprecated */ interface Plugin { /** * Returns the plugin's description. * @deprecated */ readonly description: string; /** * Returns the plugin library's filename, if applicable on the current platform. * @deprecated */ readonly filename: string; /** * Returns the number of MIME types, represented by MimeType objects, supported by the plugin. * @deprecated */ readonly length: number; /** * Returns the plugin's name. * @deprecated */ readonly name: string; /** * Returns the specified MimeType object. * @deprecated */ item(index: number): MimeType | null; /** @deprecated */ namedItem(name: string): MimeType | null; [index: number]: MimeType; } /** @deprecated */ declare var Plugin: { prototype: Plugin; new(): Plugin; }; /** * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. * @deprecated */ interface PluginArray { /** @deprecated */ readonly length: number; /** @deprecated */ item(index: number): Plugin | null; /** @deprecated */ namedItem(name: string): Plugin | null; /** @deprecated */ refresh(): void; [index: number]: Plugin; } /** @deprecated */ declare var PluginArray: { prototype: PluginArray; new(): PluginArray; }; /** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */ interface PointerEvent extends MouseEvent { readonly height: number; readonly isPrimary: boolean; readonly pointerId: number; readonly pointerType: string; readonly pressure: number; readonly tangentialPressure: number; readonly tiltX: number; readonly tiltY: number; readonly twist: number; readonly width: number; /** Available only in secure contexts. */ getCoalescedEvents(): PointerEvent[]; getPredictedEvents(): PointerEvent[]; } declare var PointerEvent: { prototype: PointerEvent; new(type: string, eventInitDict?: PointerEventInit): PointerEvent; }; /** PopStateEvent is an event handler for the popstate event on the window. */ interface PopStateEvent extends Event { /** Returns a copy of the information that was provided to pushState() or replaceState(). */ readonly state: any; } declare var PopStateEvent: { prototype: PopStateEvent; new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent; }; /** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */ interface ProcessingInstruction extends CharacterData, LinkStyle { readonly ownerDocument: Document; readonly target: string; } declare var ProcessingInstruction: { prototype: ProcessingInstruction; new(): ProcessingInstruction; }; /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly target: T | null; readonly total: number; } declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; }; interface PromiseRejectionEvent extends Event { readonly promise: Promise<any>; readonly reason: any; } declare var PromiseRejectionEvent: { prototype: PromiseRejectionEvent; new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; }; /** Available only in secure contexts. */ interface PublicKeyCredential extends Credential { readonly authenticatorAttachment: string | null; readonly rawId: ArrayBuffer; readonly response: AuthenticatorResponse; getClientExtensionResults(): AuthenticationExtensionsClientOutputs; } declare var PublicKeyCredential: { prototype: PublicKeyCredential; new(): PublicKeyCredential; isConditionalMediationAvailable(): Promise<boolean>; isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>; }; /** * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. * Available only in secure contexts. */ interface PushManager { getSubscription(): Promise<PushSubscription | null>; permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>; subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; } declare var PushManager: { prototype: PushManager; new(): PushManager; readonly supportedContentEncodings: ReadonlyArray<string>; }; /** * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. * Available only in secure contexts. */ interface PushSubscription { readonly endpoint: string; readonly expirationTime: EpochTimeStamp | null; readonly options: PushSubscriptionOptions; getKey(name: PushEncryptionKeyName): ArrayBuffer | null; toJSON(): PushSubscriptionJSON; unsubscribe(): Promise<boolean>; } declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; }; /** Available only in secure contexts. */ interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; } declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; }; interface RTCCertificate { readonly expires: EpochTimeStamp; getFingerprints(): RTCDtlsFingerprint[]; } declare var RTCCertificate: { prototype: RTCCertificate; new(): RTCCertificate; }; interface RTCDTMFSenderEventMap { "tonechange": RTCDTMFToneChangeEvent; } interface RTCDTMFSender extends EventTarget { readonly canInsertDTMF: boolean; ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null; readonly toneBuffer: string; insertDTMF(tones: string, duration?: number, interToneGap?: number): void; addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCDTMFSender: { prototype: RTCDTMFSender; new(): RTCDTMFSender; }; /** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */ interface RTCDTMFToneChangeEvent extends Event { readonly tone: string; } declare var RTCDTMFToneChangeEvent: { prototype: RTCDTMFToneChangeEvent; new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent; }; interface RTCDataChannelEventMap { "bufferedamountlow": Event; "close": Event; "closing": Event; "error": Event; "message": MessageEvent; "open": Event; } interface RTCDataChannel extends EventTarget { binaryType: BinaryType; readonly bufferedAmount: number; bufferedAmountLowThreshold: number; readonly id: number | null; readonly label: string; readonly maxPacketLifeTime: number | null; readonly maxRetransmits: number | null; readonly negotiated: boolean; onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; onclose: ((this: RTCDataChannel, ev: Event) => any) | null; onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; onerror: ((this: RTCDataChannel, ev: Event) => any) | null; onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; onopen: ((this: RTCDataChannel, ev: Event) => any) | null; readonly ordered: boolean; readonly protocol: string; readonly readyState: RTCDataChannelState; close(): void; send(data: string): void; send(data: Blob): void; send(data: ArrayBuffer): void; send(data: ArrayBufferView): void; addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCDataChannel: { prototype: RTCDataChannel; new(): RTCDataChannel; }; interface RTCDataChannelEvent extends Event { readonly channel: RTCDataChannel; } declare var RTCDataChannelEvent: { prototype: RTCDataChannelEvent; new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent; }; interface RTCDtlsTransportEventMap { "error": Event; "statechange": Event; } interface RTCDtlsTransport extends EventTarget { readonly iceTransport: RTCIceTransport; onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; readonly state: RTCDtlsTransportState; getRemoteCertificates(): ArrayBuffer[]; addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCDtlsTransport: { prototype: RTCDtlsTransport; new(): RTCDtlsTransport; }; interface RTCEncodedAudioFrame { data: ArrayBuffer; readonly timestamp: number; getMetadata(): RTCEncodedAudioFrameMetadata; } declare var RTCEncodedAudioFrame: { prototype: RTCEncodedAudioFrame; new(): RTCEncodedAudioFrame; }; interface RTCEncodedVideoFrame { data: ArrayBuffer; readonly timestamp: number; readonly type: RTCEncodedVideoFrameType; getMetadata(): RTCEncodedVideoFrameMetadata; } declare var RTCEncodedVideoFrame: { prototype: RTCEncodedVideoFrame; new(): RTCEncodedVideoFrame; }; interface RTCError extends DOMException { readonly errorDetail: RTCErrorDetailType; readonly receivedAlert: number | null; readonly sctpCauseCode: number | null; readonly sdpLineNumber: number | null; readonly sentAlert: number | null; } declare var RTCError: { prototype: RTCError; new(init: RTCErrorInit, message?: string): RTCError; }; interface RTCErrorEvent extends Event { readonly error: RTCError; } declare var RTCErrorEvent: { prototype: RTCErrorEvent; new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent; }; /** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */ interface RTCIceCandidate { readonly address: string | null; readonly candidate: string; readonly component: RTCIceComponent | null; readonly foundation: string | null; readonly port: number | null; readonly priority: number | null; readonly protocol: RTCIceProtocol | null; readonly relatedAddress: string | null; readonly relatedPort: number | null; readonly sdpMLineIndex: number | null; readonly sdpMid: string | null; readonly tcpType: RTCIceTcpCandidateType | null; readonly type: RTCIceCandidateType | null; readonly usernameFragment: string | null; toJSON(): RTCIceCandidateInit; } declare var RTCIceCandidate: { prototype: RTCIceCandidate; new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; }; interface RTCIceTransportEventMap { "gatheringstatechange": Event; "statechange": Event; } /** Provides access to information about the ICE transport layer over which the data is being sent and received. */ interface RTCIceTransport extends EventTarget { readonly gatheringState: RTCIceGathererState; ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; readonly state: RTCIceTransportState; addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCIceTransport: { prototype: RTCIceTransport; new(): RTCIceTransport; }; interface RTCPeerConnectionEventMap { "connectionstatechange": Event; "datachannel": RTCDataChannelEvent; "icecandidate": RTCPeerConnectionIceEvent; "icecandidateerror": Event; "iceconnectionstatechange": Event; "icegatheringstatechange": Event; "negotiationneeded": Event; "signalingstatechange": Event; "track": RTCTrackEvent; } /** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */ interface RTCPeerConnection extends EventTarget { readonly canTrickleIceCandidates: boolean | null; readonly connectionState: RTCPeerConnectionState; readonly currentLocalDescription: RTCSessionDescription | null; readonly currentRemoteDescription: RTCSessionDescription | null; readonly iceConnectionState: RTCIceConnectionState; readonly iceGatheringState: RTCIceGatheringState; readonly localDescription: RTCSessionDescription | null; onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null; onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null; onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null; oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null; onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null; readonly pendingLocalDescription: RTCSessionDescription | null; readonly pendingRemoteDescription: RTCSessionDescription | null; readonly remoteDescription: RTCSessionDescription | null; readonly sctp: RTCSctpTransport | null; readonly signalingState: RTCSignalingState; addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>; /** @deprecated */ addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver; close(): void; createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>; /** @deprecated */ createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel; createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>; /** @deprecated */ createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>; getConfiguration(): RTCConfiguration; getReceivers(): RTCRtpReceiver[]; getSenders(): RTCRtpSender[]; getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>; getTransceivers(): RTCRtpTransceiver[]; removeTrack(sender: RTCRtpSender): void; restartIce(): void; setConfiguration(configuration?: RTCConfiguration): void; setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>; /** @deprecated */ setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>; /** @deprecated */ setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>; addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCPeerConnection: { prototype: RTCPeerConnection; new(configuration?: RTCConfiguration): RTCPeerConnection; generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>; }; interface RTCPeerConnectionIceErrorEvent extends Event { readonly address: string | null; readonly errorCode: number; readonly errorText: string; readonly port: number | null; readonly url: string; } declare var RTCPeerConnectionIceErrorEvent: { prototype: RTCPeerConnectionIceErrorEvent; new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent; }; /** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */ interface RTCPeerConnectionIceEvent extends Event { readonly candidate: RTCIceCandidate | null; } declare var RTCPeerConnectionIceEvent: { prototype: RTCPeerConnectionIceEvent; new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent; }; /** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */ interface RTCRtpReceiver { readonly track: MediaStreamTrack; readonly transport: RTCDtlsTransport | null; getContributingSources(): RTCRtpContributingSource[]; getParameters(): RTCRtpReceiveParameters; getStats(): Promise<RTCStatsReport>; getSynchronizationSources(): RTCRtpSynchronizationSource[]; } declare var RTCRtpReceiver: { prototype: RTCRtpReceiver; new(): RTCRtpReceiver; getCapabilities(kind: string): RTCRtpCapabilities | null; }; /** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */ interface RTCRtpSender { readonly dtmf: RTCDTMFSender | null; readonly track: MediaStreamTrack | null; readonly transport: RTCDtlsTransport | null; getParameters(): RTCRtpSendParameters; getStats(): Promise<RTCStatsReport>; replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>; setParameters(parameters: RTCRtpSendParameters): Promise<void>; setStreams(...streams: MediaStream[]): void; } declare var RTCRtpSender: { prototype: RTCRtpSender; new(): RTCRtpSender; getCapabilities(kind: string): RTCRtpCapabilities | null; }; interface RTCRtpTransceiver { readonly currentDirection: RTCRtpTransceiverDirection | null; direction: RTCRtpTransceiverDirection; readonly mid: string | null; readonly receiver: RTCRtpReceiver; readonly sender: RTCRtpSender; setCodecPreferences(codecs: RTCRtpCodecCapability[]): void; stop(): void; } declare var RTCRtpTransceiver: { prototype: RTCRtpTransceiver; new(): RTCRtpTransceiver; }; interface RTCSctpTransportEventMap { "statechange": Event; } interface RTCSctpTransport extends EventTarget { readonly maxChannels: number | null; readonly maxMessageSize: number; onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; readonly state: RTCSctpTransportState; readonly transport: RTCDtlsTransport; addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RTCSctpTransport: { prototype: RTCSctpTransport; new(): RTCSctpTransport; }; /** One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */ interface RTCSessionDescription { readonly sdp: string; readonly type: RTCSdpType; toJSON(): any; } declare var RTCSessionDescription: { prototype: RTCSessionDescription; new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription; }; interface RTCStatsReport { forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } declare var RTCStatsReport: { prototype: RTCStatsReport; new(): RTCStatsReport; }; interface RTCTrackEvent extends Event { readonly receiver: RTCRtpReceiver; readonly streams: ReadonlyArray<MediaStream>; readonly track: MediaStreamTrack; readonly transceiver: RTCRtpTransceiver; } declare var RTCTrackEvent: { prototype: RTCTrackEvent; new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent; }; interface RadioNodeList extends NodeList { value: string; } declare var RadioNodeList: { prototype: RadioNodeList; new(): RadioNodeList; }; /** A fragment of a document that can contain nodes and parts of text nodes. */ interface Range extends AbstractRange { /** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */ readonly commonAncestorContainer: Node; cloneContents(): DocumentFragment; cloneRange(): Range; collapse(toStart?: boolean): void; compareBoundaryPoints(how: number, sourceRange: Range): number; /** Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */ comparePoint(node: Node, offset: number): number; createContextualFragment(fragment: string): DocumentFragment; deleteContents(): void; detach(): void; extractContents(): DocumentFragment; getBoundingClientRect(): DOMRect; getClientRects(): DOMRectList; insertNode(node: Node): void; /** Returns whether range intersects node. */ intersectsNode(node: Node): boolean; isPointInRange(node: Node, offset: number): boolean; selectNode(node: Node): void; selectNodeContents(node: Node): void; setEnd(node: Node, offset: number): void; setEndAfter(node: Node): void; setEndBefore(node: Node): void; setStart(node: Node, offset: number): void; setStartAfter(node: Node): void; setStartBefore(node: Node): void; surroundContents(newParent: Node): void; toString(): string; readonly START_TO_START: 0; readonly START_TO_END: 1; readonly END_TO_END: 2; readonly END_TO_START: 3; } declare var Range: { prototype: Range; new(): Range; readonly START_TO_START: 0; readonly START_TO_END: 1; readonly END_TO_END: 2; readonly END_TO_START: 3; toString(): string; }; interface ReadableByteStreamController { readonly byobRequest: ReadableStreamBYOBRequest | null; readonly desiredSize: number | null; close(): void; enqueue(chunk: ArrayBufferView): void; error(e?: any): void; } declare var ReadableByteStreamController: { prototype: ReadableByteStreamController; new(): ReadableByteStreamController; }; /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */ interface ReadableStream<R = any> { readonly locked: boolean; cancel(reason?: any): Promise<void>; getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; getReader(): ReadableStreamDefaultReader<R>; getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>; pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; tee(): [ReadableStream<R>, ReadableStream<R>]; } declare var ReadableStream: { prototype: ReadableStream; new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>; new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; }; interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; releaseLock(): void; } declare var ReadableStreamBYOBReader: { prototype: ReadableStreamBYOBReader; new(stream: ReadableStream): ReadableStreamBYOBReader; }; interface ReadableStreamBYOBRequest { readonly view: ArrayBufferView | null; respond(bytesWritten: number): void; respondWithNewView(view: ArrayBufferView): void; } declare var ReadableStreamBYOBRequest: { prototype: ReadableStreamBYOBRequest; new(): ReadableStreamBYOBRequest; }; interface ReadableStreamDefaultController<R = any> { readonly desiredSize: number | null; close(): void; enqueue(chunk?: R): void; error(e?: any): void; } declare var ReadableStreamDefaultController: { prototype: ReadableStreamDefaultController; new(): ReadableStreamDefaultController; }; interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader { read(): Promise<ReadableStreamReadResult<R>>; releaseLock(): void; } declare var ReadableStreamDefaultReader: { prototype: ReadableStreamDefaultReader; new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>; }; interface ReadableStreamGenericReader { readonly closed: Promise<undefined>; cancel(reason?: any): Promise<void>; } interface RemotePlaybackEventMap { "connect": Event; "connecting": Event; "disconnect": Event; } interface RemotePlayback extends EventTarget { onconnect: ((this: RemotePlayback, ev: Event) => any) | null; onconnecting: ((this: RemotePlayback, ev: Event) => any) | null; ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null; readonly state: RemotePlaybackState; cancelWatchAvailability(id?: number): Promise<void>; prompt(): Promise<void>; watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>; addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var RemotePlayback: { prototype: RemotePlayback; new(): RemotePlayback; }; /** This Fetch API interface represents a resource request. */ interface Request extends Body { /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */ readonly cache: RequestCache; /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */ readonly credentials: RequestCredentials; /** Returns the kind of resource requested by request, e.g., "document" or "script". */ readonly destination: RequestDestination; /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */ readonly headers: Headers; /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */ readonly integrity: string; /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */ readonly keepalive: boolean; /** Returns request's HTTP method, which is "GET" by default. */ readonly method: string; /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */ readonly mode: RequestMode; /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */ readonly redirect: RequestRedirect; /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */ readonly referrer: string; /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */ readonly referrerPolicy: ReferrerPolicy; /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */ readonly signal: AbortSignal; /** Returns the URL of request as a string. */ readonly url: string; clone(): Request; } declare var Request: { prototype: Request; new(input: RequestInfo | URL, init?: RequestInit): Request; }; interface ResizeObserver { disconnect(): void; observe(target: Element, options?: ResizeObserverOptions): void; unobserve(target: Element): void; } declare var ResizeObserver: { prototype: ResizeObserver; new(callback: ResizeObserverCallback): ResizeObserver; }; interface ResizeObserverEntry { readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>; readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>; readonly contentRect: DOMRectReadOnly; readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>; readonly target: Element; } declare var ResizeObserverEntry: { prototype: ResizeObserverEntry; new(): ResizeObserverEntry; }; interface ResizeObserverSize { readonly blockSize: number; readonly inlineSize: number; } declare var ResizeObserverSize: { prototype: ResizeObserverSize; new(): ResizeObserverSize; }; /** This Fetch API interface represents the response to a request. */ interface Response extends Body { readonly headers: Headers; readonly ok: boolean; readonly redirected: boolean; readonly status: number; readonly statusText: string; readonly type: ResponseType; readonly url: string; clone(): Response; } declare var Response: { prototype: Response; new(body?: BodyInit | null, init?: ResponseInit): Response; error(): Response; redirect(url: string | URL, status?: number): Response; }; /** Provides access to the properties of <a> element, as well as methods to manipulate them. */ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { rel: string; readonly relList: DOMTokenList; readonly target: SVGAnimatedString; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGAElement: { prototype: SVGAElement; new(): SVGAElement; }; /** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */ interface SVGAngle { readonly unitType: number; value: number; valueAsString: string; valueInSpecifiedUnits: number; convertToSpecifiedUnits(unitType: number): void; newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; readonly SVG_ANGLETYPE_UNKNOWN: 0; readonly SVG_ANGLETYPE_UNSPECIFIED: 1; readonly SVG_ANGLETYPE_DEG: 2; readonly SVG_ANGLETYPE_RAD: 3; readonly SVG_ANGLETYPE_GRAD: 4; } declare var SVGAngle: { prototype: SVGAngle; new(): SVGAngle; readonly SVG_ANGLETYPE_UNKNOWN: 0; readonly SVG_ANGLETYPE_UNSPECIFIED: 1; readonly SVG_ANGLETYPE_DEG: 2; readonly SVG_ANGLETYPE_RAD: 3; readonly SVG_ANGLETYPE_GRAD: 4; }; interface SVGAnimateElement extends SVGAnimationElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGAnimateElement: { prototype: SVGAnimateElement; new(): SVGAnimateElement; }; interface SVGAnimateMotionElement extends SVGAnimationElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGAnimateMotionElement: { prototype: SVGAnimateMotionElement; new(): SVGAnimateMotionElement; }; interface SVGAnimateTransformElement extends SVGAnimationElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGAnimateTransformElement: { prototype: SVGAnimateTransformElement; new(): SVGAnimateTransformElement; }; /** Used for attributes of basic type <angle> which can be animated. */ interface SVGAnimatedAngle { readonly animVal: SVGAngle; readonly baseVal: SVGAngle; } declare var SVGAnimatedAngle: { prototype: SVGAnimatedAngle; new(): SVGAnimatedAngle; }; /** Used for attributes of type boolean which can be animated. */ interface SVGAnimatedBoolean { readonly animVal: boolean; baseVal: boolean; } declare var SVGAnimatedBoolean: { prototype: SVGAnimatedBoolean; new(): SVGAnimatedBoolean; }; /** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */ interface SVGAnimatedEnumeration { readonly animVal: number; baseVal: number; } declare var SVGAnimatedEnumeration: { prototype: SVGAnimatedEnumeration; new(): SVGAnimatedEnumeration; }; /** Used for attributes of basic type <integer> which can be animated. */ interface SVGAnimatedInteger { readonly animVal: number; baseVal: number; } declare var SVGAnimatedInteger: { prototype: SVGAnimatedInteger; new(): SVGAnimatedInteger; }; /** Used for attributes of basic type <length> which can be animated. */ interface SVGAnimatedLength { readonly animVal: SVGLength; readonly baseVal: SVGLength; } declare var SVGAnimatedLength: { prototype: SVGAnimatedLength; new(): SVGAnimatedLength; }; /** Used for attributes of type SVGLengthList which can be animated. */ interface SVGAnimatedLengthList { readonly animVal: SVGLengthList; readonly baseVal: SVGLengthList; } declare var SVGAnimatedLengthList: { prototype: SVGAnimatedLengthList; new(): SVGAnimatedLengthList; }; /** Used for attributes of basic type <Number> which can be animated. */ interface SVGAnimatedNumber { readonly animVal: number; baseVal: number; } declare var SVGAnimatedNumber: { prototype: SVGAnimatedNumber; new(): SVGAnimatedNumber; }; /** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */ interface SVGAnimatedNumberList { readonly animVal: SVGNumberList; readonly baseVal: SVGNumberList; } declare var SVGAnimatedNumberList: { prototype: SVGAnimatedNumberList; new(): SVGAnimatedNumberList; }; interface SVGAnimatedPoints { readonly animatedPoints: SVGPointList; readonly points: SVGPointList; } /** Used for attributes of type SVGPreserveAspectRatio which can be animated. */ interface SVGAnimatedPreserveAspectRatio { readonly animVal: SVGPreserveAspectRatio; readonly baseVal: SVGPreserveAspectRatio; } declare var SVGAnimatedPreserveAspectRatio: { prototype: SVGAnimatedPreserveAspectRatio; new(): SVGAnimatedPreserveAspectRatio; }; /** Used for attributes of basic SVGRect which can be animated. */ interface SVGAnimatedRect { readonly animVal: DOMRectReadOnly; readonly baseVal: DOMRect; } declare var SVGAnimatedRect: { prototype: SVGAnimatedRect; new(): SVGAnimatedRect; }; /** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */ interface SVGAnimatedString { readonly animVal: string; baseVal: string; } declare var SVGAnimatedString: { prototype: SVGAnimatedString; new(): SVGAnimatedString; }; /** Used for attributes which take a list of numbers and which can be animated. */ interface SVGAnimatedTransformList { readonly animVal: SVGTransformList; readonly baseVal: SVGTransformList; } declare var SVGAnimatedTransformList: { prototype: SVGAnimatedTransformList; new(): SVGAnimatedTransformList; }; interface SVGAnimationElement extends SVGElement, SVGTests { readonly targetElement: SVGElement | null; beginElement(): void; beginElementAt(offset: number): void; endElement(): void; endElementAt(offset: number): void; getCurrentTime(): number; getSimpleDuration(): number; getStartTime(): number; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGAnimationElement: { prototype: SVGAnimationElement; new(): SVGAnimationElement; }; /** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */ interface SVGCircleElement extends SVGGeometryElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGCircleElement: { prototype: SVGCircleElement; new(): SVGCircleElement; }; /** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */ interface SVGClipPathElement extends SVGElement { readonly clipPathUnits: SVGAnimatedEnumeration; readonly transform: SVGAnimatedTransformList; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGClipPathElement: { prototype: SVGClipPathElement; new(): SVGClipPathElement; }; /** A base interface used by the component transfer function interfaces. */ interface SVGComponentTransferFunctionElement extends SVGElement { readonly amplitude: SVGAnimatedNumber; readonly exponent: SVGAnimatedNumber; readonly intercept: SVGAnimatedNumber; readonly offset: SVGAnimatedNumber; readonly slope: SVGAnimatedNumber; readonly tableValues: SVGAnimatedNumberList; readonly type: SVGAnimatedEnumeration; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGComponentTransferFunctionElement: { prototype: SVGComponentTransferFunctionElement; new(): SVGComponentTransferFunctionElement; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; }; /** Corresponds to the <defs> element. */ interface SVGDefsElement extends SVGGraphicsElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGDefsElement: { prototype: SVGDefsElement; new(): SVGDefsElement; }; /** Corresponds to the <desc> element. */ interface SVGDescElement extends SVGElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGDescElement: { prototype: SVGDescElement; new(): SVGDescElement; }; interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { } /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */ interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { /** @deprecated */ readonly className: any; readonly ownerSVGElement: SVGSVGElement | null; readonly viewportElement: SVGElement | null; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGElement: { prototype: SVGElement; new(): SVGElement; }; /** Provides access to the properties of <ellipse> elements. */ interface SVGEllipseElement extends SVGGeometryElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; readonly rx: SVGAnimatedLength; readonly ry: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGEllipseElement: { prototype: SVGEllipseElement; new(): SVGEllipseElement; }; /** Corresponds to the <feBlend> element. */ interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; readonly mode: SVGAnimatedEnumeration; readonly SVG_FEBLEND_MODE_UNKNOWN: 0; readonly SVG_FEBLEND_MODE_NORMAL: 1; readonly SVG_FEBLEND_MODE_MULTIPLY: 2; readonly SVG_FEBLEND_MODE_SCREEN: 3; readonly SVG_FEBLEND_MODE_DARKEN: 4; readonly SVG_FEBLEND_MODE_LIGHTEN: 5; readonly SVG_FEBLEND_MODE_OVERLAY: 6; readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; readonly SVG_FEBLEND_MODE_EXCLUSION: 12; readonly SVG_FEBLEND_MODE_HUE: 13; readonly SVG_FEBLEND_MODE_SATURATION: 14; readonly SVG_FEBLEND_MODE_COLOR: 15; readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEBlendElement: { prototype: SVGFEBlendElement; new(): SVGFEBlendElement; readonly SVG_FEBLEND_MODE_UNKNOWN: 0; readonly SVG_FEBLEND_MODE_NORMAL: 1; readonly SVG_FEBLEND_MODE_MULTIPLY: 2; readonly SVG_FEBLEND_MODE_SCREEN: 3; readonly SVG_FEBLEND_MODE_DARKEN: 4; readonly SVG_FEBLEND_MODE_LIGHTEN: 5; readonly SVG_FEBLEND_MODE_OVERLAY: 6; readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; readonly SVG_FEBLEND_MODE_EXCLUSION: 12; readonly SVG_FEBLEND_MODE_HUE: 13; readonly SVG_FEBLEND_MODE_SATURATION: 14; readonly SVG_FEBLEND_MODE_COLOR: 15; readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; }; /** Corresponds to the <feColorMatrix> element. */ interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly type: SVGAnimatedEnumeration; readonly values: SVGAnimatedNumberList; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEColorMatrixElement: { prototype: SVGFEColorMatrixElement; new(): SVGFEColorMatrixElement; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; }; /** Corresponds to the <feComponentTransfer> element. */ interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEComponentTransferElement: { prototype: SVGFEComponentTransferElement; new(): SVGFEComponentTransferElement; }; /** Corresponds to the <feComposite> element. */ interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; readonly k1: SVGAnimatedNumber; readonly k2: SVGAnimatedNumber; readonly k3: SVGAnimatedNumber; readonly k4: SVGAnimatedNumber; readonly operator: SVGAnimatedEnumeration; readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFECompositeElement: { prototype: SVGFECompositeElement; new(): SVGFECompositeElement; readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; }; /** Corresponds to the <feConvolveMatrix> element. */ interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly bias: SVGAnimatedNumber; readonly divisor: SVGAnimatedNumber; readonly edgeMode: SVGAnimatedEnumeration; readonly in1: SVGAnimatedString; readonly kernelMatrix: SVGAnimatedNumberList; readonly kernelUnitLengthX: SVGAnimatedNumber; readonly kernelUnitLengthY: SVGAnimatedNumber; readonly orderX: SVGAnimatedInteger; readonly orderY: SVGAnimatedInteger; readonly preserveAlpha: SVGAnimatedBoolean; readonly targetX: SVGAnimatedInteger; readonly targetY: SVGAnimatedInteger; readonly SVG_EDGEMODE_UNKNOWN: 0; readonly SVG_EDGEMODE_DUPLICATE: 1; readonly SVG_EDGEMODE_WRAP: 2; readonly SVG_EDGEMODE_NONE: 3; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEConvolveMatrixElement: { prototype: SVGFEConvolveMatrixElement; new(): SVGFEConvolveMatrixElement; readonly SVG_EDGEMODE_UNKNOWN: 0; readonly SVG_EDGEMODE_DUPLICATE: 1; readonly SVG_EDGEMODE_WRAP: 2; readonly SVG_EDGEMODE_NONE: 3; }; /** Corresponds to the <feDiffuseLighting> element. */ interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly diffuseConstant: SVGAnimatedNumber; readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; readonly kernelUnitLengthY: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEDiffuseLightingElement: { prototype: SVGFEDiffuseLightingElement; new(): SVGFEDiffuseLightingElement; }; /** Corresponds to the <feDisplacementMap> element. */ interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; readonly scale: SVGAnimatedNumber; readonly xChannelSelector: SVGAnimatedEnumeration; readonly yChannelSelector: SVGAnimatedEnumeration; readonly SVG_CHANNEL_UNKNOWN: 0; readonly SVG_CHANNEL_R: 1; readonly SVG_CHANNEL_G: 2; readonly SVG_CHANNEL_B: 3; readonly SVG_CHANNEL_A: 4; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEDisplacementMapElement: { prototype: SVGFEDisplacementMapElement; new(): SVGFEDisplacementMapElement; readonly SVG_CHANNEL_UNKNOWN: 0; readonly SVG_CHANNEL_R: 1; readonly SVG_CHANNEL_G: 2; readonly SVG_CHANNEL_B: 3; readonly SVG_CHANNEL_A: 4; }; /** Corresponds to the <feDistantLight> element. */ interface SVGFEDistantLightElement extends SVGElement { readonly azimuth: SVGAnimatedNumber; readonly elevation: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEDistantLightElement: { prototype: SVGFEDistantLightElement; new(): SVGFEDistantLightElement; }; interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly dx: SVGAnimatedNumber; readonly dy: SVGAnimatedNumber; readonly in1: SVGAnimatedString; readonly stdDeviationX: SVGAnimatedNumber; readonly stdDeviationY: SVGAnimatedNumber; setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEDropShadowElement: { prototype: SVGFEDropShadowElement; new(): SVGFEDropShadowElement; }; /** Corresponds to the <feFlood> element. */ interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEFloodElement: { prototype: SVGFEFloodElement; new(): SVGFEFloodElement; }; /** Corresponds to the <feFuncA> element. */ interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEFuncAElement: { prototype: SVGFEFuncAElement; new(): SVGFEFuncAElement; }; /** Corresponds to the <feFuncB> element. */ interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEFuncBElement: { prototype: SVGFEFuncBElement; new(): SVGFEFuncBElement; }; /** Corresponds to the <feFuncG> element. */ interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEFuncGElement: { prototype: SVGFEFuncGElement; new(): SVGFEFuncGElement; }; /** Corresponds to the <feFuncR> element. */ interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEFuncRElement: { prototype: SVGFEFuncRElement; new(): SVGFEFuncRElement; }; /** Corresponds to the <feGaussianBlur> element. */ interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly stdDeviationX: SVGAnimatedNumber; readonly stdDeviationY: SVGAnimatedNumber; setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEGaussianBlurElement: { prototype: SVGFEGaussianBlurElement; new(): SVGFEGaussianBlurElement; }; /** Corresponds to the <feImage> element. */ interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEImageElement: { prototype: SVGFEImageElement; new(): SVGFEImageElement; }; /** Corresponds to the <feMerge> element. */ interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEMergeElement: { prototype: SVGFEMergeElement; new(): SVGFEMergeElement; }; /** Corresponds to the <feMergeNode> element. */ interface SVGFEMergeNodeElement extends SVGElement { readonly in1: SVGAnimatedString; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEMergeNodeElement: { prototype: SVGFEMergeNodeElement; new(): SVGFEMergeNodeElement; }; /** Corresponds to the <feMorphology> element. */ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly operator: SVGAnimatedEnumeration; readonly radiusX: SVGAnimatedNumber; readonly radiusY: SVGAnimatedNumber; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEMorphologyElement: { prototype: SVGFEMorphologyElement; new(): SVGFEMorphologyElement; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; }; /** Corresponds to the <feOffset> element. */ interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly dx: SVGAnimatedNumber; readonly dy: SVGAnimatedNumber; readonly in1: SVGAnimatedString; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEOffsetElement: { prototype: SVGFEOffsetElement; new(): SVGFEOffsetElement; }; /** Corresponds to the <fePointLight> element. */ interface SVGFEPointLightElement extends SVGElement { readonly x: SVGAnimatedNumber; readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFEPointLightElement: { prototype: SVGFEPointLightElement; new(): SVGFEPointLightElement; }; /** Corresponds to the <feSpecularLighting> element. */ interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; readonly kernelUnitLengthY: SVGAnimatedNumber; readonly specularConstant: SVGAnimatedNumber; readonly specularExponent: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFESpecularLightingElement: { prototype: SVGFESpecularLightingElement; new(): SVGFESpecularLightingElement; }; /** Corresponds to the <feSpotLight> element. */ interface SVGFESpotLightElement extends SVGElement { readonly limitingConeAngle: SVGAnimatedNumber; readonly pointsAtX: SVGAnimatedNumber; readonly pointsAtY: SVGAnimatedNumber; readonly pointsAtZ: SVGAnimatedNumber; readonly specularExponent: SVGAnimatedNumber; readonly x: SVGAnimatedNumber; readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFESpotLightElement: { prototype: SVGFESpotLightElement; new(): SVGFESpotLightElement; }; /** Corresponds to the <feTile> element. */ interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFETileElement: { prototype: SVGFETileElement; new(): SVGFETileElement; }; /** Corresponds to the <feTurbulence> element. */ interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly baseFrequencyX: SVGAnimatedNumber; readonly baseFrequencyY: SVGAnimatedNumber; readonly numOctaves: SVGAnimatedInteger; readonly seed: SVGAnimatedNumber; readonly stitchTiles: SVGAnimatedEnumeration; readonly type: SVGAnimatedEnumeration; readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; readonly SVG_STITCHTYPE_UNKNOWN: 0; readonly SVG_STITCHTYPE_STITCH: 1; readonly SVG_STITCHTYPE_NOSTITCH: 2; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFETurbulenceElement: { prototype: SVGFETurbulenceElement; new(): SVGFETurbulenceElement; readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; readonly SVG_STITCHTYPE_UNKNOWN: 0; readonly SVG_STITCHTYPE_STITCH: 1; readonly SVG_STITCHTYPE_NOSTITCH: 2; }; /** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */ interface SVGFilterElement extends SVGElement, SVGURIReference { readonly filterUnits: SVGAnimatedEnumeration; readonly height: SVGAnimatedLength; readonly primitiveUnits: SVGAnimatedEnumeration; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGFilterElement: { prototype: SVGFilterElement; new(): SVGFilterElement; }; interface SVGFilterPrimitiveStandardAttributes { readonly height: SVGAnimatedLength; readonly result: SVGAnimatedString; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; } interface SVGFitToViewBox { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; readonly viewBox: SVGAnimatedRect; } /** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */ interface SVGForeignObjectElement extends SVGGraphicsElement { readonly height: SVGAnimatedLength; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGForeignObjectElement: { prototype: SVGForeignObjectElement; new(): SVGForeignObjectElement; }; /** Corresponds to the <g> element. */ interface SVGGElement extends SVGGraphicsElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGGElement: { prototype: SVGGElement; new(): SVGGElement; }; interface SVGGeometryElement extends SVGGraphicsElement { readonly pathLength: SVGAnimatedNumber; getPointAtLength(distance: number): DOMPoint; getTotalLength(): number; isPointInFill(point?: DOMPointInit): boolean; isPointInStroke(point?: DOMPointInit): boolean; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGGeometryElement: { prototype: SVGGeometryElement; new(): SVGGeometryElement; }; /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */ interface SVGGradientElement extends SVGElement, SVGURIReference { readonly gradientTransform: SVGAnimatedTransformList; readonly gradientUnits: SVGAnimatedEnumeration; readonly spreadMethod: SVGAnimatedEnumeration; readonly SVG_SPREADMETHOD_UNKNOWN: 0; readonly SVG_SPREADMETHOD_PAD: 1; readonly SVG_SPREADMETHOD_REFLECT: 2; readonly SVG_SPREADMETHOD_REPEAT: 3; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGGradientElement: { prototype: SVGGradientElement; new(): SVGGradientElement; readonly SVG_SPREADMETHOD_UNKNOWN: 0; readonly SVG_SPREADMETHOD_PAD: 1; readonly SVG_SPREADMETHOD_REFLECT: 2; readonly SVG_SPREADMETHOD_REPEAT: 3; }; /** SVG elements whose primary purpose is to directly render graphics into a group. */ interface SVGGraphicsElement extends SVGElement, SVGTests { readonly transform: SVGAnimatedTransformList; getBBox(options?: SVGBoundingBoxOptions): DOMRect; getCTM(): DOMMatrix | null; getScreenCTM(): DOMMatrix | null; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGGraphicsElement: { prototype: SVGGraphicsElement; new(): SVGGraphicsElement; }; /** Corresponds to the <image> element. */ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { readonly height: SVGAnimatedLength; readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGImageElement: { prototype: SVGImageElement; new(): SVGImageElement; }; /** Correspond to the <length> basic data type. */ interface SVGLength { readonly unitType: number; value: number; valueAsString: string; valueInSpecifiedUnits: number; convertToSpecifiedUnits(unitType: number): void; newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; readonly SVG_LENGTHTYPE_UNKNOWN: 0; readonly SVG_LENGTHTYPE_NUMBER: 1; readonly SVG_LENGTHTYPE_PERCENTAGE: 2; readonly SVG_LENGTHTYPE_EMS: 3; readonly SVG_LENGTHTYPE_EXS: 4; readonly SVG_LENGTHTYPE_PX: 5; readonly SVG_LENGTHTYPE_CM: 6; readonly SVG_LENGTHTYPE_MM: 7; readonly SVG_LENGTHTYPE_IN: 8; readonly SVG_LENGTHTYPE_PT: 9; readonly SVG_LENGTHTYPE_PC: 10; } declare var SVGLength: { prototype: SVGLength; new(): SVGLength; readonly SVG_LENGTHTYPE_UNKNOWN: 0; readonly SVG_LENGTHTYPE_NUMBER: 1; readonly SVG_LENGTHTYPE_PERCENTAGE: 2; readonly SVG_LENGTHTYPE_EMS: 3; readonly SVG_LENGTHTYPE_EXS: 4; readonly SVG_LENGTHTYPE_PX: 5; readonly SVG_LENGTHTYPE_CM: 6; readonly SVG_LENGTHTYPE_MM: 7; readonly SVG_LENGTHTYPE_IN: 8; readonly SVG_LENGTHTYPE_PT: 9; readonly SVG_LENGTHTYPE_PC: 10; }; /** The SVGLengthList defines a list of SVGLength objects. */ interface SVGLengthList { readonly length: number; readonly numberOfItems: number; appendItem(newItem: SVGLength): SVGLength; clear(): void; getItem(index: number): SVGLength; initialize(newItem: SVGLength): SVGLength; insertItemBefore(newItem: SVGLength, index: number): SVGLength; removeItem(index: number): SVGLength; replaceItem(newItem: SVGLength, index: number): SVGLength; [index: number]: SVGLength; } declare var SVGLengthList: { prototype: SVGLengthList; new(): SVGLengthList; }; /** Provides access to the properties of <line> elements, as well as methods to manipulate them. */ interface SVGLineElement extends SVGGeometryElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGLineElement: { prototype: SVGLineElement; new(): SVGLineElement; }; /** Corresponds to the <linearGradient> element. */ interface SVGLinearGradientElement extends SVGGradientElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGLinearGradientElement: { prototype: SVGLinearGradientElement; new(): SVGLinearGradientElement; }; interface SVGMPathElement extends SVGElement, SVGURIReference { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGMPathElement: { prototype: SVGMPathElement; new(): SVGMPathElement; }; interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly markerHeight: SVGAnimatedLength; readonly markerUnits: SVGAnimatedEnumeration; readonly markerWidth: SVGAnimatedLength; readonly orientAngle: SVGAnimatedAngle; readonly orientType: SVGAnimatedEnumeration; readonly refX: SVGAnimatedLength; readonly refY: SVGAnimatedLength; setOrientToAngle(angle: SVGAngle): void; setOrientToAuto(): void; readonly SVG_MARKERUNITS_UNKNOWN: 0; readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; readonly SVG_MARKERUNITS_STROKEWIDTH: 2; readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGMarkerElement: { prototype: SVGMarkerElement; new(): SVGMarkerElement; readonly SVG_MARKERUNITS_UNKNOWN: 0; readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; readonly SVG_MARKERUNITS_STROKEWIDTH: 2; readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; }; /** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */ interface SVGMaskElement extends SVGElement { readonly height: SVGAnimatedLength; readonly maskContentUnits: SVGAnimatedEnumeration; readonly maskUnits: SVGAnimatedEnumeration; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGMaskElement: { prototype: SVGMaskElement; new(): SVGMaskElement; }; /** Corresponds to the <metadata> element. */ interface SVGMetadataElement extends SVGElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGMetadataElement: { prototype: SVGMetadataElement; new(): SVGMetadataElement; }; /** Corresponds to the <number> basic data type. */ interface SVGNumber { value: number; } declare var SVGNumber: { prototype: SVGNumber; new(): SVGNumber; }; /** The SVGNumberList defines a list of SVGNumber objects. */ interface SVGNumberList { readonly length: number; readonly numberOfItems: number; appendItem(newItem: SVGNumber): SVGNumber; clear(): void; getItem(index: number): SVGNumber; initialize(newItem: SVGNumber): SVGNumber; insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; removeItem(index: number): SVGNumber; replaceItem(newItem: SVGNumber, index: number): SVGNumber; [index: number]: SVGNumber; } declare var SVGNumberList: { prototype: SVGNumberList; new(): SVGNumberList; }; /** Corresponds to the <path> element. */ interface SVGPathElement extends SVGGeometryElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGPathElement: { prototype: SVGPathElement; new(): SVGPathElement; }; /** Corresponds to the <pattern> element. */ interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference { readonly height: SVGAnimatedLength; readonly patternContentUnits: SVGAnimatedEnumeration; readonly patternTransform: SVGAnimatedTransformList; readonly patternUnits: SVGAnimatedEnumeration; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGPatternElement: { prototype: SVGPatternElement; new(): SVGPatternElement; }; interface SVGPointList { readonly length: number; readonly numberOfItems: number; appendItem(newItem: DOMPoint): DOMPoint; clear(): void; getItem(index: number): DOMPoint; initialize(newItem: DOMPoint): DOMPoint; insertItemBefore(newItem: DOMPoint, index: number): DOMPoint; removeItem(index: number): DOMPoint; replaceItem(newItem: DOMPoint, index: number): DOMPoint; [index: number]: DOMPoint; } declare var SVGPointList: { prototype: SVGPointList; new(): SVGPointList; }; /** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */ interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGPolygonElement: { prototype: SVGPolygonElement; new(): SVGPolygonElement; }; /** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */ interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGPolylineElement: { prototype: SVGPolylineElement; new(): SVGPolylineElement; }; /** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */ interface SVGPreserveAspectRatio { align: number; meetOrSlice: number; readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; readonly SVG_PRESERVEASPECTRATIO_NONE: 1; readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; readonly SVG_MEETORSLICE_UNKNOWN: 0; readonly SVG_MEETORSLICE_MEET: 1; readonly SVG_MEETORSLICE_SLICE: 2; } declare var SVGPreserveAspectRatio: { prototype: SVGPreserveAspectRatio; new(): SVGPreserveAspectRatio; readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; readonly SVG_PRESERVEASPECTRATIO_NONE: 1; readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; readonly SVG_MEETORSLICE_UNKNOWN: 0; readonly SVG_MEETORSLICE_MEET: 1; readonly SVG_MEETORSLICE_SLICE: 2; }; /** Corresponds to the <RadialGradient> element. */ interface SVGRadialGradientElement extends SVGGradientElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; readonly fr: SVGAnimatedLength; readonly fx: SVGAnimatedLength; readonly fy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGRadialGradientElement: { prototype: SVGRadialGradientElement; new(): SVGRadialGradientElement; }; /** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */ interface SVGRectElement extends SVGGeometryElement { readonly height: SVGAnimatedLength; readonly rx: SVGAnimatedLength; readonly ry: SVGAnimatedLength; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGRectElement: { prototype: SVGRectElement; new(): SVGRectElement; }; interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap { } /** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers { currentScale: number; readonly currentTranslate: DOMPointReadOnly; readonly height: SVGAnimatedLength; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; animationsPaused(): boolean; checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean; checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean; createSVGAngle(): SVGAngle; createSVGLength(): SVGLength; createSVGMatrix(): DOMMatrix; createSVGNumber(): SVGNumber; createSVGPoint(): DOMPoint; createSVGRect(): DOMRect; createSVGTransform(): SVGTransform; createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; deselectAll(): void; /** @deprecated */ forceRedraw(): void; getCurrentTime(): number; getElementById(elementId: string): Element; getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>; pauseAnimations(): void; setCurrentTime(seconds: number): void; /** @deprecated */ suspendRedraw(maxWaitMilliseconds: number): number; unpauseAnimations(): void; /** @deprecated */ unsuspendRedraw(suspendHandleID: number): void; /** @deprecated */ unsuspendRedrawAll(): void; addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGSVGElement: { prototype: SVGSVGElement; new(): SVGSVGElement; }; /** Corresponds to the SVG <script> element. */ interface SVGScriptElement extends SVGElement, SVGURIReference { type: string; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGScriptElement: { prototype: SVGScriptElement; new(): SVGScriptElement; }; interface SVGSetElement extends SVGAnimationElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGSetElement: { prototype: SVGSetElement; new(): SVGSetElement; }; /** Corresponds to the <stop> element. */ interface SVGStopElement extends SVGElement { readonly offset: SVGAnimatedNumber; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGStopElement: { prototype: SVGStopElement; new(): SVGStopElement; }; /** The SVGStringList defines a list of DOMString objects. */ interface SVGStringList { readonly length: number; readonly numberOfItems: number; appendItem(newItem: string): string; clear(): void; getItem(index: number): string; initialize(newItem: string): string; insertItemBefore(newItem: string, index: number): string; removeItem(index: number): string; replaceItem(newItem: string, index: number): string; [index: number]: string; } declare var SVGStringList: { prototype: SVGStringList; new(): SVGStringList; }; /** Corresponds to the SVG <style> element. */ interface SVGStyleElement extends SVGElement, LinkStyle { disabled: boolean; media: string; title: string; /** @deprecated */ type: string; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGStyleElement: { prototype: SVGStyleElement; new(): SVGStyleElement; }; /** Corresponds to the <switch> element. */ interface SVGSwitchElement extends SVGGraphicsElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGSwitchElement: { prototype: SVGSwitchElement; new(): SVGSwitchElement; }; /** Corresponds to the <symbol> element. */ interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGSymbolElement: { prototype: SVGSymbolElement; new(): SVGSymbolElement; }; /** A <tspan> element. */ interface SVGTSpanElement extends SVGTextPositioningElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTSpanElement: { prototype: SVGTSpanElement; new(): SVGTSpanElement; }; interface SVGTests { readonly requiredExtensions: SVGStringList; readonly systemLanguage: SVGStringList; } /** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */ interface SVGTextContentElement extends SVGGraphicsElement { readonly lengthAdjust: SVGAnimatedEnumeration; readonly textLength: SVGAnimatedLength; getCharNumAtPosition(point?: DOMPointInit): number; getComputedTextLength(): number; getEndPositionOfChar(charnum: number): DOMPoint; getExtentOfChar(charnum: number): DOMRect; getNumberOfChars(): number; getRotationOfChar(charnum: number): number; getStartPositionOfChar(charnum: number): DOMPoint; getSubStringLength(charnum: number, nchars: number): number; /** @deprecated */ selectSubString(charnum: number, nchars: number): void; readonly LENGTHADJUST_UNKNOWN: 0; readonly LENGTHADJUST_SPACING: 1; readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTextContentElement: { prototype: SVGTextContentElement; new(): SVGTextContentElement; readonly LENGTHADJUST_UNKNOWN: 0; readonly LENGTHADJUST_SPACING: 1; readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; }; /** Corresponds to the <text> elements. */ interface SVGTextElement extends SVGTextPositioningElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTextElement: { prototype: SVGTextElement; new(): SVGTextElement; }; /** Corresponds to the <textPath> element. */ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { readonly method: SVGAnimatedEnumeration; readonly spacing: SVGAnimatedEnumeration; readonly startOffset: SVGAnimatedLength; readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; readonly TEXTPATH_METHODTYPE_ALIGN: 1; readonly TEXTPATH_METHODTYPE_STRETCH: 2; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; readonly TEXTPATH_SPACINGTYPE_AUTO: 1; readonly TEXTPATH_SPACINGTYPE_EXACT: 2; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTextPathElement: { prototype: SVGTextPathElement; new(): SVGTextPathElement; readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; readonly TEXTPATH_METHODTYPE_ALIGN: 1; readonly TEXTPATH_METHODTYPE_STRETCH: 2; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; readonly TEXTPATH_SPACINGTYPE_AUTO: 1; readonly TEXTPATH_SPACINGTYPE_EXACT: 2; }; /** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */ interface SVGTextPositioningElement extends SVGTextContentElement { readonly dx: SVGAnimatedLengthList; readonly dy: SVGAnimatedLengthList; readonly rotate: SVGAnimatedNumberList; readonly x: SVGAnimatedLengthList; readonly y: SVGAnimatedLengthList; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTextPositioningElement: { prototype: SVGTextPositioningElement; new(): SVGTextPositioningElement; }; /** Corresponds to the <title> element. */ interface SVGTitleElement extends SVGElement { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGTitleElement: { prototype: SVGTitleElement; new(): SVGTitleElement; }; /** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. */ interface SVGTransform { readonly angle: number; readonly matrix: DOMMatrix; readonly type: number; setMatrix(matrix?: DOMMatrix2DInit): void; setRotate(angle: number, cx: number, cy: number): void; setScale(sx: number, sy: number): void; setSkewX(angle: number): void; setSkewY(angle: number): void; setTranslate(tx: number, ty: number): void; readonly SVG_TRANSFORM_UNKNOWN: 0; readonly SVG_TRANSFORM_MATRIX: 1; readonly SVG_TRANSFORM_TRANSLATE: 2; readonly SVG_TRANSFORM_SCALE: 3; readonly SVG_TRANSFORM_ROTATE: 4; readonly SVG_TRANSFORM_SKEWX: 5; readonly SVG_TRANSFORM_SKEWY: 6; } declare var SVGTransform: { prototype: SVGTransform; new(): SVGTransform; readonly SVG_TRANSFORM_UNKNOWN: 0; readonly SVG_TRANSFORM_MATRIX: 1; readonly SVG_TRANSFORM_TRANSLATE: 2; readonly SVG_TRANSFORM_SCALE: 3; readonly SVG_TRANSFORM_ROTATE: 4; readonly SVG_TRANSFORM_SKEWX: 5; readonly SVG_TRANSFORM_SKEWY: 6; }; /** The SVGTransformList defines a list of SVGTransform objects. */ interface SVGTransformList { readonly length: number; readonly numberOfItems: number; appendItem(newItem: SVGTransform): SVGTransform; clear(): void; consolidate(): SVGTransform | null; createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; getItem(index: number): SVGTransform; initialize(newItem: SVGTransform): SVGTransform; insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; removeItem(index: number): SVGTransform; replaceItem(newItem: SVGTransform, index: number): SVGTransform; [index: number]: SVGTransform; } declare var SVGTransformList: { prototype: SVGTransformList; new(): SVGTransformList; }; interface SVGURIReference { readonly href: SVGAnimatedString; } /** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */ interface SVGUnitTypes { readonly SVG_UNIT_TYPE_UNKNOWN: 0; readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; } declare var SVGUnitTypes: { prototype: SVGUnitTypes; new(): SVGUnitTypes; readonly SVG_UNIT_TYPE_UNKNOWN: 0; readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; }; /** Corresponds to the <use> element. */ interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { readonly height: SVGAnimatedLength; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGUseElement: { prototype: SVGUseElement; new(): SVGUseElement; }; /** Provides access to the properties of <view> elements, as well as methods to manipulate them. */ interface SVGViewElement extends SVGElement, SVGFitToViewBox { addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SVGViewElement: { prototype: SVGViewElement; new(): SVGViewElement; }; /** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */ interface Screen { readonly availHeight: number; readonly availWidth: number; readonly colorDepth: number; readonly height: number; readonly orientation: ScreenOrientation; readonly pixelDepth: number; readonly width: number; } declare var Screen: { prototype: Screen; new(): Screen; }; interface ScreenOrientationEventMap { "change": Event; } interface ScreenOrientation extends EventTarget { readonly angle: number; onchange: ((this: ScreenOrientation, ev: Event) => any) | null; readonly type: OrientationType; lock(orientation: OrientationLockType): Promise<void>; unlock(): void; addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ScreenOrientation: { prototype: ScreenOrientation; new(): ScreenOrientation; }; interface ScriptProcessorNodeEventMap { "audioprocess": AudioProcessingEvent; } /** * Allows the generation, processing, or analyzing of audio using JavaScript. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode). */ interface ScriptProcessorNode extends AudioNode { /** @deprecated */ readonly bufferSize: number; /** @deprecated */ onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null; addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** @deprecated */ declare var ScriptProcessorNode: { prototype: ScriptProcessorNode; new(): ScriptProcessorNode; }; /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */ interface SecurityPolicyViolationEvent extends Event { readonly blockedURI: string; readonly columnNumber: number; readonly disposition: SecurityPolicyViolationEventDisposition; readonly documentURI: string; readonly effectiveDirective: string; readonly lineNumber: number; readonly originalPolicy: string; readonly referrer: string; readonly sample: string; readonly sourceFile: string; readonly statusCode: number; readonly violatedDirective: string; } declare var SecurityPolicyViolationEvent: { prototype: SecurityPolicyViolationEvent; new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; }; /** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */ interface Selection { readonly anchorNode: Node | null; readonly anchorOffset: number; readonly focusNode: Node | null; readonly focusOffset: number; readonly isCollapsed: boolean; readonly rangeCount: number; readonly type: string; addRange(range: Range): void; collapse(node: Node | null, offset?: number): void; collapseToEnd(): void; collapseToStart(): void; containsNode(node: Node, allowPartialContainment?: boolean): boolean; deleteFromDocument(): void; empty(): void; extend(node: Node, offset?: number): void; getRangeAt(index: number): Range; modify(alter?: string, direction?: string, granularity?: string): void; removeAllRanges(): void; removeRange(range: Range): void; selectAllChildren(node: Node): void; setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void; setPosition(node: Node | null, offset?: number): void; toString(): string; } declare var Selection: { prototype: Selection; new(): Selection; toString(): string; }; interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } /** * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. * Available only in secure contexts. */ interface ServiceWorker extends EventTarget, AbstractWorker { onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; readonly scriptURL: string; readonly state: ServiceWorkerState; postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorker: { prototype: ServiceWorker; new(): ServiceWorker; }; interface ServiceWorkerContainerEventMap { "controllerchange": Event; "message": MessageEvent; "messageerror": MessageEvent; } /** * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. * Available only in secure contexts. */ interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; readonly ready: Promise<ServiceWorkerRegistration>; getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>; getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; startMessages(): void; addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorkerContainer: { prototype: ServiceWorkerContainer; new(): ServiceWorkerContainer; }; interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } /** * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. * Available only in secure contexts. */ interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; readonly navigationPreload: NavigationPreloadManager; onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; readonly pushManager: PushManager; readonly scope: string; readonly updateViaCache: ServiceWorkerUpdateViaCache; readonly waiting: ServiceWorker | null; getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; showNotification(title: string, options?: NotificationOptions): Promise<void>; unregister(): Promise<boolean>; update(): Promise<void>; addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; }; interface ShadowRootEventMap { "slotchange": Event; } interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML { readonly delegatesFocus: boolean; readonly host: Element; readonly mode: ShadowRootMode; onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; readonly slotAssignment: SlotAssignmentMode; /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ShadowRoot: { prototype: ShadowRoot; new(): ShadowRoot; }; interface SharedWorker extends EventTarget, AbstractWorker { /** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */ readonly port: MessagePort; addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SharedWorker: { prototype: SharedWorker; new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker; }; interface Slottable { readonly assignedSlot: HTMLSlotElement | null; } interface SourceBufferEventMap { "abort": Event; "error": Event; "update": Event; "updateend": Event; "updatestart": Event; } /** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */ interface SourceBuffer extends EventTarget { appendWindowEnd: number; appendWindowStart: number; readonly buffered: TimeRanges; mode: AppendMode; onabort: ((this: SourceBuffer, ev: Event) => any) | null; onerror: ((this: SourceBuffer, ev: Event) => any) | null; onupdate: ((this: SourceBuffer, ev: Event) => any) | null; onupdateend: ((this: SourceBuffer, ev: Event) => any) | null; onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null; timestampOffset: number; readonly updating: boolean; abort(): void; appendBuffer(data: BufferSource): void; changeType(type: string): void; remove(start: number, end: number): void; addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SourceBuffer: { prototype: SourceBuffer; new(): SourceBuffer; }; interface SourceBufferListEventMap { "addsourcebuffer": Event; "removesourcebuffer": Event; } /** A simple container list for multiple SourceBuffer objects. */ interface SourceBufferList extends EventTarget { readonly length: number; onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: SourceBuffer; } declare var SourceBufferList: { prototype: SourceBufferList; new(): SourceBufferList; }; interface SpeechRecognitionAlternative { readonly confidence: number; readonly transcript: string; } declare var SpeechRecognitionAlternative: { prototype: SpeechRecognitionAlternative; new(): SpeechRecognitionAlternative; }; interface SpeechRecognitionResult { readonly isFinal: boolean; readonly length: number; item(index: number): SpeechRecognitionAlternative; [index: number]: SpeechRecognitionAlternative; } declare var SpeechRecognitionResult: { prototype: SpeechRecognitionResult; new(): SpeechRecognitionResult; }; interface SpeechRecognitionResultList { readonly length: number; item(index: number): SpeechRecognitionResult; [index: number]: SpeechRecognitionResult; } declare var SpeechRecognitionResultList: { prototype: SpeechRecognitionResultList; new(): SpeechRecognitionResultList; }; interface SpeechSynthesisEventMap { "voiceschanged": Event; } /** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */ interface SpeechSynthesis extends EventTarget { onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null; readonly paused: boolean; readonly pending: boolean; readonly speaking: boolean; cancel(): void; getVoices(): SpeechSynthesisVoice[]; pause(): void; resume(): void; speak(utterance: SpeechSynthesisUtterance): void; addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SpeechSynthesis: { prototype: SpeechSynthesis; new(): SpeechSynthesis; }; interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { readonly error: SpeechSynthesisErrorCode; } declare var SpeechSynthesisErrorEvent: { prototype: SpeechSynthesisErrorEvent; new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent; }; /** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */ interface SpeechSynthesisEvent extends Event { readonly charIndex: number; readonly charLength: number; readonly elapsedTime: number; readonly name: string; readonly utterance: SpeechSynthesisUtterance; } declare var SpeechSynthesisEvent: { prototype: SpeechSynthesisEvent; new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent; }; interface SpeechSynthesisUtteranceEventMap { "boundary": SpeechSynthesisEvent; "end": SpeechSynthesisEvent; "error": SpeechSynthesisErrorEvent; "mark": SpeechSynthesisEvent; "pause": SpeechSynthesisEvent; "resume": SpeechSynthesisEvent; "start": SpeechSynthesisEvent; } /** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */ interface SpeechSynthesisUtterance extends EventTarget { lang: string; onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null; onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; pitch: number; rate: number; text: string; voice: SpeechSynthesisVoice | null; volume: number; addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SpeechSynthesisUtterance: { prototype: SpeechSynthesisUtterance; new(text?: string): SpeechSynthesisUtterance; }; /** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */ interface SpeechSynthesisVoice { readonly default: boolean; readonly lang: string; readonly localService: boolean; readonly name: string; readonly voiceURI: string; } declare var SpeechSynthesisVoice: { prototype: SpeechSynthesisVoice; new(): SpeechSynthesisVoice; }; interface StaticRange extends AbstractRange { } declare var StaticRange: { prototype: StaticRange; new(init: StaticRangeInit): StaticRange; }; /** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */ interface StereoPannerNode extends AudioNode { readonly pan: AudioParam; } declare var StereoPannerNode: { prototype: StereoPannerNode; new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode; }; /** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */ interface Storage { /** Returns the number of key/value pairs. */ readonly length: number; /** * Removes all key/value pairs, if there are any. * * Dispatches a storage event on Window objects holding an equivalent Storage object. */ clear(): void; /** Returns the current value associated with the given key, or null if the given key does not exist. */ getItem(key: string): string | null; /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */ key(index: number): string | null; /** * Removes the key/value pair with the given key, if a key/value pair with the given key exists. * * Dispatches a storage event on Window objects holding an equivalent Storage object. */ removeItem(key: string): void; /** * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. * * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.) * * Dispatches a storage event on Window objects holding an equivalent Storage object. */ setItem(key: string, value: string): void; [name: string]: any; } declare var Storage: { prototype: Storage; new(): Storage; }; /** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */ interface StorageEvent extends Event { /** Returns the key of the storage item being changed. */ readonly key: string | null; /** Returns the new value of the key of the storage item whose value is being changed. */ readonly newValue: string | null; /** Returns the old value of the key of the storage item whose value is being changed. */ readonly oldValue: string | null; /** Returns the Storage object that was affected. */ readonly storageArea: Storage | null; /** Returns the URL of the document whose storage item changed. */ readonly url: string; /** @deprecated */ initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void; } declare var StorageEvent: { prototype: StorageEvent; new(type: string, eventInitDict?: StorageEventInit): StorageEvent; }; /** Available only in secure contexts. */ interface StorageManager { estimate(): Promise<StorageEstimate>; getDirectory(): Promise<FileSystemDirectoryHandle>; persist(): Promise<boolean>; persisted(): Promise<boolean>; } declare var StorageManager: { prototype: StorageManager; new(): StorageManager; }; /** @deprecated */ interface StyleMedia { type: string; matchMedium(mediaquery: string): boolean; } /** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */ interface StyleSheet { disabled: boolean; readonly href: string | null; readonly media: MediaList; readonly ownerNode: Element | ProcessingInstruction | null; readonly parentStyleSheet: CSSStyleSheet | null; readonly title: string | null; readonly type: string; } declare var StyleSheet: { prototype: StyleSheet; new(): StyleSheet; }; /** A list of StyleSheet. */ interface StyleSheetList { readonly length: number; item(index: number): CSSStyleSheet | null; [index: number]: CSSStyleSheet; } declare var StyleSheetList: { prototype: StyleSheetList; new(): StyleSheetList; }; interface SubmitEvent extends Event { /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */ readonly submitter: HTMLElement | null; } declare var SubmitEvent: { prototype: SubmitEvent; new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent; }; /** * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). * Available only in secure contexts. */ interface SubtleCrypto { decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>; deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>; encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>; exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>; importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>; wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>; } declare var SubtleCrypto: { prototype: SubtleCrypto; new(): SubtleCrypto; }; /** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */ interface Text extends CharacterData, Slottable { /** Returns the combined data of all direct Text node siblings. */ readonly wholeText: string; /** Splits data at the given offset and returns the remainder as Text node. */ splitText(offset: number): Text; } declare var Text: { prototype: Text; new(data?: string): Text; }; /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ interface TextDecoder extends TextDecoderCommon { /** * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. * * \`\`\` * var string = "", decoder = new TextDecoder(encoding), buffer; * while(buffer = next_chunk()) { * string += decoder.decode(buffer, {stream:true}); * } * string += decoder.decode(); // end-of-queue * \`\`\` * * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. */ decode(input?: BufferSource, options?: TextDecodeOptions): string; } declare var TextDecoder: { prototype: TextDecoder; new(label?: string, options?: TextDecoderOptions): TextDecoder; }; interface TextDecoderCommon { /** Returns encoding's name, lowercased. */ readonly encoding: string; /** Returns true if error mode is "fatal", otherwise false. */ readonly fatal: boolean; /** Returns the value of ignore BOM. */ readonly ignoreBOM: boolean; } interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon { readonly readable: ReadableStream<string>; readonly writable: WritableStream<BufferSource>; } declare var TextDecoderStream: { prototype: TextDecoderStream; new(label?: string, options?: TextDecoderOptions): TextDecoderStream; }; /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ interface TextEncoder extends TextEncoderCommon { /** Returns the result of running UTF-8's encoder. */ encode(input?: string): Uint8Array; /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */ encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; } declare var TextEncoder: { prototype: TextEncoder; new(): TextEncoder; }; interface TextEncoderCommon { /** Returns "utf-8". */ readonly encoding: string; } interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon { readonly readable: ReadableStream<Uint8Array>; readonly writable: WritableStream<string>; } declare var TextEncoderStream: { prototype: TextEncoderStream; new(): TextEncoderStream; }; /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */ interface TextMetrics { /** Returns the measurement described below. */ readonly actualBoundingBoxAscent: number; /** Returns the measurement described below. */ readonly actualBoundingBoxDescent: number; /** Returns the measurement described below. */ readonly actualBoundingBoxLeft: number; /** Returns the measurement described below. */ readonly actualBoundingBoxRight: number; /** Returns the measurement described below. */ readonly fontBoundingBoxAscent: number; /** Returns the measurement described below. */ readonly fontBoundingBoxDescent: number; /** Returns the measurement described below. */ readonly width: number; } declare var TextMetrics: { prototype: TextMetrics; new(): TextMetrics; }; interface TextTrackEventMap { "cuechange": Event; } /** This interface also inherits properties from EventTarget. */ interface TextTrack extends EventTarget { /** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */ readonly activeCues: TextTrackCueList | null; /** Returns the text track list of cues, as a TextTrackCueList object. */ readonly cues: TextTrackCueList | null; /** * Returns the ID of the given track. * * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method. * * For TextTrack objects corresponding to track elements, this is the ID of the track element. */ readonly id: string; /** Returns the text track in-band metadata track dispatch type string. */ readonly inBandMetadataTrackDispatchType: string; /** Returns the text track kind string. */ readonly kind: TextTrackKind; /** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */ readonly label: string; /** Returns the text track language string. */ readonly language: string; /** * Returns the text track mode, represented by a string from the following list: * * Can be set, to change the mode. */ mode: TextTrackMode; oncuechange: ((this: TextTrack, ev: Event) => any) | null; /** Adds the given cue to textTrack's text track list of cues. */ addCue(cue: TextTrackCue): void; /** Removes the given cue from textTrack's text track list of cues. */ removeCue(cue: TextTrackCue): void; addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var TextTrack: { prototype: TextTrack; new(): TextTrack; }; interface TextTrackCueEventMap { "enter": Event; "exit": Event; } /** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */ interface TextTrackCue extends EventTarget { /** * Returns the text track cue end time, in seconds. * * Can be set. */ endTime: number; /** * Returns the text track cue identifier. * * Can be set. */ id: string; onenter: ((this: TextTrackCue, ev: Event) => any) | null; onexit: ((this: TextTrackCue, ev: Event) => any) | null; /** * Returns true if the text track cue pause-on-exit flag is set, false otherwise. * * Can be set. */ pauseOnExit: boolean; /** * Returns the text track cue start time, in seconds. * * Can be set. */ startTime: number; /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */ readonly track: TextTrack | null; addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var TextTrackCue: { prototype: TextTrackCue; new(): TextTrackCue; }; interface TextTrackCueList { /** Returns the number of cues in the list. */ readonly length: number; /** * Returns the first text track cue (in text track cue order) with text track cue identifier id. * * Returns null if none of the cues have the given identifier or if the argument is the empty string. */ getCueById(id: string): TextTrackCue | null; [index: number]: TextTrackCue; } declare var TextTrackCueList: { prototype: TextTrackCueList; new(): TextTrackCueList; }; interface TextTrackListEventMap { "addtrack": TrackEvent; "change": Event; "removetrack": TrackEvent; } interface TextTrackList extends EventTarget { readonly length: number; onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; onchange: ((this: TextTrackList, ev: Event) => any) | null; onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; getTrackById(id: string): TextTrack | null; addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: TextTrack; } declare var TextTrackList: { prototype: TextTrackList; new(): TextTrackList; }; /** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. */ interface TimeRanges { /** Returns the number of ranges in the object. */ readonly length: number; /** * Returns the time for the end of the range with the given index. * * Throws an "IndexSizeError" DOMException if the index is out of range. */ end(index: number): number; /** * Returns the time for the start of the range with the given index. * * Throws an "IndexSizeError" DOMException if the index is out of range. */ start(index: number): number; } declare var TimeRanges: { prototype: TimeRanges; new(): TimeRanges; }; /** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */ interface Touch { readonly clientX: number; readonly clientY: number; readonly force: number; readonly identifier: number; readonly pageX: number; readonly pageY: number; readonly radiusX: number; readonly radiusY: number; readonly rotationAngle: number; readonly screenX: number; readonly screenY: number; readonly target: EventTarget; } declare var Touch: { prototype: Touch; new(touchInitDict: TouchInit): Touch; }; /** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */ interface TouchEvent extends UIEvent { readonly altKey: boolean; readonly changedTouches: TouchList; readonly ctrlKey: boolean; readonly metaKey: boolean; readonly shiftKey: boolean; readonly targetTouches: TouchList; readonly touches: TouchList; } declare var TouchEvent: { prototype: TouchEvent; new(type: string, eventInitDict?: TouchEventInit): TouchEvent; }; /** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */ interface TouchList { readonly length: number; item(index: number): Touch | null; [index: number]: Touch; } declare var TouchList: { prototype: TouchList; new(): TouchList; }; /** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */ interface TrackEvent extends Event { /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */ readonly track: TextTrack | null; } declare var TrackEvent: { prototype: TrackEvent; new(type: string, eventInitDict?: TrackEventInit): TrackEvent; }; interface TransformStream<I = any, O = any> { readonly readable: ReadableStream<O>; readonly writable: WritableStream<I>; } declare var TransformStream: { prototype: TransformStream; new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; }; interface TransformStreamDefaultController<O = any> { readonly desiredSize: number | null; enqueue(chunk?: O): void; error(reason?: any): void; terminate(): void; } declare var TransformStreamDefaultController: { prototype: TransformStreamDefaultController; new(): TransformStreamDefaultController; }; /** Events providing information related to transitions. */ interface TransitionEvent extends Event { readonly elapsedTime: number; readonly propertyName: string; readonly pseudoElement: string; } declare var TransitionEvent: { prototype: TransitionEvent; new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent; }; /** The nodes of a document subtree and a position within them. */ interface TreeWalker { currentNode: Node; readonly filter: NodeFilter | null; readonly root: Node; readonly whatToShow: number; firstChild(): Node | null; lastChild(): Node | null; nextNode(): Node | null; nextSibling(): Node | null; parentNode(): Node | null; previousNode(): Node | null; previousSibling(): Node | null; } declare var TreeWalker: { prototype: TreeWalker; new(): TreeWalker; }; /** Simple user interface events. */ interface UIEvent extends Event { readonly detail: number; readonly view: Window | null; /** @deprecated */ readonly which: number; /** @deprecated */ initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void; } declare var UIEvent: { prototype: UIEvent; new(type: string, eventInitDict?: UIEventInit): UIEvent; }; /** The URL interface represents an object providing static methods used for creating object URLs. */ interface URL { hash: string; host: string; hostname: string; href: string; toString(): string; readonly origin: string; password: string; pathname: string; port: string; protocol: string; search: string; readonly searchParams: URLSearchParams; username: string; toJSON(): string; } declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; createObjectURL(obj: Blob | MediaSource): string; revokeObjectURL(url: string): void; }; type webkitURL = URL; declare var webkitURL: typeof URL; interface URLSearchParams { /** Appends a specified key/value pair as a new search parameter. */ append(name: string, value: string): void; /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */ delete(name: string): void; /** Returns the first value associated to the given search parameter. */ get(name: string): string | null; /** Returns all the values association with a given search parameter. */ getAll(name: string): string[]; /** Returns a Boolean indicating if such a search parameter exists. */ has(name: string): boolean; /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */ set(name: string, value: string): void; sort(): void; /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ toString(): string; forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; } declare var URLSearchParams: { prototype: URLSearchParams; new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; toString(): string; }; interface VTTCue extends TextTrackCue { align: AlignSetting; line: LineAndPositionSetting; lineAlign: LineAlignSetting; position: LineAndPositionSetting; positionAlign: PositionAlignSetting; region: VTTRegion | null; size: number; snapToLines: boolean; text: string; vertical: DirectionSetting; getCueAsHTML(): DocumentFragment; addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var VTTCue: { prototype: VTTCue; new(startTime: number, endTime: number, text: string): VTTCue; }; interface VTTRegion { id: string; lines: number; regionAnchorX: number; regionAnchorY: number; scroll: ScrollSetting; viewportAnchorX: number; viewportAnchorY: number; width: number; } declare var VTTRegion: { prototype: VTTRegion; new(): VTTRegion; }; /** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */ interface ValidityState { readonly badInput: boolean; readonly customError: boolean; readonly patternMismatch: boolean; readonly rangeOverflow: boolean; readonly rangeUnderflow: boolean; readonly stepMismatch: boolean; readonly tooLong: boolean; readonly tooShort: boolean; readonly typeMismatch: boolean; readonly valid: boolean; readonly valueMissing: boolean; } declare var ValidityState: { prototype: ValidityState; new(): ValidityState; }; interface VideoColorSpace { readonly fullRange: boolean | null; readonly matrix: VideoMatrixCoefficients | null; readonly primaries: VideoColorPrimaries | null; readonly transfer: VideoTransferCharacteristics | null; toJSON(): VideoColorSpaceInit; } declare var VideoColorSpace: { prototype: VideoColorSpace; new(init?: VideoColorSpaceInit): VideoColorSpace; }; /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */ interface VideoPlaybackQuality { /** @deprecated */ readonly corruptedVideoFrames: number; readonly creationTime: DOMHighResTimeStamp; readonly droppedVideoFrames: number; readonly totalVideoFrames: number; } declare var VideoPlaybackQuality: { prototype: VideoPlaybackQuality; new(): VideoPlaybackQuality; }; interface VisualViewportEventMap { "resize": Event; "scroll": Event; } interface VisualViewport extends EventTarget { readonly height: number; readonly offsetLeft: number; readonly offsetTop: number; onresize: ((this: VisualViewport, ev: Event) => any) | null; onscroll: ((this: VisualViewport, ev: Event) => any) | null; readonly pageLeft: number; readonly pageTop: number; readonly scale: number; readonly width: number; addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var VisualViewport: { prototype: VisualViewport; new(): VisualViewport; }; interface WEBGL_color_buffer_float { readonly RGBA32F_EXT: 0x8814; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } interface WEBGL_compressed_texture_astc { getSupportedProfiles(): string[]; readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0; readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1; readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2; readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3; readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4; readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5; readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6; readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7; readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8; readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9; readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA; readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB; readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC; readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD; } interface WEBGL_compressed_texture_etc { readonly COMPRESSED_R11_EAC: 0x9270; readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; readonly COMPRESSED_RG11_EAC: 0x9272; readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; readonly COMPRESSED_RGB8_ETC2: 0x9274; readonly COMPRESSED_SRGB8_ETC2: 0x9275; readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; } interface WEBGL_compressed_texture_etc1 { readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64; } /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */ interface WEBGL_compressed_texture_s3tc { readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0; readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1; readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2; readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3; } interface WEBGL_compressed_texture_s3tc_srgb { readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F; } /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */ interface WEBGL_debug_renderer_info { readonly UNMASKED_VENDOR_WEBGL: 0x9245; readonly UNMASKED_RENDERER_WEBGL: 0x9246; } interface WEBGL_debug_shaders { getTranslatedShaderSource(shader: WebGLShader): string; } /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */ interface WEBGL_depth_texture { readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA; } interface WEBGL_draw_buffers { drawBuffersWEBGL(buffers: GLenum[]): void; readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3; readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4; readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5; readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6; readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7; readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8; readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9; readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA; readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB; readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC; readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED; readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE; readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF; readonly DRAW_BUFFER0_WEBGL: 0x8825; readonly DRAW_BUFFER1_WEBGL: 0x8826; readonly DRAW_BUFFER2_WEBGL: 0x8827; readonly DRAW_BUFFER3_WEBGL: 0x8828; readonly DRAW_BUFFER4_WEBGL: 0x8829; readonly DRAW_BUFFER5_WEBGL: 0x882A; readonly DRAW_BUFFER6_WEBGL: 0x882B; readonly DRAW_BUFFER7_WEBGL: 0x882C; readonly DRAW_BUFFER8_WEBGL: 0x882D; readonly DRAW_BUFFER9_WEBGL: 0x882E; readonly DRAW_BUFFER10_WEBGL: 0x882F; readonly DRAW_BUFFER11_WEBGL: 0x8830; readonly DRAW_BUFFER12_WEBGL: 0x8831; readonly DRAW_BUFFER13_WEBGL: 0x8832; readonly DRAW_BUFFER14_WEBGL: 0x8833; readonly DRAW_BUFFER15_WEBGL: 0x8834; readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF; readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; } interface WEBGL_lose_context { loseContext(): void; restoreContext(): void; } interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void; } /** A WaveShaperNode always has exactly one input and one output. */ interface WaveShaperNode extends AudioNode { curve: Float32Array | null; oversample: OverSampleType; } declare var WaveShaperNode: { prototype: WaveShaperNode; new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode; }; interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase { } declare var WebGL2RenderingContext: { prototype: WebGL2RenderingContext; new(): WebGL2RenderingContext; readonly READ_BUFFER: 0x0C02; readonly UNPACK_ROW_LENGTH: 0x0CF2; readonly UNPACK_SKIP_ROWS: 0x0CF3; readonly UNPACK_SKIP_PIXELS: 0x0CF4; readonly PACK_ROW_LENGTH: 0x0D02; readonly PACK_SKIP_ROWS: 0x0D03; readonly PACK_SKIP_PIXELS: 0x0D04; readonly COLOR: 0x1800; readonly DEPTH: 0x1801; readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806A; readonly UNPACK_SKIP_IMAGES: 0x806D; readonly UNPACK_IMAGE_HEIGHT: 0x806E; readonly TEXTURE_3D: 0x806F; readonly TEXTURE_WRAP_R: 0x8072; readonly MAX_3D_TEXTURE_SIZE: 0x8073; readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; readonly MAX_ELEMENTS_VERTICES: 0x80E8; readonly MAX_ELEMENTS_INDICES: 0x80E9; readonly TEXTURE_MIN_LOD: 0x813A; readonly TEXTURE_MAX_LOD: 0x813B; readonly TEXTURE_BASE_LEVEL: 0x813C; readonly TEXTURE_MAX_LEVEL: 0x813D; readonly MIN: 0x8007; readonly MAX: 0x8008; readonly DEPTH_COMPONENT24: 0x81A6; readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; readonly TEXTURE_COMPARE_MODE: 0x884C; readonly TEXTURE_COMPARE_FUNC: 0x884D; readonly CURRENT_QUERY: 0x8865; readonly QUERY_RESULT: 0x8866; readonly QUERY_RESULT_AVAILABLE: 0x8867; readonly STREAM_READ: 0x88E1; readonly STREAM_COPY: 0x88E2; readonly STATIC_READ: 0x88E5; readonly STATIC_COPY: 0x88E6; readonly DYNAMIC_READ: 0x88E9; readonly DYNAMIC_COPY: 0x88EA; readonly MAX_DRAW_BUFFERS: 0x8824; readonly DRAW_BUFFER0: 0x8825; readonly DRAW_BUFFER1: 0x8826; readonly DRAW_BUFFER2: 0x8827; readonly DRAW_BUFFER3: 0x8828; readonly DRAW_BUFFER4: 0x8829; readonly DRAW_BUFFER5: 0x882A; readonly DRAW_BUFFER6: 0x882B; readonly DRAW_BUFFER7: 0x882C; readonly DRAW_BUFFER8: 0x882D; readonly DRAW_BUFFER9: 0x882E; readonly DRAW_BUFFER10: 0x882F; readonly DRAW_BUFFER11: 0x8830; readonly DRAW_BUFFER12: 0x8831; readonly DRAW_BUFFER13: 0x8832; readonly DRAW_BUFFER14: 0x8833; readonly DRAW_BUFFER15: 0x8834; readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; readonly SAMPLER_3D: 0x8B5F; readonly SAMPLER_2D_SHADOW: 0x8B62; readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; readonly PIXEL_PACK_BUFFER: 0x88EB; readonly PIXEL_UNPACK_BUFFER: 0x88EC; readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; readonly FLOAT_MAT2x3: 0x8B65; readonly FLOAT_MAT2x4: 0x8B66; readonly FLOAT_MAT3x2: 0x8B67; readonly FLOAT_MAT3x4: 0x8B68; readonly FLOAT_MAT4x2: 0x8B69; readonly FLOAT_MAT4x3: 0x8B6A; readonly SRGB: 0x8C40; readonly SRGB8: 0x8C41; readonly SRGB8_ALPHA8: 0x8C43; readonly COMPARE_REF_TO_TEXTURE: 0x884E; readonly RGBA32F: 0x8814; readonly RGB32F: 0x8815; readonly RGBA16F: 0x881A; readonly RGB16F: 0x881B; readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; readonly MAX_VARYING_COMPONENTS: 0x8B4B; readonly TEXTURE_2D_ARRAY: 0x8C1A; readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; readonly R11F_G11F_B10F: 0x8C3A; readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; readonly RGB9_E5: 0x8C3D; readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; readonly RASTERIZER_DISCARD: 0x8C89; readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; readonly INTERLEAVED_ATTRIBS: 0x8C8C; readonly SEPARATE_ATTRIBS: 0x8C8D; readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; readonly RGBA32UI: 0x8D70; readonly RGB32UI: 0x8D71; readonly RGBA16UI: 0x8D76; readonly RGB16UI: 0x8D77; readonly RGBA8UI: 0x8D7C; readonly RGB8UI: 0x8D7D; readonly RGBA32I: 0x8D82; readonly RGB32I: 0x8D83; readonly RGBA16I: 0x8D88; readonly RGB16I: 0x8D89; readonly RGBA8I: 0x8D8E; readonly RGB8I: 0x8D8F; readonly RED_INTEGER: 0x8D94; readonly RGB_INTEGER: 0x8D98; readonly RGBA_INTEGER: 0x8D99; readonly SAMPLER_2D_ARRAY: 0x8DC1; readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; readonly SAMPLER_CUBE_SHADOW: 0x8DC5; readonly UNSIGNED_INT_VEC2: 0x8DC6; readonly UNSIGNED_INT_VEC3: 0x8DC7; readonly UNSIGNED_INT_VEC4: 0x8DC8; readonly INT_SAMPLER_2D: 0x8DCA; readonly INT_SAMPLER_3D: 0x8DCB; readonly INT_SAMPLER_CUBE: 0x8DCC; readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; readonly DEPTH_COMPONENT32F: 0x8CAC; readonly DEPTH32F_STENCIL8: 0x8CAD; readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; readonly FRAMEBUFFER_DEFAULT: 0x8218; readonly UNSIGNED_INT_24_8: 0x84FA; readonly DEPTH24_STENCIL8: 0x88F0; readonly UNSIGNED_NORMALIZED: 0x8C17; readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; readonly READ_FRAMEBUFFER: 0x8CA8; readonly DRAW_FRAMEBUFFER: 0x8CA9; readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; readonly RENDERBUFFER_SAMPLES: 0x8CAB; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; readonly COLOR_ATTACHMENT1: 0x8CE1; readonly COLOR_ATTACHMENT2: 0x8CE2; readonly COLOR_ATTACHMENT3: 0x8CE3; readonly COLOR_ATTACHMENT4: 0x8CE4; readonly COLOR_ATTACHMENT5: 0x8CE5; readonly COLOR_ATTACHMENT6: 0x8CE6; readonly COLOR_ATTACHMENT7: 0x8CE7; readonly COLOR_ATTACHMENT8: 0x8CE8; readonly COLOR_ATTACHMENT9: 0x8CE9; readonly COLOR_ATTACHMENT10: 0x8CEA; readonly COLOR_ATTACHMENT11: 0x8CEB; readonly COLOR_ATTACHMENT12: 0x8CEC; readonly COLOR_ATTACHMENT13: 0x8CED; readonly COLOR_ATTACHMENT14: 0x8CEE; readonly COLOR_ATTACHMENT15: 0x8CEF; readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; readonly MAX_SAMPLES: 0x8D57; readonly HALF_FLOAT: 0x140B; readonly RG: 0x8227; readonly RG_INTEGER: 0x8228; readonly R8: 0x8229; readonly RG8: 0x822B; readonly R16F: 0x822D; readonly R32F: 0x822E; readonly RG16F: 0x822F; readonly RG32F: 0x8230; readonly R8I: 0x8231; readonly R8UI: 0x8232; readonly R16I: 0x8233; readonly R16UI: 0x8234; readonly R32I: 0x8235; readonly R32UI: 0x8236; readonly RG8I: 0x8237; readonly RG8UI: 0x8238; readonly RG16I: 0x8239; readonly RG16UI: 0x823A; readonly RG32I: 0x823B; readonly RG32UI: 0x823C; readonly VERTEX_ARRAY_BINDING: 0x85B5; readonly R8_SNORM: 0x8F94; readonly RG8_SNORM: 0x8F95; readonly RGB8_SNORM: 0x8F96; readonly RGBA8_SNORM: 0x8F97; readonly SIGNED_NORMALIZED: 0x8F9C; readonly COPY_READ_BUFFER: 0x8F36; readonly COPY_WRITE_BUFFER: 0x8F37; readonly COPY_READ_BUFFER_BINDING: 0x8F36; readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; readonly UNIFORM_BUFFER: 0x8A11; readonly UNIFORM_BUFFER_BINDING: 0x8A28; readonly UNIFORM_BUFFER_START: 0x8A29; readonly UNIFORM_BUFFER_SIZE: 0x8A2A; readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; readonly UNIFORM_TYPE: 0x8A37; readonly UNIFORM_SIZE: 0x8A38; readonly UNIFORM_BLOCK_INDEX: 0x8A3A; readonly UNIFORM_OFFSET: 0x8A3B; readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; readonly UNIFORM_BLOCK_BINDING: 0x8A3F; readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; readonly INVALID_INDEX: 0xFFFFFFFF; readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; readonly OBJECT_TYPE: 0x9112; readonly SYNC_CONDITION: 0x9113; readonly SYNC_STATUS: 0x9114; readonly SYNC_FLAGS: 0x9115; readonly SYNC_FENCE: 0x9116; readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; readonly UNSIGNALED: 0x9118; readonly SIGNALED: 0x9119; readonly ALREADY_SIGNALED: 0x911A; readonly TIMEOUT_EXPIRED: 0x911B; readonly CONDITION_SATISFIED: 0x911C; readonly WAIT_FAILED: 0x911D; readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; readonly ANY_SAMPLES_PASSED: 0x8C2F; readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; readonly SAMPLER_BINDING: 0x8919; readonly RGB10_A2UI: 0x906F; readonly INT_2_10_10_10_REV: 0x8D9F; readonly TRANSFORM_FEEDBACK: 0x8E22; readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; readonly MAX_ELEMENT_INDEX: 0x8D6B; readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; readonly TIMEOUT_IGNORED: -1; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGL2RenderingContextBase { beginQuery(target: GLenum, query: WebGLQuery): void; beginTransformFeedback(primitiveMode: GLenum): void; bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void; bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void; bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void; bindVertexArray(array: WebGLVertexArrayObject | null): void; blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void; clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void; clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void; clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; createQuery(): WebGLQuery | null; createSampler(): WebGLSampler | null; createTransformFeedback(): WebGLTransformFeedback | null; createVertexArray(): WebGLVertexArrayObject | null; deleteQuery(query: WebGLQuery | null): void; deleteSampler(sampler: WebGLSampler | null): void; deleteSync(sync: WebGLSync | null): void; deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; drawBuffers(buffers: GLenum[]): void; drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; endQuery(target: GLenum): void; endTransformFeedback(): void; fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void; getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null; getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void; getFragDataLocation(program: WebGLProgram, name: string): GLint; getIndexedParameter(target: GLenum, index: GLuint): any; getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; getQueryParameter(query: WebGLQuery, pname: GLenum): any; getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; getSyncParameter(sync: WebGLSync, pname: GLenum): any; getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; isQuery(query: WebGLQuery | null): GLboolean; isSampler(sampler: WebGLSampler | null): GLboolean; isSync(sync: WebGLSync | null): GLboolean; isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; pauseTransformFeedback(): void; readBuffer(src: GLenum): void; renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; resumeTransformFeedback(): void; samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void; transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; vertexAttribDivisor(index: GLuint, divisor: GLuint): void; vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; vertexAttribI4iv(index: GLuint, values: Int32List): void; vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; vertexAttribI4uiv(index: GLuint, values: Uint32List): void; vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; readonly READ_BUFFER: 0x0C02; readonly UNPACK_ROW_LENGTH: 0x0CF2; readonly UNPACK_SKIP_ROWS: 0x0CF3; readonly UNPACK_SKIP_PIXELS: 0x0CF4; readonly PACK_ROW_LENGTH: 0x0D02; readonly PACK_SKIP_ROWS: 0x0D03; readonly PACK_SKIP_PIXELS: 0x0D04; readonly COLOR: 0x1800; readonly DEPTH: 0x1801; readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806A; readonly UNPACK_SKIP_IMAGES: 0x806D; readonly UNPACK_IMAGE_HEIGHT: 0x806E; readonly TEXTURE_3D: 0x806F; readonly TEXTURE_WRAP_R: 0x8072; readonly MAX_3D_TEXTURE_SIZE: 0x8073; readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; readonly MAX_ELEMENTS_VERTICES: 0x80E8; readonly MAX_ELEMENTS_INDICES: 0x80E9; readonly TEXTURE_MIN_LOD: 0x813A; readonly TEXTURE_MAX_LOD: 0x813B; readonly TEXTURE_BASE_LEVEL: 0x813C; readonly TEXTURE_MAX_LEVEL: 0x813D; readonly MIN: 0x8007; readonly MAX: 0x8008; readonly DEPTH_COMPONENT24: 0x81A6; readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; readonly TEXTURE_COMPARE_MODE: 0x884C; readonly TEXTURE_COMPARE_FUNC: 0x884D; readonly CURRENT_QUERY: 0x8865; readonly QUERY_RESULT: 0x8866; readonly QUERY_RESULT_AVAILABLE: 0x8867; readonly STREAM_READ: 0x88E1; readonly STREAM_COPY: 0x88E2; readonly STATIC_READ: 0x88E5; readonly STATIC_COPY: 0x88E6; readonly DYNAMIC_READ: 0x88E9; readonly DYNAMIC_COPY: 0x88EA; readonly MAX_DRAW_BUFFERS: 0x8824; readonly DRAW_BUFFER0: 0x8825; readonly DRAW_BUFFER1: 0x8826; readonly DRAW_BUFFER2: 0x8827; readonly DRAW_BUFFER3: 0x8828; readonly DRAW_BUFFER4: 0x8829; readonly DRAW_BUFFER5: 0x882A; readonly DRAW_BUFFER6: 0x882B; readonly DRAW_BUFFER7: 0x882C; readonly DRAW_BUFFER8: 0x882D; readonly DRAW_BUFFER9: 0x882E; readonly DRAW_BUFFER10: 0x882F; readonly DRAW_BUFFER11: 0x8830; readonly DRAW_BUFFER12: 0x8831; readonly DRAW_BUFFER13: 0x8832; readonly DRAW_BUFFER14: 0x8833; readonly DRAW_BUFFER15: 0x8834; readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; readonly SAMPLER_3D: 0x8B5F; readonly SAMPLER_2D_SHADOW: 0x8B62; readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; readonly PIXEL_PACK_BUFFER: 0x88EB; readonly PIXEL_UNPACK_BUFFER: 0x88EC; readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; readonly FLOAT_MAT2x3: 0x8B65; readonly FLOAT_MAT2x4: 0x8B66; readonly FLOAT_MAT3x2: 0x8B67; readonly FLOAT_MAT3x4: 0x8B68; readonly FLOAT_MAT4x2: 0x8B69; readonly FLOAT_MAT4x3: 0x8B6A; readonly SRGB: 0x8C40; readonly SRGB8: 0x8C41; readonly SRGB8_ALPHA8: 0x8C43; readonly COMPARE_REF_TO_TEXTURE: 0x884E; readonly RGBA32F: 0x8814; readonly RGB32F: 0x8815; readonly RGBA16F: 0x881A; readonly RGB16F: 0x881B; readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; readonly MAX_VARYING_COMPONENTS: 0x8B4B; readonly TEXTURE_2D_ARRAY: 0x8C1A; readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; readonly R11F_G11F_B10F: 0x8C3A; readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; readonly RGB9_E5: 0x8C3D; readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; readonly RASTERIZER_DISCARD: 0x8C89; readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; readonly INTERLEAVED_ATTRIBS: 0x8C8C; readonly SEPARATE_ATTRIBS: 0x8C8D; readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; readonly RGBA32UI: 0x8D70; readonly RGB32UI: 0x8D71; readonly RGBA16UI: 0x8D76; readonly RGB16UI: 0x8D77; readonly RGBA8UI: 0x8D7C; readonly RGB8UI: 0x8D7D; readonly RGBA32I: 0x8D82; readonly RGB32I: 0x8D83; readonly RGBA16I: 0x8D88; readonly RGB16I: 0x8D89; readonly RGBA8I: 0x8D8E; readonly RGB8I: 0x8D8F; readonly RED_INTEGER: 0x8D94; readonly RGB_INTEGER: 0x8D98; readonly RGBA_INTEGER: 0x8D99; readonly SAMPLER_2D_ARRAY: 0x8DC1; readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; readonly SAMPLER_CUBE_SHADOW: 0x8DC5; readonly UNSIGNED_INT_VEC2: 0x8DC6; readonly UNSIGNED_INT_VEC3: 0x8DC7; readonly UNSIGNED_INT_VEC4: 0x8DC8; readonly INT_SAMPLER_2D: 0x8DCA; readonly INT_SAMPLER_3D: 0x8DCB; readonly INT_SAMPLER_CUBE: 0x8DCC; readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; readonly DEPTH_COMPONENT32F: 0x8CAC; readonly DEPTH32F_STENCIL8: 0x8CAD; readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; readonly FRAMEBUFFER_DEFAULT: 0x8218; readonly UNSIGNED_INT_24_8: 0x84FA; readonly DEPTH24_STENCIL8: 0x88F0; readonly UNSIGNED_NORMALIZED: 0x8C17; readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; readonly READ_FRAMEBUFFER: 0x8CA8; readonly DRAW_FRAMEBUFFER: 0x8CA9; readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; readonly RENDERBUFFER_SAMPLES: 0x8CAB; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; readonly COLOR_ATTACHMENT1: 0x8CE1; readonly COLOR_ATTACHMENT2: 0x8CE2; readonly COLOR_ATTACHMENT3: 0x8CE3; readonly COLOR_ATTACHMENT4: 0x8CE4; readonly COLOR_ATTACHMENT5: 0x8CE5; readonly COLOR_ATTACHMENT6: 0x8CE6; readonly COLOR_ATTACHMENT7: 0x8CE7; readonly COLOR_ATTACHMENT8: 0x8CE8; readonly COLOR_ATTACHMENT9: 0x8CE9; readonly COLOR_ATTACHMENT10: 0x8CEA; readonly COLOR_ATTACHMENT11: 0x8CEB; readonly COLOR_ATTACHMENT12: 0x8CEC; readonly COLOR_ATTACHMENT13: 0x8CED; readonly COLOR_ATTACHMENT14: 0x8CEE; readonly COLOR_ATTACHMENT15: 0x8CEF; readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; readonly MAX_SAMPLES: 0x8D57; readonly HALF_FLOAT: 0x140B; readonly RG: 0x8227; readonly RG_INTEGER: 0x8228; readonly R8: 0x8229; readonly RG8: 0x822B; readonly R16F: 0x822D; readonly R32F: 0x822E; readonly RG16F: 0x822F; readonly RG32F: 0x8230; readonly R8I: 0x8231; readonly R8UI: 0x8232; readonly R16I: 0x8233; readonly R16UI: 0x8234; readonly R32I: 0x8235; readonly R32UI: 0x8236; readonly RG8I: 0x8237; readonly RG8UI: 0x8238; readonly RG16I: 0x8239; readonly RG16UI: 0x823A; readonly RG32I: 0x823B; readonly RG32UI: 0x823C; readonly VERTEX_ARRAY_BINDING: 0x85B5; readonly R8_SNORM: 0x8F94; readonly RG8_SNORM: 0x8F95; readonly RGB8_SNORM: 0x8F96; readonly RGBA8_SNORM: 0x8F97; readonly SIGNED_NORMALIZED: 0x8F9C; readonly COPY_READ_BUFFER: 0x8F36; readonly COPY_WRITE_BUFFER: 0x8F37; readonly COPY_READ_BUFFER_BINDING: 0x8F36; readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; readonly UNIFORM_BUFFER: 0x8A11; readonly UNIFORM_BUFFER_BINDING: 0x8A28; readonly UNIFORM_BUFFER_START: 0x8A29; readonly UNIFORM_BUFFER_SIZE: 0x8A2A; readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; readonly UNIFORM_TYPE: 0x8A37; readonly UNIFORM_SIZE: 0x8A38; readonly UNIFORM_BLOCK_INDEX: 0x8A3A; readonly UNIFORM_OFFSET: 0x8A3B; readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; readonly UNIFORM_BLOCK_BINDING: 0x8A3F; readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; readonly INVALID_INDEX: 0xFFFFFFFF; readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; readonly OBJECT_TYPE: 0x9112; readonly SYNC_CONDITION: 0x9113; readonly SYNC_STATUS: 0x9114; readonly SYNC_FLAGS: 0x9115; readonly SYNC_FENCE: 0x9116; readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; readonly UNSIGNALED: 0x9118; readonly SIGNALED: 0x9119; readonly ALREADY_SIGNALED: 0x911A; readonly TIMEOUT_EXPIRED: 0x911B; readonly CONDITION_SATISFIED: 0x911C; readonly WAIT_FAILED: 0x911D; readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; readonly ANY_SAMPLES_PASSED: 0x8C2F; readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; readonly SAMPLER_BINDING: 0x8919; readonly RGB10_A2UI: 0x906F; readonly INT_2_10_10_10_REV: 0x8D9F; readonly TRANSFORM_FEEDBACK: 0x8E22; readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; readonly MAX_ELEMENT_INDEX: 0x8D6B; readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; readonly TIMEOUT_IGNORED: -1; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; } interface WebGL2RenderingContextOverloads { bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void; bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; } /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */ interface WebGLActiveInfo { readonly name: string; readonly size: GLint; readonly type: GLenum; } declare var WebGLActiveInfo: { prototype: WebGLActiveInfo; new(): WebGLActiveInfo; }; /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */ interface WebGLBuffer { } declare var WebGLBuffer: { prototype: WebGLBuffer; new(): WebGLBuffer; }; /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */ interface WebGLContextEvent extends Event { readonly statusMessage: string; } declare var WebGLContextEvent: { prototype: WebGLContextEvent; new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; }; /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */ interface WebGLFramebuffer { } declare var WebGLFramebuffer: { prototype: WebGLFramebuffer; new(): WebGLFramebuffer; }; /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */ interface WebGLProgram { } declare var WebGLProgram: { prototype: WebGLProgram; new(): WebGLProgram; }; interface WebGLQuery { } declare var WebGLQuery: { prototype: WebGLQuery; new(): WebGLQuery; }; /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */ interface WebGLRenderbuffer { } declare var WebGLRenderbuffer: { prototype: WebGLRenderbuffer; new(): WebGLRenderbuffer; }; /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */ interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads { } declare var WebGLRenderingContext: { prototype: WebGLRenderingContext; new(): WebGLRenderingContext; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGLRenderingContextBase { readonly canvas: HTMLCanvasElement | OffscreenCanvas; readonly drawingBufferHeight: GLsizei; readonly drawingBufferWidth: GLsizei; activeTexture(texture: GLenum): void; attachShader(program: WebGLProgram, shader: WebGLShader): void; bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; bindTexture(target: GLenum, texture: WebGLTexture | null): void; blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; blendEquation(mode: GLenum): void; blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; blendFunc(sfactor: GLenum, dfactor: GLenum): void; blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; checkFramebufferStatus(target: GLenum): GLenum; clear(mask: GLbitfield): void; clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; clearDepth(depth: GLclampf): void; clearStencil(s: GLint): void; colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; compileShader(shader: WebGLShader): void; copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; createBuffer(): WebGLBuffer | null; createFramebuffer(): WebGLFramebuffer | null; createProgram(): WebGLProgram | null; createRenderbuffer(): WebGLRenderbuffer | null; createShader(type: GLenum): WebGLShader | null; createTexture(): WebGLTexture | null; cullFace(mode: GLenum): void; deleteBuffer(buffer: WebGLBuffer | null): void; deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; deleteProgram(program: WebGLProgram | null): void; deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; deleteShader(shader: WebGLShader | null): void; deleteTexture(texture: WebGLTexture | null): void; depthFunc(func: GLenum): void; depthMask(flag: GLboolean): void; depthRange(zNear: GLclampf, zFar: GLclampf): void; detachShader(program: WebGLProgram, shader: WebGLShader): void; disable(cap: GLenum): void; disableVertexAttribArray(index: GLuint): void; drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; enable(cap: GLenum): void; enableVertexAttribArray(index: GLuint): void; finish(): void; flush(): void; framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; frontFace(mode: GLenum): void; generateMipmap(target: GLenum): void; getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; getAttribLocation(program: WebGLProgram, name: string): GLint; getBufferParameter(target: GLenum, pname: GLenum): any; getContextAttributes(): WebGLContextAttributes | null; getError(): GLenum; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null; getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null; getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null; getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null; getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null; getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null; getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null; getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; getExtension(name: string): any; getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; getParameter(pname: GLenum): any; getProgramInfoLog(program: WebGLProgram): string | null; getProgramParameter(program: WebGLProgram, pname: GLenum): any; getRenderbufferParameter(target: GLenum, pname: GLenum): any; getShaderInfoLog(shader: WebGLShader): string | null; getShaderParameter(shader: WebGLShader, pname: GLenum): any; getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; getShaderSource(shader: WebGLShader): string | null; getSupportedExtensions(): string[] | null; getTexParameter(target: GLenum, pname: GLenum): any; getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; getVertexAttrib(index: GLuint, pname: GLenum): any; getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; hint(target: GLenum, mode: GLenum): void; isBuffer(buffer: WebGLBuffer | null): GLboolean; isContextLost(): boolean; isEnabled(cap: GLenum): GLboolean; isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; isProgram(program: WebGLProgram | null): GLboolean; isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; isShader(shader: WebGLShader | null): GLboolean; isTexture(texture: WebGLTexture | null): GLboolean; lineWidth(width: GLfloat): void; linkProgram(program: WebGLProgram): void; pixelStorei(pname: GLenum, param: GLint | GLboolean): void; polygonOffset(factor: GLfloat, units: GLfloat): void; renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; sampleCoverage(value: GLclampf, invert: GLboolean): void; scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; shaderSource(shader: WebGLShader, source: string): void; stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; stencilMask(mask: GLuint): void; stencilMaskSeparate(face: GLenum, mask: GLuint): void; stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; texParameteri(target: GLenum, pname: GLenum, param: GLint): void; uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; uniform1i(location: WebGLUniformLocation | null, x: GLint): void; uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; useProgram(program: WebGLProgram | null): void; validateProgram(program: WebGLProgram): void; vertexAttrib1f(index: GLuint, x: GLfloat): void; vertexAttrib1fv(index: GLuint, values: Float32List): void; vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; vertexAttrib2fv(index: GLuint, values: Float32List): void; vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; vertexAttrib3fv(index: GLuint, values: Float32List): void; vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; vertexAttrib4fv(index: GLuint, values: Float32List): void; vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; } interface WebGLRenderingContextOverloads { bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void; bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; } interface WebGLSampler { } declare var WebGLSampler: { prototype: WebGLSampler; new(): WebGLSampler; }; /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */ interface WebGLShader { } declare var WebGLShader: { prototype: WebGLShader; new(): WebGLShader; }; /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */ interface WebGLShaderPrecisionFormat { readonly precision: GLint; readonly rangeMax: GLint; readonly rangeMin: GLint; } declare var WebGLShaderPrecisionFormat: { prototype: WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat; }; interface WebGLSync { } declare var WebGLSync: { prototype: WebGLSync; new(): WebGLSync; }; /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */ interface WebGLTexture { } declare var WebGLTexture: { prototype: WebGLTexture; new(): WebGLTexture; }; interface WebGLTransformFeedback { } declare var WebGLTransformFeedback: { prototype: WebGLTransformFeedback; new(): WebGLTransformFeedback; }; /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */ interface WebGLUniformLocation { } declare var WebGLUniformLocation: { prototype: WebGLUniformLocation; new(): WebGLUniformLocation; }; interface WebGLVertexArrayObject { } declare var WebGLVertexArrayObject: { prototype: WebGLVertexArrayObject; new(): WebGLVertexArrayObject; }; interface WebGLVertexArrayObjectOES { } interface WebSocketEventMap { "close": CloseEvent; "error": Event; "message": MessageEvent; "open": Event; } /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */ interface WebSocket extends EventTarget { /** * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: * * Can be set, to change how binary data is returned. The default is "blob". */ binaryType: BinaryType; /** * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. * * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) */ readonly bufferedAmount: number; /** Returns the extensions selected by the server, if any. */ readonly extensions: string; onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; onerror: ((this: WebSocket, ev: Event) => any) | null; onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; onopen: ((this: WebSocket, ev: Event) => any) | null; /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */ readonly protocol: string; /** Returns the state of the WebSocket object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL that was used to establish the WebSocket connection. */ readonly url: string; /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */ close(code?: number, reason?: string): void; /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */ send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var WebSocket: { prototype: WebSocket; new(url: string | URL, protocols?: string | string[]): WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; }; /** Events that occur due to the user moving a mouse wheel or similar input device. */ interface WheelEvent extends MouseEvent { readonly deltaMode: number; readonly deltaX: number; readonly deltaY: number; readonly deltaZ: number; readonly DOM_DELTA_PIXEL: 0x00; readonly DOM_DELTA_LINE: 0x01; readonly DOM_DELTA_PAGE: 0x02; } declare var WheelEvent: { prototype: WheelEvent; new(type: string, eventInitDict?: WheelEventInit): WheelEvent; readonly DOM_DELTA_PIXEL: 0x00; readonly DOM_DELTA_LINE: 0x01; readonly DOM_DELTA_PAGE: 0x02; }; interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap { "DOMContentLoaded": Event; "devicemotion": DeviceMotionEvent; "deviceorientation": DeviceOrientationEvent; "gamepadconnected": GamepadEvent; "gamepaddisconnected": GamepadEvent; "orientationchange": Event; } /** A window containing a DOM document; the document property points to the DOM document loaded in that window. */ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { /** @deprecated This is a legacy alias of \`navigator\`. */ readonly clientInformation: Navigator; /** Returns true if the window has been closed, false otherwise. */ readonly closed: boolean; /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */ readonly customElements: CustomElementRegistry; readonly devicePixelRatio: number; readonly document: Document; /** @deprecated */ readonly event: Event | undefined; /** @deprecated */ readonly external: External; readonly frameElement: Element | null; readonly frames: WindowProxy; readonly history: History; readonly innerHeight: number; readonly innerWidth: number; readonly length: number; get location(): Location; set location(href: string | Location); /** Returns true if the location bar is visible; otherwise, returns false. */ readonly locationbar: BarProp; /** Returns true if the menu bar is visible; otherwise, returns false. */ readonly menubar: BarProp; name: string; readonly navigator: Navigator; /** Available only in secure contexts. */ ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; /** Available only in secure contexts. */ ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; /** @deprecated */ onorientationchange: ((this: Window, ev: Event) => any) | null; opener: any; /** @deprecated */ readonly orientation: number; readonly outerHeight: number; readonly outerWidth: number; /** @deprecated This is a legacy alias of \`scrollX\`. */ readonly pageXOffset: number; /** @deprecated This is a legacy alias of \`scrollY\`. */ readonly pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. * * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */ readonly parent: WindowProxy; /** Returns true if the personal bar is visible; otherwise, returns false. */ readonly personalbar: BarProp; readonly screen: Screen; readonly screenLeft: number; readonly screenTop: number; readonly screenX: number; readonly screenY: number; readonly scrollX: number; readonly scrollY: number; /** Returns true if the scrollbars are visible; otherwise, returns false. */ readonly scrollbars: BarProp; readonly self: Window & typeof globalThis; readonly speechSynthesis: SpeechSynthesis; /** @deprecated */ status: string; /** Returns true if the status bar is visible; otherwise, returns false. */ readonly statusbar: BarProp; /** Returns true if the toolbar is visible; otherwise, returns false. */ readonly toolbar: BarProp; readonly top: WindowProxy | null; readonly visualViewport: VisualViewport | null; readonly window: Window & typeof globalThis; alert(message?: any): void; blur(): void; cancelIdleCallback(handle: number): void; /** @deprecated */ captureEvents(): void; /** Closes the window. */ close(): void; confirm(message?: string): boolean; /** Moves the focus to the window's browsing context, if any. */ focus(): void; getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; getSelection(): Selection | null; matchMedia(query: string): MediaQueryList; moveBy(x: number, y: number): void; moveTo(x: number, y: number): void; open(url?: string | URL, target?: string, features?: string): WindowProxy | null; /** * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. * * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. * * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. * * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". * * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. */ postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; postMessage(message: any, options?: WindowPostMessageOptions): void; print(): void; prompt(message?: string, _default?: string): string | null; /** @deprecated */ releaseEvents(): void; requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; resizeBy(x: number, y: number): void; resizeTo(width: number, height: number): void; scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** Cancels the document load. */ stop(): void; addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; [index: number]: Window; } declare var Window: { prototype: Window; new(): Window; }; interface WindowEventHandlersEventMap { "afterprint": Event; "beforeprint": Event; "beforeunload": BeforeUnloadEvent; "gamepadconnected": GamepadEvent; "gamepaddisconnected": GamepadEvent; "hashchange": HashChangeEvent; "languagechange": Event; "message": MessageEvent; "messageerror": MessageEvent; "offline": Event; "online": Event; "pagehide": PageTransitionEvent; "pageshow": PageTransitionEvent; "popstate": PopStateEvent; "rejectionhandled": PromiseRejectionEvent; "storage": StorageEvent; "unhandledrejection": PromiseRejectionEvent; "unload": Event; } interface WindowEventHandlers { onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null; onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null; onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null; ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null; onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null; onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null; ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface WindowLocalStorage { readonly localStorage: Storage; } interface WindowOrWorkerGlobalScope { /** Available only in secure contexts. */ readonly caches: CacheStorage; readonly crossOriginIsolated: boolean; readonly crypto: Crypto; readonly indexedDB: IDBFactory; readonly isSecureContext: boolean; readonly origin: string; readonly performance: Performance; atob(data: string): string; btoa(data: string): string; clearInterval(id: number | undefined): void; clearTimeout(id: number | undefined): void; createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; queueMicrotask(callback: VoidFunction): void; reportError(e: any): void; setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; structuredClone(value: any, options?: StructuredSerializeOptions): any; } interface WindowSessionStorage { readonly sessionStorage: Storage; } interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */ interface Worker extends EventTarget, AbstractWorker { onmessage: ((this: Worker, ev: MessageEvent) => any) | null; onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */ postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; /** Aborts worker's associated global environment. */ terminate(): void; addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Worker: { prototype: Worker; new(scriptURL: string | URL, options?: WorkerOptions): Worker; }; /** Available only in secure contexts. */ interface Worklet { /** * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes. * * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin". * * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing. */ addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>; } declare var Worklet: { prototype: Worklet; new(): Worklet; }; /** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */ interface WritableStream<W = any> { readonly locked: boolean; abort(reason?: any): Promise<void>; close(): Promise<void>; getWriter(): WritableStreamDefaultWriter<W>; } declare var WritableStream: { prototype: WritableStream; new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; }; /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */ interface WritableStreamDefaultController { readonly signal: AbortSignal; error(e?: any): void; } declare var WritableStreamDefaultController: { prototype: WritableStreamDefaultController; new(): WritableStreamDefaultController; }; /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */ interface WritableStreamDefaultWriter<W = any> { readonly closed: Promise<undefined>; readonly desiredSize: number | null; readonly ready: Promise<undefined>; abort(reason?: any): Promise<void>; close(): Promise<void>; releaseLock(): void; write(chunk?: W): Promise<void>; } declare var WritableStreamDefaultWriter: { prototype: WritableStreamDefaultWriter; new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>; }; /** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */ interface XMLDocument extends Document { addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLDocument: { prototype: XMLDocument; new(): XMLDocument; }; interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */ interface XMLHttpRequest extends XMLHttpRequestEventTarget { onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; /** Returns client's state. */ readonly readyState: number; /** Returns the response body. */ readonly response: any; /** * Returns response as text. * * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". */ readonly responseText: string; /** * Returns the response type. * * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". * * When set: setting to "document" is ignored if current global object is not a Window object. * * When set: throws an "InvalidStateError" DOMException if state is loading or done. * * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. */ responseType: XMLHttpRequestResponseType; readonly responseURL: string; /** * Returns the response as document. * * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document". */ readonly responseXML: Document | null; readonly status: number; readonly statusText: string; /** * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). * * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. */ timeout: number; /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */ readonly upload: XMLHttpRequestUpload; /** * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. * * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. */ withCredentials: boolean; /** Cancels any network activity. */ abort(): void; getAllResponseHeaders(): string; getResponseHeader(name: string): string | null; /** * Sets the request method, request URL, and synchronous flag. * * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. * * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`. * * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. */ open(method: string, url: string | URL): void; open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void; /** * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.) * * Throws an "InvalidStateError" DOMException if state is loading or done. */ overrideMimeType(mime: string): void; /** * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. * * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. */ send(body?: Document | XMLHttpRequestBodyInit | null): void; /** * Combines a header in author request headers. * * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. * * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. */ setRequestHeader(name: string, value: string): void; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequest: { prototype: XMLHttpRequest; new(): XMLHttpRequest; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; }; interface XMLHttpRequestEventTargetEventMap { "abort": ProgressEvent<XMLHttpRequestEventTarget>; "error": ProgressEvent<XMLHttpRequestEventTarget>; "load": ProgressEvent<XMLHttpRequestEventTarget>; "loadend": ProgressEvent<XMLHttpRequestEventTarget>; "loadstart": ProgressEvent<XMLHttpRequestEventTarget>; "progress": ProgressEvent<XMLHttpRequestEventTarget>; "timeout": ProgressEvent<XMLHttpRequestEventTarget>; } interface XMLHttpRequestEventTarget extends EventTarget { onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequestEventTarget: { prototype: XMLHttpRequestEventTarget; new(): XMLHttpRequestEventTarget; }; interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequestUpload: { prototype: XMLHttpRequestUpload; new(): XMLHttpRequestUpload; }; /** Provides the serializeToString() method to construct an XML string representing a DOM tree. */ interface XMLSerializer { serializeToString(root: Node): string; } declare var XMLSerializer: { prototype: XMLSerializer; new(): XMLSerializer; }; /** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */ interface XPathEvaluator extends XPathEvaluatorBase { } declare var XPathEvaluator: { prototype: XPathEvaluator; new(): XPathEvaluator; }; interface XPathEvaluatorBase { createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression; createNSResolver(nodeResolver: Node): XPathNSResolver; evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult; } /** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */ interface XPathExpression { evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult; } declare var XPathExpression: { prototype: XPathExpression; new(): XPathExpression; }; /** The results generated by evaluating an XPath expression within the context of a given node. */ interface XPathResult { readonly booleanValue: boolean; readonly invalidIteratorState: boolean; readonly numberValue: number; readonly resultType: number; readonly singleNodeValue: Node | null; readonly snapshotLength: number; readonly stringValue: string; iterateNext(): Node | null; snapshotItem(index: number): Node | null; readonly ANY_TYPE: 0; readonly NUMBER_TYPE: 1; readonly STRING_TYPE: 2; readonly BOOLEAN_TYPE: 3; readonly UNORDERED_NODE_ITERATOR_TYPE: 4; readonly ORDERED_NODE_ITERATOR_TYPE: 5; readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; readonly ANY_UNORDERED_NODE_TYPE: 8; readonly FIRST_ORDERED_NODE_TYPE: 9; } declare var XPathResult: { prototype: XPathResult; new(): XPathResult; readonly ANY_TYPE: 0; readonly NUMBER_TYPE: 1; readonly STRING_TYPE: 2; readonly BOOLEAN_TYPE: 3; readonly UNORDERED_NODE_ITERATOR_TYPE: 4; readonly ORDERED_NODE_ITERATOR_TYPE: 5; readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; readonly ANY_UNORDERED_NODE_TYPE: 8; readonly FIRST_ORDERED_NODE_TYPE: 9; }; /** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */ interface XSLTProcessor { clearParameters(): void; getParameter(namespaceURI: string | null, localName: string): any; importStylesheet(style: Node): void; removeParameter(namespaceURI: string | null, localName: string): void; reset(): void; setParameter(namespaceURI: string | null, localName: string, value: any): void; transformToDocument(source: Node): Document; transformToFragment(source: Node, output: Document): DocumentFragment; } declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; }; interface Console { assert(condition?: boolean, ...data: any[]): void; clear(): void; count(label?: string): void; countReset(label?: string): void; debug(...data: any[]): void; dir(item?: any, options?: any): void; dirxml(...data: any[]): void; error(...data: any[]): void; group(...data: any[]): void; groupCollapsed(...data: any[]): void; groupEnd(): void; info(...data: any[]): void; log(...data: any[]): void; table(tabularData?: any, properties?: string[]): void; time(label?: string): void; timeEnd(label?: string): void; timeLog(label?: string, ...data: any[]): void; timeStamp(label?: string): void; trace(...data: any[]): void; warn(...data: any[]): void; } declare var console: Console; /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */ declare namespace CSS { function escape(ident: string): string; function supports(property: string, value: string): boolean; function supports(conditionText: string): boolean; } declare namespace WebAssembly { interface CompileError extends Error { } var CompileError: { prototype: CompileError; new(message?: string): CompileError; (message?: string): CompileError; }; interface Global { value: any; valueOf(): any; } var Global: { prototype: Global; new(descriptor: GlobalDescriptor, v?: any): Global; }; interface Instance { readonly exports: Exports; } var Instance: { prototype: Instance; new(module: Module, importObject?: Imports): Instance; }; interface LinkError extends Error { } var LinkError: { prototype: LinkError; new(message?: string): LinkError; (message?: string): LinkError; }; interface Memory { readonly buffer: ArrayBuffer; grow(delta: number): number; } var Memory: { prototype: Memory; new(descriptor: MemoryDescriptor): Memory; }; interface Module { } var Module: { prototype: Module; new(bytes: BufferSource): Module; customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; exports(moduleObject: Module): ModuleExportDescriptor[]; imports(moduleObject: Module): ModuleImportDescriptor[]; }; interface RuntimeError extends Error { } var RuntimeError: { prototype: RuntimeError; new(message?: string): RuntimeError; (message?: string): RuntimeError; }; interface Table { readonly length: number; get(index: number): any; grow(delta: number, value?: any): number; set(index: number, value?: any): void; } var Table: { prototype: Table; new(descriptor: TableDescriptor, value?: any): Table; }; interface GlobalDescriptor { mutable?: boolean; value: ValueType; } interface MemoryDescriptor { initial: number; maximum?: number; shared?: boolean; } interface ModuleExportDescriptor { kind: ImportExportKind; name: string; } interface ModuleImportDescriptor { kind: ImportExportKind; module: string; name: string; } interface TableDescriptor { element: TableKind; initial: number; maximum?: number; } interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; } type ImportExportKind = "function" | "global" | "memory" | "table"; type TableKind = "anyfunc" | "externref"; type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; type ExportValue = Function | Global | Memory | Table; type Exports = Record<string, ExportValue>; type ImportValue = ExportValue | number; type Imports = Record<string, ModuleImports>; type ModuleImports = Record<string, ImportValue>; function compile(bytes: BufferSource): Promise<Module>; function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>; function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>; function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; function validate(bytes: BufferSource): boolean; } interface BlobCallback { (blob: Blob | null): void; } interface CustomElementConstructor { new (...params: any[]): HTMLElement; } interface DecodeErrorCallback { (error: DOMException): void; } interface DecodeSuccessCallback { (decodedData: AudioBuffer): void; } interface ErrorCallback { (err: DOMException): void; } interface FileCallback { (file: File): void; } interface FileSystemEntriesCallback { (entries: FileSystemEntry[]): void; } interface FileSystemEntryCallback { (entry: FileSystemEntry): void; } interface FrameRequestCallback { (time: DOMHighResTimeStamp): void; } interface FunctionStringCallback { (data: string): void; } interface IdleRequestCallback { (deadline: IdleDeadline): void; } interface IntersectionObserverCallback { (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; } interface LockGrantedCallback { (lock: Lock | null): any; } interface MediaSessionActionHandler { (details: MediaSessionActionDetails): void; } interface MutationCallback { (mutations: MutationRecord[], observer: MutationObserver): void; } interface NotificationPermissionCallback { (permission: NotificationPermission): void; } interface OnBeforeUnloadEventHandlerNonNull { (event: Event): string | null; } interface OnErrorEventHandlerNonNull { (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any; } interface PerformanceObserverCallback { (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; } interface PositionCallback { (position: GeolocationPosition): void; } interface PositionErrorCallback { (positionError: GeolocationPositionError): void; } interface QueuingStrategySize<T = any> { (chunk: T): number; } interface RTCPeerConnectionErrorCallback { (error: DOMException): void; } interface RTCSessionDescriptionCallback { (description: RTCSessionDescriptionInit): void; } interface RemotePlaybackAvailabilityCallback { (available: boolean): void; } interface ResizeObserverCallback { (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } interface TransformerFlushCallback<O> { (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; } interface TransformerStartCallback<O> { (controller: TransformStreamDefaultController<O>): any; } interface TransformerTransformCallback<I, O> { (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; } interface UnderlyingSinkAbortCallback { (reason?: any): void | PromiseLike<void>; } interface UnderlyingSinkCloseCallback { (): void | PromiseLike<void>; } interface UnderlyingSinkStartCallback { (controller: WritableStreamDefaultController): any; } interface UnderlyingSinkWriteCallback<W> { (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; } interface UnderlyingSourceCancelCallback { (reason?: any): void | PromiseLike<void>; } interface UnderlyingSourcePullCallback<R> { (controller: ReadableStreamController<R>): void | PromiseLike<void>; } interface UnderlyingSourceStartCallback<R> { (controller: ReadableStreamController<R>): any; } interface VideoFrameRequestCallback { (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void; } interface VoidFunction { (): void; } interface HTMLElementTagNameMap { "a": HTMLAnchorElement; "abbr": HTMLElement; "address": HTMLElement; "area": HTMLAreaElement; "article": HTMLElement; "aside": HTMLElement; "audio": HTMLAudioElement; "b": HTMLElement; "base": HTMLBaseElement; "bdi": HTMLElement; "bdo": HTMLElement; "blockquote": HTMLQuoteElement; "body": HTMLBodyElement; "br": HTMLBRElement; "button": HTMLButtonElement; "canvas": HTMLCanvasElement; "caption": HTMLTableCaptionElement; "cite": HTMLElement; "code": HTMLElement; "col": HTMLTableColElement; "colgroup": HTMLTableColElement; "data": HTMLDataElement; "datalist": HTMLDataListElement; "dd": HTMLElement; "del": HTMLModElement; "details": HTMLDetailsElement; "dfn": HTMLElement; "dialog": HTMLDialogElement; "div": HTMLDivElement; "dl": HTMLDListElement; "dt": HTMLElement; "em": HTMLElement; "embed": HTMLEmbedElement; "fieldset": HTMLFieldSetElement; "figcaption": HTMLElement; "figure": HTMLElement; "footer": HTMLElement; "form": HTMLFormElement; "h1": HTMLHeadingElement; "h2": HTMLHeadingElement; "h3": HTMLHeadingElement; "h4": HTMLHeadingElement; "h5": HTMLHeadingElement; "h6": HTMLHeadingElement; "head": HTMLHeadElement; "header": HTMLElement; "hgroup": HTMLElement; "hr": HTMLHRElement; "html": HTMLHtmlElement; "i": HTMLElement; "iframe": HTMLIFrameElement; "img": HTMLImageElement; "input": HTMLInputElement; "ins": HTMLModElement; "kbd": HTMLElement; "label": HTMLLabelElement; "legend": HTMLLegendElement; "li": HTMLLIElement; "link": HTMLLinkElement; "main": HTMLElement; "map": HTMLMapElement; "mark": HTMLElement; "menu": HTMLMenuElement; "meta": HTMLMetaElement; "meter": HTMLMeterElement; "nav": HTMLElement; "noscript": HTMLElement; "object": HTMLObjectElement; "ol": HTMLOListElement; "optgroup": HTMLOptGroupElement; "option": HTMLOptionElement; "output": HTMLOutputElement; "p": HTMLParagraphElement; "picture": HTMLPictureElement; "pre": HTMLPreElement; "progress": HTMLProgressElement; "q": HTMLQuoteElement; "rp": HTMLElement; "rt": HTMLElement; "ruby": HTMLElement; "s": HTMLElement; "samp": HTMLElement; "script": HTMLScriptElement; "section": HTMLElement; "select": HTMLSelectElement; "slot": HTMLSlotElement; "small": HTMLElement; "source": HTMLSourceElement; "span": HTMLSpanElement; "strong": HTMLElement; "style": HTMLStyleElement; "sub": HTMLElement; "summary": HTMLElement; "sup": HTMLElement; "table": HTMLTableElement; "tbody": HTMLTableSectionElement; "td": HTMLTableCellElement; "template": HTMLTemplateElement; "textarea": HTMLTextAreaElement; "tfoot": HTMLTableSectionElement; "th": HTMLTableCellElement; "thead": HTMLTableSectionElement; "time": HTMLTimeElement; "title": HTMLTitleElement; "tr": HTMLTableRowElement; "track": HTMLTrackElement; "u": HTMLElement; "ul": HTMLUListElement; "var": HTMLElement; "video": HTMLVideoElement; "wbr": HTMLElement; } interface HTMLElementDeprecatedTagNameMap { "acronym": HTMLElement; "applet": HTMLUnknownElement; "basefont": HTMLElement; "bgsound": HTMLUnknownElement; "big": HTMLElement; "blink": HTMLUnknownElement; "center": HTMLElement; "dir": HTMLDirectoryElement; "font": HTMLFontElement; "frame": HTMLFrameElement; "frameset": HTMLFrameSetElement; "isindex": HTMLUnknownElement; "keygen": HTMLUnknownElement; "listing": HTMLPreElement; "marquee": HTMLMarqueeElement; "menuitem": HTMLElement; "multicol": HTMLUnknownElement; "nextid": HTMLUnknownElement; "nobr": HTMLElement; "noembed": HTMLElement; "noframes": HTMLElement; "param": HTMLParamElement; "plaintext": HTMLElement; "rb": HTMLElement; "rtc": HTMLElement; "spacer": HTMLUnknownElement; "strike": HTMLElement; "tt": HTMLElement; "xmp": HTMLPreElement; } interface SVGElementTagNameMap { "a": SVGAElement; "animate": SVGAnimateElement; "animateMotion": SVGAnimateMotionElement; "animateTransform": SVGAnimateTransformElement; "circle": SVGCircleElement; "clipPath": SVGClipPathElement; "defs": SVGDefsElement; "desc": SVGDescElement; "ellipse": SVGEllipseElement; "feBlend": SVGFEBlendElement; "feColorMatrix": SVGFEColorMatrixElement; "feComponentTransfer": SVGFEComponentTransferElement; "feComposite": SVGFECompositeElement; "feConvolveMatrix": SVGFEConvolveMatrixElement; "feDiffuseLighting": SVGFEDiffuseLightingElement; "feDisplacementMap": SVGFEDisplacementMapElement; "feDistantLight": SVGFEDistantLightElement; "feDropShadow": SVGFEDropShadowElement; "feFlood": SVGFEFloodElement; "feFuncA": SVGFEFuncAElement; "feFuncB": SVGFEFuncBElement; "feFuncG": SVGFEFuncGElement; "feFuncR": SVGFEFuncRElement; "feGaussianBlur": SVGFEGaussianBlurElement; "feImage": SVGFEImageElement; "feMerge": SVGFEMergeElement; "feMergeNode": SVGFEMergeNodeElement; "feMorphology": SVGFEMorphologyElement; "feOffset": SVGFEOffsetElement; "fePointLight": SVGFEPointLightElement; "feSpecularLighting": SVGFESpecularLightingElement; "feSpotLight": SVGFESpotLightElement; "feTile": SVGFETileElement; "feTurbulence": SVGFETurbulenceElement; "filter": SVGFilterElement; "foreignObject": SVGForeignObjectElement; "g": SVGGElement; "image": SVGImageElement; "line": SVGLineElement; "linearGradient": SVGLinearGradientElement; "marker": SVGMarkerElement; "mask": SVGMaskElement; "metadata": SVGMetadataElement; "mpath": SVGMPathElement; "path": SVGPathElement; "pattern": SVGPatternElement; "polygon": SVGPolygonElement; "polyline": SVGPolylineElement; "radialGradient": SVGRadialGradientElement; "rect": SVGRectElement; "script": SVGScriptElement; "set": SVGSetElement; "stop": SVGStopElement; "style": SVGStyleElement; "svg": SVGSVGElement; "switch": SVGSwitchElement; "symbol": SVGSymbolElement; "text": SVGTextElement; "textPath": SVGTextPathElement; "title": SVGTitleElement; "tspan": SVGTSpanElement; "use": SVGUseElement; "view": SVGViewElement; } interface MathMLElementTagNameMap { "annotation": MathMLElement; "annotation-xml": MathMLElement; "maction": MathMLElement; "math": MathMLElement; "merror": MathMLElement; "mfrac": MathMLElement; "mi": MathMLElement; "mmultiscripts": MathMLElement; "mn": MathMLElement; "mo": MathMLElement; "mover": MathMLElement; "mpadded": MathMLElement; "mphantom": MathMLElement; "mprescripts": MathMLElement; "mroot": MathMLElement; "mrow": MathMLElement; "ms": MathMLElement; "mspace": MathMLElement; "msqrt": MathMLElement; "mstyle": MathMLElement; "msub": MathMLElement; "msubsup": MathMLElement; "msup": MathMLElement; "mtable": MathMLElement; "mtd": MathMLElement; "mtext": MathMLElement; "mtr": MathMLElement; "munder": MathMLElement; "munderover": MathMLElement; "semantics": MathMLElement; } /** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */ type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>; declare var Audio: { new(src?: string): HTMLAudioElement; }; declare var Image: { new(width?: number, height?: number): HTMLImageElement; }; declare var Option: { new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; }; /** @deprecated This is a legacy alias of \`navigator\`. */ declare var clientInformation: Navigator; /** Returns true if the window has been closed, false otherwise. */ declare var closed: boolean; /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */ declare var customElements: CustomElementRegistry; declare var devicePixelRatio: number; declare var document: Document; /** @deprecated */ declare var event: Event | undefined; /** @deprecated */ declare var external: External; declare var frameElement: Element | null; declare var frames: WindowProxy; declare var history: History; declare var innerHeight: number; declare var innerWidth: number; declare var length: number; declare var location: Location; /** Returns true if the location bar is visible; otherwise, returns false. */ declare var locationbar: BarProp; /** Returns true if the menu bar is visible; otherwise, returns false. */ declare var menubar: BarProp; /** @deprecated */ declare const name: void; declare var navigator: Navigator; /** Available only in secure contexts. */ declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; /** Available only in secure contexts. */ declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; /** @deprecated */ declare var onorientationchange: ((this: Window, ev: Event) => any) | null; declare var opener: any; /** @deprecated */ declare var orientation: number; declare var outerHeight: number; declare var outerWidth: number; /** @deprecated This is a legacy alias of \`scrollX\`. */ declare var pageXOffset: number; /** @deprecated This is a legacy alias of \`scrollY\`. */ declare var pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. * * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */ declare var parent: WindowProxy; /** Returns true if the personal bar is visible; otherwise, returns false. */ declare var personalbar: BarProp; declare var screen: Screen; declare var screenLeft: number; declare var screenTop: number; declare var screenX: number; declare var screenY: number; declare var scrollX: number; declare var scrollY: number; /** Returns true if the scrollbars are visible; otherwise, returns false. */ declare var scrollbars: BarProp; declare var self: Window & typeof globalThis; declare var speechSynthesis: SpeechSynthesis; /** @deprecated */ declare var status: string; /** Returns true if the status bar is visible; otherwise, returns false. */ declare var statusbar: BarProp; /** Returns true if the toolbar is visible; otherwise, returns false. */ declare var toolbar: BarProp; declare var top: WindowProxy | null; declare var visualViewport: VisualViewport | null; declare var window: Window & typeof globalThis; declare function alert(message?: any): void; declare function blur(): void; declare function cancelIdleCallback(handle: number): void; /** @deprecated */ declare function captureEvents(): void; /** Closes the window. */ declare function close(): void; declare function confirm(message?: string): boolean; /** Moves the focus to the window's browsing context, if any. */ declare function focus(): void; declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; declare function getSelection(): Selection | null; declare function matchMedia(query: string): MediaQueryList; declare function moveBy(x: number, y: number): void; declare function moveTo(x: number, y: number): void; declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null; /** * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. * * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. * * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. * * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". * * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. */ declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; declare function postMessage(message: any, options?: WindowPostMessageOptions): void; declare function print(): void; declare function prompt(message?: string, _default?: string): string | null; /** @deprecated */ declare function releaseEvents(): void; declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; declare function resizeBy(x: number, y: number): void; declare function resizeTo(width: number, height: number): void; declare function scroll(options?: ScrollToOptions): void; declare function scroll(x: number, y: number): void; declare function scrollBy(options?: ScrollToOptions): void; declare function scrollBy(x: number, y: number): void; declare function scrollTo(options?: ScrollToOptions): void; declare function scrollTo(x: number, y: number): void; /** Cancels the document load. */ declare function stop(): void; declare function toString(): string; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ declare function dispatchEvent(event: Event): boolean; declare function cancelAnimationFrame(handle: number): void; declare function requestAnimationFrame(callback: FrameRequestCallback): number; /** * Fires when the user aborts the download. * @param ev The event. */ declare var onabort: ((this: Window, ev: UIEvent) => any) | null; declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null; declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null; declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null; declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null; declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null; declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. */ declare var onblur: ((this: Window, ev: FocusEvent) => any) | null; declare var oncancel: ((this: Window, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ declare var oncanplay: ((this: Window, ev: Event) => any) | null; declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ declare var onchange: ((this: Window, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ declare var onclick: ((this: Window, ev: MouseEvent) => any) | null; declare var onclose: ((this: Window, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null; declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null; declare var oncuechange: ((this: Window, ev: Event) => any) | null; declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ declare var ondrag: ((this: Window, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ declare var ondragend: ((this: Window, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ declare var ondragover: ((this: Window, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null; declare var ondrop: ((this: Window, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. */ declare var ondurationchange: ((this: Window, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ declare var onemptied: ((this: Window, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event */ declare var onended: ((this: Window, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. */ declare var onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. */ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null; declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null; declare var oninput: ((this: Window, ev: Event) => any) | null; declare var oninvalid: ((this: Window, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event */ declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated */ declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event */ declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. */ declare var onload: ((this: Window, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ declare var onloadeddata: ((this: Window, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ declare var onloadstart: ((this: Window, ev: Event) => any) | null; declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null; declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null; declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null; declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. */ declare var onpause: ((this: Window, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. */ declare var onplay: ((this: Window, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. */ declare var onplaying: ((this: Window, ev: Event) => any) | null; declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null; declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ declare var onratechange: ((this: Window, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. */ declare var onreset: ((this: Window, ev: Event) => any) | null; declare var onresize: ((this: Window, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ declare var onscroll: ((this: Window, ev: Event) => any) | null; declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. */ declare var onseeked: ((this: Window, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. */ declare var onseeking: ((this: Window, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. */ declare var onselect: ((this: Window, ev: Event) => any) | null; declare var onselectionchange: ((this: Window, ev: Event) => any) | null; declare var onselectstart: ((this: Window, ev: Event) => any) | null; declare var onslotchange: ((this: Window, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. */ declare var onstalled: ((this: Window, ev: Event) => any) | null; declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ declare var onsuspend: ((this: Window, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. */ declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; declare var ontoggle: ((this: Window, ev: Event) => any) | null; declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined; declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined; declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined; declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined; declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null; declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null; declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null; declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ declare var onvolumechange: ((this: Window, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ declare var onwaiting: ((this: Window, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationend\`. */ declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationiteration\`. */ declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`onanimationstart\`. */ declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null; /** @deprecated This is a legacy alias of \`ontransitionend\`. */ declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null; declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; declare var onafterprint: ((this: Window, ev: Event) => any) | null; declare var onbeforeprint: ((this: Window, ev: Event) => any) | null; declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null; declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null; declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null; declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null; declare var onlanguagechange: ((this: Window, ev: Event) => any) | null; declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null; declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null; declare var onoffline: ((this: Window, ev: Event) => any) | null; declare var ononline: ((this: Window, ev: Event) => any) | null; declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null; declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null; declare var onunload: ((this: Window, ev: Event) => any) | null; declare var localStorage: Storage; /** Available only in secure contexts. */ declare var caches: CacheStorage; declare var crossOriginIsolated: boolean; declare var crypto: Crypto; declare var indexedDB: IDBFactory; declare var isSecureContext: boolean; declare var origin: string; declare var performance: Performance; declare function atob(data: string): string; declare function btoa(data: string): string; declare function clearInterval(id: number | undefined): void; declare function clearTimeout(id: number | undefined): void; declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; declare function queueMicrotask(callback: VoidFunction): void; declare function reportError(e: any): void; declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; declare function structuredClone(value: any, options?: StructuredSerializeOptions): any; declare var sessionStorage: Storage; declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; type AlgorithmIdentifier = Algorithm | string; type BigInteger = Uint8Array; type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; type BufferSource = ArrayBufferView | ArrayBuffer; type COSEAlgorithmIdentifier = number; type CSSNumberish = number; type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas; type ClipboardItemData = Promise<string | Blob>; type ClipboardItems = ClipboardItem[]; type ConstrainBoolean = boolean | ConstrainBooleanParameters; type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; type ConstrainDouble = number | ConstrainDoubleRange; type ConstrainULong = number | ConstrainULongRange; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type Float32List = Float32Array | GLfloat[]; type FormDataEntryValue = File | string; type GLbitfield = number; type GLboolean = boolean; type GLclampf = number; type GLenum = number; type GLfloat = number; type GLint = number; type GLint64 = number; type GLintptr = number; type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement; type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record<string, string> | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type Int32List = Int32Array | GLint[]; type LineAndPositionSetting = number | AutoKeyword; type MediaProvider = MediaStream | MediaSource | Blob; type MessageEventSource = WindowProxy | MessagePort | ServiceWorker; type MutationRecordType = "attributes" | "characterData" | "childList"; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null; type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type PerformanceEntryList = PerformanceEntry[]; type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController; type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>; type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader; type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AlignSetting = "center" | "end" | "left" | "right" | "start"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "running" | "suspended"; type AuthenticatorAttachment = "cross-platform" | "platform"; type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb"; type AutoKeyword = "auto"; type AutomationRate = "a-rate" | "k-rate"; type BinaryType = "arraybuffer" | "blob"; type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking"; type CanPlayTypeResult = "" | "maybe" | "probably"; type CanvasDirection = "inherit" | "ltr" | "rtl"; type CanvasFillRule = "evenodd" | "nonzero"; type CanvasFontKerning = "auto" | "none" | "normal"; type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded"; type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase"; type CanvasLineCap = "butt" | "round" | "square"; type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; type ChannelCountMode = "clamped-max" | "explicit" | "max"; type ChannelInterpretation = "discrete" | "speakers"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; type CredentialMediationRequirement = "optional" | "required" | "silent"; type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; type DirectionSetting = "" | "lr" | "rl"; type DisplayCaptureSurfaceType = "browser" | "monitor" | "window"; type DistanceModelType = "exponential" | "inverse" | "linear"; type DocumentReadyState = "complete" | "interactive" | "loading"; type DocumentVisibilityState = "hidden" | "visible"; type EndOfStreamError = "decode" | "network"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FillMode = "auto" | "backwards" | "both" | "forwards" | "none"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; type GamepadHapticActuatorType = "vibration"; type GamepadMappingType = "" | "standard" | "xr-standard"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict"; type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; type ImageOrientation = "flipY" | "from-image"; type ImageSmoothingQuality = "high" | "low" | "medium"; type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend"; type IterationCompositeOperation = "accumulate" | "replace"; type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; type KeyType = "private" | "public" | "secret"; type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey"; type LineAlignSetting = "center" | "end" | "start"; type LockMode = "exclusive" | "shared"; type MIDIPortConnectionState = "closed" | "open" | "pending"; type MIDIPortDeviceState = "connected" | "disconnected"; type MIDIPortType = "input" | "output"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput"; type MediaEncodingType = "record" | "webrtc"; type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request"; type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted"; type MediaKeySessionType = "persistent-license" | "temporary"; type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop"; type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; type PanningModelType = "HRTF" | "equalpower"; type PaymentComplete = "fail" | "success" | "unknown"; type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; type PermissionState = "denied" | "granted" | "prompt"; type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse"; type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right"; type PredefinedColorSpace = "display-p3" | "srgb"; type PremultiplyAlpha = "default" | "none" | "premultiply"; type PresentationStyle = "attachment" | "inline" | "unspecified"; type PublicKeyCredentialType = "public-key"; type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx"; type RTCIceComponent = "rtcp" | "rtp"; type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCRtcpMuxPolicy = "require"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable"; type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting"; type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; type ReadyState = "closed" | "ended" | "open"; type RecordingState = "inactive" | "paused" | "recording"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RemotePlaybackState = "connected" | "connecting" | "disconnected"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestRedirect = "error" | "follow" | "manual"; type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; type ScrollBehavior = "auto" | "smooth"; type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; type ScrollRestoration = "auto" | "manual"; type ScrollSetting = "" | "up"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type SelectionMode = "end" | "preserve" | "select" | "start"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type ShadowRootMode = "closed" | "open"; type SlotAssignmentMode = "manual" | "named"; type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable"; type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles"; type TextTrackMode = "disabled" | "hidden" | "showing"; type TouchType = "direct" | "stylus"; type TransferFunction = "hlg" | "pq" | "srgb"; type UserVerificationRequirement = "discouraged" | "preferred" | "required"; type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; type VideoFacingModeEnum = "environment" | "left" | "right" | "user"; type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WorkerType = "classic" | "module"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; `,ya["lib.dom.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> ///////////////////////////// /// Window Iterable APIs ///////////////////////////// interface AudioParam { setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; } interface AudioParamMap extends ReadonlyMap<string, AudioParam> { } interface BaseAudioContext { createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode; createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave; } interface CSSKeyframesRule { [Symbol.iterator](): IterableIterator<CSSKeyframeRule>; } interface CSSRuleList { [Symbol.iterator](): IterableIterator<CSSRule>; } interface CSSStyleDeclaration { [Symbol.iterator](): IterableIterator<string>; } interface Cache { addAll(requests: Iterable<RequestInfo>): Promise<void>; } interface CanvasPath { roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; } interface CanvasPathDrawingStyles { setLineDash(segments: Iterable<number>): void; } interface DOMRectList { [Symbol.iterator](): IterableIterator<DOMRect>; } interface DOMStringList { [Symbol.iterator](): IterableIterator<string>; } interface DOMTokenList { [Symbol.iterator](): IterableIterator<string>; entries(): IterableIterator<[number, string]>; keys(): IterableIterator<number>; values(): IterableIterator<string>; } interface DataTransferItemList { [Symbol.iterator](): IterableIterator<DataTransferItem>; } interface EventCounts extends ReadonlyMap<string, number> { } interface FileList { [Symbol.iterator](): IterableIterator<File>; } interface FontFaceSet extends Set<FontFace> { } interface FormData { [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[string, FormDataEntryValue]>; /** Returns a list of keys in the list. */ keys(): IterableIterator<string>; /** Returns a list of values in the list. */ values(): IterableIterator<FormDataEntryValue>; } interface HTMLAllCollection { [Symbol.iterator](): IterableIterator<Element>; } interface HTMLCollectionBase { [Symbol.iterator](): IterableIterator<Element>; } interface HTMLCollectionOf<T extends Element> { [Symbol.iterator](): IterableIterator<T>; } interface HTMLFormElement { [Symbol.iterator](): IterableIterator<Element>; } interface HTMLSelectElement { [Symbol.iterator](): IterableIterator<HTMLOptionElement>; } interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ entries(): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ keys(): IterableIterator<string>; /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ values(): IterableIterator<string>; } interface IDBDatabase { /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; } interface IDBObjectStore { /** * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; } interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> { } interface MIDIOutput { send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; } interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> { } interface MediaKeyStatusMap { [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; keys(): IterableIterator<BufferSource>; values(): IterableIterator<MediaKeyStatus>; } interface MediaList { [Symbol.iterator](): IterableIterator<string>; } interface MessageEvent<T = any> { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; } interface MimeTypeArray { [Symbol.iterator](): IterableIterator<MimeType>; } interface NamedNodeMap { [Symbol.iterator](): IterableIterator<Attr>; } interface Navigator { /** Available only in secure contexts. */ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>; vibrate(pattern: Iterable<number>): boolean; } interface NodeList { [Symbol.iterator](): IterableIterator<Node>; /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[number, Node]>; /** Returns an list of keys in the list. */ keys(): IterableIterator<number>; /** Returns an list of values in the list. */ values(): IterableIterator<Node>; } interface NodeListOf<TNode extends Node> { [Symbol.iterator](): IterableIterator<TNode>; /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[number, TNode]>; /** Returns an list of keys in the list. */ keys(): IterableIterator<number>; /** Returns an list of values in the list. */ values(): IterableIterator<TNode>; } interface Plugin { [Symbol.iterator](): IterableIterator<MimeType>; } interface PluginArray { [Symbol.iterator](): IterableIterator<Plugin>; } interface RTCRtpTransceiver { setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; } interface RTCStatsReport extends ReadonlyMap<string, any> { } interface SVGLengthList { [Symbol.iterator](): IterableIterator<SVGLength>; } interface SVGNumberList { [Symbol.iterator](): IterableIterator<SVGNumber>; } interface SVGPointList { [Symbol.iterator](): IterableIterator<DOMPoint>; } interface SVGStringList { [Symbol.iterator](): IterableIterator<string>; } interface SVGTransformList { [Symbol.iterator](): IterableIterator<SVGTransform>; } interface SourceBufferList { [Symbol.iterator](): IterableIterator<SourceBuffer>; } interface SpeechRecognitionResult { [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; } interface SpeechRecognitionResultList { [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; } interface StyleSheetList { [Symbol.iterator](): IterableIterator<CSSStyleSheet>; } interface SubtleCrypto { deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; } interface TextTrackCueList { [Symbol.iterator](): IterableIterator<TextTrackCue>; } interface TextTrackList { [Symbol.iterator](): IterableIterator<TextTrack>; } interface TouchList { [Symbol.iterator](): IterableIterator<Touch>; } interface URLSearchParams { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an array of key, value pairs for every entry in the search params. */ entries(): IterableIterator<[string, string]>; /** Returns a list of keys in the search params. */ keys(): IterableIterator<string>; /** Returns a list of values in the search params. */ values(): IterableIterator<string>; } interface WEBGL_draw_buffers { drawBuffersWEBGL(buffers: Iterable<GLenum>): void; } interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; } interface WebGL2RenderingContextBase { clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; drawBuffers(buffers: Iterable<GLenum>): void; getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; } interface WebGL2RenderingContextOverloads { uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; } interface WebGLRenderingContextBase { vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; } interface WebGLRenderingContextOverloads { uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; } `,ya["lib.es2015.collection.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Map<K, V> { clear(): void; /** * @returns true if an element in the Map existed and has been removed, or false if the element does not exist. */ delete(key: K): boolean; /** * Executes a provided function once per each key/value pair in the Map, in insertion order. */ forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; /** * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. */ get(key: K): V | undefined; /** * @returns boolean indicating whether an element with the specified key exists or not. */ has(key: K): boolean; /** * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. */ set(key: K, value: V): this; /** * @returns the number of elements in the Map. */ readonly size: number; } interface MapConstructor { new(): Map<any, any>; new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; readonly prototype: Map<any, any>; } declare var Map: MapConstructor; interface ReadonlyMap<K, V> { forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void; get(key: K): V | undefined; has(key: K): boolean; readonly size: number; } interface WeakMap<K extends object, V> { /** * Removes the specified element from the WeakMap. * @returns true if the element was successfully removed, or false if it was not present. */ delete(key: K): boolean; /** * @returns a specified element. */ get(key: K): V | undefined; /** * @returns a boolean indicating whether an element with the specified key exists or not. */ has(key: K): boolean; /** * Adds a new element with a specified key and value. * @param key Must be an object. */ set(key: K, value: V): this; } interface WeakMapConstructor { new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>; readonly prototype: WeakMap<object, any>; } declare var WeakMap: WeakMapConstructor; interface Set<T> { /** * Appends a new element with a specified value to the end of the Set. */ add(value: T): this; clear(): void; /** * Removes a specified value from the Set. * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. */ delete(value: T): boolean; /** * Executes a provided function once per each value in the Set object, in insertion order. */ forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; /** * @returns a boolean indicating whether an element with the specified value exists in the Set or not. */ has(value: T): boolean; /** * @returns the number of (unique) elements in Set. */ readonly size: number; } interface SetConstructor { new <T = any>(values?: readonly T[] | null): Set<T>; readonly prototype: Set<any>; } declare var Set: SetConstructor; interface ReadonlySet<T> { forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void; has(value: T): boolean; readonly size: number; } interface WeakSet<T extends object> { /** * Appends a new object to the end of the WeakSet. */ add(value: T): this; /** * Removes the specified element from the WeakSet. * @returns Returns true if the element existed and has been removed, or false if the element does not exist. */ delete(value: T): boolean; /** * @returns a boolean indicating whether an object exists in the WeakSet or not. */ has(value: T): boolean; } interface WeakSetConstructor { new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>; readonly prototype: WeakSet<object>; } declare var WeakSet: WeakSetConstructor; `,ya["lib.es2015.core.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Array<T> { /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: T, start?: number, end?: number): this; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; } interface ArrayConstructor { /** * Creates an array from an array-like object. * @param arrayLike An array-like object to convert to an array. */ from<T>(arrayLike: ArrayLike<T>): T[]; /** * Creates an array from an iterable object. * @param arrayLike An array-like object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of<T>(...items: T[]): T[]; } interface DateConstructor { new (value: number | string | Date): Date; } interface Function { /** * Returns the name of the function. Function names are read-only and can not be changed. */ readonly name: string; } interface Math { /** * Returns the number of leading zero bits in the 32-bit binary representation of a number. * @param x A numeric expression. */ clz32(x: number): number; /** * Returns the result of 32-bit multiplication of two numbers. * @param x First number * @param y Second number */ imul(x: number, y: number): number; /** * Returns the sign of the x, indicating whether x is positive, negative or zero. * @param x The numeric expression to test */ sign(x: number): number; /** * Returns the base 10 logarithm of a number. * @param x A numeric expression. */ log10(x: number): number; /** * Returns the base 2 logarithm of a number. * @param x A numeric expression. */ log2(x: number): number; /** * Returns the natural logarithm of 1 + x. * @param x A numeric expression. */ log1p(x: number): number; /** * Returns the result of (e^x - 1), which is an implementation-dependent approximation to * subtracting 1 from the exponential function of x (e raised to the power of x, where e * is the base of the natural logarithms). * @param x A numeric expression. */ expm1(x: number): number; /** * Returns the hyperbolic cosine of a number. * @param x A numeric expression that contains an angle measured in radians. */ cosh(x: number): number; /** * Returns the hyperbolic sine of a number. * @param x A numeric expression that contains an angle measured in radians. */ sinh(x: number): number; /** * Returns the hyperbolic tangent of a number. * @param x A numeric expression that contains an angle measured in radians. */ tanh(x: number): number; /** * Returns the inverse hyperbolic cosine of a number. * @param x A numeric expression that contains an angle measured in radians. */ acosh(x: number): number; /** * Returns the inverse hyperbolic sine of a number. * @param x A numeric expression that contains an angle measured in radians. */ asinh(x: number): number; /** * Returns the inverse hyperbolic tangent of a number. * @param x A numeric expression that contains an angle measured in radians. */ atanh(x: number): number; /** * Returns the square root of the sum of squares of its arguments. * @param values Values to compute the square root for. * If no arguments are passed, the result is +0. * If there is only one argument, the result is the absolute value. * If any argument is +Infinity or -Infinity, the result is +Infinity. * If any argument is NaN, the result is NaN. * If all arguments are either +0 or −0, the result is +0. */ hypot(...values: number[]): number; /** * Returns the integral part of the a numeric expression, x, removing any fractional digits. * If x is already an integer, the result is x. * @param x A numeric expression. */ trunc(x: number): number; /** * Returns the nearest single precision float representation of a number. * @param x A numeric expression. */ fround(x: number): number; /** * Returns an implementation-dependent approximation to the cube root of number. * @param x A numeric expression. */ cbrt(x: number): number; } interface NumberConstructor { /** * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 * that is representable as a Number value, which is approximately: * 2.2204460492503130808472633361816 x 10−16. */ readonly EPSILON: number; /** * Returns true if passed value is finite. * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a * number. Only finite values of the type number, result in true. * @param number A numeric value. */ isFinite(number: unknown): boolean; /** * Returns true if the value passed is an integer, false otherwise. * @param number A numeric value. */ isInteger(number: unknown): boolean; /** * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter * to a number. Only values of the type number, that are also NaN, result in true. * @param number A numeric value. */ isNaN(number: unknown): boolean; /** * Returns true if the value passed is a safe integer. * @param number A numeric value. */ isSafeInteger(number: unknown): boolean; /** * The value of the largest integer n such that n and n + 1 are both exactly representable as * a Number value. * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1. */ readonly MAX_SAFE_INTEGER: number; /** * The value of the smallest integer n such that n and n − 1 are both exactly representable as * a Number value. * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)). */ readonly MIN_SAFE_INTEGER: number; /** * Converts a string to a floating-point number. * @param string A string that contains a floating-point number. */ parseFloat(string: string): number; /** * Converts A string to an integer. * @param string A string to convert into a number. * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`. * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. * All other strings are considered decimal. */ parseInt(string: string, radix?: number): number; } interface ObjectConstructor { /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. * @param target The target object to copy to. * @param source The source object from which to copy properties. */ assign<T extends {}, U>(target: T, source: U): T & U; /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. * @param target The target object to copy to. * @param source1 The first source object from which to copy properties. * @param source2 The second source object from which to copy properties. */ assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V; /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. * @param target The target object to copy to. * @param source1 The first source object from which to copy properties. * @param source2 The second source object from which to copy properties. * @param source3 The third source object from which to copy properties. */ assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. * @param target The target object to copy to. * @param sources One or more source objects from which to copy properties */ assign(target: object, ...sources: any[]): any; /** * Returns an array of all symbol properties found directly on object o. * @param o Object to retrieve the symbols from. */ getOwnPropertySymbols(o: any): symbol[]; /** * Returns the names of the enumerable string properties and methods of an object. * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ keys(o: {}): string[]; /** * Returns true if the values are the same value, false otherwise. * @param value1 The first value. * @param value2 The second value. */ is(value1: any, value2: any): boolean; /** * Sets the prototype of a specified object o to object proto or null. Returns the object o. * @param o The object to change its prototype. * @param proto The value of the new prototype or null. */ setPrototypeOf(o: any, proto: object | null): any; } interface ReadonlyArray<T> { /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number; } interface RegExp { /** * Returns a string indicating the flags of the regular expression in question. This field is read-only. * The characters in this string are sequenced and concatenated in the following order: * * - "g" for global * - "i" for ignoreCase * - "m" for multiline * - "u" for unicode * - "y" for sticky * * If no flags are set, the value is the empty string. */ readonly flags: string; /** * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular * expression. Default is false. Read-only. */ readonly sticky: boolean; /** * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular * expression. Default is false. Read-only. */ readonly unicode: boolean; } interface RegExpConstructor { new (pattern: RegExp | string, flags?: string): RegExp; (pattern: RegExp | string, flags?: string): RegExp; } interface String { /** * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point * value of the UTF-16 encoded code point starting at the string element at position pos in * the String resulting from converting this object to a String. * If there is no element at that position, the result is undefined. * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos. */ codePointAt(pos: number): number | undefined; /** * Returns true if searchString appears as a substring of the result of converting this * object to a String, at one or more positions that are * greater than or equal to position; otherwise, returns false. * @param searchString search string * @param position If position is undefined, 0 is assumed, so as to search all of the String. */ includes(searchString: string, position?: number): boolean; /** * Returns true if the sequence of elements of searchString converted to a String is the * same as the corresponding elements of this object (converted to a String) starting at * endPosition – length(this). Otherwise returns false. */ endsWith(searchString: string, endPosition?: number): boolean; /** * Returns the String value result of normalizing the string into the normalization form * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default * is "NFC" */ normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; /** * Returns the String value result of normalizing the string into the normalization form * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms. * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default * is "NFC" */ normalize(form?: string): string; /** * Returns a String value that is made from count copies appended together. If count is 0, * the empty string is returned. * @param count number of copies to append */ repeat(count: number): string; /** * Returns true if the sequence of elements of searchString converted to a String is the * same as the corresponding elements of this object (converted to a String) starting at * position. Otherwise returns false. */ startsWith(searchString: string, position?: number): boolean; /** * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value * @deprecated A legacy feature for browser compatibility * @param name */ anchor(name: string): string; /** * Returns a \`<big>\` HTML element * @deprecated A legacy feature for browser compatibility */ big(): string; /** * Returns a \`<blink>\` HTML element * @deprecated A legacy feature for browser compatibility */ blink(): string; /** * Returns a \`<b>\` HTML element * @deprecated A legacy feature for browser compatibility */ bold(): string; /** * Returns a \`<tt>\` HTML element * @deprecated A legacy feature for browser compatibility */ fixed(): string; /** * Returns a \`<font>\` HTML element and sets the color attribute value * @deprecated A legacy feature for browser compatibility */ fontcolor(color: string): string; /** * Returns a \`<font>\` HTML element and sets the size attribute value * @deprecated A legacy feature for browser compatibility */ fontsize(size: number): string; /** * Returns a \`<font>\` HTML element and sets the size attribute value * @deprecated A legacy feature for browser compatibility */ fontsize(size: string): string; /** * Returns an \`<i>\` HTML element * @deprecated A legacy feature for browser compatibility */ italics(): string; /** * Returns an \`<a>\` HTML element and sets the href attribute value * @deprecated A legacy feature for browser compatibility */ link(url: string): string; /** * Returns a \`<small>\` HTML element * @deprecated A legacy feature for browser compatibility */ small(): string; /** * Returns a \`<strike>\` HTML element * @deprecated A legacy feature for browser compatibility */ strike(): string; /** * Returns a \`<sub>\` HTML element * @deprecated A legacy feature for browser compatibility */ sub(): string; /** * Returns a \`<sup>\` HTML element * @deprecated A legacy feature for browser compatibility */ sup(): string; } interface StringConstructor { /** * Return the String value whose elements are, in order, the elements in the List elements. * If length is 0, the empty string is returned. */ fromCodePoint(...codePoints: number[]): string; /** * String.raw is usually used as a tag function of a Tagged Template String. When called as * such, the first argument will be a well formed template call site object and the rest * parameter will contain the substitution values. It can also be called directly, for example, * to interleave strings and values from your own tag function, and in this case the only thing * it needs from the first argument is the raw property. * @param template A well-formed template string call site representation. * @param substitutions A set of substitution values. */ raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string; } `,ya["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" /> `,ya["lib.es2015.generator.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.iterable" /> interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. next(...args: [] | [TNext]): IteratorResult<T, TReturn>; return(value: TReturn): IteratorResult<T, TReturn>; throw(e: any): IteratorResult<T, TReturn>; [Symbol.iterator](): Generator<T, TReturn, TNext>; } interface GeneratorFunction { /** * Creates a new Generator object. * @param args A list of arguments the function accepts. */ new (...args: any[]): Generator; /** * Creates a new Generator object. * @param args A list of arguments the function accepts. */ (...args: any[]): Generator; /** * The length of the arguments. */ readonly length: number; /** * Returns the name of the function. */ readonly name: string; /** * A reference to the prototype. */ readonly prototype: Generator; } interface GeneratorFunctionConstructor { /** * Creates a new Generator function. * @param args A list of arguments the function accepts. */ new (...args: string[]): GeneratorFunction; /** * Creates a new Generator function. * @param args A list of arguments the function accepts. */ (...args: string[]): GeneratorFunction; /** * The length of the arguments. */ readonly length: number; /** * Returns the name of the function. */ readonly name: string; /** * A reference to the prototype. */ readonly prototype: GeneratorFunction; } `,ya["lib.es2015.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.symbol" /> interface SymbolConstructor { /** * A method that returns the default iterator for an object. Called by the semantics of the * for-of statement. */ readonly iterator: unique symbol; } interface IteratorYieldResult<TYield> { done?: false; value: TYield; } interface IteratorReturnResult<TReturn> { done: true; value: TReturn; } type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>; interface Iterator<T, TReturn = any, TNext = undefined> { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. next(...args: [] | [TNext]): IteratorResult<T, TReturn>; return?(value?: TReturn): IteratorResult<T, TReturn>; throw?(e?: any): IteratorResult<T, TReturn>; } interface Iterable<T> { [Symbol.iterator](): Iterator<T>; } interface IterableIterator<T> extends Iterator<T> { [Symbol.iterator](): IterableIterator<T>; } interface Array<T> { /** Iterator */ [Symbol.iterator](): IterableIterator<T>; /** * Returns an iterable of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, T]>; /** * Returns an iterable of keys in the array */ keys(): IterableIterator<number>; /** * Returns an iterable of values in the array */ values(): IterableIterator<T>; } interface ArrayConstructor { /** * Creates an array from an iterable object. * @param iterable An iterable object to convert to an array. */ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]; /** * Creates an array from an iterable object. * @param iterable An iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } interface ReadonlyArray<T> { /** Iterator of values in the array. */ [Symbol.iterator](): IterableIterator<T>; /** * Returns an iterable of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, T]>; /** * Returns an iterable of keys in the array */ keys(): IterableIterator<number>; /** * Returns an iterable of values in the array */ values(): IterableIterator<T>; } interface IArguments { /** Iterator */ [Symbol.iterator](): IterableIterator<any>; } interface Map<K, V> { /** Returns an iterable of entries in the map. */ [Symbol.iterator](): IterableIterator<[K, V]>; /** * Returns an iterable of key, value pairs for every entry in the map. */ entries(): IterableIterator<[K, V]>; /** * Returns an iterable of keys in the map */ keys(): IterableIterator<K>; /** * Returns an iterable of values in the map */ values(): IterableIterator<V>; } interface ReadonlyMap<K, V> { /** Returns an iterable of entries in the map. */ [Symbol.iterator](): IterableIterator<[K, V]>; /** * Returns an iterable of key, value pairs for every entry in the map. */ entries(): IterableIterator<[K, V]>; /** * Returns an iterable of keys in the map */ keys(): IterableIterator<K>; /** * Returns an iterable of values in the map */ values(): IterableIterator<V>; } interface MapConstructor { new(): Map<any, any>; new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>; } interface WeakMap<K extends object, V> { } interface WeakMapConstructor { new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>; } interface Set<T> { /** Iterates over values in the set. */ [Symbol.iterator](): IterableIterator<T>; /** * Returns an iterable of [v,v] pairs for every value \`v\` in the set. */ entries(): IterableIterator<[T, T]>; /** * Despite its name, returns an iterable of the values in the set. */ keys(): IterableIterator<T>; /** * Returns an iterable of values in the set. */ values(): IterableIterator<T>; } interface ReadonlySet<T> { /** Iterates over values in the set. */ [Symbol.iterator](): IterableIterator<T>; /** * Returns an iterable of [v,v] pairs for every value \`v\` in the set. */ entries(): IterableIterator<[T, T]>; /** * Despite its name, returns an iterable of the values in the set. */ keys(): IterableIterator<T>; /** * Returns an iterable of values in the set. */ values(): IterableIterator<T>; } interface SetConstructor { new <T>(iterable?: Iterable<T> | null): Set<T>; } interface WeakSet<T extends object> { } interface WeakSetConstructor { new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>; } interface Promise<T> { } interface PromiseConstructor { /** * Creates a Promise that is resolved with an array of results when all of the provided Promises * resolve, or rejected when any Promise is rejected. * @param values An iterable of Promises. * @returns A new Promise. */ all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved * or rejected. * @param values An iterable of Promises. * @returns A new Promise. */ race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; } interface String { /** Iterator */ [Symbol.iterator](): IterableIterator<string>; } interface Int8Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Int8ArrayConstructor { new (elements: Iterable<number>): Int8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; } interface Uint8Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Uint8ArrayConstructor { new (elements: Iterable<number>): Uint8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; } interface Uint8ClampedArray { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Uint8ClampedArrayConstructor { new (elements: Iterable<number>): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; } interface Int16Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Int16ArrayConstructor { new (elements: Iterable<number>): Int16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; } interface Uint16Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Uint16ArrayConstructor { new (elements: Iterable<number>): Uint16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; } interface Int32Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Int32ArrayConstructor { new (elements: Iterable<number>): Int32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; } interface Uint32Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Uint32ArrayConstructor { new (elements: Iterable<number>): Uint32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; } interface Float32Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Float32ArrayConstructor { new (elements: Iterable<number>): Float32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; } interface Float64Array { [Symbol.iterator](): IterableIterator<number>; /** * Returns an array of key, value pairs for every entry in the array */ entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ keys(): IterableIterator<number>; /** * Returns an list of values in the array */ values(): IterableIterator<number>; } interface Float64ArrayConstructor { new (elements: Iterable<number>): Float64Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; } `,ya["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; `,ya["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; `,ya["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; } `,ya["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;`,ya["lib.es2015.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.symbol" /> interface SymbolConstructor { /** * A method that determines if a constructor object recognizes an object as one of the * constructor’s instances. Called by the semantics of the instanceof operator. */ readonly hasInstance: unique symbol; /** * A Boolean value that if true indicates that an object should flatten to its array elements * by Array.prototype.concat. */ readonly isConcatSpreadable: unique symbol; /** * A regular expression method that matches the regular expression against a string. Called * by the String.prototype.match method. */ readonly match: unique symbol; /** * A regular expression method that replaces matched substrings of a string. Called by the * String.prototype.replace method. */ readonly replace: unique symbol; /** * A regular expression method that returns the index within a string that matches the * regular expression. Called by the String.prototype.search method. */ readonly search: unique symbol; /** * A function valued property that is the constructor function that is used to create * derived objects. */ readonly species: unique symbol; /** * A regular expression method that splits a string at the indices that match the regular * expression. Called by the String.prototype.split method. */ readonly split: unique symbol; /** * A method that converts an object to a corresponding primitive value. * Called by the ToPrimitive abstract operation. */ readonly toPrimitive: unique symbol; /** * A String value that is used in the creation of the default string description of an object. * Called by the built-in method Object.prototype.toString. */ readonly toStringTag: unique symbol; /** * An Object whose truthy properties are properties that are excluded from the 'with' * environment bindings of the associated objects. */ readonly unscopables: unique symbol; } interface Symbol { /** * Converts a Symbol object to a symbol. */ [Symbol.toPrimitive](hint: string): symbol; readonly [Symbol.toStringTag]: string; } interface Array<T> { /** * Is an object whose properties have the value 'true' * when they will be absent when used in a 'with' statement. */ readonly [Symbol.unscopables]: { [K in keyof any[]]?: boolean; }; } interface ReadonlyArray<T> { /** * Is an object whose properties have the value 'true' * when they will be absent when used in a 'with' statement. */ readonly [Symbol.unscopables]: { [K in keyof readonly any[]]?: boolean; }; } interface Date { /** * Converts a Date object to a string. */ [Symbol.toPrimitive](hint: "default"): string; /** * Converts a Date object to a string. */ [Symbol.toPrimitive](hint: "string"): string; /** * Converts a Date object to a number. */ [Symbol.toPrimitive](hint: "number"): number; /** * Converts a Date object to a string or number. * * @param hint The strings "number", "string", or "default" to specify what primitive to return. * * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default". * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default". */ [Symbol.toPrimitive](hint: string): string | number; } interface Map<K, V> { readonly [Symbol.toStringTag]: string; } interface WeakMap<K extends object, V> { readonly [Symbol.toStringTag]: string; } interface Set<T> { readonly [Symbol.toStringTag]: string; } interface WeakSet<T extends object> { readonly [Symbol.toStringTag]: string; } interface JSON { readonly [Symbol.toStringTag]: string; } interface Function { /** * Determines whether the given value inherits from this function if this function was used * as a constructor function. * * A constructor function can control which objects are recognized as its instances by * 'instanceof' by overriding this method. */ [Symbol.hasInstance](value: any): boolean; } interface GeneratorFunction { readonly [Symbol.toStringTag]: string; } interface Math { readonly [Symbol.toStringTag]: string; } interface Promise<T> { readonly [Symbol.toStringTag]: string; } interface PromiseConstructor { readonly [Symbol.species]: PromiseConstructor; } interface RegExp { /** * Matches a string with this regular expression, and returns an array containing the results of * that search. * @param string A string to search within. */ [Symbol.match](string: string): RegExpMatchArray | null; /** * Replaces text in a string, using this regular expression. * @param string A String object or string literal whose contents matching against * this regular expression will be replaced * @param replaceValue A String object or string literal containing the text to replace for every * successful match of this regular expression. */ [Symbol.replace](string: string, replaceValue: string): string; /** * Replaces text in a string, using this regular expression. * @param string A String object or string literal whose contents matching against * this regular expression will be replaced * @param replacer A function that returns the replacement text. */ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; /** * Finds the position beginning first substring match in a regular expression search * using this regular expression. * * @param string The string to search within. */ [Symbol.search](string: string): number; /** * Returns an array of substrings that were delimited by strings in the original input that * match against this regular expression. * * If the regular expression contains capturing parentheses, then each time this * regular expression matches, the results (including any undefined results) of the * capturing parentheses are spliced. * * @param string string value to split * @param limit if not undefined, the output array is truncated so that it contains no more * than 'limit' elements. */ [Symbol.split](string: string, limit?: number): string[]; } interface RegExpConstructor { readonly [Symbol.species]: RegExpConstructor; } interface String { /** * Matches a string or an object that supports being matched against, and returns an array * containing the results of that search, or null if no matches are found. * @param matcher An object that supports being matched against. */ match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; /** * Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm. * @param searchValue An object that supports searching for and replacing matches within a string. * @param replaceValue The replacement text. */ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; /** * Replaces text in a string, using an object that supports replacement within a string. * @param searchValue A object can search for and replace matches within a string. * @param replacer A function that returns the replacement text. */ replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; /** * Finds the first substring match in a regular expression search. * @param searcher An object which supports searching within a string. */ search(searcher: { [Symbol.search](string: string): number; }): number; /** * Split a string into substrings using the specified separator and return them as an array. * @param splitter An object that can split a string. * @param limit A value used to limit the number of elements returned in the array. */ split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; } interface ArrayBuffer { readonly [Symbol.toStringTag]: string; } interface DataView { readonly [Symbol.toStringTag]: string; } interface Int8Array { readonly [Symbol.toStringTag]: "Int8Array"; } interface Uint8Array { readonly [Symbol.toStringTag]: "Uint8Array"; } interface Uint8ClampedArray { readonly [Symbol.toStringTag]: "Uint8ClampedArray"; } interface Int16Array { readonly [Symbol.toStringTag]: "Int16Array"; } interface Uint16Array { readonly [Symbol.toStringTag]: "Uint16Array"; } interface Int32Array { readonly [Symbol.toStringTag]: "Int32Array"; } interface Uint32Array { readonly [Symbol.toStringTag]: "Uint32Array"; } interface Float32Array { readonly [Symbol.toStringTag]: "Float32Array"; } interface Float64Array { readonly [Symbol.toStringTag]: "Float64Array"; } interface ArrayConstructor { readonly [Symbol.species]: ArrayConstructor; } interface MapConstructor { readonly [Symbol.species]: MapConstructor; } interface SetConstructor { readonly [Symbol.species]: SetConstructor; } interface ArrayBufferConstructor { readonly [Symbol.species]: ArrayBufferConstructor; } `,ya["lib.es2016.array.include.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Array<T> { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: T, fromIndex?: number): boolean; } interface ReadonlyArray<T> { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: T, fromIndex?: number): boolean; } interface Int8Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Uint8Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Uint8ClampedArray { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Int16Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Uint16Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Int32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Uint32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Float32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; } interface Float64Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: number, fromIndex?: number): boolean; }`,ya["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" />`,ya["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" />`,ya["lib.es2017.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2016" /> /// <reference lib="es2017.object" /> /// <reference lib="es2017.sharedmemory" /> /// <reference lib="es2017.string" /> /// <reference lib="es2017.intl" /> /// <reference lib="es2017.typedarrays" /> `,ya["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" />`,ya["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[]; } } `,ya["lib.es2017.object.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface ObjectConstructor { /** * Returns an array of values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ values<T>(o: { [s: string]: T } | ArrayLike<T>): T[]; /** * Returns an array of values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ values(o: {}): any[]; /** * Returns an array of key/values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][]; /** * Returns an array of key/values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ entries(o: {}): [string, any][]; /** * Returns an object containing all own property descriptors of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor }; } `,ya["lib.es2017.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.symbol" /> /// <reference lib="es2015.symbol.wellknown" /> interface SharedArrayBuffer { /** * Read-only. The length of the ArrayBuffer (in bytes). */ readonly byteLength: number; /** * Returns a section of an SharedArrayBuffer. */ slice(begin: number, end?: number): SharedArrayBuffer; readonly [Symbol.species]: SharedArrayBuffer; readonly [Symbol.toStringTag]: "SharedArrayBuffer"; } interface SharedArrayBufferConstructor { readonly prototype: SharedArrayBuffer; new (byteLength: number): SharedArrayBuffer; } declare var SharedArrayBuffer: SharedArrayBufferConstructor; interface ArrayBufferTypes { SharedArrayBuffer: SharedArrayBuffer; } interface Atomics { /** * Adds a value to the value at the given position in the array, returning the original value. * Until this atomic operation completes, any other read or write operation against the array * will block. */ add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Stores the bitwise AND of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or * write operation against the array will block. */ and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Replaces the value at the given position in the array if the original value equals the given * expected value, returning the original value. Until this atomic operation completes, any * other read or write operation against the array will block. */ compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number; /** * Replaces the value at the given position in the array, returning the original value. Until * this atomic operation completes, any other read or write operation against the array will * block. */ exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Returns a value indicating whether high-performance algorithms can use atomic operations * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed * array. */ isLockFree(size: number): boolean; /** * Returns the value at the given position in the array. Until this atomic operation completes, * any other read or write operation against the array will block. */ load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number; /** * Stores the bitwise OR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Stores a value at the given position in the array, returning the new value. Until this * atomic operation completes, any other read or write operation against the array will block. */ store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Subtracts a value from the value at the given position in the array, returning the original * value. Until this atomic operation completes, any other read or write operation against the * array will block. */ sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * If the value at the given position in the array is equal to the provided value, the current * agent is put to sleep causing execution to suspend until the timeout expires (returning * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns * \`"not-equal"\`. */ wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; /** * Wakes up sleeping agents that are waiting on the given index of the array, returning the * number of agents that were awoken. * @param typedArray A shared Int32Array. * @param index The position in the typedArray to wake up on. * @param count The number of sleeping agents to notify. Defaults to +Infinity. */ notify(typedArray: Int32Array, index: number, count?: number): number; /** * Stores the bitwise XOR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; readonly [Symbol.toStringTag]: "Atomics"; } declare var Atomics: Atomics; `,ya["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; } `,ya["lib.es2017.typedarrays.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Int8ArrayConstructor { new (): Int8Array; } interface Uint8ArrayConstructor { new (): Uint8Array; } interface Uint8ClampedArrayConstructor { new (): Uint8ClampedArray; } interface Int16ArrayConstructor { new (): Int16Array; } interface Uint16ArrayConstructor { new (): Uint16Array; } interface Int32ArrayConstructor { new (): Int32Array; } interface Uint32ArrayConstructor { new (): Uint32Array; } interface Float32ArrayConstructor { new (): Float32Array; } interface Float64ArrayConstructor { new (): Float64Array; } `,ya["lib.es2018.asyncgenerator.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2018.asynciterable" /> interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; throw(e: any): Promise<IteratorResult<T, TReturn>>; [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>; } interface AsyncGeneratorFunction { /** * Creates a new AsyncGenerator object. * @param args A list of arguments the function accepts. */ new (...args: any[]): AsyncGenerator; /** * Creates a new AsyncGenerator object. * @param args A list of arguments the function accepts. */ (...args: any[]): AsyncGenerator; /** * The length of the arguments. */ readonly length: number; /** * Returns the name of the function. */ readonly name: string; /** * A reference to the prototype. */ readonly prototype: AsyncGenerator; } interface AsyncGeneratorFunctionConstructor { /** * Creates a new AsyncGenerator function. * @param args A list of arguments the function accepts. */ new (...args: string[]): AsyncGeneratorFunction; /** * Creates a new AsyncGenerator function. * @param args A list of arguments the function accepts. */ (...args: string[]): AsyncGeneratorFunction; /** * The length of the arguments. */ readonly length: number; /** * Returns the name of the function. */ readonly name: string; /** * A reference to the prototype. */ readonly prototype: AsyncGeneratorFunction; } `,ya["lib.es2018.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.symbol" /> /// <reference lib="es2015.iterable" /> interface SymbolConstructor { /** * A method that returns the default async iterator for an object. Called by the semantics of * the for-await-of statement. */ readonly asyncIterator: unique symbol; } interface AsyncIterator<T, TReturn = any, TNext = undefined> { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; throw?(e?: any): Promise<IteratorResult<T, TReturn>>; } interface AsyncIterable<T> { [Symbol.asyncIterator](): AsyncIterator<T>; } interface AsyncIterableIterator<T> extends AsyncIterator<T> { [Symbol.asyncIterator](): AsyncIterableIterator<T>; }`,ya["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" /> `,ya["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" />`,ya["lib.es2018.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare namespace Intl { // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other"; type PluralRuleType = "cardinal" | "ordinal"; interface PluralRulesOptions { localeMatcher?: "lookup" | "best fit" | undefined; type?: PluralRuleType | undefined; minimumIntegerDigits?: number | undefined; minimumFractionDigits?: number | undefined; maximumFractionDigits?: number | undefined; minimumSignificantDigits?: number | undefined; maximumSignificantDigits?: number | undefined; } interface ResolvedPluralRulesOptions { locale: string; pluralCategories: LDMLPluralRule[]; type: PluralRuleType; minimumIntegerDigits: number; minimumFractionDigits: number; maximumFractionDigits: number; minimumSignificantDigits?: number; maximumSignificantDigits?: number; } interface PluralRules { resolvedOptions(): ResolvedPluralRulesOptions; select(n: number): LDMLPluralRule; } const PluralRules: { new (locales?: string | string[], options?: PluralRulesOptions): PluralRules; (locales?: string | string[], options?: PluralRulesOptions): PluralRules; supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[]; }; // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here: type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name"; type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown"; type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType; interface NumberFormatPart { type: NumberFormatPartTypes; value: string; } interface NumberFormat { formatToParts(number?: number | bigint): NumberFormatPart[]; } } `,ya["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> } `,ya["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; }`,ya["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>[] } `,ya["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" /> `,ya["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" /> `,ya["lib.es2019.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare namespace Intl { interface DateTimeFormatPartTypesRegistry { unknown: any } } `,ya["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; } `,ya["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; } `,ya["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; } `,ya["lib.es2020.bigint.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2020.intl" /> interface BigIntToLocaleStringOptions { /** * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}. */ localeMatcher?: string; /** * The formatting style to use , the default is "decimal". */ style?: string; numberingSystem?: string; /** * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided. */ unit?: string; /** * The unit formatting style to use in unit formatting, the defaults is "short". */ unitDisplay?: string; /** * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency". */ currency?: string; /** * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol". * * "symbol" to use a localized currency symbol such as €, * * "code" to use the ISO currency code, * * "name" to use a localized currency name such as "dollar" */ currencyDisplay?: string; /** * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true. */ useGrouping?: boolean; /** * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1. */ minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; /** * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information). */ minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20; /** * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0. */ maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20; /** * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1. */ minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; /** * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21. */ maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21; /** * The formatting that should be displayed for the number, the defaults is "standard" * * "standard" plain number formatting * * "scientific" return the order-of-magnitude for formatted number. * * "engineering" return the exponent of ten when divisible by three * * "compact" string representing exponent, defaults is using the "short" form */ notation?: string; /** * used only when notation is "compact" */ compactDisplay?: string; } interface BigInt { /** * Returns a string representation of an object. * @param radix Specifies a radix for converting numeric values to strings. */ toString(radix?: number): string; /** Returns a string representation appropriate to the host environment's current locale. */ toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string; /** Returns the primitive value of the specified object. */ valueOf(): bigint; readonly [Symbol.toStringTag]: "BigInt"; } interface BigIntConstructor { (value: bigint | boolean | number | string): bigint; readonly prototype: BigInt; /** * Interprets the low bits of a BigInt as a 2's-complement signed integer. * All higher bits are discarded. * @param bits The number of low bits to use * @param int The BigInt whose bits to extract */ asIntN(bits: number, int: bigint): bigint; /** * Interprets the low bits of a BigInt as an unsigned integer. * All higher bits are discarded. * @param bits The number of low bits to use * @param int The BigInt whose bits to extract */ asUintN(bits: number, int: bigint): bigint; } declare var BigInt: BigIntConstructor; /** * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated, an exception is raised. */ interface BigInt64Array { /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** The length in bytes of the array. */ readonly byteLength: number; /** The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ entries(): IterableIterator<[number, bigint]>; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns false, * or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: bigint, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void; /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: bigint, fromIndex?: number): boolean; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: bigint, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** Yields each index in the array. */ keys(): IterableIterator<number>; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: bigint, fromIndex?: number): number; /** The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; /** Reverses the elements in the array. */ reverse(): this; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<bigint>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ slice(start?: number, end?: number): BigInt64Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls the * predicate function for each element in the array until the predicate returns true, or until * the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; /** * Sorts the array. * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. */ sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; /** * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): BigInt64Array; /** Converts the array to a string by using the current locale. */ toLocaleString(): string; /** Returns a string representation of the array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): BigInt64Array; /** Yields each value in the array. */ values(): IterableIterator<bigint>; [Symbol.iterator](): IterableIterator<bigint>; readonly [Symbol.toStringTag]: "BigInt64Array"; [index: number]: bigint; } interface BigInt64ArrayConstructor { readonly prototype: BigInt64Array; new(length?: number): BigInt64Array; new(array: Iterable<bigint>): BigInt64Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: bigint[]): BigInt64Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: ArrayLike<bigint>): BigInt64Array; from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; } declare var BigInt64Array: BigInt64ArrayConstructor; /** * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated, an exception is raised. */ interface BigUint64Array { /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** The length in bytes of the array. */ readonly byteLength: number; /** The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ entries(): IterableIterator<[number, bigint]>; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns false, * or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: bigint, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void; /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. * @param fromIndex The position in this array at which to begin searching for searchElement. */ includes(searchElement: bigint, fromIndex?: number): boolean; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: bigint, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** Yields each index in the array. */ keys(): IterableIterator<number>; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: bigint, fromIndex?: number): number; /** The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; /** Reverses the elements in the array. */ reverse(): this; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<bigint>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ slice(start?: number, end?: number): BigUint64Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls the * predicate function for each element in the array until the predicate returns true, or until * the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; /** * Sorts the array. * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order. */ sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this; /** * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): BigUint64Array; /** Converts the array to a string by using the current locale. */ toLocaleString(): string; /** Returns a string representation of the array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): BigUint64Array; /** Yields each value in the array. */ values(): IterableIterator<bigint>; [Symbol.iterator](): IterableIterator<bigint>; readonly [Symbol.toStringTag]: "BigUint64Array"; [index: number]: bigint; } interface BigUint64ArrayConstructor { readonly prototype: BigUint64Array; new(length?: number): BigUint64Array; new(array: Iterable<bigint>): BigUint64Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: bigint[]): BigUint64Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from(arrayLike: ArrayLike<bigint>): BigUint64Array; from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; } declare var BigUint64Array: BigUint64ArrayConstructor; interface DataView { /** * Gets the BigInt64 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getBigInt64(byteOffset: number, littleEndian?: boolean): bigint; /** * Gets the BigUint64 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getBigUint64(byteOffset: number, littleEndian?: boolean): bigint; /** * Stores a BigInt64 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void; /** * Stores a BigUint64 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void; } declare namespace Intl{ interface NumberFormat { format(value: number | bigint): string; resolvedOptions(): ResolvedNumberFormatOptions; } } `,ya["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" /> `,ya["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; }`,ya["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" /> `,ya["lib.es2020.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2018.intl" /> declare namespace Intl { /** * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type UnicodeBCP47LocaleIdentifier = string; /** * Unit to use in the relative time internationalized message. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters). */ type RelativeTimeFormatUnit = | "year" | "years" | "quarter" | "quarters" | "month" | "months" | "week" | "weeks" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds"; /** * Value of the \`unit\` property in objects returned by * \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and * \`format\` methods accept either singular or plural unit names as input, * but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g. * "days"). * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). */ type RelativeTimeFormatUnitSingular = | "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second"; /** * The locale matching algorithm to use. * * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit"; /** * The format of output message. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ type RelativeTimeFormatNumeric = "always" | "auto"; /** * The length of the internationalized message. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ type RelativeTimeFormatStyle = "long" | "short" | "narrow"; /** * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type BCP47LanguageTag = string; /** * The locale(s) to use * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; /** * An object with some or all of properties of \`options\` parameter * of \`Intl.RelativeTimeFormat\` constructor. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ interface RelativeTimeFormatOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ localeMatcher?: RelativeTimeFormatLocaleMatcher; /** The format of output message. */ numeric?: RelativeTimeFormatNumeric; /** The length of the internationalized message. */ style?: RelativeTimeFormatStyle; } /** * An object with properties reflecting the locale * and formatting options computed during initialization * of the \`Intl.RelativeTimeFormat\` object * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description). */ interface ResolvedRelativeTimeFormatOptions { locale: UnicodeBCP47LocaleIdentifier; style: RelativeTimeFormatStyle; numeric: RelativeTimeFormatNumeric; numberingSystem: string; } /** * An object representing the relative time format in parts * that can be used for custom locale-aware formatting. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). */ type RelativeTimeFormatPart = | { type: "literal"; value: string; } | { type: Exclude<NumberFormatPartTypes, "literal">; value: string; unit: RelativeTimeFormatUnitSingular; }; interface RelativeTimeFormat { /** * Formats a value and a unit according to the locale * and formatting options of the given * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) * object. * * While this method automatically provides the correct plural forms, * the grammatical form is otherwise as neutral as possible. * * It is the caller's responsibility to handle cut-off logic * such as deciding between displaying "in 7 days" or "in 1 week". * This API does not support relative dates involving compound units. * e.g "in 5 days and 4 hours". * * @param value - Numeric value to use in the internationalized relative time message * * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message. * * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values * * @returns {string} Internationalized relative time message as string * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format). */ format(value: number, unit: RelativeTimeFormatUnit): string; /** * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting. * * @param value - Numeric value to use in the internationalized relative time message * * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message. * * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts). */ formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[]; /** * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions). */ resolvedOptions(): ResolvedRelativeTimeFormatOptions; } /** * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) * object is a constructor for objects that enable language-sensitive relative time formatting. * * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility). */ const RelativeTimeFormat: { /** * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the locales argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) * with some or all of options of \`RelativeTimeFormatOptions\`. * * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). */ new( locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], options?: RelativeTimeFormatOptions, ): RelativeTimeFormat; /** * Returns an array containing those of the provided locales * that are supported in date and time formatting * without having to fall back to the runtime's default locale. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the locales argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) * with some or all of options of the formatting. * * @returns An array containing those of the provided locales * that are supported in date and time formatting * without having to fall back to the runtime's default locale. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf). */ supportedLocalesOf( locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], options?: RelativeTimeFormatOptions, ): UnicodeBCP47LocaleIdentifier[]; }; interface NumberFormatOptions { compactDisplay?: "short" | "long" | undefined; notation?: "standard" | "scientific" | "engineering" | "compact" | undefined; signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined; unit?: string | undefined; unitDisplay?: "short" | "long" | "narrow" | undefined; currencyDisplay?: string | undefined; currencySign?: string | undefined; } interface ResolvedNumberFormatOptions { compactDisplay?: "short" | "long"; notation?: "standard" | "scientific" | "engineering" | "compact"; signDisplay?: "auto" | "never" | "always" | "exceptZero"; unit?: string; unitDisplay?: "short" | "long" | "narrow"; currencyDisplay?: string; currencySign?: string; } interface DateTimeFormatOptions { calendar?: string | undefined; dayPeriod?: "narrow" | "short" | "long" | undefined; numberingSystem?: string | undefined; dateStyle?: "full" | "long" | "medium" | "short" | undefined; timeStyle?: "full" | "long" | "medium" | "short" | undefined; hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined; } type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24"; type LocaleCollationCaseFirst = "upper" | "lower" | "false"; interface LocaleOptions { /** A string containing the language, and the script and region if available. */ baseName?: string; /** The part of the Locale that indicates the locale's calendar era. */ calendar?: string; /** Flag that defines whether case is taken into account for the locale's collation rules. */ caseFirst?: LocaleCollationCaseFirst; /** The collation type used for sorting */ collation?: string; /** The time keeping format convention used by the locale. */ hourCycle?: LocaleHourCycleKey; /** The primary language subtag associated with the locale. */ language?: string; /** The numeral system used by the locale. */ numberingSystem?: string; /** Flag that defines whether the locale has special collation handling for numeric characters. */ numeric?: boolean; /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */ region?: string; /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */ script?: string; } interface Locale extends LocaleOptions { /** A string containing the language, and the script and region if available. */ baseName: string; /** The primary language subtag associated with the locale. */ language: string; /** Gets the most likely values for the language, script, and region of the locale based on existing values. */ maximize(): Locale; /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */ minimize(): Locale; /** Returns the locale's full locale identifier string. */ toString(): BCP47LanguageTag; } /** * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) * objects * * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646). * For the general form and interpretation of the locales argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale. * * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale). */ const Locale: { new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale; }; type DisplayNamesFallback = | "code" | "none"; type DisplayNamesType = | "language" | "region" | "script" | "calendar" | "dateTimeField" | "currency"; type DisplayNamesLanguageDisplay = | "dialect" | "standard"; interface DisplayNamesOptions { localeMatcher?: RelativeTimeFormatLocaleMatcher; style?: RelativeTimeFormatStyle; type: DisplayNamesType; languageDisplay?: DisplayNamesLanguageDisplay; fallback?: DisplayNamesFallback; } interface ResolvedDisplayNamesOptions { locale: UnicodeBCP47LocaleIdentifier; style: RelativeTimeFormatStyle; type: DisplayNamesType; fallback: DisplayNamesFallback; languageDisplay?: DisplayNamesLanguageDisplay; } interface DisplayNames { /** * Receives a code and returns a string based on the locale and options provided when instantiating * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) * * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation: * - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html), * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/). * - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html). * - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` ) * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier). * \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code. * - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html). * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of). */ of(code: string): string | undefined; /** * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current * [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions). */ resolvedOptions(): ResolvedDisplayNamesOptions; } /** * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) * object enables the consistent translation of language, region and script display names. * * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility). */ const DisplayNames: { prototype: DisplayNames; /** * @param locales A string with a BCP 47 language tag, or an array of such strings. * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) * page. * * @param options An object for setting up a display name. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames). */ new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; /** * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale. * * @param locales A string with a BCP 47 language tag, or an array of such strings. * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) * page. * * @param options An object with a locale matcher. * * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf). */ supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[]; }; } `,ya["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; } `,ya["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>>[]>; } `,ya["lib.es2020.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Atomics { /** * Adds a value to the value at the given position in the array, returning the original value. * Until this atomic operation completes, any other read or write operation against the array * will block. */ add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Stores the bitwise AND of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or * write operation against the array will block. */ and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Replaces the value at the given position in the array if the original value equals the given * expected value, returning the original value. Until this atomic operation completes, any * other read or write operation against the array will block. */ compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint; /** * Replaces the value at the given position in the array, returning the original value. Until * this atomic operation completes, any other read or write operation against the array will * block. */ exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Returns the value at the given position in the array. Until this atomic operation completes, * any other read or write operation against the array will block. */ load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint; /** * Stores the bitwise OR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Stores a value at the given position in the array, returning the new value. Until this * atomic operation completes, any other read or write operation against the array will block. */ store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Subtracts a value from the value at the given position in the array, returning the original * value. Until this atomic operation completes, any other read or write operation against the * array will block. */ sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * If the value at the given position in the array is equal to the provided value, the current * agent is put to sleep causing execution to suspend until the timeout expires (returning * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns * \`"not-equal"\`. */ wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; /** * Wakes up sleeping agents that are waiting on the given index of the array, returning the * number of agents that were awoken. * @param typedArray A shared BigInt64Array. * @param index The position in the typedArray to wake up on. * @param count The number of sleeping agents to notify. Defaults to +Infinity. */ notify(typedArray: BigInt64Array, index: number, count?: number): number; /** * Stores the bitwise XOR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; } `,ya["lib.es2020.string.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.iterable" /> interface String { /** * Matches a string with a regular expression, and returns an iterable of matches * containing the results of that search. * @param regexp A variable name or string literal containing the regular expression pattern and flags. */ matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>; } `,ya["lib.es2020.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2015.iterable" /> /// <reference lib="es2015.symbol" /> interface SymbolConstructor { /** * A regular expression method that matches the regular expression against a string. Called * by the String.prototype.matchAll method. */ readonly matchAll: unique symbol; } interface RegExp { /** * Matches a string with this regular expression, and returns an iterable of matches * containing the results of that search. * @param string A string to search within. */ [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>; } `,ya["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" /> `,ya["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" /> `,ya["lib.es2021.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare namespace Intl { interface DateTimeFormatPartTypesRegistry { fractionalSecond: any } interface DateTimeFormatOptions { formatMatcher?: "basic" | "best fit" | "best fit" | undefined; dateStyle?: "full" | "long" | "medium" | "short" | undefined; timeStyle?: "full" | "long" | "medium" | "short" | undefined; dayPeriod?: "narrow" | "short" | "long" | undefined; fractionalSecondDigits?: 1 | 2 | 3 | undefined; } interface DateTimeRangeFormatPart extends DateTimeFormatPart { source: "startRange" | "endRange" | "shared" } interface DateTimeFormat { formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string; formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[]; } interface ResolvedDateTimeFormatOptions { formatMatcher?: "basic" | "best fit" | "best fit"; dateStyle?: "full" | "long" | "medium" | "short"; timeStyle?: "full" | "long" | "medium" | "short"; hourCycle?: "h11" | "h12" | "h23" | "h24"; dayPeriod?: "narrow" | "short" | "long"; fractionalSecondDigits?: 1 | 2 | 3; } /** * The locale matching algorithm to use. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatLocaleMatcher = "lookup" | "best fit"; /** * The format of output message. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatType = "conjunction" | "disjunction" | "unit"; /** * The length of the formatted message. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatStyle = "long" | "short" | "narrow"; /** * An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ interface ListFormatOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ localeMatcher?: ListFormatLocaleMatcher | undefined; /** The format of output message. */ type?: ListFormatType | undefined; /** The length of the internationalized message. */ style?: ListFormatStyle | undefined; } interface ResolvedListFormatOptions { locale: string; style: ListFormatStyle; type: ListFormatType; } interface ListFormat { /** * Returns a string with a language-specific representation of the list. * * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). * * @throws \`TypeError\` if \`list\` includes something other than the possible values. * * @returns {string} A language-specific formatted string representing the elements of the list. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format). */ format(list: Iterable<string>): string; /** * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion. * * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale. * * @throws \`TypeError\` if \`list\` includes something other than the possible values. * * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). */ formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[]; /** * Returns a new object with properties reflecting the locale and style * formatting options computed during the construction of the current * \`Intl.ListFormat\` object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). */ resolvedOptions(): ResolvedListFormatOptions; } const ListFormat: { prototype: ListFormat; /** * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that * enable language-sensitive list formatting. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the \`locales\` argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters) * with some or all options of \`ListFormatOptions\`. * * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). */ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; /** * Returns an array containing those of the provided locales that are * supported in list formatting without having to fall back to the runtime's default locale. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the \`locales\` argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters). * with some or all possible options. * * @returns An array of strings representing a subset of the given locale tags that are supported in list * formatting without having to fall back to the runtime's default locale. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). */ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[]; }; } `,ya["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>> } `,ya["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; } `,ya["lib.es2021.weakref.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface WeakRef<T extends object> { readonly [Symbol.toStringTag]: "WeakRef"; /** * Returns the WeakRef instance's target object, or undefined if the target object has been * reclaimed. */ deref(): T | undefined; } interface WeakRefConstructor { readonly prototype: WeakRef<any>; /** * Creates a WeakRef instance for the given target object. * @param target The target object for the WeakRef instance. */ new<T extends object>(target: T): WeakRef<T>; } declare var WeakRef: WeakRefConstructor; interface FinalizationRegistry<T> { readonly [Symbol.toStringTag]: "FinalizationRegistry"; /** * Registers an object with the registry. * @param target The target object to register. * @param heldValue The value to pass to the finalizer for this object. This cannot be the * target object. * @param unregisterToken The token to pass to the unregister method to unregister the target * object. If provided (and not undefined), this must be an object. If not provided, the target * cannot be unregistered. */ register(target: object, heldValue: T, unregisterToken?: object): void; /** * Unregisters an object from the registry. * @param unregisterToken The token that was used as the unregisterToken argument when calling * register to register the target object. */ unregister(unregisterToken: object): void; } interface FinalizationRegistryConstructor { readonly prototype: FinalizationRegistry<any>; /** * Creates a finalization registry with an associated cleanup callback * @param cleanupCallback The callback to call after an object in the registry has been reclaimed. */ new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; } declare var FinalizationRegistry: FinalizationRegistryConstructor; `,ya["lib.es2022.array.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Array<T> { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): T | undefined; } interface ReadonlyArray<T> { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): T | undefined; } interface Int8Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Uint8Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Uint8ClampedArray { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Int16Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Uint16Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Int32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Uint32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Float32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface Float64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): number | undefined; } interface BigInt64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): bigint | undefined; } interface BigUint64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. */ at(index: number): bigint | undefined; } `,ya["lib.es2022.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2021" /> /// <reference lib="es2022.array" /> /// <reference lib="es2022.error" /> /// <reference lib="es2022.intl" /> /// <reference lib="es2022.object" /> /// <reference lib="es2022.sharedmemory" /> /// <reference lib="es2022.string" /> /// <reference lib="es2022.regexp" /> `,ya["lib.es2022.error.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface ErrorOptions { cause?: unknown; } interface Error { cause?: unknown; } interface ErrorConstructor { new (message?: string, options?: ErrorOptions): Error; (message?: string, options?: ErrorOptions): Error; } interface EvalErrorConstructor { new (message?: string, options?: ErrorOptions): EvalError; (message?: string, options?: ErrorOptions): EvalError; } interface RangeErrorConstructor { new (message?: string, options?: ErrorOptions): RangeError; (message?: string, options?: ErrorOptions): RangeError; } interface ReferenceErrorConstructor { new (message?: string, options?: ErrorOptions): ReferenceError; (message?: string, options?: ErrorOptions): ReferenceError; } interface SyntaxErrorConstructor { new (message?: string, options?: ErrorOptions): SyntaxError; (message?: string, options?: ErrorOptions): SyntaxError; } interface TypeErrorConstructor { new (message?: string, options?: ErrorOptions): TypeError; (message?: string, options?: ErrorOptions): TypeError; } interface URIErrorConstructor { new (message?: string, options?: ErrorOptions): URIError; (message?: string, options?: ErrorOptions): URIError; } interface AggregateErrorConstructor { new ( errors: Iterable<any>, message?: string, options?: ErrorOptions ): AggregateError; ( errors: Iterable<any>, message?: string, options?: ErrorOptions ): AggregateError; } `,ya["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" /> `,ya["lib.es2022.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare namespace Intl { /** * An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) */ interface SegmenterOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ localeMatcher?: "best fit" | "lookup" | undefined; /** The type of input to be split */ granularity?: "grapheme" | "word" | "sentence" | undefined; } interface Segmenter { /** * Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity. * * @param input - The text to be segmented as a \`string\`. * * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity. */ segment(input: string): Segments; resolvedOptions(): ResolvedSegmenterOptions; } interface ResolvedSegmenterOptions { locale: string; granularity: "grapheme" | "word" | "sentence"; } interface Segments { /** * Returns an object describing the segment in the original string that includes the code unit at a specified index. * * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`. */ containing(codeUnitIndex?: number): SegmentData; /** Returns an iterator to iterate over the segments. */ [Symbol.iterator](): IterableIterator<SegmentData>; } interface SegmentData { /** A string containing the segment extracted from the original input string. */ segment: string; /** The code unit index in the original input string at which the segment begins. */ index: number; /** The complete input string that was segmented. */ input: string; /** * A boolean value only if granularity is "word"; otherwise, undefined. * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false. */ isWordLike?: boolean; } const Segmenter: { prototype: Segmenter; /** * Creates a new \`Intl.Segmenter\` object. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the \`locales\` argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) * with some or all options of \`SegmenterOptions\`. * * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter). */ new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter; /** * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the \`locales\` argument, * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters). * with some or all possible options. * * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf) */ supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[]; }; } `,ya["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; } `,ya["lib.es2022.regexp.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface RegExpMatchArray { indices?: RegExpIndicesArray; } interface RegExpExecArray { indices?: RegExpIndicesArray; } interface RegExpIndicesArray extends Array<[number, number]> { groups?: { [key: string]: [number, number]; }; } interface RegExp { /** * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression. * Default is false. Read-only. */ readonly hasIndices: boolean; } `,ya["lib.es2022.sharedmemory.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Atomics { /** * A non-blocking, asynchronous version of wait which is usable on the main thread. * Waits asynchronously on a shared memory location and returns a Promise * @param typedArray A shared Int32Array or BigInt64Array. * @param index The position in the typedArray to wait on. * @param value The expected value to test. * @param [timeout] The expected value to test. */ waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; /** * A non-blocking, asynchronous version of wait which is usable on the main thread. * Waits asynchronously on a shared memory location and returns a Promise * @param typedArray A shared Int32Array or BigInt64Array. * @param index The position in the typedArray to wait on. * @param value The expected value to test. * @param [timeout] The expected value to test. */ waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; } `,ya["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; } `,ya["lib.es2023.array.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> interface Array<T> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number; } interface ReadonlyArray<T> { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number; } interface Int8Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number; } interface Uint8Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number; } interface Uint8ClampedArray { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number; } interface Int16Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number; } interface Uint16Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number; } interface Int32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number; } interface Uint32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number; } interface Float32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number; } interface Float64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number; } interface BigInt64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number; } interface BigUint64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. * @param predicate findLast calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, findLast * immediately returns that element value. Otherwise, findLast returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined; findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined; /** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param predicate findLastIndex calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number; } `,ya["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" /> `,ya["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" /> `,ya["lib.es5.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="decorators" /> /// <reference lib="decorators.legacy" /> ///////////////////////////// /// ECMAScript APIs ///////////////////////////// declare var NaN: number; declare var Infinity: number; /** * Evaluates JavaScript code and executes it. * @param x A String value that contains valid JavaScript code. */ declare function eval(x: string): any; /** * Converts a string to an integer. * @param string A string to convert into a number. * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`. * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. * All other strings are considered decimal. */ declare function parseInt(string: string, radix?: number): number; /** * Converts a string to a floating-point number. * @param string A string that contains a floating-point number. */ declare function parseFloat(string: string): number; /** * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). * @param number A numeric value. */ declare function isNaN(number: number): boolean; /** * Determines whether a supplied number is finite. * @param number Any numeric value. */ declare function isFinite(number: number): boolean; /** * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). * @param encodedURI A value representing an encoded URI. */ declare function decodeURI(encodedURI: string): string; /** * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). * @param encodedURIComponent A value representing an encoded URI component. */ declare function decodeURIComponent(encodedURIComponent: string): string; /** * Encodes a text string as a valid Uniform Resource Identifier (URI) * @param uri A value representing an unencoded URI. */ declare function encodeURI(uri: string): string; /** * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). * @param uriComponent A value representing an unencoded URI component. */ declare function encodeURIComponent(uriComponent: string | number | boolean): string; /** * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. * @deprecated A legacy feature for browser compatibility * @param string A string value */ declare function escape(string: string): string; /** * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. * @deprecated A legacy feature for browser compatibility * @param string A string value */ declare function unescape(string: string): string; interface Symbol { /** Returns a string representation of an object. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): symbol; } declare type PropertyKey = string | number | symbol; interface PropertyDescriptor { configurable?: boolean; enumerable?: boolean; value?: any; writable?: boolean; get?(): any; set?(v: any): void; } interface PropertyDescriptorMap { [key: PropertyKey]: PropertyDescriptor; } interface Object { /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ constructor: Function; /** Returns a string representation of an object. */ toString(): string; /** Returns a date converted to a string using the current locale. */ toLocaleString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Object; /** * Determines whether an object has a property with the specified name. * @param v A property name. */ hasOwnProperty(v: PropertyKey): boolean; /** * Determines whether an object exists in another object's prototype chain. * @param v Another object whose prototype chain is to be checked. */ isPrototypeOf(v: Object): boolean; /** * Determines whether a specified property is enumerable. * @param v A property name. */ propertyIsEnumerable(v: PropertyKey): boolean; } interface ObjectConstructor { new(value?: any): Object; (): any; (value: any): any; /** A reference to the prototype for a class of objects. */ readonly prototype: Object; /** * Returns the prototype of an object. * @param o The object that references the prototype. */ getPrototypeOf(o: any): any; /** * Gets the own property descriptor of the specified object. * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. * @param o Object that contains the property. * @param p Name of the property. */ getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined; /** * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. * @param o Object that contains the own properties. */ getOwnPropertyNames(o: any): string[]; /** * Creates an object that has the specified prototype or that has null prototype. * @param o Object to use as a prototype. May be null. */ create(o: object | null): any; /** * Creates an object that has the specified prototype, and that optionally contains specified properties. * @param o Object to use as a prototype. May be null * @param properties JavaScript object that contains one or more property descriptors. */ create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any; /** * Adds a property to an object, or modifies attributes of an existing property. * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. * @param p The property name. * @param attributes Descriptor for the property. It can be for a data property or an accessor property. */ defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T; /** * Adds one or more properties to an object, and/or modifies attributes of existing properties. * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. */ defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T; /** * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. * @param o Object on which to lock the attributes. */ seal<T>(o: T): T; /** * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. * @param f Object on which to lock the attributes. */ freeze<T extends Function>(f: T): T; /** * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. * @param o Object on which to lock the attributes. */ freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>; /** * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. * @param o Object on which to lock the attributes. */ freeze<T>(o: T): Readonly<T>; /** * Prevents the addition of new properties to an object. * @param o Object to make non-extensible. */ preventExtensions<T>(o: T): T; /** * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. * @param o Object to test. */ isSealed(o: any): boolean; /** * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. * @param o Object to test. */ isFrozen(o: any): boolean; /** * Returns a value that indicates whether new properties can be added to an object. * @param o Object to test. */ isExtensible(o: any): boolean; /** * Returns the names of the enumerable string properties and methods of an object. * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ keys(o: object): string[]; } /** * Provides functionality common to all JavaScript objects. */ declare var Object: ObjectConstructor; /** * Creates a new function. */ interface Function { /** * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. * @param thisArg The object to be used as the this object. * @param argArray A set of arguments to be passed to the function. */ apply(this: Function, thisArg: any, argArray?: any): any; /** * Calls a method of an object, substituting another object for the current object. * @param thisArg The object to be used as the current object. * @param argArray A list of arguments to be passed to the method. */ call(this: Function, thisArg: any, ...argArray: any[]): any; /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg An object to which the this keyword can refer inside the new function. * @param argArray A list of arguments to be passed to the new function. */ bind(this: Function, thisArg: any, ...argArray: any[]): any; /** Returns a string representation of a function. */ toString(): string; prototype: any; readonly length: number; // Non-standard extensions arguments: any; caller: Function; } interface FunctionConstructor { /** * Creates a new function. * @param args A list of arguments the function accepts. */ new(...args: string[]): Function; (...args: string[]): Function; readonly prototype: Function; } declare var Function: FunctionConstructor; /** * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter. */ type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown; /** * Removes the 'this' parameter from a function type. */ type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T; interface CallableFunction extends Function { /** * Calls the function with the specified object as the this value and the elements of specified array as the arguments. * @param thisArg The object to be used as the this object. * @param args An array of argument values to be passed to the function. */ apply<T, R>(this: (this: T) => R, thisArg: T): R; apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R; /** * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. * @param thisArg The object to be used as the this object. * @param args Argument values to be passed to the function. */ call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R; /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg The object to be used as the this object. * @param args Arguments to bind to the parameters of the function. */ bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>; bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R; bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R; bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R; bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R; bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R; } interface NewableFunction extends Function { /** * Calls the function with the specified object as the this value and the elements of specified array as the arguments. * @param thisArg The object to be used as the this object. * @param args An array of argument values to be passed to the function. */ apply<T>(this: new () => T, thisArg: T): void; apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void; /** * Calls the function with the specified object as the this value and the specified rest arguments as the arguments. * @param thisArg The object to be used as the this object. * @param args Argument values to be passed to the function. */ call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void; /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg The object to be used as the this object. * @param args Arguments to bind to the parameters of the function. */ bind<T>(this: T, thisArg: any): T; bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R; bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R; bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R; bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R; bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R; } interface IArguments { [index: number]: any; length: number; callee: Function; } interface String { /** Returns a string representation of a string. */ toString(): string; /** * Returns the character at the specified index. * @param pos The zero-based index of the desired character. */ charAt(pos: number): string; /** * Returns the Unicode value of the character at the specified location. * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. */ charCodeAt(index: number): number; /** * Returns a string that contains the concatenation of two or more strings. * @param strings The strings to append to the end of the string. */ concat(...strings: string[]): string; /** * Returns the position of the first occurrence of a substring. * @param searchString The substring to search for in the string * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. */ indexOf(searchString: string, position?: number): number; /** * Returns the last occurrence of a substring in the string. * @param searchString The substring to search for. * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. */ lastIndexOf(searchString: string, position?: number): number; /** * Determines whether two strings are equivalent in the current locale. * @param that String to compare to target string */ localeCompare(that: string): number; /** * Matches a string with a regular expression, and returns an array containing the results of that search. * @param regexp A variable name or string literal containing the regular expression pattern and flags. */ match(regexp: string | RegExp): RegExpMatchArray | null; /** * Replaces text in a string, using a regular expression or search string. * @param searchValue A string or regular expression to search for. * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced. */ replace(searchValue: string | RegExp, replaceValue: string): string; /** * Replaces text in a string, using a regular expression or search string. * @param searchValue A string to search for. * @param replacer A function that returns the replacement text. */ replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; /** * Finds the first substring match in a regular expression search. * @param regexp The regular expression pattern and applicable flags. */ search(regexp: string | RegExp): number; /** * Returns a section of a string. * @param start The index to the beginning of the specified portion of stringObj. * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. * If this value is not specified, the substring continues to the end of stringObj. */ slice(start?: number, end?: number): string; /** * Split a string into substrings using the specified separator and return them as an array. * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. * @param limit A value used to limit the number of elements returned in the array. */ split(separator: string | RegExp, limit?: number): string[]; /** * Returns the substring at the specified location within a String object. * @param start The zero-based index number indicating the beginning of the substring. * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. * If end is omitted, the characters from start through the end of the original string are returned. */ substring(start: number, end?: number): string; /** Converts all the alphabetic characters in a string to lowercase. */ toLowerCase(): string; /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ toLocaleLowerCase(locales?: string | string[]): string; /** Converts all the alphabetic characters in a string to uppercase. */ toUpperCase(): string; /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ toLocaleUpperCase(locales?: string | string[]): string; /** Removes the leading and trailing white space and line terminator characters from a string. */ trim(): string; /** Returns the length of a String object. */ readonly length: number; // IE extensions /** * Gets a substring beginning at the specified location and having the specified length. * @deprecated A legacy feature for browser compatibility * @param from The starting position of the desired substring. The index of the first character in the string is zero. * @param length The number of characters to include in the returned substring. */ substr(from: number, length?: number): string; /** Returns the primitive value of the specified object. */ valueOf(): string; readonly [index: number]: string; } interface StringConstructor { new(value?: any): String; (value?: any): string; readonly prototype: String; fromCharCode(...codes: number[]): string; } /** * Allows manipulation and formatting of text strings and determination and location of substrings within strings. */ declare var String: StringConstructor; interface Boolean { /** Returns the primitive value of the specified object. */ valueOf(): boolean; } interface BooleanConstructor { new(value?: any): Boolean; <T>(value?: T): boolean; readonly prototype: Boolean; } declare var Boolean: BooleanConstructor; interface Number { /** * Returns a string representation of an object. * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. */ toString(radix?: number): string; /** * Returns a string representing a number in fixed-point notation. * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. */ toFixed(fractionDigits?: number): string; /** * Returns a string containing a number represented in exponential notation. * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. */ toExponential(fractionDigits?: number): string; /** * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. */ toPrecision(precision?: number): string; /** Returns the primitive value of the specified object. */ valueOf(): number; } interface NumberConstructor { new(value?: any): Number; (value?: any): number; readonly prototype: Number; /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ readonly MAX_VALUE: number; /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ readonly MIN_VALUE: number; /** * A value that is not a number. * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. */ readonly NaN: number; /** * A value that is less than the largest negative number that can be represented in JavaScript. * JavaScript displays NEGATIVE_INFINITY values as -infinity. */ readonly NEGATIVE_INFINITY: number; /** * A value greater than the largest number that can be represented in JavaScript. * JavaScript displays POSITIVE_INFINITY values as infinity. */ readonly POSITIVE_INFINITY: number; } /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */ declare var Number: NumberConstructor; interface TemplateStringsArray extends ReadonlyArray<string> { readonly raw: readonly string[]; } /** * The type of \`import.meta\`. * * If you need to declare that a given property exists on \`import.meta\`, * this type may be augmented via interface merging. */ interface ImportMeta { } /** * The type for the optional second argument to \`import()\`. * * If your host environment supports additional options, this type may be * augmented via interface merging. */ interface ImportCallOptions { assert?: ImportAssertions; } /** * The type for the \`assert\` property of the optional second argument to \`import()\`. */ interface ImportAssertions { [key: string]: string; } interface Math { /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ readonly E: number; /** The natural logarithm of 10. */ readonly LN10: number; /** The natural logarithm of 2. */ readonly LN2: number; /** The base-2 logarithm of e. */ readonly LOG2E: number; /** The base-10 logarithm of e. */ readonly LOG10E: number; /** Pi. This is the ratio of the circumference of a circle to its diameter. */ readonly PI: number; /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ readonly SQRT1_2: number; /** The square root of 2. */ readonly SQRT2: number; /** * Returns the absolute value of a number (the value without regard to whether it is positive or negative). * For example, the absolute value of -5 is the same as the absolute value of 5. * @param x A numeric expression for which the absolute value is needed. */ abs(x: number): number; /** * Returns the arc cosine (or inverse cosine) of a number. * @param x A numeric expression. */ acos(x: number): number; /** * Returns the arcsine of a number. * @param x A numeric expression. */ asin(x: number): number; /** * Returns the arctangent of a number. * @param x A numeric expression for which the arctangent is needed. */ atan(x: number): number; /** * Returns the angle (in radians) from the X axis to a point. * @param y A numeric expression representing the cartesian y-coordinate. * @param x A numeric expression representing the cartesian x-coordinate. */ atan2(y: number, x: number): number; /** * Returns the smallest integer greater than or equal to its numeric argument. * @param x A numeric expression. */ ceil(x: number): number; /** * Returns the cosine of a number. * @param x A numeric expression that contains an angle measured in radians. */ cos(x: number): number; /** * Returns e (the base of natural logarithms) raised to a power. * @param x A numeric expression representing the power of e. */ exp(x: number): number; /** * Returns the greatest integer less than or equal to its numeric argument. * @param x A numeric expression. */ floor(x: number): number; /** * Returns the natural logarithm (base e) of a number. * @param x A numeric expression. */ log(x: number): number; /** * Returns the larger of a set of supplied numeric expressions. * @param values Numeric expressions to be evaluated. */ max(...values: number[]): number; /** * Returns the smaller of a set of supplied numeric expressions. * @param values Numeric expressions to be evaluated. */ min(...values: number[]): number; /** * Returns the value of a base expression taken to a specified power. * @param x The base value of the expression. * @param y The exponent value of the expression. */ pow(x: number, y: number): number; /** Returns a pseudorandom number between 0 and 1. */ random(): number; /** * Returns a supplied numeric expression rounded to the nearest integer. * @param x The value to be rounded to the nearest integer. */ round(x: number): number; /** * Returns the sine of a number. * @param x A numeric expression that contains an angle measured in radians. */ sin(x: number): number; /** * Returns the square root of a number. * @param x A numeric expression. */ sqrt(x: number): number; /** * Returns the tangent of a number. * @param x A numeric expression that contains an angle measured in radians. */ tan(x: number): number; } /** An intrinsic object that provides basic mathematics functionality and constants. */ declare var Math: Math; /** Enables basic storage and retrieval of dates and times. */ interface Date { /** Returns a string representation of a date. The format of the string depends on the locale. */ toString(): string; /** Returns a date as a string value. */ toDateString(): string; /** Returns a time as a string value. */ toTimeString(): string; /** Returns a value as a string value appropriate to the host environment's current locale. */ toLocaleString(): string; /** Returns a date as a string value appropriate to the host environment's current locale. */ toLocaleDateString(): string; /** Returns a time as a string value appropriate to the host environment's current locale. */ toLocaleTimeString(): string; /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ valueOf(): number; /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ getTime(): number; /** Gets the year, using local time. */ getFullYear(): number; /** Gets the year using Universal Coordinated Time (UTC). */ getUTCFullYear(): number; /** Gets the month, using local time. */ getMonth(): number; /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ getUTCMonth(): number; /** Gets the day-of-the-month, using local time. */ getDate(): number; /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ getUTCDate(): number; /** Gets the day of the week, using local time. */ getDay(): number; /** Gets the day of the week using Universal Coordinated Time (UTC). */ getUTCDay(): number; /** Gets the hours in a date, using local time. */ getHours(): number; /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ getUTCHours(): number; /** Gets the minutes of a Date object, using local time. */ getMinutes(): number; /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ getUTCMinutes(): number; /** Gets the seconds of a Date object, using local time. */ getSeconds(): number; /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ getUTCSeconds(): number; /** Gets the milliseconds of a Date, using local time. */ getMilliseconds(): number; /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ getUTCMilliseconds(): number; /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ getTimezoneOffset(): number; /** * Sets the date and time value in the Date object. * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. */ setTime(time: number): number; /** * Sets the milliseconds value in the Date object using local time. * @param ms A numeric value equal to the millisecond value. */ setMilliseconds(ms: number): number; /** * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). * @param ms A numeric value equal to the millisecond value. */ setUTCMilliseconds(ms: number): number; /** * Sets the seconds value in the Date object using local time. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setSeconds(sec: number, ms?: number): number; /** * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setUTCSeconds(sec: number, ms?: number): number; /** * Sets the minutes value in the Date object using local time. * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setMinutes(min: number, sec?: number, ms?: number): number; /** * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setUTCMinutes(min: number, sec?: number, ms?: number): number; /** * Sets the hour value in the Date object using local time. * @param hours A numeric value equal to the hours value. * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setHours(hours: number, min?: number, sec?: number, ms?: number): number; /** * Sets the hours value in the Date object using Universal Coordinated Time (UTC). * @param hours A numeric value equal to the hours value. * @param min A numeric value equal to the minutes value. * @param sec A numeric value equal to the seconds value. * @param ms A numeric value equal to the milliseconds value. */ setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; /** * Sets the numeric day-of-the-month value of the Date object using local time. * @param date A numeric value equal to the day of the month. */ setDate(date: number): number; /** * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). * @param date A numeric value equal to the day of the month. */ setUTCDate(date: number): number; /** * Sets the month value in the Date object using local time. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. */ setMonth(month: number, date?: number): number; /** * Sets the month value in the Date object using Universal Coordinated Time (UTC). * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. */ setUTCMonth(month: number, date?: number): number; /** * Sets the year of the Date object using local time. * @param year A numeric value for the year. * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. * @param date A numeric value equal for the day of the month. */ setFullYear(year: number, month?: number, date?: number): number; /** * Sets the year value in the Date object using Universal Coordinated Time (UTC). * @param year A numeric value equal to the year. * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. * @param date A numeric value equal to the day of the month. */ setUTCFullYear(year: number, month?: number, date?: number): number; /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ toUTCString(): string; /** Returns a date as a string value in ISO format. */ toISOString(): string; /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ toJSON(key?: any): string; } interface DateConstructor { new(): Date; new(value: number | string): Date; /** * Creates a new Date. * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. * @param monthIndex The month as a number between 0 and 11 (January to December). * @param date The date as a number between 1 and 31. * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. * @param ms A number from 0 to 999 that specifies the milliseconds. */ new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; (): string; readonly prototype: Date; /** * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. * @param s A date string */ parse(s: string): number; /** * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. * @param monthIndex The month as a number between 0 and 11 (January to December). * @param date The date as a number between 1 and 31. * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour. * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes. * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds. * @param ms A number from 0 to 999 that specifies the milliseconds. */ UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */ now(): number; } declare var Date: DateConstructor; interface RegExpMatchArray extends Array<string> { /** * The index of the search at which the result was found. */ index?: number; /** * A copy of the search string. */ input?: string; /** * The first match. This will always be present because \`null\` will be returned if there are no matches. */ 0: string; } interface RegExpExecArray extends Array<string> { /** * The index of the search at which the result was found. */ index: number; /** * A copy of the search string. */ input: string; /** * The first match. This will always be present because \`null\` will be returned if there are no matches. */ 0: string; } interface RegExp { /** * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. * @param string The String object or string literal on which to perform the search. */ exec(string: string): RegExpExecArray | null; /** * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. * @param string String on which to perform the search. */ test(string: string): boolean; /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ readonly source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ readonly global: boolean; /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ readonly ignoreCase: boolean; /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ readonly multiline: boolean; lastIndex: number; // Non-standard extensions /** @deprecated A legacy feature for browser compatibility */ compile(pattern: string, flags?: string): this; } interface RegExpConstructor { new(pattern: RegExp | string): RegExp; new(pattern: string, flags?: string): RegExp; (pattern: RegExp | string): RegExp; (pattern: string, flags?: string): RegExp; readonly prototype: RegExp; // Non-standard extensions /** @deprecated A legacy feature for browser compatibility */ $1: string; /** @deprecated A legacy feature for browser compatibility */ $2: string; /** @deprecated A legacy feature for browser compatibility */ $3: string; /** @deprecated A legacy feature for browser compatibility */ $4: string; /** @deprecated A legacy feature for browser compatibility */ $5: string; /** @deprecated A legacy feature for browser compatibility */ $6: string; /** @deprecated A legacy feature for browser compatibility */ $7: string; /** @deprecated A legacy feature for browser compatibility */ $8: string; /** @deprecated A legacy feature for browser compatibility */ $9: string; /** @deprecated A legacy feature for browser compatibility */ input: string; /** @deprecated A legacy feature for browser compatibility */ $_: string; /** @deprecated A legacy feature for browser compatibility */ lastMatch: string; /** @deprecated A legacy feature for browser compatibility */ "$&": string; /** @deprecated A legacy feature for browser compatibility */ lastParen: string; /** @deprecated A legacy feature for browser compatibility */ "$+": string; /** @deprecated A legacy feature for browser compatibility */ leftContext: string; /** @deprecated A legacy feature for browser compatibility */ "$\`": string; /** @deprecated A legacy feature for browser compatibility */ rightContext: string; /** @deprecated A legacy feature for browser compatibility */ "$'": string; } declare var RegExp: RegExpConstructor; interface Error { name: string; message: string; stack?: string; } interface ErrorConstructor { new(message?: string): Error; (message?: string): Error; readonly prototype: Error; } declare var Error: ErrorConstructor; interface EvalError extends Error { } interface EvalErrorConstructor extends ErrorConstructor { new(message?: string): EvalError; (message?: string): EvalError; readonly prototype: EvalError; } declare var EvalError: EvalErrorConstructor; interface RangeError extends Error { } interface RangeErrorConstructor extends ErrorConstructor { new(message?: string): RangeError; (message?: string): RangeError; readonly prototype: RangeError; } declare var RangeError: RangeErrorConstructor; interface ReferenceError extends Error { } interface ReferenceErrorConstructor extends ErrorConstructor { new(message?: string): ReferenceError; (message?: string): ReferenceError; readonly prototype: ReferenceError; } declare var ReferenceError: ReferenceErrorConstructor; interface SyntaxError extends Error { } interface SyntaxErrorConstructor extends ErrorConstructor { new(message?: string): SyntaxError; (message?: string): SyntaxError; readonly prototype: SyntaxError; } declare var SyntaxError: SyntaxErrorConstructor; interface TypeError extends Error { } interface TypeErrorConstructor extends ErrorConstructor { new(message?: string): TypeError; (message?: string): TypeError; readonly prototype: TypeError; } declare var TypeError: TypeErrorConstructor; interface URIError extends Error { } interface URIErrorConstructor extends ErrorConstructor { new(message?: string): URIError; (message?: string): URIError; readonly prototype: URIError; } declare var URIError: URIErrorConstructor; interface JSON { /** * Converts a JavaScript Object Notation (JSON) string into an object. * @param text A valid JSON string. * @param reviver A function that transforms the results. This function is called for each member of the object. * If a member contains nested objects, the nested objects are transformed before the parent object is. */ parse(text: string, reviver?: (this: any, key: string, value: any) => any): any; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. * @param value A JavaScript value, usually an object or array, to be converted. * @param replacer A function that transforms the results. * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. */ stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; /** * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. * @param value A JavaScript value, usually an object or array, to be converted. * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified. * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. */ stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string; } /** * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. */ declare var JSON: JSON; ///////////////////////////// /// ECMAScript Array API (specially handled by compiler) ///////////////////////////// interface ReadonlyArray<T> { /** * Gets the length of the array. This is a number one higher than the highest element defined in an array. */ readonly length: number; /** * Returns a string representation of an array. */ toString(): string; /** * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods. */ toLocaleString(): string; /** * Combines two or more arrays. * @param items Additional items to add to the end of array1. */ concat(...items: ConcatArray<T>[]): T[]; /** * Combines two or more arrays. * @param items Additional items to add to the end of array1. */ concat(...items: (T | ConcatArray<T>)[]): T[]; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): T[]; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. */ indexOf(searchElement: T, fromIndex?: number): number; /** * Returns the index of the last occurrence of a specified value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. */ lastIndexOf(searchElement: T, fromIndex?: number): number; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[]; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void; /** * Calls a defined callback function on each element of an array, and returns an array that contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[]; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. */ filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[]; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[]; /** * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T; reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T; /** * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T; reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T; /** * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U; readonly [n: number]: T; } interface ConcatArray<T> { readonly length: number; readonly [n: number]: T; join(separator?: string): string; slice(start?: number, end?: number): T[]; } interface Array<T> { /** * Gets or sets the length of the array. This is a number one higher than the highest index in the array. */ length: number; /** * Returns a string representation of an array. */ toString(): string; /** * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods. */ toLocaleString(): string; /** * Removes the last element from an array and returns it. * If the array is empty, undefined is returned and the array is not modified. */ pop(): T | undefined; /** * Appends new elements to the end of an array, and returns the new length of the array. * @param items New elements to add to the array. */ push(...items: T[]): number; /** * Combines two or more arrays. * This method returns a new array without modifying any existing arrays. * @param items Additional arrays and/or items to add to the end of the array. */ concat(...items: ConcatArray<T>[]): T[]; /** * Combines two or more arrays. * This method returns a new array without modifying any existing arrays. * @param items Additional arrays and/or items to add to the end of the array. */ concat(...items: (T | ConcatArray<T>)[]): T[]; /** * Adds all the elements of an array into a string, separated by the specified separator string. * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Reverses the elements in an array in place. * This method mutates the array and returns a reference to the same array. */ reverse(): T[]; /** * Removes the first element from an array and returns it. * If the array is empty, undefined is returned and the array is not modified. */ shift(): T | undefined; /** * Returns a copy of a section of an array. * For both start and end, a negative index can be used to indicate an offset from the end of the array. * For example, -2 refers to the second to last element of the array. * @param start The beginning index of the specified portion of the array. * If start is undefined, then the slice begins at index 0. * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. * If end is undefined, then the slice extends to the end of the array. */ slice(start?: number, end?: number): T[]; /** * Sorts an array in place. * This method mutates the array and returns a reference to the same array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: T, b: T) => number): this; /** * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @returns An array containing the elements that were deleted. */ splice(start: number, deleteCount?: number): T[]; /** * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. * @param start The zero-based location in the array from which to start removing elements. * @param deleteCount The number of elements to remove. * @param items Elements to insert into the array in place of the deleted elements. * @returns An array containing the elements that were deleted. */ splice(start: number, deleteCount: number, ...items: T[]): T[]; /** * Inserts new elements at the start of an array, and returns the new length of the array. * @param items Elements to insert at the start of the array. */ unshift(...items: T[]): number; /** * Returns the index of the first occurrence of a value in an array, or -1 if it is not present. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. */ indexOf(searchElement: T, fromIndex?: number): number; /** * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array. */ lastIndexOf(searchElement: T, fromIndex?: number): number; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[]; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; /** * Calls a defined callback function on each element of an array, and returns an array that contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. */ filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[]; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[]; /** * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; /** * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T; reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T; /** * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; [n: number]: T; } interface ArrayConstructor { new(arrayLength?: number): any[]; new <T>(arrayLength: number): T[]; new <T>(...items: T[]): T[]; (arrayLength?: number): any[]; <T>(arrayLength: number): T[]; <T>(...items: T[]): T[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; } declare var Array: ArrayConstructor; interface TypedPropertyDescriptor<T> { enumerable?: boolean; configurable?: boolean; writable?: boolean; value?: T; get?: () => T; set?: (value: T) => void; } declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>; interface PromiseLike<T> { /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>; } /** * Represents the completion of an asynchronous operation */ interface Promise<T> { /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>; /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>; } /** * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`. */ type Awaited<T> = T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument Awaited<V> : // recursively unwrap the value never : // the argument to \`then\` was not callable T; // non-object or non-thenable interface ArrayLike<T> { readonly length: number; readonly [n: number]: T; } /** * Make all properties in T optional */ type Partial<T> = { [P in keyof T]?: T[P]; }; /** * Make all properties in T required */ type Required<T> = { [P in keyof T]-?: T[P]; }; /** * Make all properties in T readonly */ type Readonly<T> = { readonly [P in keyof T]: T[P]; }; /** * From T, pick a set of properties whose keys are in the union K */ type Pick<T, K extends keyof T> = { [P in K]: T[P]; }; /** * Construct a type with a set of properties K of type T */ type Record<K extends keyof any, T> = { [P in K]: T; }; /** * Exclude from T those types that are assignable to U */ type Exclude<T, U> = T extends U ? never : T; /** * Extract from T those types that are assignable to U */ type Extract<T, U> = T extends U ? T : never; /** * Construct a type with the properties of T except for those in type K. */ type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; /** * Exclude null and undefined from T */ type NonNullable<T> = T & {}; /** * Obtain the parameters of a function type in a tuple */ type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never; /** * Obtain the parameters of a constructor function type in a tuple */ type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never; /** * Obtain the return type of a function type */ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any; /** * Obtain the return type of a constructor function type */ type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any; /** * Convert string literal type to uppercase */ type Uppercase<S extends string> = intrinsic; /** * Convert string literal type to lowercase */ type Lowercase<S extends string> = intrinsic; /** * Convert first character of string literal type to uppercase */ type Capitalize<S extends string> = intrinsic; /** * Convert first character of string literal type to lowercase */ type Uncapitalize<S extends string> = intrinsic; /** * Marker for contextual 'this' type */ interface ThisType<T> { } /** * Represents a raw buffer of binary data, which is used to store data for the * different typed arrays. ArrayBuffers cannot be read from or written to directly, * but can be passed to a typed array or DataView Object to interpret the raw * buffer as needed. */ interface ArrayBuffer { /** * Read-only. The length of the ArrayBuffer (in bytes). */ readonly byteLength: number; /** * Returns a section of an ArrayBuffer. */ slice(begin: number, end?: number): ArrayBuffer; } /** * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays. */ interface ArrayBufferTypes { ArrayBuffer: ArrayBuffer; } type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes]; interface ArrayBufferConstructor { readonly prototype: ArrayBuffer; new(byteLength: number): ArrayBuffer; isView(arg: any): arg is ArrayBufferView; } declare var ArrayBuffer: ArrayBufferConstructor; interface ArrayBufferView { /** * The ArrayBuffer instance referenced by the array. */ buffer: ArrayBufferLike; /** * The length in bytes of the array. */ byteLength: number; /** * The offset in bytes of the array. */ byteOffset: number; } interface DataView { readonly buffer: ArrayBuffer; readonly byteLength: number; readonly byteOffset: number; /** * Gets the Float32 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getFloat32(byteOffset: number, littleEndian?: boolean): number; /** * Gets the Float64 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getFloat64(byteOffset: number, littleEndian?: boolean): number; /** * Gets the Int8 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. */ getInt8(byteOffset: number): number; /** * Gets the Int16 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getInt16(byteOffset: number, littleEndian?: boolean): number; /** * Gets the Int32 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getInt32(byteOffset: number, littleEndian?: boolean): number; /** * Gets the Uint8 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. */ getUint8(byteOffset: number): number; /** * Gets the Uint16 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getUint16(byteOffset: number, littleEndian?: boolean): number; /** * Gets the Uint32 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. * @param byteOffset The place in the buffer at which the value should be retrieved. * @param littleEndian If false or undefined, a big-endian value should be read. */ getUint32(byteOffset: number, littleEndian?: boolean): number; /** * Stores an Float32 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void; /** * Stores an Float64 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void; /** * Stores an Int8 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. */ setInt8(byteOffset: number, value: number): void; /** * Stores an Int16 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setInt16(byteOffset: number, value: number, littleEndian?: boolean): void; /** * Stores an Int32 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setInt32(byteOffset: number, value: number, littleEndian?: boolean): void; /** * Stores an Uint8 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. */ setUint8(byteOffset: number, value: number): void; /** * Stores an Uint16 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setUint16(byteOffset: number, value: number, littleEndian?: boolean): void; /** * Stores an Uint32 value at the specified byte offset from the start of the view. * @param byteOffset The place in the buffer at which the value should be set. * @param value The value to set. * @param littleEndian If false or undefined, a big-endian value should be written. */ setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; } interface DataViewConstructor { readonly prototype: DataView; new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView; } declare var DataView: DataViewConstructor; /** * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ interface Int8Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Int8Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int8Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Int8Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Int8Array; [index: number]: number; } interface Int8ArrayConstructor { readonly prototype: Int8Array; new(length: number): Int8Array; new(array: ArrayLike<number> | ArrayBufferLike): Int8Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Int8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array; } declare var Int8Array: Int8ArrayConstructor; /** * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint8Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Uint8Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint8Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Uint8Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Uint8Array; [index: number]: number; } interface Uint8ArrayConstructor { readonly prototype: Uint8Array; new(length: number): Uint8Array; new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Uint8Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; } declare var Uint8Array: Uint8ArrayConstructor; /** * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. * If the requested number of bytes could not be allocated an exception is raised. */ interface Uint8ClampedArray { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Uint8ClampedArray; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint8ClampedArray; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Uint8ClampedArray; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Uint8ClampedArray; [index: number]: number; } interface Uint8ClampedArrayConstructor { readonly prototype: Uint8ClampedArray; new(length: number): Uint8ClampedArray; new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; } declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; /** * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Int16Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Int16Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int16Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Int16Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Int16Array; [index: number]: number; } interface Int16ArrayConstructor { readonly prototype: Int16Array; new(length: number): Int16Array; new(array: ArrayLike<number> | ArrayBufferLike): Int16Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Int16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array; } declare var Int16Array: Int16ArrayConstructor; /** * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint16Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Uint16Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint16Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Uint16Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Uint16Array; [index: number]: number; } interface Uint16ArrayConstructor { readonly prototype: Uint16Array; new(length: number): Uint16Array; new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Uint16Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array; } declare var Uint16Array: Uint16ArrayConstructor; /** * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Int32Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Int32Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int32Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Int32Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Int32Array; [index: number]: number; } interface Int32ArrayConstructor { readonly prototype: Int32Array; new(length: number): Int32Array; new(array: ArrayLike<number> | ArrayBufferLike): Int32Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Int32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array; } declare var Int32Array: Int32ArrayConstructor; /** * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ interface Uint32Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Uint32Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint32Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Uint32Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Uint32Array; [index: number]: number; } interface Uint32ArrayConstructor { readonly prototype: Uint32Array; new(length: number): Uint32Array; new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Uint32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array; } declare var Uint32Array: Uint32ArrayConstructor; /** * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number * of bytes could not be allocated an exception is raised. */ interface Float32Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Float32Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Float32Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Float32Array; /** * Converts a number to a string by using the current locale. */ toLocaleString(): string; /** * Returns a string representation of an array. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Float32Array; [index: number]: number; } interface Float32ArrayConstructor { readonly prototype: Float32Array; new(length: number): Float32Array; new(array: ArrayLike<number> | ArrayBufferLike): Float32Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Float32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Float32Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array; } declare var Float32Array: Float32ArrayConstructor; /** * A typed array of 64-bit float values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ interface Float64Array { /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * The ArrayBuffer instance referenced by the array. */ readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. */ readonly byteLength: number; /** * The offset in bytes of the array. */ readonly byteOffset: number; /** * Returns the this object after copying a section of the array identified by start and end * to the same array starting at position target * @param target If target is negative, it is treated as length+target where length is the * length of the array. * @param start If start is negative, it is treated as length+start. If end is negative, it * is treated as length+end. * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; /** * Determines whether all the members of an array satisfy the specified test. * @param predicate A function that accepts up to three arguments. The every method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value false, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array * @param value value to fill array section with * @param start index to start filling the array at. If start is negative, it is treated as * length+start where length is the length of the array. * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ fill(value: number, start?: number, end?: number): this; /** * Returns the elements of an array that meet the condition specified in a callback function. * @param predicate A function that accepts up to three arguments. The filter method calls * the predicate function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, find * immediately returns that element value. Otherwise, find returns undefined. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from the next in the * resulting String. If omitted, the array elements are separated with a comma. */ join(separator?: string): string; /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the * search starts at index 0. */ lastIndexOf(searchElement: number, fromIndex?: number): number; /** * The length of the array. */ readonly length: number; /** * Calls a defined callback function on each element of an array, and returns an array that * contains the results. * @param callbackfn A function that accepts up to three arguments. The map method calls the * callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduce method calls the * callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls * the callbackfn function one time for each element in the array. * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ reverse(): Float64Array; /** * Sets a value or an array of values. * @param array A typed or untyped array of values to set. * @param offset The index in the current array at which the values are to be written. */ set(array: ArrayLike<number>, offset?: number): void; /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Float64Array; /** * Determines whether the specified callback function returns true for any element of an array. * @param predicate A function that accepts up to three arguments. The some method calls * the predicate function for each element in the array until the predicate returns a value * which is coercible to the Boolean value true, or until the end of the array. * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if first argument is less than second argument, zero if they're equal and a positive * value otherwise. If omitted, the elements are sorted in ascending order. * \`\`\`ts * [11,2,22,1].sort((a, b) => a - b) * \`\`\` */ sort(compareFn?: (a: number, b: number) => number): this; /** * at begin, inclusive, up to end, exclusive. * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ subarray(begin?: number, end?: number): Float64Array; toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Float64Array; [index: number]: number; } interface Float64ArrayConstructor { readonly prototype: Float64Array; new(length: number): Float64Array; new(array: ArrayLike<number> | ArrayBufferLike): Float64Array; new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array; /** * The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ of(...items: number[]): Float64Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. */ from(arrayLike: ArrayLike<number>): Float64Array; /** * Creates an array from an array-like or iterable object. * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array; } declare var Float64Array: Float64ArrayConstructor; ///////////////////////////// /// ECMAScript Internationalization API ///////////////////////////// declare namespace Intl { interface CollatorOptions { usage?: string | undefined; localeMatcher?: string | undefined; numeric?: boolean | undefined; caseFirst?: string | undefined; sensitivity?: string | undefined; ignorePunctuation?: boolean | undefined; } interface ResolvedCollatorOptions { locale: string; usage: string; sensitivity: string; ignorePunctuation: boolean; collation: string; caseFirst: string; numeric: boolean; } interface Collator { compare(x: string, y: string): number; resolvedOptions(): ResolvedCollatorOptions; } var Collator: { new(locales?: string | string[], options?: CollatorOptions): Collator; (locales?: string | string[], options?: CollatorOptions): Collator; supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[]; }; interface NumberFormatOptions { localeMatcher?: string | undefined; style?: string | undefined; currency?: string | undefined; currencySign?: string | undefined; useGrouping?: boolean | undefined; minimumIntegerDigits?: number | undefined; minimumFractionDigits?: number | undefined; maximumFractionDigits?: number | undefined; minimumSignificantDigits?: number | undefined; maximumSignificantDigits?: number | undefined; } interface ResolvedNumberFormatOptions { locale: string; numberingSystem: string; style: string; currency?: string; minimumIntegerDigits: number; minimumFractionDigits: number; maximumFractionDigits: number; minimumSignificantDigits?: number; maximumSignificantDigits?: number; useGrouping: boolean; } interface NumberFormat { format(value: number): string; resolvedOptions(): ResolvedNumberFormatOptions; } var NumberFormat: { new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat; (locales?: string | string[], options?: NumberFormatOptions): NumberFormat; supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[]; readonly prototype: NumberFormat; }; interface DateTimeFormatOptions { localeMatcher?: "best fit" | "lookup" | undefined; weekday?: "long" | "short" | "narrow" | undefined; era?: "long" | "short" | "narrow" | undefined; year?: "numeric" | "2-digit" | undefined; month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined; day?: "numeric" | "2-digit" | undefined; hour?: "numeric" | "2-digit" | undefined; minute?: "numeric" | "2-digit" | undefined; second?: "numeric" | "2-digit" | undefined; timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined; formatMatcher?: "best fit" | "basic" | undefined; hour12?: boolean | undefined; timeZone?: string | undefined; } interface ResolvedDateTimeFormatOptions { locale: string; calendar: string; numberingSystem: string; timeZone: string; hour12?: boolean; weekday?: string; era?: string; year?: string; month?: string; day?: string; hour?: string; minute?: string; second?: string; timeZoneName?: string; } interface DateTimeFormat { format(date?: Date | number): string; resolvedOptions(): ResolvedDateTimeFormatOptions; } var DateTimeFormat: { new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat; supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[]; readonly prototype: DateTimeFormat; }; } interface String { /** * Determines whether two strings are equivalent in the current or specified locale. * @param that String to compare to target string * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. */ localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; } interface Number { /** * Converts a number to a string by using the current or specified locale. * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. * @param options An object that contains one or more properties that specify comparison options. */ toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; } interface Date { /** * Converts a date and time to a string by using the current or specified locale. * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. * @param options An object that contains one or more properties that specify comparison options. */ toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; /** * Converts a date to a string by using the current or specified locale. * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. * @param options An object that contains one or more properties that specify comparison options. */ toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; /** * Converts a time to a string by using the current or specified locale. * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. * @param options An object that contains one or more properties that specify comparison options. */ toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; } `,ya["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" /> `,ya["lib.esnext.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> /// <reference lib="es2023" /> /// <reference lib="esnext.intl" /> `,ya["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" />`,ya["lib.esnext.intl.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> declare namespace Intl { interface NumberRangeFormatPart extends NumberFormatPart { source: "startRange" | "endRange" | "shared" } interface NumberFormat { formatRange(start: number | bigint, end: number | bigint): string; formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; } } `,ya["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; } `,ya["lib.webworker.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> ///////////////////////////// /// Worker APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit<T = any> extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface ExtendableEventInit extends EventInit { } interface ExtendableMessageEventInit extends ExtendableEventInit { data?: any; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: Client | ServiceWorker | MessagePort | null; } interface FetchEventInit extends ExtendableEventInit { clientId?: string; handled?: Promise<undefined>; preloadResponse?: Promise<any>; replacesClientId?: string; request: Request; resultingClientId?: string; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemReadWriteOptions { at?: number; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; variant?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface GetNotificationOptions { tag?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MessageEventInit<T = any> extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationAction { action: string; icon?: string; title: string; } interface NotificationEventInit extends ExtendableEventInit { action?: string; notification: Notification; } interface NotificationOptions { actions?: NotificationAction[]; badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; image?: string; lang?: string; renotify?: boolean; requireInteraction?: boolean; silent?: boolean; tag?: string; timestamp?: EpochTimeStamp; vibrate?: VibratePattern; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PermissionDescriptor { name: PermissionName; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise<any>; reason?: any; } interface PushEventInit extends ExtendableEventInit { data?: PushMessageDataInit; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record<string, string>; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy<T = any> { highWaterMark?: number; size?: QueuingStrategySize<T>; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; width?: number; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult<T> { done: true; value?: T; } interface ReadableStreamReadValueResult<T> { done: false; value: T; } interface ReadableWritablePair<R = any, W = any> { readable: ReadableStream<R>; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream<W>; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface StorageEstimate { quota?: number; usage?: number; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read?: number; written?: number; } interface Transformer<I = any, O = any> { flush?: TransformerFlushCallback<O>; readableType?: undefined; start?: TransformerStartCallback<O>; transform?: TransformerTransformCallback<I, O>; writableType?: undefined; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource<R = any> { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>; start?: (controller: ReadableStreamDefaultController<R>) => any; type?: undefined; } interface UnderlyingSink<W = any> { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback<W>; } interface UnderlyingSource<R = any> { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback<R>; start?: UnderlyingSourceStartCallback<R>; type?: ReadableStreamType; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */ interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } /** A controller object that allows you to abort one or more DOM requests as and when desired. */ interface AbortController { /** Returns the AbortSignal object associated with this object. */ readonly signal: AbortSignal; /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ interface AbortSignal extends EventTarget { /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */ readonly aborted: boolean; onabort: ((this: AbortSignal, ev: Event) => any) | null; readonly reason: any; throwIfAborted(): void; addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface AnimationFrameProvider { cancelAnimationFrame(handle: number): void; requestAnimationFrame(callback: FrameRequestCallback): number; } /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */ interface Blob { readonly size: number; readonly type: string; arrayBuffer(): Promise<ArrayBuffer>; slice(start?: number, end?: number, contentType?: string): Blob; stream(): ReadableStream<Uint8Array>; text(): Promise<string>; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; interface Body { readonly body: ReadableStream<Uint8Array> | null; readonly bodyUsed: boolean; arrayBuffer(): Promise<ArrayBuffer>; blob(): Promise<Blob>; formData(): Promise<FormData>; json(): Promise<any>; text(): Promise<string>; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } interface BroadcastChannel extends EventTarget { /** Returns the channel name (as passed to the constructor). */ readonly name: string; onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** Closes the BroadcastChannel object, opening it up to garbage collection. */ close(): void; /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */ postMessage(message: any): void; addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> { readonly highWaterMark: number; readonly size: QueuingStrategySize<ArrayBufferView>; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. */ interface Cache { add(request: RequestInfo | URL): Promise<void>; addAll(requests: RequestInfo[]): Promise<void>; delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>; keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>; match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>; matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>; put(request: RequestInfo | URL, response: Response): Promise<void>; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. */ interface CacheStorage { delete(cacheName: string): Promise<boolean>; has(cacheName: string): Promise<boolean>; keys(): Promise<string[]>; match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>; open(cacheName: string): Promise<Cache>; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; interface CanvasCompositing { globalAlpha: number; globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { beginPath(): void; clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { fillStyle: string | CanvasGradient | CanvasPattern; strokeStyle: string | CanvasGradient | CanvasPattern; createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { filter: string; } /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { imageSmoothingEnabled: boolean; imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; closePath(): void; ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; lineTo(x: number, y: number): void; moveTo(x: number, y: number): void; quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { lineCap: CanvasLineCap; lineDashOffset: number; lineJoin: CanvasLineJoin; lineWidth: number; miterLimit: number; getLineDash(): number[]; setLineDash(segments: number[]): void; } /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */ interface CanvasPattern { /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { clearRect(x: number, y: number, w: number, h: number): void; fillRect(x: number, y: number, w: number, h: number): void; strokeRect(x: number, y: number, w: number, h: number): void; } interface CanvasShadowStyles { shadowBlur: number; shadowColor: string; shadowOffsetX: number; shadowOffsetY: number; } interface CanvasState { restore(): void; save(): void; } interface CanvasText { fillText(text: string, x: number, y: number, maxWidth?: number): void; measureText(text: string): TextMetrics; strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { direction: CanvasDirection; font: string; fontKerning: CanvasFontKerning; textAlign: CanvasTextAlign; textBaseline: CanvasTextBaseline; } interface CanvasTransform { getTransform(): DOMMatrix; resetTransform(): void; rotate(angle: number): void; scale(x: number, y: number): void; setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; transform(a: number, b: number, c: number, d: number, e: number, f: number): void; translate(x: number, y: number): void; } /** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */ interface Client { readonly frameType: FrameType; readonly id: string; readonly type: ClientTypes; readonly url: string; postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; } declare var Client: { prototype: Client; new(): Client; }; /** Provides access to Client objects. Access it via self.clients within a service worker. */ interface Clients { claim(): Promise<void>; get(id: string): Promise<Client | undefined>; matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>; openWindow(url: string | URL): Promise<WindowClient | null>; } declare var Clients: { prototype: Clients; new(): Clients; }; /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */ interface CloseEvent extends Event { /** Returns the WebSocket connection close code provided by the server. */ readonly code: number; /** Returns the WebSocket connection close reason provided by the server. */ readonly reason: string; /** Returns true if the connection closed cleanly; false otherwise. */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface CountQueuingStrategy extends QueuingStrategy { readonly highWaterMark: number; readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */ interface Crypto { /** Available only in secure contexts. */ readonly subtle: SubtleCrypto; getRandomValues<T extends ArrayBufferView | null>(array: T): T; /** Available only in secure contexts. */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. */ interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; readonly type: KeyType; readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; interface CustomEvent<T = any> extends Event { /** Returns any custom data event was created with. Typically used for synthetic events. */ readonly detail: T; /** @deprecated */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; }; /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */ interface DOMException extends Error { /** @deprecated */ readonly code: number; readonly message: string; readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; interface DOMMatrixReadOnly { readonly a: number; readonly b: number; readonly c: number; readonly d: number; readonly e: number; readonly f: number; readonly is2D: boolean; readonly isIdentity: boolean; readonly m11: number; readonly m12: number; readonly m13: number; readonly m14: number; readonly m21: number; readonly m22: number; readonly m23: number; readonly m24: number; readonly m31: number; readonly m32: number; readonly m33: number; readonly m34: number; readonly m41: number; readonly m42: number; readonly m43: number; readonly m44: number; flipX(): DOMMatrix; flipY(): DOMMatrix; inverse(): DOMMatrix; multiply(other?: DOMMatrixInit): DOMMatrix; rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVector(x?: number, y?: number): DOMMatrix; scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; skewX(sx?: number): DOMMatrix; skewY(sy?: number): DOMMatrix; toFloat32Array(): Float32Array; toFloat64Array(): Float64Array; toJSON(): any; transformPoint(point?: DOMPointInit): DOMPoint; translate(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; }; interface DOMPoint extends DOMPointReadOnly { w: number; x: number; y: number; z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; fromPoint(other?: DOMPointInit): DOMPoint; }; interface DOMPointReadOnly { readonly w: number; readonly x: number; readonly y: number; readonly z: number; matrixTransform(matrix?: DOMMatrixInit): DOMPoint; toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; interface DOMQuad { readonly p1: DOMPoint; readonly p2: DOMPoint; readonly p3: DOMPoint; readonly p4: DOMPoint; getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; interface DOMRectReadOnly { readonly bottom: number; readonly height: number; readonly left: number; readonly right: number; readonly top: number; readonly width: number; readonly x: number; readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** A type returned by some APIs which contains a list of DOMString (strings). */ interface DOMStringList { /** Returns the number of strings in strings. */ readonly length: number; /** Returns true if strings contains string, and false otherwise. */ contains(string: string): boolean; /** Returns the string with index index from strings. */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */ interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider { /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */ readonly name: string; onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; /** Aborts dedicatedWorkerGlobal. */ close(): void; /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */ postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var DedicatedWorkerGlobalScope: { prototype: DedicatedWorkerGlobalScope; new(): DedicatedWorkerGlobalScope; }; interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } interface EXT_color_buffer_float { } interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } interface EXT_float_blend { } /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */ interface EXT_frag_depth { } interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } interface EXT_shader_texture_lod { } interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } /** Events providing information related to errors in scripts or in files. */ interface ErrorEvent extends Event { readonly colno: number; readonly error: any; readonly filename: string; readonly lineno: number; readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** An event which takes place in the DOM. */ interface Event { /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */ readonly bubbles: boolean; /** @deprecated */ cancelBubble: boolean; /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */ readonly cancelable: boolean; /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */ readonly composed: boolean; /** Returns the object whose event listener's callback is currently being invoked. */ readonly currentTarget: EventTarget | null; /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */ readonly defaultPrevented: boolean; /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */ readonly eventPhase: number; /** Returns true if event was dispatched by the user agent, and false otherwise. */ readonly isTrusted: boolean; /** @deprecated */ returnValue: boolean; /** @deprecated */ readonly srcElement: EventTarget | null; /** Returns the object to which event is dispatched (its target). */ readonly target: EventTarget | null; /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */ readonly timeStamp: DOMHighResTimeStamp; /** Returns the type of event, e.g. "click", "hashchange", or "submit". */ readonly type: string; /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */ composedPath(): EventTarget[]; /** @deprecated */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */ preventDefault(): void; /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */ stopImmediatePropagation(): void; /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } interface EventSource extends EventTarget { onerror: ((this: EventSource, ev: Event) => any) | null; onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; onopen: ((this: EventSource, ev: Event) => any) | null; /** Returns the state of this EventSource object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL providing the event stream. */ readonly url: string; /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */ readonly withCredentials: boolean; /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ dispatchEvent(event: Event): boolean; /** Removes the event listener in target's event listener list with the same type, callback, and options. */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */ interface ExtendableEvent extends Event { waitUntil(f: Promise<any>): void; } declare var ExtendableEvent: { prototype: ExtendableEvent; new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent; }; /** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events. */ interface ExtendableMessageEvent extends ExtendableEvent { readonly data: any; readonly lastEventId: string; readonly origin: string; readonly ports: ReadonlyArray<MessagePort>; readonly source: Client | ServiceWorker | MessagePort | null; } declare var ExtendableMessageEvent: { prototype: ExtendableMessageEvent; new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent; }; /** This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */ interface FetchEvent extends ExtendableEvent { readonly clientId: string; readonly handled: Promise<undefined>; readonly preloadResponse: Promise<any>; readonly request: Request; readonly resultingClientId: string; respondWith(r: Response | PromiseLike<Response>): void; } declare var FetchEvent: { prototype: FetchEvent; new(type: string, eventInitDict: FetchEventInit): FetchEvent; }; /** Provides information about files and allows JavaScript in a web page to access their content. */ interface File extends Blob { readonly lastModified: number; readonly name: string; readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */ interface FileList { readonly length: number; item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent<FileReader>; "error": ProgressEvent<FileReader>; "load": ProgressEvent<FileReader>; "loadend": ProgressEvent<FileReader>; "loadstart": ProgressEvent<FileReader>; "progress": ProgressEvent<FileReader>; } /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */ interface FileReader extends EventTarget { readonly error: DOMException | null; onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null; readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; readonly result: string | ArrayBuffer | null; abort(): void; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; /** Allows to read File or Blob objects in a synchronous way. */ interface FileReaderSync { readAsArrayBuffer(blob: Blob): ArrayBuffer; /** @deprecated */ readAsBinaryString(blob: Blob): string; readAsDataURL(blob: Blob): string; readAsText(blob: Blob, encoding?: string): string; } declare var FileReaderSync: { prototype: FileReaderSync; new(): FileReaderSync; }; /** Available only in secure contexts. */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>; getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>; removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>; resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** Available only in secure contexts. */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>; getFile(): Promise<File>; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** Available only in secure contexts. */ interface FileSystemHandle { readonly kind: FileSystemHandleKind; readonly name: string; isSameEntry(other: FileSystemHandle): Promise<boolean>; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** Available only in secure contexts. */ interface FileSystemSyncAccessHandle { close(): void; flush(): void; getSize(): number; read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number; truncate(newSize: number): void; write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number; } declare var FileSystemSyncAccessHandle: { prototype: FileSystemSyncAccessHandle; new(): FileSystemSyncAccessHandle; }; interface FontFace { ascentOverride: string; descentOverride: string; display: FontDisplay; family: string; featureSettings: string; lineGapOverride: string; readonly loaded: Promise<FontFace>; readonly status: FontFaceLoadStatus; stretch: string; style: string; unicodeRange: string; variant: string; weight: string; load(): Promise<FontFace>; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } interface FontFaceSet extends EventTarget { onloading: ((this: FontFaceSet, ev: Event) => any) | null; onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; readonly ready: Promise<FontFaceSet>; readonly status: FontFaceSetLoadStatus; check(font: string, text?: string): boolean; load(font: string, text?: string): Promise<FontFace[]>; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; interface FontFaceSetLoadEvent extends Event { readonly fontfaces: ReadonlyArray<FontFace>; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { readonly fonts: FontFaceSet; } /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */ interface FormData { append(name: string, value: string | Blob, fileName?: string): void; delete(name: string): void; get(name: string): FormDataEntryValue | null; getAll(name: string): FormDataEntryValue[]; has(name: string): boolean; set(name: string, value: string | Blob, fileName?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(): FormData; }; interface GenericTransformStream { readonly readable: ReadableStream; readonly writable: WritableStream; } /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */ interface Headers { append(name: string, value: string): void; delete(name: string): void; get(name: string): string | null; has(name: string): boolean; set(name: string, value: string): void; forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; } declare var Headers: { prototype: Headers; new(init?: HeadersInit): Headers; }; /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */ interface IDBCursor { /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */ readonly direction: IDBCursorDirection; /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */ readonly key: IDBValidKey; /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */ readonly primaryKey: IDBValidKey; readonly request: IDBRequest; /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */ readonly source: IDBObjectStore | IDBIndex; /** Advances the cursor through the next count records in range. */ advance(count: number): void; /** Advances the cursor to the next record in range. */ continue(key?: IDBValidKey): void; /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */ continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; /** * Delete the record pointed at by the cursor with a new value. * * If successful, request's result will be undefined. */ delete(): IDBRequest<undefined>; /** * Updated the record pointed at by the cursor with a new value. * * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. * * If successful, request's result will be the record's key. */ update(value: any): IDBRequest<IDBValidKey>; } declare var IDBCursor: { prototype: IDBCursor; new(): IDBCursor; }; /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */ interface IDBCursorWithValue extends IDBCursor { /** Returns the cursor's current value. */ readonly value: any; } declare var IDBCursorWithValue: { prototype: IDBCursorWithValue; new(): IDBCursorWithValue; }; interface IDBDatabaseEventMap { "abort": Event; "close": Event; "error": Event; "versionchange": IDBVersionChangeEvent; } /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */ interface IDBDatabase extends EventTarget { /** Returns the name of the database. */ readonly name: string; /** Returns a list of the names of object stores in the database. */ readonly objectStoreNames: DOMStringList; onabort: ((this: IDBDatabase, ev: Event) => any) | null; onclose: ((this: IDBDatabase, ev: Event) => any) | null; onerror: ((this: IDBDatabase, ev: Event) => any) | null; onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; /** Returns the version of the database. */ readonly version: number; /** Closes the connection once all running transactions have finished. */ close(): void; /** * Creates a new object store with the given name and options and returns a new IDBObjectStore. * * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. */ createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore; /** * Deletes the object store with the given name. * * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. */ deleteObjectStore(name: string): void; /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; }; /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */ interface IDBFactory { /** * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. * * Throws a "DataError" DOMException if either input is not a valid key. */ cmp(first: any, second: any): number; databases(): Promise<IDBDatabaseInfo[]>; /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */ deleteDatabase(name: string): IDBOpenDBRequest; /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */ open(name: string, version?: number): IDBOpenDBRequest; } declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; }; /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */ interface IDBIndex { readonly keyPath: string | string[]; readonly multiEntry: boolean; /** Returns the name of the index. */ name: string; /** Returns the IDBObjectStore the index belongs to. */ readonly objectStore: IDBObjectStore; readonly unique: boolean; /** * Retrieves the number of records matching the given key or key range in query. * * If successful, request's result will be the count. */ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; /** * Retrieves the value of the first record matching the given key or key range in query. * * If successful, request's result will be the value, or undefined if there was no matching record. */ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; /** * Retrieves the values of the records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the values. */ getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; /** * Retrieves the keys of records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the keys. */ getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; /** * Retrieves the key of the first record matching the given key or key range in query. * * If successful, request's result will be the key, or undefined if there was no matching record. */ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; /** * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. * * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. */ openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; /** * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. * * If successful, request's result will be an IDBCursor, or null if there were no matching records. */ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; } declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; }; /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */ interface IDBKeyRange { /** Returns lower bound, or undefined if none. */ readonly lower: any; /** Returns true if the lower open flag is set, and false otherwise. */ readonly lowerOpen: boolean; /** Returns upper bound, or undefined if none. */ readonly upper: any; /** Returns true if the upper open flag is set, and false otherwise. */ readonly upperOpen: boolean; /** Returns true if key is included in the range, and false otherwise. */ includes(key: any): boolean; } declare var IDBKeyRange: { prototype: IDBKeyRange; new(): IDBKeyRange; /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */ bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */ lowerBound(lower: any, open?: boolean): IDBKeyRange; /** Returns a new IDBKeyRange spanning only key. */ only(value: any): IDBKeyRange; /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */ upperBound(upper: any, open?: boolean): IDBKeyRange; }; /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */ interface IDBObjectStore { /** Returns true if the store has a key generator, and false otherwise. */ readonly autoIncrement: boolean; /** Returns a list of the names of indexes in the store. */ readonly indexNames: DOMStringList; /** Returns the key path of the store, or null if none. */ readonly keyPath: string | string[]; /** Returns the name of the store. */ name: string; /** Returns the associated transaction. */ readonly transaction: IDBTransaction; /** * Adds or updates a record in store with the given value and key. * * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. * * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. * * If successful, request's result will be the record's key. */ add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; /** * Deletes all records in store. * * If successful, request's result will be undefined. */ clear(): IDBRequest<undefined>; /** * Retrieves the number of records matching the given key or key range in query. * * If successful, request's result will be the count. */ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>; /** * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; /** * Deletes records in store with the given key or in the given key range in query. * * If successful, request's result will be undefined. */ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>; /** * Deletes the index in store with the given name. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ deleteIndex(name: string): void; /** * Retrieves the value of the first record matching the given key or key range in query. * * If successful, request's result will be the value, or undefined if there was no matching record. */ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>; /** * Retrieves the values of the records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the values. */ getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>; /** * Retrieves the keys of records matching the given key or key range in query (up to count if given). * * If successful, request's result will be an Array of the keys. */ getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>; /** * Retrieves the key of the first record matching the given key or key range in query. * * If successful, request's result will be the key, or undefined if there was no matching record. */ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>; index(name: string): IDBIndex; /** * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. * * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. */ openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>; /** * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. * * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. */ openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>; /** * Adds or updates a record in store with the given value and key. * * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. * * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. * * If successful, request's result will be the record's key. */ put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>; } declare var IDBObjectStore: { prototype: IDBObjectStore; new(): IDBObjectStore; }; interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": IDBVersionChangeEvent; "upgradeneeded": IDBVersionChangeEvent; } /** Also inherits methods from its parents IDBRequest and EventTarget. */ interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> { onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBOpenDBRequest: { prototype: IDBOpenDBRequest; new(): IDBOpenDBRequest; }; interface IDBRequestEventMap { "error": Event; "success": Event; } /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */ interface IDBRequest<T = any> extends EventTarget { /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */ readonly error: DOMException | null; onerror: ((this: IDBRequest<T>, ev: Event) => any) | null; onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null; /** Returns "pending" until a request is complete, then returns "done". */ readonly readyState: IDBRequestReadyState; /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */ readonly result: T; /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */ readonly source: IDBObjectStore | IDBIndex | IDBCursor; /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */ readonly transaction: IDBTransaction | null; addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBRequest: { prototype: IDBRequest; new(): IDBRequest; }; interface IDBTransactionEventMap { "abort": Event; "complete": Event; "error": Event; } interface IDBTransaction extends EventTarget { /** Returns the transaction's connection. */ readonly db: IDBDatabase; readonly durability: IDBTransactionDurability; /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */ readonly error: DOMException | null; /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */ readonly mode: IDBTransactionMode; /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */ readonly objectStoreNames: DOMStringList; onabort: ((this: IDBTransaction, ev: Event) => any) | null; oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; onerror: ((this: IDBTransaction, ev: Event) => any) | null; /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */ abort(): void; commit(): void; /** Returns an IDBObjectStore in the transaction's scope. */ objectStore(name: string): IDBObjectStore; addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var IDBTransaction: { prototype: IDBTransaction; new(): IDBTransaction; }; /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */ interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; } declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; }; interface ImageBitmap { /** Returns the intrinsic height of the image, in CSS pixels. */ readonly height: number; /** Returns the intrinsic width of the image, in CSS pixels. */ readonly width: number; /** Releases imageBitmap's underlying bitmap data. */ close(): void; } declare var ImageBitmap: { prototype: ImageBitmap; new(): ImageBitmap; }; interface ImageBitmapRenderingContext { /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */ transferFromImageBitmap(bitmap: ImageBitmap | null): void; } declare var ImageBitmapRenderingContext: { prototype: ImageBitmapRenderingContext; new(): ImageBitmapRenderingContext; }; /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */ interface ImageData { readonly colorSpace: PredefinedColorSpace; /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */ readonly data: Uint8ClampedArray; /** Returns the actual dimensions of the data in the ImageData object, in pixels. */ readonly height: number; /** Returns the actual dimensions of the data in the ImageData object, in pixels. */ readonly width: number; } declare var ImageData: { prototype: ImageData; new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; interface KHR_parallel_shader_compile { readonly COMPLETION_STATUS_KHR: 0x91B1; } /** Available only in secure contexts. */ interface Lock { readonly mode: LockMode; readonly name: string; } declare var Lock: { prototype: Lock; new(): Lock; }; /** Available only in secure contexts. */ interface LockManager { query(): Promise<LockManagerSnapshot>; request(name: string, callback: LockGrantedCallback): Promise<any>; request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>; } declare var LockManager: { prototype: LockManager; new(): LockManager; }; interface MediaCapabilities { decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>; encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>; } declare var MediaCapabilities: { prototype: MediaCapabilities; new(): MediaCapabilities; }; /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */ interface MessageChannel { /** Returns the first MessagePort object. */ readonly port1: MessagePort; /** Returns the second MessagePort object. */ readonly port2: MessagePort; } declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; }; /** A message received by a target object. */ interface MessageEvent<T = any> extends Event { /** Returns the data of the message. */ readonly data: T; /** Returns the last event ID string, for server-sent events. */ readonly lastEventId: string; /** Returns the origin of the message, for server-sent events and cross-document messaging. */ readonly origin: string; /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */ readonly ports: ReadonlyArray<MessagePort>; /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */ readonly source: MessageEventSource | null; /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; } declare var MessageEvent: { prototype: MessageEvent; new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>; }; interface MessagePortEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */ interface MessagePort extends EventTarget { onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; /** Disconnects the port, so that it is no longer active. */ close(): void; /** * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. * * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. */ postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; /** Begins dispatching messages received on the port. */ start(): void; addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var MessagePort: { prototype: MessagePort; new(): MessagePort; }; /** Available only in secure contexts. */ interface NavigationPreloadManager { disable(): Promise<void>; enable(): Promise<void>; getState(): Promise<NavigationPreloadState>; setHeaderValue(value: string): Promise<void>; } declare var NavigationPreloadManager: { prototype: NavigationPreloadManager; new(): NavigationPreloadManager; }; interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } interface NavigatorID { /** @deprecated */ readonly appCodeName: string; /** @deprecated */ readonly appName: string; /** @deprecated */ readonly appVersion: string; /** @deprecated */ readonly platform: string; /** @deprecated */ readonly product: string; readonly userAgent: string; } interface NavigatorLanguage { readonly language: string; readonly languages: ReadonlyArray<string>; } /** Available only in secure contexts. */ interface NavigatorLocks { readonly locks: LockManager; } interface NavigatorOnLine { readonly onLine: boolean; } /** Available only in secure contexts. */ interface NavigatorStorage { readonly storage: StorageManager; } interface NotificationEventMap { "click": Event; "close": Event; "error": Event; "show": Event; } /** This Notifications API interface is used to configure and display desktop notifications to the user. */ interface Notification extends EventTarget { readonly body: string; readonly data: any; readonly dir: NotificationDirection; readonly icon: string; readonly lang: string; onclick: ((this: Notification, ev: Event) => any) | null; onclose: ((this: Notification, ev: Event) => any) | null; onerror: ((this: Notification, ev: Event) => any) | null; onshow: ((this: Notification, ev: Event) => any) | null; readonly tag: string; readonly title: string; close(): void; addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Notification: { prototype: Notification; new(title: string, options?: NotificationOptions): Notification; readonly permission: NotificationPermission; }; /** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */ interface NotificationEvent extends ExtendableEvent { readonly action: string; readonly notification: Notification; } declare var NotificationEvent: { prototype: NotificationEvent; new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; }; interface OES_draw_buffers_indexed { blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void; blendEquationiOES(buf: GLuint, mode: GLenum): void; blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void; disableiOES(target: GLenum, index: GLuint): void; enableiOES(target: GLenum, index: GLuint): void; } /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */ interface OES_element_index_uint { } interface OES_fbo_render_mipmap { } /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */ interface OES_standard_derivatives { readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B; } /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */ interface OES_texture_float { } /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */ interface OES_texture_float_linear { } /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */ interface OES_texture_half_float { readonly HALF_FLOAT_OES: 0x8D61; } /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */ interface OES_texture_half_float_linear { } interface OES_vertex_array_object { bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; createVertexArrayOES(): WebGLVertexArrayObjectOES | null; deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; readonly VERTEX_ARRAY_BINDING_OES: 0x85B5; } interface OVR_multiview2 { framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; readonly MAX_VIEWS_OVR: 0x9631; readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; } interface OffscreenCanvasEventMap { "contextlost": Event; "contextrestored": Event; } interface OffscreenCanvas extends EventTarget { /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. * * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). */ height: number; oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. * * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). */ width: number; /** * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. * * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. */ convertToBlob(options?: ImageEncodeOptions): Promise<Blob>; /** * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. * * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] * * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). */ getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null; getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null; getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */ transferToImageBitmap(): ImageBitmap; addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var OffscreenCanvas: { prototype: OffscreenCanvas; new(width: number, height: number): OffscreenCanvas; }; interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { readonly canvas: OffscreenCanvas; commit(): void; } declare var OffscreenCanvasRenderingContext2D: { prototype: OffscreenCanvasRenderingContext2D; new(): OffscreenCanvasRenderingContext2D; }; /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */ interface Path2D extends CanvasPath { /** Adds to the path the path given by the argument. */ addPath(path: Path2D, transform?: DOMMatrix2DInit): void; } declare var Path2D: { prototype: Path2D; new(path?: Path2D | string): Path2D; }; interface PerformanceEventMap { "resourcetimingbufferfull": Event; } /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */ interface Performance extends EventTarget { onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; readonly timeOrigin: DOMHighResTimeStamp; clearMarks(markName?: string): void; clearMeasures(measureName?: string): void; clearResourceTimings(): void; getEntries(): PerformanceEntryList; getEntriesByName(name: string, type?: string): PerformanceEntryList; getEntriesByType(type: string): PerformanceEntryList; mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure; now(): DOMHighResTimeStamp; setResourceTimingBufferSize(maxSize: number): void; toJSON(): any; addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Performance: { prototype: Performance; new(): Performance; }; /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */ interface PerformanceEntry { readonly duration: DOMHighResTimeStamp; readonly entryType: string; readonly name: string; readonly startTime: DOMHighResTimeStamp; toJSON(): any; } declare var PerformanceEntry: { prototype: PerformanceEntry; new(): PerformanceEntry; }; /** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */ interface PerformanceMark extends PerformanceEntry { readonly detail: any; } declare var PerformanceMark: { prototype: PerformanceMark; new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; }; /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */ interface PerformanceMeasure extends PerformanceEntry { readonly detail: any; } declare var PerformanceMeasure: { prototype: PerformanceMeasure; new(): PerformanceMeasure; }; interface PerformanceObserver { disconnect(): void; observe(options?: PerformanceObserverInit): void; takeRecords(): PerformanceEntryList; } declare var PerformanceObserver: { prototype: PerformanceObserver; new(callback: PerformanceObserverCallback): PerformanceObserver; readonly supportedEntryTypes: ReadonlyArray<string>; }; interface PerformanceObserverEntryList { getEntries(): PerformanceEntryList; getEntriesByName(name: string, type?: string): PerformanceEntryList; getEntriesByType(type: string): PerformanceEntryList; } declare var PerformanceObserverEntryList: { prototype: PerformanceObserverEntryList; new(): PerformanceObserverEntryList; }; /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */ interface PerformanceResourceTiming extends PerformanceEntry { readonly connectEnd: DOMHighResTimeStamp; readonly connectStart: DOMHighResTimeStamp; readonly decodedBodySize: number; readonly domainLookupEnd: DOMHighResTimeStamp; readonly domainLookupStart: DOMHighResTimeStamp; readonly encodedBodySize: number; readonly fetchStart: DOMHighResTimeStamp; readonly initiatorType: string; readonly nextHopProtocol: string; readonly redirectEnd: DOMHighResTimeStamp; readonly redirectStart: DOMHighResTimeStamp; readonly requestStart: DOMHighResTimeStamp; readonly responseEnd: DOMHighResTimeStamp; readonly responseStart: DOMHighResTimeStamp; readonly secureConnectionStart: DOMHighResTimeStamp; readonly serverTiming: ReadonlyArray<PerformanceServerTiming>; readonly transferSize: number; readonly workerStart: DOMHighResTimeStamp; toJSON(): any; } declare var PerformanceResourceTiming: { prototype: PerformanceResourceTiming; new(): PerformanceResourceTiming; }; interface PerformanceServerTiming { readonly description: string; readonly duration: DOMHighResTimeStamp; readonly name: string; toJSON(): any; } declare var PerformanceServerTiming: { prototype: PerformanceServerTiming; new(): PerformanceServerTiming; }; interface PermissionStatusEventMap { "change": Event; } interface PermissionStatus extends EventTarget { readonly name: string; onchange: ((this: PermissionStatus, ev: Event) => any) | null; readonly state: PermissionState; addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var PermissionStatus: { prototype: PermissionStatus; new(): PermissionStatus; }; interface Permissions { query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>; } declare var Permissions: { prototype: Permissions; new(): Permissions; }; /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */ interface ProgressEvent<T extends EventTarget = EventTarget> extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly target: T | null; readonly total: number; } declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; }; interface PromiseRejectionEvent extends Event { readonly promise: Promise<any>; readonly reason: any; } declare var PromiseRejectionEvent: { prototype: PromiseRejectionEvent; new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; }; /** * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. * Available only in secure contexts. */ interface PushEvent extends ExtendableEvent { readonly data: PushMessageData | null; } declare var PushEvent: { prototype: PushEvent; new(type: string, eventInitDict?: PushEventInit): PushEvent; }; /** * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. * Available only in secure contexts. */ interface PushManager { getSubscription(): Promise<PushSubscription | null>; permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>; subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>; } declare var PushManager: { prototype: PushManager; new(): PushManager; readonly supportedContentEncodings: ReadonlyArray<string>; }; /** * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. */ interface PushMessageData { arrayBuffer(): ArrayBuffer; blob(): Blob; json(): any; text(): string; } declare var PushMessageData: { prototype: PushMessageData; new(): PushMessageData; }; /** * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. * Available only in secure contexts. */ interface PushSubscription { readonly endpoint: string; readonly expirationTime: EpochTimeStamp | null; readonly options: PushSubscriptionOptions; getKey(name: PushEncryptionKeyName): ArrayBuffer | null; toJSON(): PushSubscriptionJSON; unsubscribe(): Promise<boolean>; } declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; }; /** Available only in secure contexts. */ interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; } declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; }; interface RTCEncodedAudioFrame { data: ArrayBuffer; readonly timestamp: number; getMetadata(): RTCEncodedAudioFrameMetadata; } declare var RTCEncodedAudioFrame: { prototype: RTCEncodedAudioFrame; new(): RTCEncodedAudioFrame; }; interface RTCEncodedVideoFrame { data: ArrayBuffer; readonly timestamp: number; readonly type: RTCEncodedVideoFrameType; getMetadata(): RTCEncodedVideoFrameMetadata; } declare var RTCEncodedVideoFrame: { prototype: RTCEncodedVideoFrame; new(): RTCEncodedVideoFrame; }; interface ReadableByteStreamController { readonly byobRequest: ReadableStreamBYOBRequest | null; readonly desiredSize: number | null; close(): void; enqueue(chunk: ArrayBufferView): void; error(e?: any): void; } declare var ReadableByteStreamController: { prototype: ReadableByteStreamController; new(): ReadableByteStreamController; }; /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */ interface ReadableStream<R = any> { readonly locked: boolean; cancel(reason?: any): Promise<void>; getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; getReader(): ReadableStreamDefaultReader<R>; getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>; pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; tee(): [ReadableStream<R>, ReadableStream<R>]; } declare var ReadableStream: { prototype: ReadableStream; new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>; new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; }; interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; releaseLock(): void; } declare var ReadableStreamBYOBReader: { prototype: ReadableStreamBYOBReader; new(stream: ReadableStream): ReadableStreamBYOBReader; }; interface ReadableStreamBYOBRequest { readonly view: ArrayBufferView | null; respond(bytesWritten: number): void; respondWithNewView(view: ArrayBufferView): void; } declare var ReadableStreamBYOBRequest: { prototype: ReadableStreamBYOBRequest; new(): ReadableStreamBYOBRequest; }; interface ReadableStreamDefaultController<R = any> { readonly desiredSize: number | null; close(): void; enqueue(chunk?: R): void; error(e?: any): void; } declare var ReadableStreamDefaultController: { prototype: ReadableStreamDefaultController; new(): ReadableStreamDefaultController; }; interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader { read(): Promise<ReadableStreamReadResult<R>>; releaseLock(): void; } declare var ReadableStreamDefaultReader: { prototype: ReadableStreamDefaultReader; new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>; }; interface ReadableStreamGenericReader { readonly closed: Promise<undefined>; cancel(reason?: any): Promise<void>; } /** This Fetch API interface represents a resource request. */ interface Request extends Body { /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */ readonly cache: RequestCache; /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */ readonly credentials: RequestCredentials; /** Returns the kind of resource requested by request, e.g., "document" or "script". */ readonly destination: RequestDestination; /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */ readonly headers: Headers; /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */ readonly integrity: string; /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */ readonly keepalive: boolean; /** Returns request's HTTP method, which is "GET" by default. */ readonly method: string; /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */ readonly mode: RequestMode; /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */ readonly redirect: RequestRedirect; /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */ readonly referrer: string; /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */ readonly referrerPolicy: ReferrerPolicy; /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */ readonly signal: AbortSignal; /** Returns the URL of request as a string. */ readonly url: string; clone(): Request; } declare var Request: { prototype: Request; new(input: RequestInfo | URL, init?: RequestInit): Request; }; /** This Fetch API interface represents the response to a request. */ interface Response extends Body { readonly headers: Headers; readonly ok: boolean; readonly redirected: boolean; readonly status: number; readonly statusText: string; readonly type: ResponseType; readonly url: string; clone(): Response; } declare var Response: { prototype: Response; new(body?: BodyInit | null, init?: ResponseInit): Response; error(): Response; redirect(url: string | URL, status?: number): Response; }; /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */ interface SecurityPolicyViolationEvent extends Event { readonly blockedURI: string; readonly columnNumber: number; readonly disposition: SecurityPolicyViolationEventDisposition; readonly documentURI: string; readonly effectiveDirective: string; readonly lineNumber: number; readonly originalPolicy: string; readonly referrer: string; readonly sample: string; readonly sourceFile: string; readonly statusCode: number; readonly violatedDirective: string; } declare var SecurityPolicyViolationEvent: { prototype: SecurityPolicyViolationEvent; new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; }; interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } /** * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object. * Available only in secure contexts. */ interface ServiceWorker extends EventTarget, AbstractWorker { onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; readonly scriptURL: string; readonly state: ServiceWorkerState; postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorker: { prototype: ServiceWorker; new(): ServiceWorker; }; interface ServiceWorkerContainerEventMap { "controllerchange": Event; "message": MessageEvent; "messageerror": MessageEvent; } /** * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. * Available only in secure contexts. */ interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; readonly ready: Promise<ServiceWorkerRegistration>; getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>; getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>; register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>; startMessages(): void; addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorkerContainer: { prototype: ServiceWorkerContainer; new(): ServiceWorkerContainer; }; interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "activate": ExtendableEvent; "fetch": FetchEvent; "install": ExtendableEvent; "message": ExtendableMessageEvent; "messageerror": MessageEvent; "notificationclick": NotificationEvent; "notificationclose": NotificationEvent; "push": PushEvent; "pushsubscriptionchange": Event; } /** This ServiceWorker API interface represents the global execution context of a service worker. */ interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly clients: Clients; onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null; oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null; onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null; onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null; onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null; onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null; onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null; onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null; readonly registration: ServiceWorkerRegistration; readonly serviceWorker: ServiceWorker; skipWaiting(): Promise<void>; addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorkerGlobalScope: { prototype: ServiceWorkerGlobalScope; new(): ServiceWorkerGlobalScope; }; interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } /** * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. * Available only in secure contexts. */ interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; readonly navigationPreload: NavigationPreloadManager; onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; readonly pushManager: PushManager; readonly scope: string; readonly updateViaCache: ServiceWorkerUpdateViaCache; readonly waiting: ServiceWorker | null; getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>; showNotification(title: string, options?: NotificationOptions): Promise<void>; unregister(): Promise<boolean>; update(): Promise<void>; addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; }; interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "connect": MessageEvent; } interface SharedWorkerGlobalScope extends WorkerGlobalScope { /** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */ readonly name: string; onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null; /** Aborts sharedWorkerGlobal. */ close(): void; addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var SharedWorkerGlobalScope: { prototype: SharedWorkerGlobalScope; new(): SharedWorkerGlobalScope; }; /** Available only in secure contexts. */ interface StorageManager { estimate(): Promise<StorageEstimate>; getDirectory(): Promise<FileSystemDirectoryHandle>; persisted(): Promise<boolean>; } declare var StorageManager: { prototype: StorageManager; new(): StorageManager; }; /** * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). * Available only in secure contexts. */ interface SubtleCrypto { decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>; deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>; encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>; exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>; importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>; unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>; verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>; wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>; } declare var SubtleCrypto: { prototype: SubtleCrypto; new(): SubtleCrypto; }; /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ interface TextDecoder extends TextDecoderCommon { /** * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. * * \`\`\` * var string = "", decoder = new TextDecoder(encoding), buffer; * while(buffer = next_chunk()) { * string += decoder.decode(buffer, {stream:true}); * } * string += decoder.decode(); // end-of-queue * \`\`\` * * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. */ decode(input?: BufferSource, options?: TextDecodeOptions): string; } declare var TextDecoder: { prototype: TextDecoder; new(label?: string, options?: TextDecoderOptions): TextDecoder; }; interface TextDecoderCommon { /** Returns encoding's name, lowercased. */ readonly encoding: string; /** Returns true if error mode is "fatal", otherwise false. */ readonly fatal: boolean; /** Returns the value of ignore BOM. */ readonly ignoreBOM: boolean; } interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon { readonly readable: ReadableStream<string>; readonly writable: WritableStream<BufferSource>; } declare var TextDecoderStream: { prototype: TextDecoderStream; new(label?: string, options?: TextDecoderOptions): TextDecoderStream; }; /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ interface TextEncoder extends TextEncoderCommon { /** Returns the result of running UTF-8's encoder. */ encode(input?: string): Uint8Array; /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */ encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; } declare var TextEncoder: { prototype: TextEncoder; new(): TextEncoder; }; interface TextEncoderCommon { /** Returns "utf-8". */ readonly encoding: string; } interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon { readonly readable: ReadableStream<Uint8Array>; readonly writable: WritableStream<string>; } declare var TextEncoderStream: { prototype: TextEncoderStream; new(): TextEncoderStream; }; /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */ interface TextMetrics { /** Returns the measurement described below. */ readonly actualBoundingBoxAscent: number; /** Returns the measurement described below. */ readonly actualBoundingBoxDescent: number; /** Returns the measurement described below. */ readonly actualBoundingBoxLeft: number; /** Returns the measurement described below. */ readonly actualBoundingBoxRight: number; /** Returns the measurement described below. */ readonly fontBoundingBoxAscent: number; /** Returns the measurement described below. */ readonly fontBoundingBoxDescent: number; /** Returns the measurement described below. */ readonly width: number; } declare var TextMetrics: { prototype: TextMetrics; new(): TextMetrics; }; interface TransformStream<I = any, O = any> { readonly readable: ReadableStream<O>; readonly writable: WritableStream<I>; } declare var TransformStream: { prototype: TransformStream; new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>; }; interface TransformStreamDefaultController<O = any> { readonly desiredSize: number | null; enqueue(chunk?: O): void; error(reason?: any): void; terminate(): void; } declare var TransformStreamDefaultController: { prototype: TransformStreamDefaultController; new(): TransformStreamDefaultController; }; /** The URL interface represents an object providing static methods used for creating object URLs. */ interface URL { hash: string; host: string; hostname: string; href: string; toString(): string; readonly origin: string; password: string; pathname: string; port: string; protocol: string; search: string; readonly searchParams: URLSearchParams; username: string; toJSON(): string; } declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; createObjectURL(obj: Blob): string; revokeObjectURL(url: string): void; }; interface URLSearchParams { /** Appends a specified key/value pair as a new search parameter. */ append(name: string, value: string): void; /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */ delete(name: string): void; /** Returns the first value associated to the given search parameter. */ get(name: string): string | null; /** Returns all the values association with a given search parameter. */ getAll(name: string): string[]; /** Returns a Boolean indicating if such a search parameter exists. */ has(name: string): boolean; /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */ set(name: string, value: string): void; sort(): void; /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ toString(): string; forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; } declare var URLSearchParams: { prototype: URLSearchParams; new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; toString(): string; }; interface VideoColorSpace { readonly fullRange: boolean | null; readonly matrix: VideoMatrixCoefficients | null; readonly primaries: VideoColorPrimaries | null; readonly transfer: VideoTransferCharacteristics | null; toJSON(): VideoColorSpaceInit; } declare var VideoColorSpace: { prototype: VideoColorSpace; new(init?: VideoColorSpaceInit): VideoColorSpace; }; interface WEBGL_color_buffer_float { readonly RGBA32F_EXT: 0x8814; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } interface WEBGL_compressed_texture_astc { getSupportedProfiles(): string[]; readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0; readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1; readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2; readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3; readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4; readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5; readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6; readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7; readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8; readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9; readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA; readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB; readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC; readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC; readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD; } interface WEBGL_compressed_texture_etc { readonly COMPRESSED_R11_EAC: 0x9270; readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; readonly COMPRESSED_RG11_EAC: 0x9272; readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; readonly COMPRESSED_RGB8_ETC2: 0x9274; readonly COMPRESSED_SRGB8_ETC2: 0x9275; readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; } interface WEBGL_compressed_texture_etc1 { readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64; } /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */ interface WEBGL_compressed_texture_s3tc { readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0; readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1; readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2; readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3; } interface WEBGL_compressed_texture_s3tc_srgb { readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E; readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F; } /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */ interface WEBGL_debug_renderer_info { readonly UNMASKED_VENDOR_WEBGL: 0x9245; readonly UNMASKED_RENDERER_WEBGL: 0x9246; } interface WEBGL_debug_shaders { getTranslatedShaderSource(shader: WebGLShader): string; } /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */ interface WEBGL_depth_texture { readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA; } interface WEBGL_draw_buffers { drawBuffersWEBGL(buffers: GLenum[]): void; readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3; readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4; readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5; readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6; readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7; readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8; readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9; readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA; readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB; readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC; readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED; readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE; readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF; readonly DRAW_BUFFER0_WEBGL: 0x8825; readonly DRAW_BUFFER1_WEBGL: 0x8826; readonly DRAW_BUFFER2_WEBGL: 0x8827; readonly DRAW_BUFFER3_WEBGL: 0x8828; readonly DRAW_BUFFER4_WEBGL: 0x8829; readonly DRAW_BUFFER5_WEBGL: 0x882A; readonly DRAW_BUFFER6_WEBGL: 0x882B; readonly DRAW_BUFFER7_WEBGL: 0x882C; readonly DRAW_BUFFER8_WEBGL: 0x882D; readonly DRAW_BUFFER9_WEBGL: 0x882E; readonly DRAW_BUFFER10_WEBGL: 0x882F; readonly DRAW_BUFFER11_WEBGL: 0x8830; readonly DRAW_BUFFER12_WEBGL: 0x8831; readonly DRAW_BUFFER13_WEBGL: 0x8832; readonly DRAW_BUFFER14_WEBGL: 0x8833; readonly DRAW_BUFFER15_WEBGL: 0x8834; readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF; readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; } interface WEBGL_lose_context { loseContext(): void; restoreContext(): void; } interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void; } interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase { } declare var WebGL2RenderingContext: { prototype: WebGL2RenderingContext; new(): WebGL2RenderingContext; readonly READ_BUFFER: 0x0C02; readonly UNPACK_ROW_LENGTH: 0x0CF2; readonly UNPACK_SKIP_ROWS: 0x0CF3; readonly UNPACK_SKIP_PIXELS: 0x0CF4; readonly PACK_ROW_LENGTH: 0x0D02; readonly PACK_SKIP_ROWS: 0x0D03; readonly PACK_SKIP_PIXELS: 0x0D04; readonly COLOR: 0x1800; readonly DEPTH: 0x1801; readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806A; readonly UNPACK_SKIP_IMAGES: 0x806D; readonly UNPACK_IMAGE_HEIGHT: 0x806E; readonly TEXTURE_3D: 0x806F; readonly TEXTURE_WRAP_R: 0x8072; readonly MAX_3D_TEXTURE_SIZE: 0x8073; readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; readonly MAX_ELEMENTS_VERTICES: 0x80E8; readonly MAX_ELEMENTS_INDICES: 0x80E9; readonly TEXTURE_MIN_LOD: 0x813A; readonly TEXTURE_MAX_LOD: 0x813B; readonly TEXTURE_BASE_LEVEL: 0x813C; readonly TEXTURE_MAX_LEVEL: 0x813D; readonly MIN: 0x8007; readonly MAX: 0x8008; readonly DEPTH_COMPONENT24: 0x81A6; readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; readonly TEXTURE_COMPARE_MODE: 0x884C; readonly TEXTURE_COMPARE_FUNC: 0x884D; readonly CURRENT_QUERY: 0x8865; readonly QUERY_RESULT: 0x8866; readonly QUERY_RESULT_AVAILABLE: 0x8867; readonly STREAM_READ: 0x88E1; readonly STREAM_COPY: 0x88E2; readonly STATIC_READ: 0x88E5; readonly STATIC_COPY: 0x88E6; readonly DYNAMIC_READ: 0x88E9; readonly DYNAMIC_COPY: 0x88EA; readonly MAX_DRAW_BUFFERS: 0x8824; readonly DRAW_BUFFER0: 0x8825; readonly DRAW_BUFFER1: 0x8826; readonly DRAW_BUFFER2: 0x8827; readonly DRAW_BUFFER3: 0x8828; readonly DRAW_BUFFER4: 0x8829; readonly DRAW_BUFFER5: 0x882A; readonly DRAW_BUFFER6: 0x882B; readonly DRAW_BUFFER7: 0x882C; readonly DRAW_BUFFER8: 0x882D; readonly DRAW_BUFFER9: 0x882E; readonly DRAW_BUFFER10: 0x882F; readonly DRAW_BUFFER11: 0x8830; readonly DRAW_BUFFER12: 0x8831; readonly DRAW_BUFFER13: 0x8832; readonly DRAW_BUFFER14: 0x8833; readonly DRAW_BUFFER15: 0x8834; readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; readonly SAMPLER_3D: 0x8B5F; readonly SAMPLER_2D_SHADOW: 0x8B62; readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; readonly PIXEL_PACK_BUFFER: 0x88EB; readonly PIXEL_UNPACK_BUFFER: 0x88EC; readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; readonly FLOAT_MAT2x3: 0x8B65; readonly FLOAT_MAT2x4: 0x8B66; readonly FLOAT_MAT3x2: 0x8B67; readonly FLOAT_MAT3x4: 0x8B68; readonly FLOAT_MAT4x2: 0x8B69; readonly FLOAT_MAT4x3: 0x8B6A; readonly SRGB: 0x8C40; readonly SRGB8: 0x8C41; readonly SRGB8_ALPHA8: 0x8C43; readonly COMPARE_REF_TO_TEXTURE: 0x884E; readonly RGBA32F: 0x8814; readonly RGB32F: 0x8815; readonly RGBA16F: 0x881A; readonly RGB16F: 0x881B; readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; readonly MAX_VARYING_COMPONENTS: 0x8B4B; readonly TEXTURE_2D_ARRAY: 0x8C1A; readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; readonly R11F_G11F_B10F: 0x8C3A; readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; readonly RGB9_E5: 0x8C3D; readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; readonly RASTERIZER_DISCARD: 0x8C89; readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; readonly INTERLEAVED_ATTRIBS: 0x8C8C; readonly SEPARATE_ATTRIBS: 0x8C8D; readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; readonly RGBA32UI: 0x8D70; readonly RGB32UI: 0x8D71; readonly RGBA16UI: 0x8D76; readonly RGB16UI: 0x8D77; readonly RGBA8UI: 0x8D7C; readonly RGB8UI: 0x8D7D; readonly RGBA32I: 0x8D82; readonly RGB32I: 0x8D83; readonly RGBA16I: 0x8D88; readonly RGB16I: 0x8D89; readonly RGBA8I: 0x8D8E; readonly RGB8I: 0x8D8F; readonly RED_INTEGER: 0x8D94; readonly RGB_INTEGER: 0x8D98; readonly RGBA_INTEGER: 0x8D99; readonly SAMPLER_2D_ARRAY: 0x8DC1; readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; readonly SAMPLER_CUBE_SHADOW: 0x8DC5; readonly UNSIGNED_INT_VEC2: 0x8DC6; readonly UNSIGNED_INT_VEC3: 0x8DC7; readonly UNSIGNED_INT_VEC4: 0x8DC8; readonly INT_SAMPLER_2D: 0x8DCA; readonly INT_SAMPLER_3D: 0x8DCB; readonly INT_SAMPLER_CUBE: 0x8DCC; readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; readonly DEPTH_COMPONENT32F: 0x8CAC; readonly DEPTH32F_STENCIL8: 0x8CAD; readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; readonly FRAMEBUFFER_DEFAULT: 0x8218; readonly UNSIGNED_INT_24_8: 0x84FA; readonly DEPTH24_STENCIL8: 0x88F0; readonly UNSIGNED_NORMALIZED: 0x8C17; readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; readonly READ_FRAMEBUFFER: 0x8CA8; readonly DRAW_FRAMEBUFFER: 0x8CA9; readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; readonly RENDERBUFFER_SAMPLES: 0x8CAB; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; readonly COLOR_ATTACHMENT1: 0x8CE1; readonly COLOR_ATTACHMENT2: 0x8CE2; readonly COLOR_ATTACHMENT3: 0x8CE3; readonly COLOR_ATTACHMENT4: 0x8CE4; readonly COLOR_ATTACHMENT5: 0x8CE5; readonly COLOR_ATTACHMENT6: 0x8CE6; readonly COLOR_ATTACHMENT7: 0x8CE7; readonly COLOR_ATTACHMENT8: 0x8CE8; readonly COLOR_ATTACHMENT9: 0x8CE9; readonly COLOR_ATTACHMENT10: 0x8CEA; readonly COLOR_ATTACHMENT11: 0x8CEB; readonly COLOR_ATTACHMENT12: 0x8CEC; readonly COLOR_ATTACHMENT13: 0x8CED; readonly COLOR_ATTACHMENT14: 0x8CEE; readonly COLOR_ATTACHMENT15: 0x8CEF; readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; readonly MAX_SAMPLES: 0x8D57; readonly HALF_FLOAT: 0x140B; readonly RG: 0x8227; readonly RG_INTEGER: 0x8228; readonly R8: 0x8229; readonly RG8: 0x822B; readonly R16F: 0x822D; readonly R32F: 0x822E; readonly RG16F: 0x822F; readonly RG32F: 0x8230; readonly R8I: 0x8231; readonly R8UI: 0x8232; readonly R16I: 0x8233; readonly R16UI: 0x8234; readonly R32I: 0x8235; readonly R32UI: 0x8236; readonly RG8I: 0x8237; readonly RG8UI: 0x8238; readonly RG16I: 0x8239; readonly RG16UI: 0x823A; readonly RG32I: 0x823B; readonly RG32UI: 0x823C; readonly VERTEX_ARRAY_BINDING: 0x85B5; readonly R8_SNORM: 0x8F94; readonly RG8_SNORM: 0x8F95; readonly RGB8_SNORM: 0x8F96; readonly RGBA8_SNORM: 0x8F97; readonly SIGNED_NORMALIZED: 0x8F9C; readonly COPY_READ_BUFFER: 0x8F36; readonly COPY_WRITE_BUFFER: 0x8F37; readonly COPY_READ_BUFFER_BINDING: 0x8F36; readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; readonly UNIFORM_BUFFER: 0x8A11; readonly UNIFORM_BUFFER_BINDING: 0x8A28; readonly UNIFORM_BUFFER_START: 0x8A29; readonly UNIFORM_BUFFER_SIZE: 0x8A2A; readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; readonly UNIFORM_TYPE: 0x8A37; readonly UNIFORM_SIZE: 0x8A38; readonly UNIFORM_BLOCK_INDEX: 0x8A3A; readonly UNIFORM_OFFSET: 0x8A3B; readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; readonly UNIFORM_BLOCK_BINDING: 0x8A3F; readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; readonly INVALID_INDEX: 0xFFFFFFFF; readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; readonly OBJECT_TYPE: 0x9112; readonly SYNC_CONDITION: 0x9113; readonly SYNC_STATUS: 0x9114; readonly SYNC_FLAGS: 0x9115; readonly SYNC_FENCE: 0x9116; readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; readonly UNSIGNALED: 0x9118; readonly SIGNALED: 0x9119; readonly ALREADY_SIGNALED: 0x911A; readonly TIMEOUT_EXPIRED: 0x911B; readonly CONDITION_SATISFIED: 0x911C; readonly WAIT_FAILED: 0x911D; readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; readonly ANY_SAMPLES_PASSED: 0x8C2F; readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; readonly SAMPLER_BINDING: 0x8919; readonly RGB10_A2UI: 0x906F; readonly INT_2_10_10_10_REV: 0x8D9F; readonly TRANSFORM_FEEDBACK: 0x8E22; readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; readonly MAX_ELEMENT_INDEX: 0x8D6B; readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; readonly TIMEOUT_IGNORED: -1; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGL2RenderingContextBase { beginQuery(target: GLenum, query: WebGLQuery): void; beginTransformFeedback(primitiveMode: GLenum): void; bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void; bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void; bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void; bindVertexArray(array: WebGLVertexArrayObject | null): void; blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void; clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void; clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void; clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; createQuery(): WebGLQuery | null; createSampler(): WebGLSampler | null; createTransformFeedback(): WebGLTransformFeedback | null; createVertexArray(): WebGLVertexArrayObject | null; deleteQuery(query: WebGLQuery | null): void; deleteSampler(sampler: WebGLSampler | null): void; deleteSync(sync: WebGLSync | null): void; deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; drawBuffers(buffers: GLenum[]): void; drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; endQuery(target: GLenum): void; endTransformFeedback(): void; fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void; getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null; getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void; getFragDataLocation(program: WebGLProgram, name: string): GLint; getIndexedParameter(target: GLenum, index: GLuint): any; getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; getQueryParameter(query: WebGLQuery, pname: GLenum): any; getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; getSyncParameter(sync: WebGLSync, pname: GLenum): any; getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; isQuery(query: WebGLQuery | null): GLboolean; isSampler(sampler: WebGLSampler | null): GLboolean; isSync(sync: WebGLSync | null): GLboolean; isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; pauseTransformFeedback(): void; readBuffer(src: GLenum): void; renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; resumeTransformFeedback(): void; samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void; texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void; transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; vertexAttribDivisor(index: GLuint, divisor: GLuint): void; vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; vertexAttribI4iv(index: GLuint, values: Int32List): void; vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; vertexAttribI4uiv(index: GLuint, values: Uint32List): void; vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; readonly READ_BUFFER: 0x0C02; readonly UNPACK_ROW_LENGTH: 0x0CF2; readonly UNPACK_SKIP_ROWS: 0x0CF3; readonly UNPACK_SKIP_PIXELS: 0x0CF4; readonly PACK_ROW_LENGTH: 0x0D02; readonly PACK_SKIP_ROWS: 0x0D03; readonly PACK_SKIP_PIXELS: 0x0D04; readonly COLOR: 0x1800; readonly DEPTH: 0x1801; readonly STENCIL: 0x1802; readonly RED: 0x1903; readonly RGB8: 0x8051; readonly RGBA8: 0x8058; readonly RGB10_A2: 0x8059; readonly TEXTURE_BINDING_3D: 0x806A; readonly UNPACK_SKIP_IMAGES: 0x806D; readonly UNPACK_IMAGE_HEIGHT: 0x806E; readonly TEXTURE_3D: 0x806F; readonly TEXTURE_WRAP_R: 0x8072; readonly MAX_3D_TEXTURE_SIZE: 0x8073; readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; readonly MAX_ELEMENTS_VERTICES: 0x80E8; readonly MAX_ELEMENTS_INDICES: 0x80E9; readonly TEXTURE_MIN_LOD: 0x813A; readonly TEXTURE_MAX_LOD: 0x813B; readonly TEXTURE_BASE_LEVEL: 0x813C; readonly TEXTURE_MAX_LEVEL: 0x813D; readonly MIN: 0x8007; readonly MAX: 0x8008; readonly DEPTH_COMPONENT24: 0x81A6; readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; readonly TEXTURE_COMPARE_MODE: 0x884C; readonly TEXTURE_COMPARE_FUNC: 0x884D; readonly CURRENT_QUERY: 0x8865; readonly QUERY_RESULT: 0x8866; readonly QUERY_RESULT_AVAILABLE: 0x8867; readonly STREAM_READ: 0x88E1; readonly STREAM_COPY: 0x88E2; readonly STATIC_READ: 0x88E5; readonly STATIC_COPY: 0x88E6; readonly DYNAMIC_READ: 0x88E9; readonly DYNAMIC_COPY: 0x88EA; readonly MAX_DRAW_BUFFERS: 0x8824; readonly DRAW_BUFFER0: 0x8825; readonly DRAW_BUFFER1: 0x8826; readonly DRAW_BUFFER2: 0x8827; readonly DRAW_BUFFER3: 0x8828; readonly DRAW_BUFFER4: 0x8829; readonly DRAW_BUFFER5: 0x882A; readonly DRAW_BUFFER6: 0x882B; readonly DRAW_BUFFER7: 0x882C; readonly DRAW_BUFFER8: 0x882D; readonly DRAW_BUFFER9: 0x882E; readonly DRAW_BUFFER10: 0x882F; readonly DRAW_BUFFER11: 0x8830; readonly DRAW_BUFFER12: 0x8831; readonly DRAW_BUFFER13: 0x8832; readonly DRAW_BUFFER14: 0x8833; readonly DRAW_BUFFER15: 0x8834; readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; readonly SAMPLER_3D: 0x8B5F; readonly SAMPLER_2D_SHADOW: 0x8B62; readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; readonly PIXEL_PACK_BUFFER: 0x88EB; readonly PIXEL_UNPACK_BUFFER: 0x88EC; readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; readonly FLOAT_MAT2x3: 0x8B65; readonly FLOAT_MAT2x4: 0x8B66; readonly FLOAT_MAT3x2: 0x8B67; readonly FLOAT_MAT3x4: 0x8B68; readonly FLOAT_MAT4x2: 0x8B69; readonly FLOAT_MAT4x3: 0x8B6A; readonly SRGB: 0x8C40; readonly SRGB8: 0x8C41; readonly SRGB8_ALPHA8: 0x8C43; readonly COMPARE_REF_TO_TEXTURE: 0x884E; readonly RGBA32F: 0x8814; readonly RGB32F: 0x8815; readonly RGBA16F: 0x881A; readonly RGB16F: 0x881B; readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; readonly MAX_VARYING_COMPONENTS: 0x8B4B; readonly TEXTURE_2D_ARRAY: 0x8C1A; readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; readonly R11F_G11F_B10F: 0x8C3A; readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; readonly RGB9_E5: 0x8C3D; readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; readonly RASTERIZER_DISCARD: 0x8C89; readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; readonly INTERLEAVED_ATTRIBS: 0x8C8C; readonly SEPARATE_ATTRIBS: 0x8C8D; readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; readonly RGBA32UI: 0x8D70; readonly RGB32UI: 0x8D71; readonly RGBA16UI: 0x8D76; readonly RGB16UI: 0x8D77; readonly RGBA8UI: 0x8D7C; readonly RGB8UI: 0x8D7D; readonly RGBA32I: 0x8D82; readonly RGB32I: 0x8D83; readonly RGBA16I: 0x8D88; readonly RGB16I: 0x8D89; readonly RGBA8I: 0x8D8E; readonly RGB8I: 0x8D8F; readonly RED_INTEGER: 0x8D94; readonly RGB_INTEGER: 0x8D98; readonly RGBA_INTEGER: 0x8D99; readonly SAMPLER_2D_ARRAY: 0x8DC1; readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; readonly SAMPLER_CUBE_SHADOW: 0x8DC5; readonly UNSIGNED_INT_VEC2: 0x8DC6; readonly UNSIGNED_INT_VEC3: 0x8DC7; readonly UNSIGNED_INT_VEC4: 0x8DC8; readonly INT_SAMPLER_2D: 0x8DCA; readonly INT_SAMPLER_3D: 0x8DCB; readonly INT_SAMPLER_CUBE: 0x8DCC; readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; readonly DEPTH_COMPONENT32F: 0x8CAC; readonly DEPTH32F_STENCIL8: 0x8CAD; readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; readonly FRAMEBUFFER_DEFAULT: 0x8218; readonly UNSIGNED_INT_24_8: 0x84FA; readonly DEPTH24_STENCIL8: 0x88F0; readonly UNSIGNED_NORMALIZED: 0x8C17; readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; readonly READ_FRAMEBUFFER: 0x8CA8; readonly DRAW_FRAMEBUFFER: 0x8CA9; readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; readonly RENDERBUFFER_SAMPLES: 0x8CAB; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; readonly COLOR_ATTACHMENT1: 0x8CE1; readonly COLOR_ATTACHMENT2: 0x8CE2; readonly COLOR_ATTACHMENT3: 0x8CE3; readonly COLOR_ATTACHMENT4: 0x8CE4; readonly COLOR_ATTACHMENT5: 0x8CE5; readonly COLOR_ATTACHMENT6: 0x8CE6; readonly COLOR_ATTACHMENT7: 0x8CE7; readonly COLOR_ATTACHMENT8: 0x8CE8; readonly COLOR_ATTACHMENT9: 0x8CE9; readonly COLOR_ATTACHMENT10: 0x8CEA; readonly COLOR_ATTACHMENT11: 0x8CEB; readonly COLOR_ATTACHMENT12: 0x8CEC; readonly COLOR_ATTACHMENT13: 0x8CED; readonly COLOR_ATTACHMENT14: 0x8CEE; readonly COLOR_ATTACHMENT15: 0x8CEF; readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; readonly MAX_SAMPLES: 0x8D57; readonly HALF_FLOAT: 0x140B; readonly RG: 0x8227; readonly RG_INTEGER: 0x8228; readonly R8: 0x8229; readonly RG8: 0x822B; readonly R16F: 0x822D; readonly R32F: 0x822E; readonly RG16F: 0x822F; readonly RG32F: 0x8230; readonly R8I: 0x8231; readonly R8UI: 0x8232; readonly R16I: 0x8233; readonly R16UI: 0x8234; readonly R32I: 0x8235; readonly R32UI: 0x8236; readonly RG8I: 0x8237; readonly RG8UI: 0x8238; readonly RG16I: 0x8239; readonly RG16UI: 0x823A; readonly RG32I: 0x823B; readonly RG32UI: 0x823C; readonly VERTEX_ARRAY_BINDING: 0x85B5; readonly R8_SNORM: 0x8F94; readonly RG8_SNORM: 0x8F95; readonly RGB8_SNORM: 0x8F96; readonly RGBA8_SNORM: 0x8F97; readonly SIGNED_NORMALIZED: 0x8F9C; readonly COPY_READ_BUFFER: 0x8F36; readonly COPY_WRITE_BUFFER: 0x8F37; readonly COPY_READ_BUFFER_BINDING: 0x8F36; readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; readonly UNIFORM_BUFFER: 0x8A11; readonly UNIFORM_BUFFER_BINDING: 0x8A28; readonly UNIFORM_BUFFER_START: 0x8A29; readonly UNIFORM_BUFFER_SIZE: 0x8A2A; readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; readonly UNIFORM_TYPE: 0x8A37; readonly UNIFORM_SIZE: 0x8A38; readonly UNIFORM_BLOCK_INDEX: 0x8A3A; readonly UNIFORM_OFFSET: 0x8A3B; readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; readonly UNIFORM_BLOCK_BINDING: 0x8A3F; readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; readonly INVALID_INDEX: 0xFFFFFFFF; readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; readonly OBJECT_TYPE: 0x9112; readonly SYNC_CONDITION: 0x9113; readonly SYNC_STATUS: 0x9114; readonly SYNC_FLAGS: 0x9115; readonly SYNC_FENCE: 0x9116; readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; readonly UNSIGNALED: 0x9118; readonly SIGNALED: 0x9119; readonly ALREADY_SIGNALED: 0x911A; readonly TIMEOUT_EXPIRED: 0x911B; readonly CONDITION_SATISFIED: 0x911C; readonly WAIT_FAILED: 0x911D; readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; readonly ANY_SAMPLES_PASSED: 0x8C2F; readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; readonly SAMPLER_BINDING: 0x8919; readonly RGB10_A2UI: 0x906F; readonly INT_2_10_10_10_REV: 0x8D9F; readonly TRANSFORM_FEEDBACK: 0x8E22; readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; readonly MAX_ELEMENT_INDEX: 0x8D6B; readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; readonly TIMEOUT_IGNORED: -1; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; } interface WebGL2RenderingContextOverloads { bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void; bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void; uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void; } /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */ interface WebGLActiveInfo { readonly name: string; readonly size: GLint; readonly type: GLenum; } declare var WebGLActiveInfo: { prototype: WebGLActiveInfo; new(): WebGLActiveInfo; }; /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */ interface WebGLBuffer { } declare var WebGLBuffer: { prototype: WebGLBuffer; new(): WebGLBuffer; }; /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */ interface WebGLContextEvent extends Event { readonly statusMessage: string; } declare var WebGLContextEvent: { prototype: WebGLContextEvent; new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; }; /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */ interface WebGLFramebuffer { } declare var WebGLFramebuffer: { prototype: WebGLFramebuffer; new(): WebGLFramebuffer; }; /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */ interface WebGLProgram { } declare var WebGLProgram: { prototype: WebGLProgram; new(): WebGLProgram; }; interface WebGLQuery { } declare var WebGLQuery: { prototype: WebGLQuery; new(): WebGLQuery; }; /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */ interface WebGLRenderbuffer { } declare var WebGLRenderbuffer: { prototype: WebGLRenderbuffer; new(): WebGLRenderbuffer; }; /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */ interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads { } declare var WebGLRenderingContext: { prototype: WebGLRenderingContext; new(): WebGLRenderingContext; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGLRenderingContextBase { readonly drawingBufferHeight: GLsizei; readonly drawingBufferWidth: GLsizei; activeTexture(texture: GLenum): void; attachShader(program: WebGLProgram, shader: WebGLShader): void; bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; bindTexture(target: GLenum, texture: WebGLTexture | null): void; blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; blendEquation(mode: GLenum): void; blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; blendFunc(sfactor: GLenum, dfactor: GLenum): void; blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; checkFramebufferStatus(target: GLenum): GLenum; clear(mask: GLbitfield): void; clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; clearDepth(depth: GLclampf): void; clearStencil(s: GLint): void; colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; compileShader(shader: WebGLShader): void; copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; createBuffer(): WebGLBuffer | null; createFramebuffer(): WebGLFramebuffer | null; createProgram(): WebGLProgram | null; createRenderbuffer(): WebGLRenderbuffer | null; createShader(type: GLenum): WebGLShader | null; createTexture(): WebGLTexture | null; cullFace(mode: GLenum): void; deleteBuffer(buffer: WebGLBuffer | null): void; deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; deleteProgram(program: WebGLProgram | null): void; deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; deleteShader(shader: WebGLShader | null): void; deleteTexture(texture: WebGLTexture | null): void; depthFunc(func: GLenum): void; depthMask(flag: GLboolean): void; depthRange(zNear: GLclampf, zFar: GLclampf): void; detachShader(program: WebGLProgram, shader: WebGLShader): void; disable(cap: GLenum): void; disableVertexAttribArray(index: GLuint): void; drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; enable(cap: GLenum): void; enableVertexAttribArray(index: GLuint): void; finish(): void; flush(): void; framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; frontFace(mode: GLenum): void; generateMipmap(target: GLenum): void; getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; getAttribLocation(program: WebGLProgram, name: string): GLint; getBufferParameter(target: GLenum, pname: GLenum): any; getContextAttributes(): WebGLContextAttributes | null; getError(): GLenum; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null; getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null; getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null; getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null; getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null; getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null; getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null; getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; getExtension(name: string): any; getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; getParameter(pname: GLenum): any; getProgramInfoLog(program: WebGLProgram): string | null; getProgramParameter(program: WebGLProgram, pname: GLenum): any; getRenderbufferParameter(target: GLenum, pname: GLenum): any; getShaderInfoLog(shader: WebGLShader): string | null; getShaderParameter(shader: WebGLShader, pname: GLenum): any; getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; getShaderSource(shader: WebGLShader): string | null; getSupportedExtensions(): string[] | null; getTexParameter(target: GLenum, pname: GLenum): any; getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; getVertexAttrib(index: GLuint, pname: GLenum): any; getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; hint(target: GLenum, mode: GLenum): void; isBuffer(buffer: WebGLBuffer | null): GLboolean; isContextLost(): boolean; isEnabled(cap: GLenum): GLboolean; isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; isProgram(program: WebGLProgram | null): GLboolean; isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; isShader(shader: WebGLShader | null): GLboolean; isTexture(texture: WebGLTexture | null): GLboolean; lineWidth(width: GLfloat): void; linkProgram(program: WebGLProgram): void; pixelStorei(pname: GLenum, param: GLint | GLboolean): void; polygonOffset(factor: GLfloat, units: GLfloat): void; renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; sampleCoverage(value: GLclampf, invert: GLboolean): void; scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; shaderSource(shader: WebGLShader, source: string): void; stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; stencilMask(mask: GLuint): void; stencilMaskSeparate(face: GLenum, mask: GLuint): void; stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; texParameteri(target: GLenum, pname: GLenum, param: GLint): void; uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; uniform1i(location: WebGLUniformLocation | null, x: GLint): void; uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; useProgram(program: WebGLProgram | null): void; validateProgram(program: WebGLProgram): void; vertexAttrib1f(index: GLuint, x: GLfloat): void; vertexAttrib1fv(index: GLuint, values: Float32List): void; vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; vertexAttrib2fv(index: GLuint, values: Float32List): void; vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; vertexAttrib3fv(index: GLuint, values: Float32List): void; vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; vertexAttrib4fv(index: GLuint, values: Float32List): void; vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; readonly DEPTH_BUFFER_BIT: 0x00000100; readonly STENCIL_BUFFER_BIT: 0x00000400; readonly COLOR_BUFFER_BIT: 0x00004000; readonly POINTS: 0x0000; readonly LINES: 0x0001; readonly LINE_LOOP: 0x0002; readonly LINE_STRIP: 0x0003; readonly TRIANGLES: 0x0004; readonly TRIANGLE_STRIP: 0x0005; readonly TRIANGLE_FAN: 0x0006; readonly ZERO: 0; readonly ONE: 1; readonly SRC_COLOR: 0x0300; readonly ONE_MINUS_SRC_COLOR: 0x0301; readonly SRC_ALPHA: 0x0302; readonly ONE_MINUS_SRC_ALPHA: 0x0303; readonly DST_ALPHA: 0x0304; readonly ONE_MINUS_DST_ALPHA: 0x0305; readonly DST_COLOR: 0x0306; readonly ONE_MINUS_DST_COLOR: 0x0307; readonly SRC_ALPHA_SATURATE: 0x0308; readonly FUNC_ADD: 0x8006; readonly BLEND_EQUATION: 0x8009; readonly BLEND_EQUATION_RGB: 0x8009; readonly BLEND_EQUATION_ALPHA: 0x883D; readonly FUNC_SUBTRACT: 0x800A; readonly FUNC_REVERSE_SUBTRACT: 0x800B; readonly BLEND_DST_RGB: 0x80C8; readonly BLEND_SRC_RGB: 0x80C9; readonly BLEND_DST_ALPHA: 0x80CA; readonly BLEND_SRC_ALPHA: 0x80CB; readonly CONSTANT_COLOR: 0x8001; readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; readonly CONSTANT_ALPHA: 0x8003; readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; readonly BLEND_COLOR: 0x8005; readonly ARRAY_BUFFER: 0x8892; readonly ELEMENT_ARRAY_BUFFER: 0x8893; readonly ARRAY_BUFFER_BINDING: 0x8894; readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; readonly STREAM_DRAW: 0x88E0; readonly STATIC_DRAW: 0x88E4; readonly DYNAMIC_DRAW: 0x88E8; readonly BUFFER_SIZE: 0x8764; readonly BUFFER_USAGE: 0x8765; readonly CURRENT_VERTEX_ATTRIB: 0x8626; readonly FRONT: 0x0404; readonly BACK: 0x0405; readonly FRONT_AND_BACK: 0x0408; readonly CULL_FACE: 0x0B44; readonly BLEND: 0x0BE2; readonly DITHER: 0x0BD0; readonly STENCIL_TEST: 0x0B90; readonly DEPTH_TEST: 0x0B71; readonly SCISSOR_TEST: 0x0C11; readonly POLYGON_OFFSET_FILL: 0x8037; readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; readonly SAMPLE_COVERAGE: 0x80A0; readonly NO_ERROR: 0; readonly INVALID_ENUM: 0x0500; readonly INVALID_VALUE: 0x0501; readonly INVALID_OPERATION: 0x0502; readonly OUT_OF_MEMORY: 0x0505; readonly CW: 0x0900; readonly CCW: 0x0901; readonly LINE_WIDTH: 0x0B21; readonly ALIASED_POINT_SIZE_RANGE: 0x846D; readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; readonly CULL_FACE_MODE: 0x0B45; readonly FRONT_FACE: 0x0B46; readonly DEPTH_RANGE: 0x0B70; readonly DEPTH_WRITEMASK: 0x0B72; readonly DEPTH_CLEAR_VALUE: 0x0B73; readonly DEPTH_FUNC: 0x0B74; readonly STENCIL_CLEAR_VALUE: 0x0B91; readonly STENCIL_FUNC: 0x0B92; readonly STENCIL_FAIL: 0x0B94; readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; readonly STENCIL_REF: 0x0B97; readonly STENCIL_VALUE_MASK: 0x0B93; readonly STENCIL_WRITEMASK: 0x0B98; readonly STENCIL_BACK_FUNC: 0x8800; readonly STENCIL_BACK_FAIL: 0x8801; readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; readonly STENCIL_BACK_REF: 0x8CA3; readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; readonly STENCIL_BACK_WRITEMASK: 0x8CA5; readonly VIEWPORT: 0x0BA2; readonly SCISSOR_BOX: 0x0C10; readonly COLOR_CLEAR_VALUE: 0x0C22; readonly COLOR_WRITEMASK: 0x0C23; readonly UNPACK_ALIGNMENT: 0x0CF5; readonly PACK_ALIGNMENT: 0x0D05; readonly MAX_TEXTURE_SIZE: 0x0D33; readonly MAX_VIEWPORT_DIMS: 0x0D3A; readonly SUBPIXEL_BITS: 0x0D50; readonly RED_BITS: 0x0D52; readonly GREEN_BITS: 0x0D53; readonly BLUE_BITS: 0x0D54; readonly ALPHA_BITS: 0x0D55; readonly DEPTH_BITS: 0x0D56; readonly STENCIL_BITS: 0x0D57; readonly POLYGON_OFFSET_UNITS: 0x2A00; readonly POLYGON_OFFSET_FACTOR: 0x8038; readonly TEXTURE_BINDING_2D: 0x8069; readonly SAMPLE_BUFFERS: 0x80A8; readonly SAMPLES: 0x80A9; readonly SAMPLE_COVERAGE_VALUE: 0x80AA; readonly SAMPLE_COVERAGE_INVERT: 0x80AB; readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; readonly DONT_CARE: 0x1100; readonly FASTEST: 0x1101; readonly NICEST: 0x1102; readonly GENERATE_MIPMAP_HINT: 0x8192; readonly BYTE: 0x1400; readonly UNSIGNED_BYTE: 0x1401; readonly SHORT: 0x1402; readonly UNSIGNED_SHORT: 0x1403; readonly INT: 0x1404; readonly UNSIGNED_INT: 0x1405; readonly FLOAT: 0x1406; readonly DEPTH_COMPONENT: 0x1902; readonly ALPHA: 0x1906; readonly RGB: 0x1907; readonly RGBA: 0x1908; readonly LUMINANCE: 0x1909; readonly LUMINANCE_ALPHA: 0x190A; readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; readonly UNSIGNED_SHORT_5_6_5: 0x8363; readonly FRAGMENT_SHADER: 0x8B30; readonly VERTEX_SHADER: 0x8B31; readonly MAX_VERTEX_ATTRIBS: 0x8869; readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; readonly MAX_VARYING_VECTORS: 0x8DFC; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; readonly SHADER_TYPE: 0x8B4F; readonly DELETE_STATUS: 0x8B80; readonly LINK_STATUS: 0x8B82; readonly VALIDATE_STATUS: 0x8B83; readonly ATTACHED_SHADERS: 0x8B85; readonly ACTIVE_UNIFORMS: 0x8B86; readonly ACTIVE_ATTRIBUTES: 0x8B89; readonly SHADING_LANGUAGE_VERSION: 0x8B8C; readonly CURRENT_PROGRAM: 0x8B8D; readonly NEVER: 0x0200; readonly LESS: 0x0201; readonly EQUAL: 0x0202; readonly LEQUAL: 0x0203; readonly GREATER: 0x0204; readonly NOTEQUAL: 0x0205; readonly GEQUAL: 0x0206; readonly ALWAYS: 0x0207; readonly KEEP: 0x1E00; readonly REPLACE: 0x1E01; readonly INCR: 0x1E02; readonly DECR: 0x1E03; readonly INVERT: 0x150A; readonly INCR_WRAP: 0x8507; readonly DECR_WRAP: 0x8508; readonly VENDOR: 0x1F00; readonly RENDERER: 0x1F01; readonly VERSION: 0x1F02; readonly NEAREST: 0x2600; readonly LINEAR: 0x2601; readonly NEAREST_MIPMAP_NEAREST: 0x2700; readonly LINEAR_MIPMAP_NEAREST: 0x2701; readonly NEAREST_MIPMAP_LINEAR: 0x2702; readonly LINEAR_MIPMAP_LINEAR: 0x2703; readonly TEXTURE_MAG_FILTER: 0x2800; readonly TEXTURE_MIN_FILTER: 0x2801; readonly TEXTURE_WRAP_S: 0x2802; readonly TEXTURE_WRAP_T: 0x2803; readonly TEXTURE_2D: 0x0DE1; readonly TEXTURE: 0x1702; readonly TEXTURE_CUBE_MAP: 0x8513; readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; readonly TEXTURE0: 0x84C0; readonly TEXTURE1: 0x84C1; readonly TEXTURE2: 0x84C2; readonly TEXTURE3: 0x84C3; readonly TEXTURE4: 0x84C4; readonly TEXTURE5: 0x84C5; readonly TEXTURE6: 0x84C6; readonly TEXTURE7: 0x84C7; readonly TEXTURE8: 0x84C8; readonly TEXTURE9: 0x84C9; readonly TEXTURE10: 0x84CA; readonly TEXTURE11: 0x84CB; readonly TEXTURE12: 0x84CC; readonly TEXTURE13: 0x84CD; readonly TEXTURE14: 0x84CE; readonly TEXTURE15: 0x84CF; readonly TEXTURE16: 0x84D0; readonly TEXTURE17: 0x84D1; readonly TEXTURE18: 0x84D2; readonly TEXTURE19: 0x84D3; readonly TEXTURE20: 0x84D4; readonly TEXTURE21: 0x84D5; readonly TEXTURE22: 0x84D6; readonly TEXTURE23: 0x84D7; readonly TEXTURE24: 0x84D8; readonly TEXTURE25: 0x84D9; readonly TEXTURE26: 0x84DA; readonly TEXTURE27: 0x84DB; readonly TEXTURE28: 0x84DC; readonly TEXTURE29: 0x84DD; readonly TEXTURE30: 0x84DE; readonly TEXTURE31: 0x84DF; readonly ACTIVE_TEXTURE: 0x84E0; readonly REPEAT: 0x2901; readonly CLAMP_TO_EDGE: 0x812F; readonly MIRRORED_REPEAT: 0x8370; readonly FLOAT_VEC2: 0x8B50; readonly FLOAT_VEC3: 0x8B51; readonly FLOAT_VEC4: 0x8B52; readonly INT_VEC2: 0x8B53; readonly INT_VEC3: 0x8B54; readonly INT_VEC4: 0x8B55; readonly BOOL: 0x8B56; readonly BOOL_VEC2: 0x8B57; readonly BOOL_VEC3: 0x8B58; readonly BOOL_VEC4: 0x8B59; readonly FLOAT_MAT2: 0x8B5A; readonly FLOAT_MAT3: 0x8B5B; readonly FLOAT_MAT4: 0x8B5C; readonly SAMPLER_2D: 0x8B5E; readonly SAMPLER_CUBE: 0x8B60; readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; readonly COMPILE_STATUS: 0x8B81; readonly LOW_FLOAT: 0x8DF0; readonly MEDIUM_FLOAT: 0x8DF1; readonly HIGH_FLOAT: 0x8DF2; readonly LOW_INT: 0x8DF3; readonly MEDIUM_INT: 0x8DF4; readonly HIGH_INT: 0x8DF5; readonly FRAMEBUFFER: 0x8D40; readonly RENDERBUFFER: 0x8D41; readonly RGBA4: 0x8056; readonly RGB5_A1: 0x8057; readonly RGB565: 0x8D62; readonly DEPTH_COMPONENT16: 0x81A5; readonly STENCIL_INDEX8: 0x8D48; readonly DEPTH_STENCIL: 0x84F9; readonly RENDERBUFFER_WIDTH: 0x8D42; readonly RENDERBUFFER_HEIGHT: 0x8D43; readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; readonly RENDERBUFFER_RED_SIZE: 0x8D50; readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; readonly COLOR_ATTACHMENT0: 0x8CE0; readonly DEPTH_ATTACHMENT: 0x8D00; readonly STENCIL_ATTACHMENT: 0x8D20; readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; readonly NONE: 0; readonly FRAMEBUFFER_COMPLETE: 0x8CD5; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; readonly FRAMEBUFFER_BINDING: 0x8CA6; readonly RENDERBUFFER_BINDING: 0x8CA7; readonly MAX_RENDERBUFFER_SIZE: 0x84E8; readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; readonly UNPACK_FLIP_Y_WEBGL: 0x9240; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; readonly CONTEXT_LOST_WEBGL: 0x9242; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; readonly BROWSER_DEFAULT_WEBGL: 0x9244; } interface WebGLRenderingContextOverloads { bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void; bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void; compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; } interface WebGLSampler { } declare var WebGLSampler: { prototype: WebGLSampler; new(): WebGLSampler; }; /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */ interface WebGLShader { } declare var WebGLShader: { prototype: WebGLShader; new(): WebGLShader; }; /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */ interface WebGLShaderPrecisionFormat { readonly precision: GLint; readonly rangeMax: GLint; readonly rangeMin: GLint; } declare var WebGLShaderPrecisionFormat: { prototype: WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat; }; interface WebGLSync { } declare var WebGLSync: { prototype: WebGLSync; new(): WebGLSync; }; /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */ interface WebGLTexture { } declare var WebGLTexture: { prototype: WebGLTexture; new(): WebGLTexture; }; interface WebGLTransformFeedback { } declare var WebGLTransformFeedback: { prototype: WebGLTransformFeedback; new(): WebGLTransformFeedback; }; /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */ interface WebGLUniformLocation { } declare var WebGLUniformLocation: { prototype: WebGLUniformLocation; new(): WebGLUniformLocation; }; interface WebGLVertexArrayObject { } declare var WebGLVertexArrayObject: { prototype: WebGLVertexArrayObject; new(): WebGLVertexArrayObject; }; interface WebGLVertexArrayObjectOES { } interface WebSocketEventMap { "close": CloseEvent; "error": Event; "message": MessageEvent; "open": Event; } /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */ interface WebSocket extends EventTarget { /** * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: * * Can be set, to change how binary data is returned. The default is "blob". */ binaryType: BinaryType; /** * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. * * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) */ readonly bufferedAmount: number; /** Returns the extensions selected by the server, if any. */ readonly extensions: string; onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; onerror: ((this: WebSocket, ev: Event) => any) | null; onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; onopen: ((this: WebSocket, ev: Event) => any) | null; /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */ readonly protocol: string; /** Returns the state of the WebSocket object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL that was used to establish the WebSocket connection. */ readonly url: string; /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */ close(code?: number, reason?: string): void; /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */ send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var WebSocket: { prototype: WebSocket; new(url: string | URL, protocols?: string | string[]): WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; }; /** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */ interface WindowClient extends Client { readonly focused: boolean; readonly visibilityState: DocumentVisibilityState; focus(): Promise<WindowClient>; navigate(url: string | URL): Promise<WindowClient | null>; } declare var WindowClient: { prototype: WindowClient; new(): WindowClient; }; interface WindowOrWorkerGlobalScope { /** Available only in secure contexts. */ readonly caches: CacheStorage; readonly crossOriginIsolated: boolean; readonly crypto: Crypto; readonly indexedDB: IDBFactory; readonly isSecureContext: boolean; readonly origin: string; readonly performance: Performance; atob(data: string): string; btoa(data: string): string; clearInterval(id: number | undefined): void; clearTimeout(id: number | undefined): void; createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; queueMicrotask(callback: VoidFunction): void; reportError(e: any): void; setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; structuredClone(value: any, options?: StructuredSerializeOptions): any; } interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */ interface Worker extends EventTarget, AbstractWorker { onmessage: ((this: Worker, ev: MessageEvent) => any) | null; onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */ postMessage(message: any, transfer: Transferable[]): void; postMessage(message: any, options?: StructuredSerializeOptions): void; /** Aborts worker's associated global environment. */ terminate(): void; addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Worker: { prototype: Worker; new(scriptURL: string | URL, options?: WorkerOptions): Worker; }; interface WorkerGlobalScopeEventMap { "error": ErrorEvent; "languagechange": Event; "offline": Event; "online": Event; "rejectionhandled": PromiseRejectionEvent; "unhandledrejection": PromiseRejectionEvent; } /** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope { /** Returns workerGlobal's WorkerLocation object. */ readonly location: WorkerLocation; /** Returns workerGlobal's WorkerNavigator object. */ readonly navigator: WorkerNavigator; onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null; onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null; onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null; ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null; onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; /** Returns workerGlobal. */ readonly self: WorkerGlobalScope & typeof globalThis; /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */ importScripts(...urls: (string | URL)[]): void; addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var WorkerGlobalScope: { prototype: WorkerGlobalScope; new(): WorkerGlobalScope; }; /** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */ interface WorkerLocation { readonly hash: string; readonly host: string; readonly hostname: string; readonly href: string; toString(): string; readonly origin: string; readonly pathname: string; readonly port: string; readonly protocol: string; readonly search: string; } declare var WorkerLocation: { prototype: WorkerLocation; new(): WorkerLocation; }; /** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */ interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage { readonly mediaCapabilities: MediaCapabilities; } declare var WorkerNavigator: { prototype: WorkerNavigator; new(): WorkerNavigator; }; /** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */ interface WritableStream<W = any> { readonly locked: boolean; abort(reason?: any): Promise<void>; close(): Promise<void>; getWriter(): WritableStreamDefaultWriter<W>; } declare var WritableStream: { prototype: WritableStream; new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>; }; /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */ interface WritableStreamDefaultController { readonly signal: AbortSignal; error(e?: any): void; } declare var WritableStreamDefaultController: { prototype: WritableStreamDefaultController; new(): WritableStreamDefaultController; }; /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */ interface WritableStreamDefaultWriter<W = any> { readonly closed: Promise<undefined>; readonly desiredSize: number | null; readonly ready: Promise<undefined>; abort(reason?: any): Promise<void>; close(): Promise<void>; releaseLock(): void; write(chunk?: W): Promise<void>; } declare var WritableStreamDefaultWriter: { prototype: WritableStreamDefaultWriter; new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>; }; interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */ interface XMLHttpRequest extends XMLHttpRequestEventTarget { onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; /** Returns client's state. */ readonly readyState: number; /** Returns the response body. */ readonly response: any; /** * Returns response as text. * * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". */ readonly responseText: string; /** * Returns the response type. * * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". * * When set: setting to "document" is ignored if current global object is not a Window object. * * When set: throws an "InvalidStateError" DOMException if state is loading or done. * * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. */ responseType: XMLHttpRequestResponseType; readonly responseURL: string; readonly status: number; readonly statusText: string; /** * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). * * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. */ timeout: number; /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */ readonly upload: XMLHttpRequestUpload; /** * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. * * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. */ withCredentials: boolean; /** Cancels any network activity. */ abort(): void; getAllResponseHeaders(): string; getResponseHeader(name: string): string | null; /** * Sets the request method, request URL, and synchronous flag. * * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. * * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`. * * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. */ open(method: string, url: string | URL): void; open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void; /** * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.) * * Throws an "InvalidStateError" DOMException if state is loading or done. */ overrideMimeType(mime: string): void; /** * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. * * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. */ send(body?: XMLHttpRequestBodyInit | null): void; /** * Combines a header in author request headers. * * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. * * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. */ setRequestHeader(name: string, value: string): void; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequest: { prototype: XMLHttpRequest; new(): XMLHttpRequest; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; }; interface XMLHttpRequestEventTargetEventMap { "abort": ProgressEvent<XMLHttpRequestEventTarget>; "error": ProgressEvent<XMLHttpRequestEventTarget>; "load": ProgressEvent<XMLHttpRequestEventTarget>; "loadend": ProgressEvent<XMLHttpRequestEventTarget>; "loadstart": ProgressEvent<XMLHttpRequestEventTarget>; "progress": ProgressEvent<XMLHttpRequestEventTarget>; "timeout": ProgressEvent<XMLHttpRequestEventTarget>; } interface XMLHttpRequestEventTarget extends EventTarget { onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequestEventTarget: { prototype: XMLHttpRequestEventTarget; new(): XMLHttpRequestEventTarget; }; interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var XMLHttpRequestUpload: { prototype: XMLHttpRequestUpload; new(): XMLHttpRequestUpload; }; interface Console { assert(condition?: boolean, ...data: any[]): void; clear(): void; count(label?: string): void; countReset(label?: string): void; debug(...data: any[]): void; dir(item?: any, options?: any): void; dirxml(...data: any[]): void; error(...data: any[]): void; group(...data: any[]): void; groupCollapsed(...data: any[]): void; groupEnd(): void; info(...data: any[]): void; log(...data: any[]): void; table(tabularData?: any, properties?: string[]): void; time(label?: string): void; timeEnd(label?: string): void; timeLog(label?: string, ...data: any[]): void; timeStamp(label?: string): void; trace(...data: any[]): void; warn(...data: any[]): void; } declare var console: Console; declare namespace WebAssembly { interface CompileError extends Error { } var CompileError: { prototype: CompileError; new(message?: string): CompileError; (message?: string): CompileError; }; interface Global { value: any; valueOf(): any; } var Global: { prototype: Global; new(descriptor: GlobalDescriptor, v?: any): Global; }; interface Instance { readonly exports: Exports; } var Instance: { prototype: Instance; new(module: Module, importObject?: Imports): Instance; }; interface LinkError extends Error { } var LinkError: { prototype: LinkError; new(message?: string): LinkError; (message?: string): LinkError; }; interface Memory { readonly buffer: ArrayBuffer; grow(delta: number): number; } var Memory: { prototype: Memory; new(descriptor: MemoryDescriptor): Memory; }; interface Module { } var Module: { prototype: Module; new(bytes: BufferSource): Module; customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; exports(moduleObject: Module): ModuleExportDescriptor[]; imports(moduleObject: Module): ModuleImportDescriptor[]; }; interface RuntimeError extends Error { } var RuntimeError: { prototype: RuntimeError; new(message?: string): RuntimeError; (message?: string): RuntimeError; }; interface Table { readonly length: number; get(index: number): any; grow(delta: number, value?: any): number; set(index: number, value?: any): void; } var Table: { prototype: Table; new(descriptor: TableDescriptor, value?: any): Table; }; interface GlobalDescriptor { mutable?: boolean; value: ValueType; } interface MemoryDescriptor { initial: number; maximum?: number; shared?: boolean; } interface ModuleExportDescriptor { kind: ImportExportKind; name: string; } interface ModuleImportDescriptor { kind: ImportExportKind; module: string; name: string; } interface TableDescriptor { element: TableKind; initial: number; maximum?: number; } interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; } type ImportExportKind = "function" | "global" | "memory" | "table"; type TableKind = "anyfunc" | "externref"; type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; type ExportValue = Function | Global | Memory | Table; type Exports = Record<string, ExportValue>; type ImportValue = ExportValue | number; type Imports = Record<string, ModuleImports>; type ModuleImports = Record<string, ImportValue>; function compile(bytes: BufferSource): Promise<Module>; function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>; function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>; function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>; function validate(bytes: BufferSource): boolean; } interface FrameRequestCallback { (time: DOMHighResTimeStamp): void; } interface LockGrantedCallback { (lock: Lock | null): any; } interface OnErrorEventHandlerNonNull { (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any; } interface PerformanceObserverCallback { (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; } interface QueuingStrategySize<T = any> { (chunk: T): number; } interface TransformerFlushCallback<O> { (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; } interface TransformerStartCallback<O> { (controller: TransformStreamDefaultController<O>): any; } interface TransformerTransformCallback<I, O> { (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>; } interface UnderlyingSinkAbortCallback { (reason?: any): void | PromiseLike<void>; } interface UnderlyingSinkCloseCallback { (): void | PromiseLike<void>; } interface UnderlyingSinkStartCallback { (controller: WritableStreamDefaultController): any; } interface UnderlyingSinkWriteCallback<W> { (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>; } interface UnderlyingSourceCancelCallback { (reason?: any): void | PromiseLike<void>; } interface UnderlyingSourcePullCallback<R> { (controller: ReadableStreamController<R>): void | PromiseLike<void>; } interface UnderlyingSourceStartCallback<R> { (controller: ReadableStreamController<R>): any; } interface VoidFunction { (): void; } /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */ declare var name: string; declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; /** Aborts dedicatedWorkerGlobal. */ declare function close(): void; /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */ declare function postMessage(message: any, transfer: Transferable[]): void; declare function postMessage(message: any, options?: StructuredSerializeOptions): void; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ declare function dispatchEvent(event: Event): boolean; /** Returns workerGlobal's WorkerLocation object. */ declare var location: WorkerLocation; /** Returns workerGlobal's WorkerNavigator object. */ declare var navigator: WorkerNavigator; declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null; declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; /** Returns workerGlobal. */ declare var self: WorkerGlobalScope & typeof globalThis; /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */ declare function importScripts(...urls: (string | URL)[]): void; /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ declare function dispatchEvent(event: Event): boolean; declare var fonts: FontFaceSet; /** Available only in secure contexts. */ declare var caches: CacheStorage; declare var crossOriginIsolated: boolean; declare var crypto: Crypto; declare var indexedDB: IDBFactory; declare var isSecureContext: boolean; declare var origin: string; declare var performance: Performance; declare function atob(data: string): string; declare function btoa(data: string): string; declare function clearInterval(id: number | undefined): void; declare function clearTimeout(id: number | undefined): void; declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>; declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>; declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; declare function queueMicrotask(callback: VoidFunction): void; declare function reportError(e: any): void; declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; declare function structuredClone(value: any, options?: StructuredSerializeOptions): any; declare function cancelAnimationFrame(handle: number): void; declare function requestAnimationFrame(callback: FrameRequestCallback): number; declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; type AlgorithmIdentifier = Algorithm | string; type BigInteger = Uint8Array; type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; type BufferSource = ArrayBufferView | ArrayBuffer; type CanvasImageSource = ImageBitmap | OffscreenCanvas; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; type EventListenerOrEventListenerObject = EventListener | EventListenerObject; type Float32List = Float32Array | GLfloat[]; type FormDataEntryValue = File | string; type GLbitfield = number; type GLboolean = boolean; type GLclampf = number; type GLenum = number; type GLfloat = number; type GLint = number; type GLint64 = number; type GLintptr = number; type GLsizei = number; type GLsizeiptr = number; type GLuint = number; type GLuint64 = number; type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record<string, string> | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type PerformanceEntryList = PerformanceEntry[]; type PushMessageDataInit = BufferSource | string; type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController; type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>; type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas; type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type BinaryType = "arraybuffer" | "blob"; type CanvasDirection = "inherit" | "ltr" | "rtl"; type CanvasFillRule = "evenodd" | "nonzero"; type CanvasFontKerning = "auto" | "none" | "normal"; type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded"; type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase"; type CanvasLineCap = "butt" | "round" | "square"; type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type DocumentVisibilityState = "hidden" | "visible"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "done" | "pending"; type IDBTransactionDurability = "default" | "relaxed" | "strict"; type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; type ImageOrientation = "flipY" | "from-image"; type ImageSmoothingQuality = "high" | "low" | "medium"; type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; type KeyType = "private" | "public" | "secret"; type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey"; type LockMode = "exclusive" | "shared"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaEncodingType = "record" | "webrtc"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; type PermissionState = "denied" | "granted" | "prompt"; type PredefinedColorSpace = "display-p3" | "srgb"; type PremultiplyAlpha = "default" | "none" | "premultiply"; type PushEncryptionKeyName = "auth" | "p256dh"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestRedirect = "error" | "follow" | "manual"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type TransferFunction = "hlg" | "pq" | "srgb"; type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; type WorkerType = "classic" | "module"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; `,ya["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; `,ya["lib.webworker.iterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// <reference no-default-lib="true"/> ///////////////////////////// /// Worker Iterable APIs ///////////////////////////// interface Cache { addAll(requests: Iterable<RequestInfo>): Promise<void>; } interface CanvasPath { roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; } interface CanvasPathDrawingStyles { setLineDash(segments: Iterable<number>): void; } interface DOMStringList { [Symbol.iterator](): IterableIterator<string>; } interface FileList { [Symbol.iterator](): IterableIterator<File>; } interface FontFaceSet extends Set<FontFace> { } interface FormData { [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; /** Returns an array of key, value pairs for every entry in the list. */ entries(): IterableIterator<[string, FormDataEntryValue]>; /** Returns a list of keys in the list. */ keys(): IterableIterator<string>; /** Returns a list of values in the list. */ values(): IterableIterator<FormDataEntryValue>; } interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ entries(): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ keys(): IterableIterator<string>; /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ values(): IterableIterator<string>; } interface IDBDatabase { /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; } interface IDBObjectStore { /** * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. * * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. */ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; } interface MessageEvent<T = any> { /** @deprecated */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; } interface SubtleCrypto { deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; } interface URLSearchParams { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an array of key, value pairs for every entry in the search params. */ entries(): IterableIterator<[string, string]>; /** Returns a list of keys in the search params. */ keys(): IterableIterator<string>; /** Returns a list of values in the search params. */ values(): IterableIterator<string>; } interface WEBGL_draw_buffers { drawBuffersWEBGL(buffers: Iterable<GLenum>): void; } interface WEBGL_multi_draw { multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; } interface WebGL2RenderingContextBase { clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; drawBuffers(buffers: Iterable<GLenum>): void; getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; } interface WebGL2RenderingContextOverloads { uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; } interface WebGLRenderingContextBase { vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; } interface WebGLRenderingContextOverloads { uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; } `;function c_(m){return typeof m=="string"?/^file:\/\/\//.test(m)?!!ya[m.substr(8)]:!1:m.path.indexOf("/lib.")===0?!!ya[m.path.slice(1)]:!1}var bI=class{constructor(m,v){uR(this,"_ctx");uR(this,"_extraLibs",Object.create(null));uR(this,"_languageService",dce(this));uR(this,"_compilerOptions");uR(this,"_inlayHintsOptions");this._ctx=m,this._compilerOptions=v.compilerOptions,this._extraLibs=v.extraLibs,this._inlayHintsOptions=v.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(C=>C.uri).filter(C=>!c_(C)).map(C=>C.toString()).concat(Object.keys(this._extraLibs))}_getModel(m){let v=this._ctx.getMirrorModels();for(let C=0;C<v.length;C++){const B=v[C].uri;if(B.toString()===m||B.toString(!0)===m)return v[C]}return null}getScriptVersion(m){let v=this._getModel(m);return v?v.version.toString():this.isDefaultLibFileName(m)?"1":m in this._extraLibs?String(this._extraLibs[m].version):""}async getScriptText(m){return this._getScriptText(m)}_getScriptText(m){let v,C=this._getModel(m);const B="lib."+m+".d.ts";if(C)v=C.getValue();else if(m in ya)v=ya[m];else if(B in ya)v=ya[B];else if(m in this._extraLibs)v=this._extraLibs[m].content;else return;return v}getScriptSnapshot(m){const v=this._getScriptText(m);if(v!==void 0)return{getText:(C,B)=>v.substring(C,B),getLength:()=>v.length,getChangeRange:()=>{}}}getScriptKind(m){switch(m.substr(m.lastIndexOf(".")+1)){case"ts":return EA.TS;case"tsx":return EA.TSX;case"js":return EA.JS;case"jsx":return EA.JSX;default:return this.getCompilationSettings().allowJs?EA.JS:EA.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(m){switch(m.target){case 99:const v="lib.esnext.full.d.ts";if(v in ya||v in this._extraLibs)return v;case 7:case 6:case 5:case 4:case 3:case 2:default:const C=`lib.es${2013+(m.target||99)}.full.d.ts`;return C in ya||C in this._extraLibs?C:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(m){return m===this.getDefaultLibFileName(this._compilerOptions)}readFile(m){return this._getScriptText(m)}fileExists(m){return this._getScriptText(m)!==void 0}async getLibFiles(){return ya}static clearFiles(m){const v=[];for(const C of m){const B={...C};if(B.file=B.file?{fileName:B.file.fileName}:void 0,C.relatedInformation){B.relatedInformation=[];for(const ne of C.relatedInformation){const _e={...ne};_e.file=_e.file?{fileName:_e.file.fileName}:void 0,B.relatedInformation.push(_e)}}v.push(B)}return v}async getSyntacticDiagnostics(m){if(c_(m))return[];const v=this._languageService.getSyntacticDiagnostics(m);return bI.clearFiles(v)}async getSemanticDiagnostics(m){if(c_(m))return[];const v=this._languageService.getSemanticDiagnostics(m);return bI.clearFiles(v)}async getSuggestionDiagnostics(m){if(c_(m))return[];const v=this._languageService.getSuggestionDiagnostics(m);return bI.clearFiles(v)}async getCompilerOptionsDiagnostics(m){if(c_(m))return[];const v=this._languageService.getCompilerOptionsDiagnostics();return bI.clearFiles(v)}async getCompletionsAtPosition(m,v){if(!c_(m))return this._languageService.getCompletionsAtPosition(m,v,void 0)}async getCompletionEntryDetails(m,v,C){return this._languageService.getCompletionEntryDetails(m,v,C,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(m,v,C){if(!c_(m))return this._languageService.getSignatureHelpItems(m,v,C)}async getQuickInfoAtPosition(m,v){if(!c_(m))return this._languageService.getQuickInfoAtPosition(m,v)}async getDocumentHighlights(m,v,C){if(!c_(m))return this._languageService.getDocumentHighlights(m,v,C)}async getDefinitionAtPosition(m,v){if(!c_(m))return this._languageService.getDefinitionAtPosition(m,v)}async getReferencesAtPosition(m,v){if(!c_(m))return this._languageService.getReferencesAtPosition(m,v)}async getNavigationTree(m){if(!c_(m))return this._languageService.getNavigationTree(m)}async getFormattingEditsForDocument(m,v){return c_(m)?[]:this._languageService.getFormattingEditsForDocument(m,v)}async getFormattingEditsForRange(m,v,C,B){return c_(m)?[]:this._languageService.getFormattingEditsForRange(m,v,C,B)}async getFormattingEditsAfterKeystroke(m,v,C,B){return c_(m)?[]:this._languageService.getFormattingEditsAfterKeystroke(m,v,C,B)}async findRenameLocations(m,v,C,B,ne){if(!c_(m))return this._languageService.findRenameLocations(m,v,C,B,ne)}async getRenameInfo(m,v,C){return c_(m)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(m,v,C)}async getEmitOutput(m){return c_(m)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(m)}async getCodeFixesAtPosition(m,v,C,B,ne){if(c_(m))return[];const _e={};try{return this._languageService.getCodeFixesAtPosition(m,v,C,B,ne,_e)}catch{return[]}}async updateExtraLibs(m){this._extraLibs=m}async provideInlayHints(m,v,C){if(c_(m))return[];const B=this._inlayHintsOptions??{},ne={start:v,length:C-v};try{return this._languageService.provideInlayHints(m,ne,B)}catch{return[]}}};function j8e(m,v){let C=bI;if(v.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(v.customWorkerPath);const B=self.customTSWorkerFactory;if(!B)throw new Error(`The script at ${v.customWorkerPath} does not add customTSWorkerFactory to self`);C=B(bI,uce,ya)}return new C(m,v)}globalThis.ts=fce,self.onmessage=()=>{cce((m,v)=>j8e(m,v))};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */})();
cải xoăn